Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By noni2she
Automated bug-fix workflow: extract → analyze → implement → test. Run /fix-one-issue <ISSUE-ID> to fix a single issue end-to-end.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code 插件 — 一個指令端對端修復 Bug:issue 擷取 → 重現 + 根源分析 → 實作 → 驗證。
harness_rules.yaml 集中管理 phase tool 限制與截斷規則agent-fix/
├── .claude-plugin/
│ └── plugin.json # Plugin 宣告(name / description / author)
├── commands/
│ └── fix-one-issue.md # 主指令:序列化 sub-agents + judge gate
├── agents/
│ ├── extract.md # Sub-agent: 從來源取 issue,回傳 IssueData JSON
│ ├── analyze.md # Sub-agent: 瀏覽器重現 + 根源分析 + 寫 analyze.md
│ ├── implement.md # Sub-agent: git branch + 實作修復 + 品質檢查
│ └── test.md # Sub-agent: 靜態分析 + 策略合規 + 行為驗證
├── mcp_servers/
│ └── agent_fix_tools/
│ └── server.py # 5-tool MCP server(stdio,FastMCP)
├── batch_runner/
│ └── driver.py # SDK driver:批次發 issue,worktree 隔離
├── engine/
│ ├── config.py # ProjectConfig(Pydantic YAML 驗證)
│ ├── harness_rules.yaml # Phase tool 限制 + 截斷規則(declarative)
│ ├── tools.py # Domain 工具(品質檢查 / 行為驗證 / 技術債)
│ ├── behavior_validation/ # Playwright runner(BehaviorValidator)
│ ├── issue_source/ # Issue 來源 adapter(local_json / Jira / Sheets)
│ └── skill_loader.py # SKILL.md 讀取(park,備 Phase 2/3 使用)
├── skills/ # 現有 SKILL.md(舊式 skill,可被 sub-agents 參考)
├── projects/ # 各目標專案配置
│ └── <slug>/
│ └── config.yaml # 專案配置
└── .mcp.json # MCP server 配置(chrome-devtools + agent-fix-tools)
/fix-one-issue <ISSUE-ID>
│
├─ [extract sub-agent]
│ fetch_issue(issue_id) → IssueData JSON
│ Gate 0: ❌ → CHECKPOINT
│
├─ [analyze sub-agent] ← 收到 IssueData JSON
│ Step 0: 瀏覽器重現(chrome-devtools MCP)
│ → Evidence Package(reproduce_confidence)
│ Gate 1a: confidence < 0.5 → RETRY once → CHECKPOINT
│ Steps 1–5: 讀原始碼 → 定位根因 → 評估影響 → 選策略
│ → 寫 issues/reports/<id>/analyze.md
│ Gate 1b: 缺 Root Cause File/Line → RETRY once → CHECKPOINT
│
├─ [implement sub-agent] ← 收到 analyze.md 路徑
│ git worktree branch → 實作修復(DIRECT / TACTICAL)
│ → run_typescript_check + run_eslint
│ → 寫 issues/reports/<id>/implement.md
│ Gate 2: TS FAILED → RETRY once → CHECKPOINT
│
└─ [test sub-agent] ← 收到 analyze.md + implement.md 路徑
靜態分析 + 策略合規 + 行為驗證(≤ 3 次 Playwright)
→ 寫 issues/reports/<id>/test.md
Gate 3: FAIL → RETRY once → CHECKPOINT
PASS / SKIPPED → 輸出 Fix Complete 摘要
| Phase | Sub-agent | 主要工具 | 輸出 |
|---|---|---|---|
| extract | extract | fetch_issue MCP | IssueData JSON |
| analyze | analyze | chrome-devtools MCP + Read/Grep | analyze.md |
| implement | implement | Edit/Write/Bash + run_typescript_check / run_eslint MCP | implement.md |
| test | test | run_behavior_validation / record_tech_debt MCP | test.md |
git clone https://github.com/noni2she/agent-fix.git
cd agent-fix
uv sync # 安裝 Python 依賴(含 mcp, playwright)
複製範本並填入目標專案資訊:
cp config-template.yaml projects/<slug>/config.yaml
# 編輯 config.yaml:project_root, issue_source, quality_checks, dev_server
# 必填
export PROJECT_CONFIG=./projects/<slug>/config.yaml
export ANTHROPIC_API_KEY=... # 批次 SDK driver 使用
# 行為驗證(選填,需要登入時)
export PROJ_TEST_USERNAME=...
export PROJ_TEST_PASSWORD=...
claude plugin install .
在 Claude Code 對話中:
/fix-one-issue PROJ-001
或使用批次 SDK driver:
python -m batch_runner.driver --issues PROJ-001,PROJ-002
python -m batch_runner.driver --issues-file issues.txt
python -m batch_runner.driver --source jira --jql "project = PROJ AND status = 'To Do'"
| 指令 | 說明 |
|---|---|
/fix-one-issue <ISSUE-ID> | 在 Claude Code 中端對端修復單一 issue |
python -m batch_runner.driver --issues A,B,C | 批次修復(sequential,worktree 隔離) |
python -m batch_runner.driver --batch-id <id> | 恢復中斷的批次 |
詳見 config-template.yaml 查看所有選項。
.mcp.json 宣告兩個 MCP server,Claude Code 自動管理生命週期:
Generated from the plugin's indexed repository (noni2she/agent-fix) — no native marketplace selected
npx claudepluginhub p/noni2she-agent-fixBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground