ワンクリックで
fix-issue
Fix a GitHub issue in an isolated worktree, test, commit, and open a PR.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fix a GitHub issue in an isolated worktree, test, commit, and open a PR.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Start the local development environment (embedded Postgres + Meilisearch + API) and run e2e tests.
Initialize a repo as an Arkeon knowledge base and build a knowledge graph from its documents.
Build, test, version-bump, and publish the arkeon npm package from main.
Find and create relationships between entities across different spaces in the graph.
Merge a GitHub PR, watch CI/CD pipeline, and check if publishable packages need a release.
Review docs for staleness after feature work. Compare each doc against the codebase, flag stale content, and update or delete.
| name | fix-issue |
| description | Fix a GitHub issue in an isolated worktree, test, commit, and open a PR. |
| disable-model-invocation | true |
| argument-hint | ["issue-number"] |
| allowed-tools | Read, Grep, Glob, Bash(git *, gh *, npm *, npx *, psql *, curl *, pkill *, sleep *, ls *), Edit, Write, Agent, EnterPlanMode, ExitPlanMode, ExitWorktree |
Fix issue #$ARGUMENTS in an isolated git worktree so main stays clean.
Before doing anything else, label the issue so others know it's being worked on:
# Check if someone else is already working on it
gh issue view $ARGUMENTS --json title,body,labels,state
If the issue already has the in-progress label, stop and warn the user — another agent or developer may be actively working on it. Only proceed if the user confirms.
# Claim it
gh issue edit $ARGUMENTS --add-label "in-progress"
This label MUST be added before any planning or coding begins.
Enter plan mode. Read the issue, explore the relevant code, and design your approach. Get user sign-off before implementing.
git fetch origin
git worktree add .claude/worktrees/issue-$ARGUMENTS -b fix/issue-$ARGUMENTS origin/main
Work exclusively inside .claude/worktrees/issue-$ARGUMENTS/ for all file edits.
From the worktree directory, use /local-dev start to bring up an isolated stack.
It will auto-detect the worktree, pick free ports, write .devports and .env, and start Postgres + API.
You MUST start the local dev server before writing or running any tests.
If the fix involves a new feature, new route, behavioral change, or anything beyond a simple bug fix:
packages/arkeon/test/e2e/ to find the most relevant file*.test.ts file only if no existing file covers this domainhelpers.ts, async API calls, descriptive test namesFor simple bug fixes where the existing test suite already covers the affected behavior, you may skip writing new tests — but you must still run the suite.
# Run e2e tests — .env provides E2E_BASE_URL and ADMIN_BOOTSTRAP_KEY automatically
npm run test:e2e -w packages/arkeon
If tests fail, fix the issue and re-run. Do not proceed to the PR step with failing tests.
# Stop the isolated stack when done
# (use /local-dev stop from the worktree, or manually:)
source .claude/worktrees/issue-$ARGUMENTS/.devports
if [ -f /tmp/arkeon-$API_PORT.pid ]; then
kill -TERM "$(cat /tmp/arkeon-$API_PORT.pid)" 2>/dev/null || true
fi
cd .claude/worktrees/issue-$ARGUMENTS
git add <changed files>
git commit -m "Fix: <summary>
Fixes #$ARGUMENTS
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>"
git push -u origin fix/issue-$ARGUMENTS
gh pr create \
--base main \
--head fix/issue-$ARGUMENTS \
--title "<short title>" \
--body "## Summary
<bullet points>
Fixes #$ARGUMENTS
## Test plan
- [ ] e2e tests pass
- [ ] Manual verification
Generated with [Claude Code](https://claude.com/claude-code)"
After the PR is created, transition the issue label from in-progress to in-review:
gh issue edit $ARGUMENTS --remove-label "in-progress" --add-label "in-review"
After opening the PR, always exit the worktree using the ExitWorktree tool so you're not stranded:
ExitWorktree with keep = true (do NOT delete the worktree)Tell the user the PR is open and they can clean up after merge:
git worktree remove .claude/worktrees/issue-$ARGUMENTS
git branch -d fix/issue-$ARGUMENTS
packages/arkeon/src/runtime/sandbox.ts or packages/arkeon/src/server/lib/worker-invoke.ts, run ./scripts/test-sandbox.sh. On Linux this exercises real bubblewrap; on macOS it exercises the direct-execution fallback. The CI workflow installs bubblewrap on Ubuntu and runs the same script, so full-isolation tests still run in CI even if you develop on a Mac.in-progress must be added before any work begins; transition to in-review when the PR is openedin-progress label: gh issue edit $ARGUMENTS --remove-label "in-progress"in-progress when you start, warn the user before proceeding.claude/worktrees/issue-$ARGUMENTS). NEVER run rm -rf .claude/worktrees/, git worktree prune, or remove any other worktree. Other worktrees may contain active work from other sessions. If cleanup is needed, only target the exact worktree path for this issue.