verify-printing-press
БесплатноЗапускает вложенные скриптыНе проверенDrive the real Printing Press end to end and capture proof. It builds the cli-printing-press binary, prints the golden fixture CLI into a decoy HOME, and runs…
от mvanhorn★ 5 067 звёзд на GitHubОб этом скилле
Verify the Printing Press
The product surface is a CLI that produces other CLIs. A user runs cli-printing-press generate on a spec and gets a printed CLI: <api>-pp-cli, plus <api>-pp-mcp for agents. Proving a change means printing a CLI and then driving what was printed. The four surfaces, in order of how often a change touches them:
cli-printing-press generate(spec → printed CLI tree, with 9 quality gates)- The printed CLI's commands against an API
- The printed MCP server's tools and annotations
- The press's verifiers run on a printed CLI (
verify,verify-skill,scorecard,shipcheck,dogfood)
Everything goes through scripts/pp-verify (paths below are relative to this skill directory). It never touches the real ~/printing-press or the real config of a printed CLI. Each run gets its own decoy HOME, output dir, mock port, and evidence directory, so two runs can go side by side. Every drive in this skill uses the fixture testdata/golden/fixtures/golden-api.yaml, which prints printing-press-golden-pp-cli with env prefix PRINTING_PRESS_GOLDEN_.
This skill complements scripts/golden.sh verify, scripts/verify-generator-output.sh, and go test ./.... Those prove bytes and compilation. This skill proves behavior: what the printed binary actually sends, refuses, and reports.
Launch
.agents/skills/verify-printing-press/scripts/pp-verify launch
This takes about 45s with a warm Go cache. In order, it:
- builds
./cli-printing-pressfrom./cmd/cli-printing-press - creates
RUN=$TMPDIR/pp-verify.XXXXXXwith a decoy HOME that holds a sentinel file - runs
generateinto$RUN/cliwith all quality gates on - starts
scripts/mock_api.pyon a free 127.0.0.1 port, logging every request to$RUN/req.log
Ready means:
generateexited 0- its log contains
PASS printing-press-golden-pp-cli doctor $RUN/cli/build/stage/bin/holds both the CLI and the MCP binary- the mock published its port
pp-verify checks all four and prints two lines. Copy them; every later command needs RUN:
RUN=/var/folders/.../pp-verify.AbC123
EVIDENCE=<repo>/.gotmp/verify-printing-press/evidence/<timestamp>-<pid>
Your real Go build and module caches are reused on purpose. The decoy HOME would otherwise force a cold build of about 5 minutes.
Doctor
.agents/skills/verify-printing-press/scripts/pp-verify doctor "$RUN"
Read-only. It checks:
- the repo binary, HEAD, and the press source under
cmd/,internal/,go.modandgo.sum(uncommitted and untracked edits included) are unchanged since launch - both printed binaries are staged
- the mock PID is ours and alive, and answers on its port
- the decoy sentinel is intact
- the printed CLI's own
doctor --jsonreportsapi: reachable,auth_source: env:PRINTING_PRESS_GOLDEN_API_KEY, and aconfig_pathunder the decoy HOME
Run it before the first drive, again after any drive that did something surprising, and whenever you edit generator code mid-run. A changed binary, HEAD, or press source fails doctor: the printed CLI predates your change, so clean up and relaunch.
Drive
Every drive command saves its stdout, stderr, exit code, and the exact mock requests it caused. It also prints its own output, so you can read the result inline.
V=.agents/skills/verify-printing-press/scripts/pp-verify
# Printed CLI: clean env (env -i), decoy HOME, API key + base URL pointed at the mock
$V cli "$RUN" -- projects list --json
$V cli "$RUN" -- projects create --name Delta --visibility private --json
$V cli "$RUN" -e PRINTING_PRESS_VERIFY=1 -- projects create --name Gamma --json # extra env with -e K=V
# Printed MCP server over stdio
$V mcp "$RUN" list # tool names + annotations
$V mcp "$RUN" call projects_get '{"projectId":"proj-1"}'
$V mcp "$RUN" -e PRINTING_PRESS_GOLDEN_MCP_READ_ONLY=1 list
# The press itself, with the decoy HOME (run from repo root, relative spec paths OK)
$V press "$RUN" verify --dir "$RUN/cli" --spec testdata/golden/fixtures/golden-api.yaml --json
$V press "$RUN" verify-skill --dir "$RUN/cli"
# Everything the mock has received this run
$V requests "$RUN"
To find a command or tool handle, read the printed tree's help ($V cli "$RUN" -- --help, $V cli "$RUN" -- <cmd> --help) or $V mcp "$RUN" list. Treat those, not memory, as the stable handles. The mock (scripts/mock_api.py) answers the golden fixture's routes with fixed JSON (proj-1/Alpha, task-1, USD). Any other path gets {"ok": true} with status 200.
To verify a generator change against a different spec, generate it yourself:
$V press "$RUN" generate --spec <spec> --output "$RUN/other"
Then drive it with press verify --dir "$RUN/other" --spec <spec>. That uses the press's spec-derived mock. pp-verify cli and pp-verify mcp are wired only to the golden print.
Evidence
Evidence goes to $EVIDENCE, which is `.gotmp/verify-printing-pre
Установить verify-printing-press в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл verify-printing-press?
Drive the real Printing Press end to end and capture proof. It builds the cli-printing-press binary, prints the golden fixture CLI into a decoy HOME, and runs the printed CLI, its MCP server, and the press's own verifiers against a request-logging mock. Use it to prove that a generator, template, MCP, or verifier change works in an emitted CLI, rather than only in Go tests or golden text.
Как установить скилл verify-printing-press?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-printing-press запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic