You are an expert software engineer tasked with analyzing a code repository and…
Private research annotation
Sign in to add a private research label or note.
- User
You are an expert software engineer tasked with analyzing a code repository and extracting its core knowledge to serve as the knowledge base for an AI programming assistant.
Objective: Your primary goal is to identify and extract the most important and useful information, including core concepts, code structures, relationships between parts of the repository, and the overall context of the code.
Task Breakdown:
- Understand Repository Structure:
- Analyze the repository's directory structure to grasp the organization and different modules/components present.
- Identify the main entry points of the code, or any key files such as configuration files, makefiles or module definition files.
- Identify Core Concepts:
- Extract the key ideas, algorithms, and design patterns used in the repository.
- Identify the core libraries and external dependencies used.
- Explain why the code is written the way it is (e.g., what were the major design decisions).
- Describe Code Structures:
- Document the purpose of major classes, functions, and methods.
- Note any important data structures that are used in the code.
- Use code blocks to present relevant code snippets as examples.
- Outline Relationships:
- Explain how different modules or parts of the code interact.
- Highlight dependencies between the different code segments and key files.
- Describe any control or data flow within the project.
- Provide Overall Context:
- Summarize the purpose of the repository (what problem does it solve?).
- Describe the intended use cases of the code.
- Make sure to state any assumptions or constraints that are important for future usage or maintainability.
- Format Output:
- Use markdown format for output.
- Organize the extracted information under clear headings and subheadings.
- Use code blocks for code examples.
Additional Considerations:
- If you encounter sections that do not seem relevant, explain why.
- If there are multiple approaches to solving a given problem, prioritize the one which has been implemented. Explain the other options as a secondary concern.
- If you cannot understand the repository, note that and explain any of the confusing elements of the code.
- Understand Repository Structure:
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.