github-issue-impl
Skill0 starsChanged 5 months agoMITView on GitHub
Take a GitHub Issue number, read the issue, explore the codebase, draft an implementation plan, and start implementing it.
- Reads credentials
In this repository7 other files it gives its agents.
- cc-bestpracticeSkill
- checkpointSkill
- codex-secondary-reviewSkill
- devils-advocateSkill
- monorepo-managerSkill
- pr-context-summarySkill
- session-retroSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
If unauthenticated, print an error, point at gh auth login, and exit
- Distinctive: line 64
Ask the user if it cannot be identified
- Distinctive: line 80
Read those files and confirm their current state
- Distinctive: line 81
Check whether the code changed after the issue was created (git log --since)
- Distinctive: line 82
If it did, report it to the user and confirm whether to continue
- Distinctive: line 89
Check the dependent code (both directions of the imports)
- Very specific: line 130
When committing and pushing, either cd into the worktree first or use git -C .claude/worktrees/...
- Distinctive: line 134
Follow the plan and make the code changes with Edit/Write
- Distinctive: line 135
Run the tests after each change:
- Distinctive: line 140
If a test fails, fix it before moving on
- Distinctive: line 141
Run the full test suite once all changes are done
- Distinctive: line 145
Look for team-config.md in this order:
- Distinctive: line 148
If no team-config.md is found, tell the user and fall back to normal mode
- Very specific: line 165
Add a comment to the issue (use --body-file to avoid shell metacharacters):
- Very specific: line 195
Check that code snippets contain no .env values, API keys, or personal information
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/github-issue-impl
Given a GitHub issue number, read the issue → explore the codebase → draft an implementation plan → implement it.
Usage
/github-issue-impl 59
/github-issue-impl #<N>
/github-issue-impl 59 --plan-only
/github-issue-impl 59 --teamArguments
| Argument | Description | Default |
| (positional) | Issue number (#<number> or <number>) | Required |
--plan-only | Print the implementation plan only; change no code | false |
--team | Implement in parallel with Agent Teams | false |
Procedure
Step 1: Fetch the issue data
- Extract the issue number from the argument (strip a leading
#if present) - Check
ghauth (do this first):
If unauthenticated, print an error, point atgh auth statusgh auth login, and exit - Fetch the issue data:
gh issue view {NUMBER} --json title,body,labels,assignees,comments,state - Check the issue state:
- The issue does not exist → print an error and exit
- The issue is
closed→ ask the user: "this issue is already closed; should it be reopened and worked on?"
- Parse the issue body into structure:
- The overview section
- The root-cause section (the list of root causes)
- The proposed fix section
- Reproduction steps (for a bug)
- The implementation approach (for a feature)
- The completion criteria (for a task)
- Determine the type from the labels (
bug,enhancement, and so on) - Identify the target app, inferring in this order:
- The
[AppName]pattern in the issue title apps/{app}/extracted from file paths in the issue body- The app name inferred from the labels
- Ask the user if it cannot be identified
- The
Make the start visible on the GitHub issue (optional):
Leaving a comment on the GitHub issue before starting avoids collisions with parallel sessions and leaves a trail.
gh issue comment <issue number> --body "🤖 Claude Code is starting the implementation"To integrate with an external issue tracker (Linear and the like), configure the MCP separately and wire it into your own flow.
Step 2: Check the codebase
- Extract file paths and line numbers from the issue body with a regular expression:
- Patterns:
`{path}:{line}`,`{path}`, and so on
- Patterns:
- Read those files and confirm their current state
- Check whether the code changed after the issue was created (
git log --since) - If it did, report it to the user and confirm whether to continue
- Check whether the code changed after the issue was created (
- Find the related tests with Grep/Glob:
{basename of the target file}.test.ts {basename of the target file}.spec.ts __tests__/{basename of the target file}.* - Check the dependent code (both directions of the imports)
Step 3: Draft the implementation plan
- Build a concrete list of changes based on the issue's proposed fix
- Structure the plan like this:
## Implementation plan: {issue title} ### Files to change | File | Change | Priority | |------|--------|----------| | `path/to/file.ts` | {the change} | High | ### Implementation steps 1. [ ] {step 1}: {details} 2. [ ] {step 2}: {details} ### Test plan - [ ] {test 1} - [ ] {test 2} ### Risks and cautions - {risk 1} - With
--plan-only, print the plan here and stop
Step 4: Implement
4.0: Create the worktree (mandatory before implementing)
Implementation always happens in a worktree under .claude/worktrees/. The pre-tool-use.mjs hook grants the commit/push exception on main only for paths under .claude/worktrees/, so a worktree created outside that convention (a sibling directory of the repository, for instance) is blocked at the very first commit (this actually happened in the {ISSUE-ID} live verification of cc-autoship).
# Name the branch per the dev-flow convention: feat/{ISSUE-ID}-{scope}-{description} (fix/... for bugfixes)
BRANCH="feat/{ISSUE-ID}-{scope}-{description}"
git worktree add ".claude/worktrees/${BRANCH}" -b "$BRANCH" origin/main
cd ".claude/worktrees/${BRANCH}"- The SSoT for the worktree path and branch naming conventions is "Worktree rules" and "Naming conventions" in
${CLAUDE_PLUGIN_ROOT}/rules/dev-flow.md - When committing and pushing, either
cdinto the worktree first or usegit -C .claude/worktrees/...(so the hook's exception pattern matches)
Normal mode
- Follow the plan and make the code changes with Edit/Write
- Run the tests after each change:
Fall back tocd apps/{app} && pnpm testnpm testwhen there is no pnpm test - If a test fails, fix it before moving on
- Run the full test suite once all changes are done
Team mode (with --team)
- Look for team-config.md in this order:
apps/{app}/team-config.mdteam-config.mdat the repository root
- If no team-config.md is found, tell the user and fall back to normal mode
- Launch Agent Teams based on team-config.md (using the
/start-teamskill) - Distribute each step of the plan as a task
Progress log
Append the progress to progress/{app}.md for each change:
### {date} Issue #{number}
- {summary of the change}Step 5: Report completion
Output language: write the body of the issue comment in the language of the session (the same language you are answering the user in). The template below is the English sample and is not a set of strings to copy verbatim.
docs/rules/output-language.mdis the SSoT for the fixed label translations. Commit hashes, branch names, and issue numbers are fixed regardless of language (emit them as they are).
- Add a comment to the issue (use
--body-fileto avoid shell metacharacters):cat <<'COMMENT_EOF' > /tmp/github-issue-comment.md Fix commit: $(git log -1 --format=%H) ### Changes {summary of the changes} ### Test results {summary of the test run} COMMENT_EOF gh issue comment {NUMBER} --body-file /tmp/github-issue-comment.md rm -f /tmp/github-issue-comment.md - Report the summary to the user:
- The list of changed files
- The test results
- The issue URL
- Confirm the next action with the user:
- Close the issue?
- Create a commit?
- Open a PR?
Safety rules
- Confirm with the user before changing any file the issue does not mention
- In
--teammode, forbid each agent from editing outside its scope - Check that code snippets contain no
.envvalues, API keys, or personal information
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.

