بنقرة واحدة
run-bug-fix
Orchestrates the full bug fix workflow: investigate, plan, execute, and review.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Orchestrates the full bug fix workflow: investigate, plan, execute, and review.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | run-bug-fix |
| description | Orchestrates the full bug fix workflow: investigate, plan, execute, and review. |
Coordinate the full bug fix workflow: investigation, implementation planning, execution, and review. All
artifacts are stored under .artifacts/{YYYYMMDD}--{JIRA-ID}--{project-name}/.
Use this skill for a thorough, well-documented bug fix — when the root cause is unknown or needs confirmation, and when the fix warrants a full plan-and-review cycle.
This is a standalone skill triggered directly by humans.
Do not use when:
run-hotfix insteadrun-fix insteadreview-prCompared to run-hotfix: run-bug-fix includes investigation, a full implementation plan,
and a plan review. run-hotfix skips those and goes straight to execution.
Your prompt must include:
If not provided, ask before proceeding. Do not guess.
Derive {project-name} from the bug description, prefixed with fix-
(e.g. fix-null-pointer-on-login), five words or fewer. Run branch setup first (see Git workflow below)
so {JIRA-ID} is known, then create .artifacts/{YYYYMMDD}--{JIRA-ID}--{project-name}/. Match
{JIRA-ID} using the same rule as the branch-setup Jira extraction below; if the branch has no ticket
(no match, or it contains NO-TICKET), omit the {JIRA-ID} segment entirely — do not write the literal
text NO-TICKET into the path. All artifacts for this project are stored there.
| Artifact | Description |
|---|---|
bug-report.md | Investigation findings and confirmed root cause |
implementation-plan.md | Fix plan |
implementation-review--{N}.md | Implementation plan review (N = zero-padded 2 digits: 01, 02, ...) |
implementation-journal.md | Execution journal |
execution-review--{scope-id}--{N}.md | Execution review (scope-id = task-NN or whole-plan; N = zero-padded 2 digits: 01, 02, ...) |
This skill manages its own git branch and commits throughout the workflow. Follow these rules exactly.
Check the current branch:
main or master: STOP immediately. Tell the human that agents must not work
directly on main/master and ask them to create a feature branch first. Do not proceed.--agents-build branch from the current branch:
git switch -c {current-branch}--agents-build
Extract the Jira ID from the current (parent) branch name:
[A-Z]+-[0-9]+ (e.g. FUS-123) → use it as the Jira IDNO-TICKET → use NO-TICKET as the Jira IDAll commits during stages 1–3 are made on the --agents-build branch.
After the human approves each stage, commit everything staged at that point:
git add -A
git commit -m "<message>"
The commit message format follows ~/.agents/instructions/git.md:
<type>(<jira-id>): <short description>
- <bullet describing what was done>
- <bullet describing what was done>
Stage-specific commit types:
docs(<jira-id>): add bug report for {project-name}docs(<jira-id>): add fix plan for {project-name}fix(<jira-id>): {short description of fix}The body bullets should summarise what the stage produced — not implementation detail.
The --agents-build branch is local only. Do not push it to origin. It exists as a local
audit trail and is preserved after the squash so the full history remains accessible on the
machine.
After the execution is approved by both the agent reviewer and the human, squash all
--agents-build commits onto the parent feature branch:
git switch {parent-branch}
git merge --squash {parent-branch}--agents-build
git commit -m "<approved message>"
--agents-build branch — it is preserved locally as the full commit history.Run branch setup (see Git workflow above) before doing anything else.
Dispatch an engineer-investigator subagent with the investigate-codebase skill. Direct the
investigator to determine: root cause, affected code paths, and blast radius.
Synthesize the investigator's findings into bug-report.md. Read
.agents/artifacts/bug-report/description.md for the canonical section definitions, and render
.agents/artifacts/bug-report/template.md.j2 to produce the initial file. Replace all dummy
content — every line drawn from the retro encabulator — with real content for this bug. The rendered
file must contain no placeholder text when submitted.
STOP — end your turn here. Present the bug report to the human. Confirm the root cause and scope before proceeding. If the root cause is unclear, dispatch the investigator again with a more targeted question.
Do not proceed to planning until the human explicitly confirms the root cause.
Before ending your turn, verify every item in this checklist:
Once confirmed: commit (see Git workflow — "After bug report approved").
Dispatch an engineer-planner subagent with the create-implementation-plan skill, passing the bug
report path as the planning input in place of a design plan.
Then dispatch an architect-reviewer subagent with the review-implementation-plan skill, the plan
path, and iteration 01.
Address all findings from the review:
##### Outcome subsection.architect-reviewer at N+1 if changes were substantial. Repeat until the
agent reviewer approves.STOP — end your turn here. The implementation plan is ready for human review. Present it to the human. Do not summarize the agent findings — the human will read the plan directly. Wait for the human to ask questions, request revisions, or give approval.
Do not proceed to execution until the human explicitly approves the plan.
Before ending your turn, verify every item in this checklist:
Once approved: commit (see Git workflow — "After implementation plan approved").
Dispatch an engineer-executor subagent with the execute-implementation-plan skill and the plan path.
Then dispatch an engineer-reviewer subagent with the review-implementation-execution skill, the
journal path, scope whole-plan, and iteration 01.
Address all findings from the review:
engineer-executor to fix significant and critical findings. Flag genuinely
ambiguous ones inline.##### Outcome subsection.engineer-reviewer at N+1 if changes were substantial. Repeat until the
agent reviewer approves.STOP — end your turn here. The execution is ready for human review. Present the execution review to the human. Wait for the human to ask questions, request revisions, or give approval.
Do not proceed to the squash until the human explicitly approves the execution.
Before ending your turn, verify every item in this checklist:
Once approved: commit (see Git workflow — "After execution approved"), then perform the squash onto the feature branch (see Git workflow — "Squash onto the feature branch").
Report completion to the human with:
--agents-build branch name (preserved for history)Publishes a clean normal feature or task branch and creates its pull request on explicit human request.
Instructions for writing good design plan artifacts. Use when specifically requested.
Instructions for writing good implementation plans artifacts. Use when specifically requested.
Instructions for executing implementation plans. Use when specifically requested.
Instructions for executing a task from an implementation plans. Use when specifically requested.
Instructions for investigating a codebase to answer a specific question.