ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 newtonmunene99

conductor

面向 Claude Code 的上下文驱动开发:设置、规格、计划、实现、审查、归档、交接和回滚。

newtonmunene99@newtonmunene99

newtonmunene99/claudekit/tree/main/plugins/conductor

已翻译

关于这个 mod

Conductor Plugin

面向 Claude Code 的上下文驱动开发:设置、规格、计划、实现、审查、归档、交接和回滚。

量两次,写一次代码。

Commands

| Command | Description | | :------ | :---------- | | /conductor:conductor-setup | 项目引导;对于已有项目,将其升级到当前约定 | | /conductor:conductor-new-track | 头脑风暴、规格、计划(单轨道或 programme mode) | | /conductor:conductor-implement | 执行计划中的待办事项(depends_on、可执行项选择器、清理 + 继续选项) | | /conductor:conductor-status | 进度、可执行/阻塞的轨道、延后的检查、未合并分支、过期文件 | | /conductor:conductor-archive | 将已完成轨道的规格和计划移到 conductor/archive/,同时保留一行账本记录 | | /conductor:conductor-handoff | 将工作阶段状态保存到计划或待办列表,并为下一工作阶段打印简短提示 | | /conductor:conductor-revert | 了解 Git 的还原操作(唯一不会由 Claude 自行启动的 skill) | | /conductor:conductor-review | 根据指南、计划和规格进行审查 | | /conductor:conductor-programme-review | 审查多轨道 programme | | /conductor:conductor-validate-review | 根据储存库验证审查发现 | | /conductor:conductor-prototype | 在 spike/<slug> 分支上进行决策轨道试验 |

Execution model

Conductor 将轨道作为小型执行图运行,而不是线性链。完整协议表请参阅 README,其中涵盖 Working Agreements、通过 scripts/conductor_state.py 实现的确定性基础设施、blocked_by 依赖、并行分派给子代理、独立验证、测试质量规则、失败策略、收敛预算和模型路由。

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" tracks
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" plan conductor/plans/<file>.plan.md
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" verify-paths <plan-or-review.md> --create-ok
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" backlog
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" set-todo <plan> <todo_id> completed --sha <sha>
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" track-status <track_id> in_progress
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" archive <track_id>
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" doctor [--fix] [--stamp]

HUD (mods)

在带 function hooks 的 Claude Code 构建中,插件还会加载 hooks/register.tsx,这是一个让活动轨道显示在屏幕上的 mod。它显示的所有内容都来自 conductor_state.py;在没有 conductor/context/tracks.md 的储存库中,它不会解析计划本身,也不会显示任何内容。

  • 状态列:隐藏横条时显示 <track> 7/12,没有进行中的轨道时显示下一个可执行轨道
  • 提示符上方的横条:轨道、进度条、阻塞和延后计数、下一个待办事项、Board 和 Hide 按钮
  • /conductor-board 窗格:下一个待办事项、并行批次、等待中/阻塞的待办事项、延后的检查、其他进行中的轨道,以及可填入 implement/review/archive/status 命令的按钮
  • Toast:阶段完成、待办事项新近阻塞、审查轮次上限触发、轨道完成
  • doctor 发现偏移时显示升级提示 Toast
  • 状态保护:拒绝在 conductor/plans/ 中使用会改变待办状态的 Edit/Write/sed -i/重定向,或重写 tracks.md,并指向 set-todo

每次 Edit、Write 或 Bash 调用后,以及每个工作阶段结束时,它都会刷新。使用 claude plugin validate plugins/conductor 和 claude plugin test plugins/conductor 进行开发。

Upgrading an existing project

重新运行 /conductor:conductor-setup;它会运行 doctor、应用机械式修复、添加 Working Agreements、刷新过期的工作流区段,并写入版本标记。

Evals

两个 claude plugin eval 套件(evals/、evals-graph/)以及通过 python3 -m unittest discover plugins/conductor/scripts 运行的单元测试。两个套件都评估结果而不是轨迹,而且没有任何案例授予 Bash 权限。

Programme mode

