jira-fix-workflow
Jira Bug-Fix Workflow
End-to-end Jira bug-fix flow; stages 1-6 are read-only. Manual mode (default) requires confirmation between stages.
Prerequisites: PAT/auth follows the
jira-readcredential contract (envJIRA_PERSONAL_TOKEN, aliasJIRA_PAT, or~/.config/jira-certs/jira-pat.txt); mcp-atlassian is optional. The Git environment is healthy. Format reference: output templates, the state directory, commit format, and exit scripts are in reference.md.
Triggers and Modes
| Phrasing example | Mode | Note |
|---|---|---|
"修复这个 bug [URL]", "帮我修复 [URL]", jira-fix [URL] |
👤 Manual | Default; solution/plan/commit need user confirmation |
"自动修复 [URL]", "修复 [URL] 自动模式", jira-fix [URL] --auto |
🤖 Auto | Runs the full flow with no confirmation |
"强制修复 [URL]", "跳过分级修复 [URL]", jira-fix [URL] --force |
🤖 Auto | Skips difficulty grading, forces auto execution |
"继续修复 [URL]", "再次修复 [URL]", jira-fix [URL] --retry |
👤 Manual | Skips stages 0/1, re-analyzes from stage 3 |
"从上次继续", "恢复修复 [URL]", jira-fix [URL] --resume |
Current mode | Resumes from the last checkpoint |
| "ai-proxy 模式", "AI 代理模式", "切换 ai-proxy" | overlay | Auto carrier; thin freeze then occupy per ai-proxy-discipline |
Mode detection: overlay triggers (「ai-proxy 模式」「AI 代理模式」「切换 ai-proxy」 / "ai-proxy mode" / "switch to ai-proxy") request overlay per workflow-mode-lifecycle — if both auto and overlay appear, overlay+freeze wins. Else contains "自动" / --auto → auto; contains "强制" / "跳过分级" → skip grading (auto); contains "继续修复" / "再次修复" / --retry → re-enter at stage 3; contains "从上次继续" / "恢复" / --resume → resume from checkpoint; otherwise manual.