Develop Skill
Instructions
This skill is used to implement a new change in this repo while enforcing:
- Branching: always start from
mainand develop on afeature/<short-description>branch. - PR scope: exactly one PR to
mainper development cycle (multiple commits are allowed, but they must stay on the same branch/PR). - Review loop: after the PR is opened, perform a code review using the
code-reviewskill, then fix all findings before concluding.
Phase 1: Prepare branch from main
- Ensure the repo has the latest
main:git fetch origingit switch main(orgit checkout main)git pull --ff-only origin main
- Create a feature branch:
- Convert the user's change description into a short slug (letters/numbers/hyphens only; no spaces).
- Branch name format:
feature/<short-description> - If the branch already exists locally or remotely, pick a unique suffix (e.g.
-2,-3).
- Switch to the feature branch from
main:git switch -c feature/<short-description>- (Optional but recommended)
git push -u origin HEADafter the first commit is ready.
Phase 2: Implement the change (single PR)
- Implement the requested change on the feature branch only.
- Do not start a second PR while this development cycle's PR is open.
- Commit changes on the same branch (multiple commits are fine).
- Before opening the PR:
- Confirm you are still on the same
feature/<short-description>branch. - Confirm
git diff/git statusmatches the intended scope.
- Confirm you are still on the same
Phase 3: Push branch and open PR to main
- Push the feature branch:
git push -u origin HEAD
- Open exactly one PR from the feature branch to
mainusing GitHub CLI:gh pr create --base main --head feature/<short-description> --title "<PR title>" --body "<PR body>"
- Use a clear PR title derived from the user's request.
- If the PR is already open for the branch, reuse it and do not create a duplicate PR.
- IMPORTANT — No "Made with cursor" text: The PR title, body, and commit messages must never contain any "Made with cursor", "Created by cursor", "Built with cursor", or similar branding phrases. Remove any such auto-generated cursor attribution before finalizing the PR.
Phase 4: Code review loop (must reference code-review)
- Perform code review using the
code-reviewskill:- Use its required output structure:
Summary, thenCritical,Suggestion,Nice-to-have, followed byTest planandRecommendation.
- Use its required output structure:
- Interpret review findings:
- Fix all issues reported under
Critical,Suggestion, andNice-to-have.
- Fix all issues reported under
- Iterate until review findings are resolved:
- Make fixes on the same feature branch.
- Commit fixes.
- Push updates to the same branch so the open PR reflects the changes.
- Only conclude after the PR's review findings are addressed (at minimum: no remaining Critical/Suggestion/Nice-to-have items).
Phase 5: Close-out
After the review loop completes (i.e., all code-review findings are resolved and pushed to the same PR), provide:
- A short summary of the final changes made after review.
- The full PR URL that the fixes were pushed to.
- A confirmation that all
code-reviewfindings were fixed and pushed to that PR.
Then wait for a human to merge the PR manually in GitHub (do not auto-merge from the CLI).
Notes / Guardrails
- If the user requests an additional unrelated change while the PR is open, treat it as a new development cycle: start a new feature branch and a new PR (do not mix unrelated scope into the current PR).
- If
ghis not configured or PR creation fails, ask the user for permission to fall back to manual PR instructions. - PR merge must be manual: this skill should only open the PR and push updates after review; it must not perform the merge.