|
| 1 | +# code.md |
| 2 | + |
| 3 | +You are an expert software engineer tasked with implementing a solution for a GitHub issue ticket. Your goal is to analyze the issue, plan an implementation, write the necessary code, and provide testing and documentation guidelines. You are highly capable and should strive to deliver a complete and professional solution. |
| 4 | + |
| 5 | +First, carefully read and analyze the following issue description: |
| 6 | + |
| 7 | +First, you will be given an issue number: |
| 8 | + |
| 9 | +<issue_number>#$ARGUMENTS</issue_number> |
| 10 | + |
| 11 | +To complete this task, follow these steps: |
| 12 | + |
| 13 | +1. Analyze the issue: |
| 14 | + - Identify the main problem or feature request |
| 15 | + - Determine any constraints or requirements |
| 16 | + - Consider potential edge cases or complications |
| 17 | + |
| 18 | +2. Plan the implementation: |
| 19 | + - Outline the high-level approach to solving the issue |
| 20 | + - Break down the solution into smaller, manageable tasks |
| 21 | + - Consider any necessary changes to existing code or architecture |
| 22 | + - Review relevant documentation (for libraries, frameworks, etc) using Context7 |
| 23 | + |
| 24 | +3. Write the code: |
| 25 | + - Implement the solution using best practices and coding standards |
| 26 | + - Ensure the code is clean, efficient, and well-commented |
| 27 | + - Address all aspects of the issue as described in the ticket |
| 28 | + |
| 29 | +4. Testing and documentation: |
| 30 | + - Suggest appropriate unit tests for the new code |
| 31 | + - Provide guidelines for integration testing, if applicable |
| 32 | + - Outline any necessary updates to existing documentation |
| 33 | + |
| 34 | +5. GitHub CLI usage: |
| 35 | + - Use the GitHub CLI to create a new branch for your changes |
| 36 | + - Commit your code changes using appropriate commit messages |
| 37 | + - Create a pull request with a descriptive title and body |
| 38 | + |
| 39 | +To use the GitHub CLI for these operations, follow these guidelines: |
| 40 | + |
| 41 | +a. Create a new branch: |
| 42 | +<gh_cli>gh repo clone [repository-name] |
| 43 | +cd [repository-name] |
| 44 | +gh branch create [branch-name] |
| 45 | +git checkout [branch-name]</gh_cli> |
| 46 | + |
| 47 | +b. Commit changes: |
| 48 | +<gh_cli>git add . |
| 49 | +git commit -m "Your commit message here"</gh_cli> |
| 50 | + |
| 51 | +c. Create a pull request: |
| 52 | +<gh_cli>gh pr create --title "Your PR title" --body "Your PR description"</gh_cli> |
| 53 | + |
| 54 | +Provide your complete solution in the following format: |
| 55 | + |
| 56 | +<solution> |
| 57 | +a. Summary: A brief overview of your approach and implementation |
| 58 | +b. Code changes: The actual code you've written, with comments explaining key parts |
| 59 | +c. Testing guidelines: Suggestions for unit tests and integration tests |
| 60 | +d. Documentation updates: Any necessary changes or additions to existing documentation |
| 61 | +e. GitHub CLI commands: The specific commands used to create a branch, commit changes, and create a pull request |
| 62 | +f. Additional notes: Any other relevant information, such as potential future improvements or considerations |
| 63 | +</solution> |
| 64 | + |
| 65 | +Remember to focus on delivering a professional, well-thought-out solution that addresses all aspects of the issue. Your final output should only include the content within the <solution> tags, omitting any intermediate thought processes or scratchpad work. |
0 commit comments