name: implement-issue description: Use when a given issue name or number needs to get implemented.
Objective
Implement the requested feature or fix based strictly on the provided issue definition and existing unit tests. Focus on writing the simplest, cleanest implementation that passes the existing test suite, and commit your work using the repository pipeline.
Boundaries
- Do NOT read or inspect the Makefile, git-workflow.sh, or any files under
.agents/. - Do NOT run exploratory commands (
Find,git log,git diff) beyond the files identified in the issue. - Do NOT run
make checkindependently — it is already run automatically bymake commit. - Do NOT run
make testmore than 3 times total. If tests still fail after 3 attempts, stop and report the failure. - Do NOT install dependencies using raw
pnpm install. Usemake setupif needed. - Do NOT push branches or create PRs when running as a subagent. Commit locally and stop.
Step-by-Step Instructions
Retrieve the Issue Details:
- If the issue context was provided in your prompt, use that directly. Do NOT call
make view-issue. - Only run
make view-issue NUMBER=<issue_number>if you were invoked standalone without issue context.
- If the issue context was provided in your prompt, use that directly. Do NOT call
Understand the Requirements & Existing Tests:
- Review the issue details carefully, identifying the list of files to modify and the specific tasks.
- Inspect the existing test files related to the issue (e.g.,
*.test.tsor*.spec.ts). These tests serve as your contract and guidance. Do not modify the test code itself unless the issue explicitly specifies doing so.
Implement the Code:
- Implement the code changes in the files identified by the issue.
- Write the simplest, most boring, and straightforward solution. Avoid speculative coding, overcomplication, or adding features not requested.
- Adhere strictly to clean code principles, type-safety, and biome styling standards as defined in CONTRIBUTING.md.
Verify the Implementation:
- Run
make testto verify that the tests for this issue pass. - If any test fails, fix and re-run
make test— but do not run it more than 3 times total. If tests still fail after 3 attempts, stop and report the failure.
- Run
Commit and Save Your Work:
- Run
make commit MSG="impl: resolve issue #<issue_number>"to validate and commit your changes. - Ensure the commit message follows the Conventional Commits format as defined in CONTRIBUTING.md.
[!NOTE]
make commitalready runsmake checkinternally before committing. Do NOT runmake checkseparately beforemake commit— it doubles the work. - If the commit fails due to validation errors, fix the issues in your code and run the command again.
- Run
Push and Open a PR (Conditional):
[!IMPORTANT] If you are running as a subagent under a coordinator like
full-issue-implementation, DO NOT push the branch or create a Pull Request. Simply commit your work locally, stop, and report completion back to the parent agent.If you are running standalone directly for the user:
- Push your branch to the remote repository by running:
make push - Open a Pull Request (PR) linking it to the original issue:
make create-pr TITLE="impl: resolve issue #<issue_number>" BODY="Closes #<issue_number>"
- Push your branch to the remote repository by running: