一键导入
run-hotfix
Streamlined workflow for urgent fixes. Minimal Stop points, no plan review, lightweight code review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Streamlined workflow for urgent fixes. Minimal Stop points, no plan review, lightweight code review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | run-hotfix |
| description | Streamlined workflow for urgent fixes. Minimal Stop points, no plan review, lightweight code review. |
Coordinate an urgent fix with minimal overhead: brief investigation, principal-authored plan, direct
execution, and a single lightweight code review pass. Use this workflow for post-PR fixes — CI
failures, code review findings, or other issues found after a PR is open. All artifacts are stored
under .artifacts/{YYYYMMDD}--{JIRA-ID}--{project-name}/.
Use this skill for post-PR fixes — when a PR is open and needs a targeted fix in response to CI failures or code review comments from the PR thread.
This is a standalone skill triggered directly by humans.
Do not use when:
review-pr
instead (which calls this skill internally for the actual fixes)run-bug-fix insteadrun-fix insteadCompared to run-bug-fix: run-hotfix skips the full plan-and-review cycle. It is faster
but produces lighter documentation.
Your prompt must include:
If not provided, ask before proceeding. Do not guess.
Derive {project-name} from the bug description, prefixed with hotfix-
(e.g. hotfix-auth-token-expiry), 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}/. If the parent
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 | Brief investigation findings and root cause |
implementation-plan.md | Minimal fix plan authored by the principal |
implementation-journal.md | Execution journal |
code-review--01.md | Single lightweight review pass |
Determine the next hotfix number N by counting existing --agents-hotfix-{N} branches on the
parent branch.
Extract the Jira ID from the parent branch name:
[A-Z]+-[0-9]+ (e.g. FUS-123) → use it as {JIRA-ID}NO-TICKET, or neither matches → no Jira ID; omit the {JIRA-ID} segment
from the project directory name (see Project directory above)Create the hotfix branch from the parent branch:
git switch {parent-branch}
git switch -c {parent-branch}--agents-hotfix-{N}
All commits are made on {parent-branch}--agents-hotfix-{N}.
After the review is approved, squash onto the parent branch:
git switch {parent-branch}
git merge --squash {parent-branch}--agents-hotfix-{N}
git commit -m "<fix message>"
The --agents-hotfix-{N} branch is local only. Do not push it to origin. It exists as a
local audit trail and is preserved after the squash.
Do NOT push the parent branch — that is the human's decision.
Dispatch an engineer-investigator subagent with the investigate-codebase skill. Keep the
investigation focused: root cause and minimal blast radius only.
Synthesize 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.
Write implementation-plan.md directly from the bug report. Read
.agents/artifacts/implementation-plan/description.md for section definitions and render
.agents/artifacts/implementation-plan/template.md.j2 to produce the initial file. Replace all dummy
content — every line drawn from the retro encabulator — with real content. Fill in only what is essential
for the executor to proceed: Goal, Project Commands, Project Standards, and a single execution task
with clear steps and acceptance criteria. The rendered file must contain no placeholder text when submitted.
Do not dispatch a planner subagent. Do not dispatch a reviewer. Speed is the priority.
Dispatch an engineer-executor subagent with the execute-implementation-plan skill and the plan path.
Read the journal to collect the list of modified files. Dispatch an engineer-reviewer subagent with the
review-code skill, passing the list of modified files and the project directory.
STOP — end your turn here. Present the review to the human. Resolve Critical findings before shipping. Significant and Trivial findings are logged as follow-up work; they do not block the hotfix.
Before ending your turn, verify every item in this checklist:
Perform the squash onto the parent branch (see Git workflow above).
Report completion to the human with:
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.