implement-issue
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Use when the user wants to implement a GitHub issue end-to-end: fetch issue context, claim it (assign yourself, set status to In progress), create a branch, plan, code, validate, push, and open a draft PR.
- Reads credentials
- Commits and pushes
10 other projects use a version of this.
Adopted by
Most recently taken up by
- gymcoach-app/gymcoachtheir own version, first seen Oct 5, 2026
- Julien-Au/gymcoachtheir own version, first seen Sep 30, 2026
- gringolito/skillstheir own version, first seen Sep 24, 2026
- phmatray/tagouttheir own version, first seen Sep 14, 2026
- alexjbarnes/cockpittheir own version, first seen Aug 13, 2026
- frostney/pascal-mcp-sdktheir own version, first seen Aug 9, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- google/site-kit-wp★ 1.4ksame name
- aaddrick/claude-pipeline★ 129same name
- gymcoach-app/gymcoach★ 31same name
- Julien-Au/gymcoach★ 31same name
- alexjbarnes/cockpit★ 15same name
- julienlegoux/skills★ 4same name
- phmatray/tagout★ 4same name
- frostney/pascal-mcp-sdk★ 2same name
- ravihammond/skills★ 1same name
- gringolito/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- feature-development-workflowSkill
- gh-release-train-mergeSkill
- github-project-boardSkill
- nist-buildSkill
- nist-designSkill
- nist-planSkill
- nist-releaseSkill
- nist-respondSkill
- nist-testSkill
- plan-to-issueSkill
- prettifySkill
- pr-from-branchSkill
- release-candidate-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 14 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 18
If no argument or an unparseable argument is provided, stop and ask for an issue link or number.
- Distinctive: line 35
Read the issue body and every comment:
- Distinctive: line 42
If the issue is closed, stop and confirm with the user before continuing.
- Very specific: line 71
If projectItems is empty, the issue isn't on a board — note it and skip the status update.
- Distinctive: line 104
Check recent merged PR branch naming:
- Distinctive: line 144
Add unit tests for new code when project rules require them.
- Distinctive: line 147
Use shared components and utilities.
- Distinctive: line 148
Never commit secrets or real credentials.
- Distinctive: line 150
If scope expands materially or the issue appears wrong, stop and re-plan with the user.
- Distinctive: line 154
Run project validation from local instructions and scripts.
- Very specific: line 177
Use the repo's commit style.
- Distinctive: line 185
If push fails, report the exact error and stop.
- Distinctive: line 198
If a PR already exists for the branch, report its URL instead of recreating it.
- Distinctive: line 213
Never force-push or rewrite history.
- Distinctive: line 214
Never close the issue directly.
- Distinctive: line 215
Never bypass hooks or validation unless explicitly authorized.
- Very specific: line 216
Never commit .env files or generated secrets.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Implement Issue
Implement a GitHub issue end-to-end: resolve the issue, claim it, create a branch from the default base, plan the change, implement, validate, push, and open a draft PR using the pr-from-branch skill.
Resolve The Issue
Accept:
- Full issue URL: extract owner, repo, and issue number.
- Bare number: infer owner and repo from
gh repo view --json owner,name. #123: strip#and treat as a bare number.
If no argument or an unparseable argument is provided, stop and ask for an issue link or number.
Prerequisites
Verify:
git rev-parse --is-inside-work-tree
git status --porcelain
gh --version
gh auth statusThe worktree must be clean before branching. If dirty, stop and ask the user to commit or stash; do not include unrelated work.
Fetch The Issue
Read the issue body and every comment:
gh issue view "<issue-number>" --repo "<owner>/<repo>" \
--json number,title,body,labels,assignees,state,url,commentsIf the issue is closed, stop and confirm with the user before continuing.
Extract acceptance criteria, linked designs or PRs, named files, scope hints, labels, and comment updates that override the original body.
Claim The Issue
Once the issue is confirmed open and you're going to work it, claim it before branching.
Assign yourself with @me (resolves to the authenticated gh user — don't hardcode a username):
gh issue edit "<issue-number>" --repo "<owner>/<repo>" --add-assignee @meSet the project Status to "In progress". Status lives on a GitHub Projects (v2) board, not on the issue, so use the GraphQL API. The issue may sit on more than one board — update each that has a Status field.
- Find the issue's project items and project IDs:
gh api graphql -f query='
query($owner:String!, $repo:String!, $number:Int!) {
repository(owner:$owner, name:$repo) {
issue(number:$number) {
projectItems(first:20) { nodes { id project { id title number } } }
}
}
}' -F owner="<owner>" -F repo="<repo>" -F number="<issue-number>"If projectItems is empty, the issue isn't on a board — note it and skip the status update; don't guess which board to add it to.
- For each item, resolve the "Status" single-select field id and the option whose name matches "In progress" (case-insensitive):
gh api graphql -f query='
query($project:ID!) {
node(id:$project) {
... on ProjectV2 {
field(name:"Status") { ... on ProjectV2SingleSelectField { id options { id name } } }
}
}
}' -F project="<project-id>"- Apply the update:
gh api graphql -f query='
mutation($project:ID!, $item:ID!, $field:ID!, $option:String!) {
updateProjectV2ItemFieldValue(input:{
projectId:$project, itemId:$item, fieldId:$field,
value:{ singleSelectOptionId:$option }
}) { projectV2Item { id } }
}' -F project="<project-id>" -F item="<item-id>" -F field="<field-id>" -F option="<option-id>"These are best-effort. If a call fails (e.g. the token lacks the project scope — gh auth refresh -s project grants it), report it and continue with the implementation rather than aborting.
Create The Branch
Resolve the base branch from the GitHub default branch, falling back to main, then master. Verify it exists on origin, fetch it, and branch from origin/<base>.
Check recent merged PR branch naming:
gh pr list --state merged --limit 10 --json headRefName --jq '.[].headRefName'Pick a short kebab-case branch name matching repo convention and derived from the issue title. If the branch already exists locally, stop and ask whether to reuse it or pick another name.
Read Project Conventions
Before planning, read:
- Root
CLAUDE.mdorAGENTS.md. - Nested convention files under directories likely to change.
- Linked docs or contribution files.
- Relevant
package.jsonscripts.
Project instructions override this skill when they conflict.
Plan
For anything beyond a one-line fix, create a step-by-step plan. If the project requires a task file, write the plan there too.
Cover:
- Files and modules expected to change.
- Tests required and coverage expectations.
- Migrations, env vars, or config changes.
- Manual verification for UI work.
- Design questions requiring user input before coding.
For large or unfamiliar areas, use subagents for focused exploration when available.
Implement
Work through the plan incrementally and update task status as items complete.
Guidelines:
- Make the minimum change satisfying the issue.
- Add unit tests for new code when project rules require them.
- Mock external dependencies.
- Match neighboring code patterns.
- Use shared components and utilities.
- Never commit secrets or real credentials.
If scope expands materially or the issue appears wrong, stop and re-plan with the user.
Validate
Run project validation from local instructions and scripts. Common Bun baseline:
bun fmt
bun lint
bun typecheck
bun testFix validation failures caused by the work. If a failure is unrelated and pre-existing, report it and stop rather than hiding it.
For UI changes, start the app and verify the main path plus at least one edge case.
Commit And Push
Stage only intentionally edited files. Never use git add -A or git add ..
Check staged paths:
git diff --cached --name-onlyUse the repo's commit style. Reference the issue in the commit body with Closes #<issue-number> or Refs #<issue-number>.
Push with upstream tracking:
git push -u origin "$(git branch --show-current)"If push fails, report the exact error and stop.
Draft PR
Invoke the pr-from-branch skill with the resolved base branch. The PR should be draft and the body must include Closes #<issue-number>.
Before creation, verify:
- The title reflects the issue intent.
- The body contains the close keyword.
- Labels match touched paths and existing labels.
- Draft status is set.
If a PR already exists for the branch, report its URL instead of recreating it.
Hand Back
Summarize:
- Issue claim outcome (assigned to you; Status → "In progress") — flag it if skipped or failed.
- Branch name.
- Draft PR URL.
- Files touched.
- Tests added and passed.
- Manual checks or follow-ups.
Guardrails
- Never force-push or rewrite history.
- Never close the issue directly.
- Never bypass hooks or validation unless explicitly authorized.
- Never commit
.envfiles or generated secrets.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

