Github issue impl
Take a GitHub Issue number, read the issue, explore the codebase, draft an implementation plan, and start implementing it.From its SKILL.md
npx -y skills add maee-co/cc-autoship --skill github-issue-implAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.7 KB, as published. Nobody here has run it
/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 --team
Arguments
| 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):gh auth statusIf unauthenticated, print an error, point at
gh 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
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