zf-harness-spec-bridge
Use when producing OR consuming a spec / plan / ADR markdown that downstream tasks depend on. Covers the four-command bridge that turns markdown into ZaoFu…
от uisee-ai★ 36 звёзд на GitHub
Установить zf-harness-spec-bridge в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ZF Harness — Spec ↔ Kanban Bridge
Project conventions (see project STRUCTURE.md §12.3 in cangjie-mono, or the equivalent doc-type section in your project) split tasks into two classes:
- code-type: scope under
packages/**/apps/**/test/**. Standard TDD path. Evidence = test pass + git commit. - doc-type: scope under
docs/**, single file or subtree. Spec / plan / ADR / runbook. Evidence = file exists + grep checklist + git commit. Still goes through the full DAG and still mustgit add + commit + pushbefore emittingdev.build.done.
ZaoFu provides four zf spec subcommands to bridge markdown → kanban
without per-round prompt engineering. This bridge is skill-pack agnostic:
agent-skills is the default content producer, but another planning/spec skill
pack is valid as long as it writes markdown artifacts that these commands can
validate or merge. Use the commands in this order for the manual / single-session
spec landing scenario — an arch or operator hand-drafting a spec/plan/ADR md
and turning it into kanban tasks outside of a running fanout.
Boundary: fanout plan pipeline vs zf spec ingest
These two paths do NOT overlap — pick by whether you are inside a fanout run:
- Inside a fanout run (plan → writer fanout), the plan stage's downstream
tasks are minted from the
task_map.jsonmachine contract, NOT fromzf spec ingest. That path is owned byzf-plan-task-map-contract, and the kernel already de-dupes re-minting by fingerprint — emittingplan.minting.suppressedwhen the same task_map would be minted twice (src/zf/runtime/orchestrator_fanout.py_plan_approval_satisfied). Do NOT route fanout plan output throughzf spec ingest; it would bypass the task_map contract and the suppression fingerprint. - Manual / single-session spec landing (no fanout, an arch/operator drafting
a spec md by hand) is exactly what
zf spec ingestis for. Use this bridge here; do not hand-roll kanban.json.
When to use which subcommand
| Subcommand | When |
|---|---|
zf spec prompt <md> |
The md has NO frontmatter. Print a ready-to-paste system + user prompt for ANY LLM (claude / codex / Claude Code subagent / browser chat / etc.). |
zf spec merge <md> --frontmatter <json> |
You have the LLM's JSON reply (or hand-written JSON). Inject it as frontmatter into the md. Stdin works via --frontmatter -. Code fences are stripped automatically. |
zf spec validate <md> |
The md has frontmatter. Verify schema, duplicate task ids, missing acceptance/verification, body-orphan refs. Required pre-emit gate before arch.proposal.done whenever scope contains a spec/plan/ADR file. Exit non-zero blocks emit. |
zf spec ingest <md> |
Frontmatter validated. Create the feature + N kanban tasks deterministically (uuid5-keyed feature_id, idempotent re-ingest). Each task gets task.created + task.contract.update events with source=spec_ingest. |
Mandatory workflow for arch / orchestrator
When the scope of a task contains docs/** (any markdown that downstream
tasks read), follow this order:
- Draft the spec.md with frontmatter (preferred) OR plain md. Frontmatter schema is documented in STRUCTURE.md §12.3.
- If frontmatter is missing:
zf spec prompt docs/path.md > /tmp/p.txt # paste into any LLM, save reply as /tmp/fm.json zf spec merge docs/path.md --frontmatter /tmp/fm.json - Pre-emit gate (required):
Exit code != 0 → do NOT emitzf spec validate docs/path.mdarch.proposal.done. Instead emitclarification.neededwith the validator's stderr. - git add + commit + push the md (doc-type tasks still require a
real commit, see
zf-harness-done-contract). - Emit
arch.proposal.donewithevidence_refs: ["docs/path.md", "git:<hash>", "branch:worker/arch"]. - Downstream (operator or follow-up task):
zf spec ingest docs/path.md # creates kanban tasks
Mandatory checks for critic / review
When reviewing a task whose scope contains spec/plan/ADR markdown:
- Frontmatter exists and
zf spec validateexits 0 events.jsonlshowssource=spec_ingestfor any task referenced by the spec body (or the operator has not yet run ingest — flag this)- The md file is in a git commit (doc-type still requires
dev.build.done evidence_refsto includegit:<hash>)
Anti-patterns
- ❌ arch writes plain md without frontmatter, never runs
zf spec prompt, leaves VS fanout to be re-derived from md every round - ❌ arch emits
arch.proposal.donewithout runningzf spec validatefirst — downstream then fails with schema errors at ingest time - ❌ dev / orchestrator hand-rolls multiple tasks by writing kanban.json
directly instead of via
zf spec ingest(loses thetask.contract.update source=spec_ingestevent trail) - ❌ doc-type task skips git commit because "no code changed" — workflow treats md commit as evid
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл zf-harness-spec-bridge?
Use when producing OR consuming a spec / plan / ADR markdown that downstream tasks depend on. Covers the four-command bridge that turns markdown into ZaoFu kanban state without leaving prompt-engineering on the critical path. Required for arch / orchestrator / critic / review when STRUCTURE.md §12.3 (or the project's equivalent doc-type contract) applies.
Как установить скилл zf-harness-spec-bridge?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zf-harness-spec-bridge запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…