Develop Skill
Instructions
This skill is used to implement a new change in this repo while enforcing:
- Branching: always start from
main and develop on a feature/<short-description> branch.
- PR scope: exactly one PR to
main per 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-review skill, then fix all findings before concluding.
Phase 1: Prepare branch from main
- Ensure the repo has the latest
main:
git fetch origin
git switch main (or git 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 HEAD after 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 status matches the intended scope.
Phase 3: Push branch and open PR to main
- Push the feature branch:
- Open exactly one PR from the feature branch to
main using 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-review skill:
- Use its required output structure:
Summary, then Critical, Suggestion, Nice-to-have, followed by Test plan and Recommendation.
- Interpret review findings:
- Fix all issues reported under
Critical, Suggestion, and Nice-to-have.
- 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-review findings 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
gh is 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.
1---2name: develop-skill3description: "Implements a controlled Git workflow: create a feature branch from `main`, push all commits to that branch as a single PR to `main`, run a `code-review` using the project `code-review` skill, then fix all review findings (Critical / Suggestion / Nice-to-have) and push updates to the same PR until it is ready."4metadata:5 source: https://skillmd.com/skills/rosendolu/develop-skill6---78# Develop Skill910## Instructions1112This skill is used to implement a new change in this repo while enforcing:1314- Branching: always start from `main` and develop on a `feature/<short-description>` branch.15- PR scope: exactly one PR to `main` per development cycle (multiple commits are allowed, but they must stay on the same branch/PR).16- Review loop: after the PR is opened, perform a code review using the `code-review` skill, then fix all findings before concluding.1718### Phase 1: Prepare branch from `main`19201. Ensure the repo has the latest `main`:21 - `git fetch origin`22 - `git switch main` (or `git checkout main`)23 - `git pull --ff-only origin main`242. Create a feature branch:25 - Convert the user's change description into a short slug (letters/numbers/hyphens only; no spaces).26 - Branch name format: `feature/<short-description>`27 - If the branch already exists locally or remotely, pick a unique suffix (e.g. `-2`, `-3`).283. Switch to the feature branch from `main`:29 - `git switch -c feature/<short-description>`30 - (Optional but recommended) `git push -u origin HEAD` after the first commit is ready.3132### Phase 2: Implement the change (single PR)33341. Implement the requested change on the feature branch only.352. Do not start a second PR while this development cycle's PR is open.363. Commit changes on the same branch (multiple commits are fine).374. Before opening the PR:38 - Confirm you are still on the same `feature/<short-description>` branch.39 - Confirm `git diff`/`git status` matches the intended scope.4041### Phase 3: Push branch and open PR to `main`42431. Push the feature branch:44 - `git push -u origin HEAD`452. Open exactly one PR from the feature branch to `main` using GitHub CLI:46 - `gh pr create --base main --head feature/<short-description> --title "<PR title>" --body "<PR body>"`473. Use a clear PR title derived from the user's request.484. If the PR is already open for the branch, reuse it and do not create a duplicate PR.495. **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.5051### Phase 4: Code review loop (must reference `code-review`)52531. Perform code review using the `code-review` skill:54 - Use its required output structure: `Summary`, then `Critical`, `Suggestion`, `Nice-to-have`, followed by `Test plan` and `Recommendation`.552. Interpret review findings:56 - Fix all issues reported under `Critical`, `Suggestion`, and `Nice-to-have`.573. Iterate until review findings are resolved:58 - Make fixes on the same feature branch.59 - Commit fixes.60 - Push updates to the same branch so the open PR reflects the changes.614. Only conclude after the PR's review findings are addressed (at minimum: no remaining Critical/Suggestion/Nice-to-have items).6263### Phase 5: Close-out6465After the review loop completes (i.e., all `code-review` findings are resolved and pushed to the same PR), provide:6667- A short summary of the final changes made after review.68- The full PR URL that the fixes were pushed to.69- A confirmation that all `code-review` findings were fixed and pushed to that PR.7071Then wait for a human to merge the PR manually in GitHub (do not auto-merge from the CLI).7273## Notes / Guardrails7475- 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).76- If `gh` is not configured or PR creation fails, ask the user for permission to fall back to manual PR instructions.77- PR merge must be manual: this skill should only open the PR and push updates after review; it must not perform the merge.78