从 conductor/reviews/*.md 开始 → 验证 → 拆分轨道 → 综合 → 按顺序实现;取消阻塞后,继续通过明确的清理选择推进。

Decision tracks

交付物是位于 .adr/decisions/<slug>.md 的 OKF 决策概念。.adr/ 带有包含 * 的 .gitignore,因此除非你要求,否则决策、试验依据和后备术语表都不会提交。

Artifacts

  • Conductor:conductor/context/、conductor/specs/、conductor/plans/、conductor/reviews/、conductor/archive/(根据 Working Agreements 提交或保持 gitignored)
  • OKF 知识:储存库中的 knowledge/ 或 <pkg>/knowledge/

Attribution

Conductor 来自 gemini-cli-extensions/conductor。OKF 来自 Google Cloud OKF spec。Engineering skills 来自 mattpocock/skills(MIT)。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add newtonmunene99/claudekit
claude plugin install conductor
原文 / README

Conductor Plugin

Context-driven development for Claude Code: setup, spec, plan, implement, review, archive, handoff, and revert.

Measure twice, code once.

Commands

| Command | Description | | :------ | :---------- | | /conductor:conductor-setup | Project bootstrap; on an existing project, upgrades it to current conventions | | /conductor:conductor-new-track | Brainstorm, spec, plan (single track or programme mode) | | /conductor:conductor-implement | Execute plan todos (depends_on, eligible picker, cleanup + continue options) | | /conductor:conductor-status | Progress, eligible / blocked tracks, deferred checks, unmerged branches, out-of-date files | | /conductor:conductor-archive | Move finished tracks' spec and plan to conductor/archive/, keeping a ledger line | | /conductor:conductor-handoff | Save session state into the plan or backlog and print a short prompt for the next session | | /conductor:conductor-revert | Git-aware revert (the only skill Claude will not start by itself) | | /conductor:conductor-review | Review against guidelines, plan, spec | | /conductor:conductor-programme-review | Review multi-track programme | | /conductor:conductor-validate-review | Validate review findings against repo | | /conductor:conductor-prototype | Decision-track spike on spike/<slug> branch |

Execution model

Conductor runs a track as a small execution graph, not a linear chain:

| Concern | Mechanism | Where | | ------- | --------- | ----- | | Standing answers | Working Agreements in the project's workflow.md: Conductor files local or committed, who commits, branch, autonomy, hand checks, verifier | Working Agreements Protocol | | Plumbing without the model | scripts/conductor_state.py: reads (tracks, plan, backlog, verify-paths, doctor) and state writes (set-todo, track-status, archive) | Deterministic Plumbing Protocol | | Real dependencies only | todo blocked_by + files; implement runs any ready todo | Plan Authoring Guide | | Parallel work | disjoint-file todos and parallel-ready tracks fan out to subagents, user-confirmed | Parallel Dispatch Protocol | | Verification on the edge | fresh read-only verifier per phase (the whole track on the last one), per todo for risky changes, and on every plan draft | Independent Verification Protocol | | Tests that can fail | Google Testing on the Toilet rules, contract probes, no tautological tests | templates/test-quality.md | | Local failures | retry / skip / repair / isolate / escalate / stop table | Failure Policy | | Bounded loops | attempts per todo, review_rounds per plan, hard caps | Convergence Budgets | | Cost | scripts → cheap model → strong model by task | Model Routing |

All protocols live in templates/conductor-protocol.md.

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" tracks
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" plan conductor/plans/<file>.plan.md
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" verify-paths <plan-or-review.md> --create-ok
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" backlog
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" set-todo <plan> <todo_id> completed --sha <sha>
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" track-status <track_id> in_progress
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" archive <track_id>
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/conductor_state.py" doctor [--fix] [--stamp]

HUD (mods)

On Claude Code builds with function hooks, the plugin also loads hooks/register.tsx, a mod that keeps the active track on screen. Everything it shows comes from conductor_state.py; it never parses plans itself, and it shows nothing in a repo without conductor/context/tracks.md.

| Piece | What it does | | :---- | :----------- | | Status line | <track> 7/12 while the band is hidden, or the next eligible track when none is in progress | | Band above the prompt | Track, progress bar, blocked and deferred counts, the next todo; Board (b) and Hide buttons | | /conductor-board | Pane with next todo, parallel batch, waiting and blocked todos, deferred checks, every other track in progress (progress, next todo, its own Implement), other tracks, and buttons that fill in /conductor:conductor-implement, review, archive or status | | Toasts | Phase done, a todo newly blocked, review hitting its 2-round limit, track complete | | Upgrade nudge | At session start, a toast when doctor finds drift worth /conductor:conductor-setup | | Status guard | Denies Edit/Write/sed -i/redirects that change a todo's status in conductor/plans/ or rewrite tracks.md, pointing at set-todo. New pending todos and other plan fields pass. It matches spellings, so it is a guardrail, not a boundary; it stays off when python3 cannot run the script |

It refreshes after each Edit, Write or Bash call and at the end of every turn, re-running the script only when tracks.md or a plan in progress changed. With several tracks in progress, the status line and band follow the one whose plan changed last. Develop it with claude plugin validate plugins/conductor and claude plugin test plugins/conductor.

Upgrading an existing project

Run /conductor:conductor-setup again. On a project that is already set up it runs doctor, applies the mechanical repairs (plans stranded by old archives, duplicated backlog items, contradictory .gitignore advice), adds Working Agreements, refreshes stale workflow sections while keeping project-specific lines, and stamps the version in conductor/context/index.md. /conductor:conductor-status says when a project is out of date.

Evals

Two claude plugin eval suites, kept separate so each runs, costs, and reports on its own:

| Suite | Dir | Covers | | ----- | --- | ------ | | status | evals/ (default) | /conductor:conductor-status outcomes: counts, eligible / blocked / parallel-ready, legacy format, not-set-up, negative | | graph | evals-graph/ | implement picks the first ready todo (blocked_by), offers parallel dispatch, reports typo'd blockers, escalates at attempts: 3; validate-review flags wrong paths; implement not-set-up |

claude plugin eval ./plugins/conductor --allow-tools Write
claude plugin eval ./plugins/conductor --eval-dir evals-graph --allow-tools Write Edit

Both suites grade outcomes (last message and files), not tool trajectories: a slash-expanded skill never shows up as a Skill tool call. No case grants Bash, so conductor_state.py is not exercised by the evals; the skills' documented manual fallbacks are. results/ dirs are gitignored.

The script has its own unit tests, which run each subcommand against a throwaway conductor/ tree:

python3 -m unittest discover plugins/conductor/scripts

Programme mode

From conductor/reviews/*.md → validate → split tracks → synthesis → implement in order (continue via explicit cleanup choices when unblocked).

Reference: docs/examples/remediation-programme-example.md

Decision tracks

Deliverable is an OKF decision concept at .adr/decisions/<slug>.md, in the local decision bundle at the repo root. .adr/ carries a .gitignore with *, so decisions, spike evidence and the fallback glossary are never committed unless you ask. Project docs stay in repo knowledge bundles (knowledge/, <pkg>/knowledge/).

Workflow: /engineering:grilling → /engineering:research → /conductor:conductor-prototype → /engineering:grill-with-docs

See OKF v0.1.

Project docs / knowledge requests

  1. Discover existing **/knowledge/index.md bundles
  2. Prefer repo-root knowledge/ or domain <pkg>/knowledge/ beside code
  3. Scaffold from templates/knowledge/bundle-placement-guide.md

Artifacts

  • Conductor: conductor/context/, conductor/specs/, conductor/plans/, conductor/reviews/, conductor/archive/. Commit them, or keep conductor/ gitignored; setup records the choice in Working Agreements and every command follows it.
  • OKF knowledge: knowledge/ or <pkg>/knowledge/ in the repository

Attribution

Conductor from gemini-cli-extensions/conductor. OKF from Google Cloud OKF spec. Engineering skills from mattpocock/skills (MIT).

Output style: Base rules are defined in templates/conductor-protocol.md and templates/output-style.md.

更多类似作品