一键导入
implement-spec
// Autonomous one-shot implementation from an approved spec (local/cloud only)
// Autonomous one-shot implementation from an approved spec (local/cloud only)
Deep code review of a pull request using parallel analysis agents (semantic consistency, bugs, tech debt, security). USE FOR: - Reviewing PRs for bugs, security issues, and code quality - Analyzing new abstractions for consistency and correctness - Identifying tech debt and architectural concerns - Posting review comments to specific lines on GitHub TRIGGERS: - "review PR", "code review", "review changes" - "diff review", "PR feedback", "check PR" - "analyze diff", "critique code", "review code" - "pull request review", "GitHub PR review"
Spec analysis with ambiguity scoring — interactive locally, single-pass remotely via label
Create a new spec through Socratic interview, filling each template section to zero ambiguity
Implement a new invariant for jolt-eval
Implement a new objective for jolt-eval
Wrap a Rust function in a Jolt zero-knowledge proof
| name | implement-spec |
| description | Autonomous one-shot implementation from an approved spec (local/cloud only) |
| argument-hint | [spec file path] |
This skill runs locally or in Claude Code cloud (claude.ai/code) — NOT in CI. It needs write access to the repo to create commits and push to the PR branch.
<Execution_Policy>
specs/*.md file in this PR (exclude TEMPLATE.md). If a path is provided in {{ARGUMENTS}}, use that.jolt-eval/README.md: Understand the eval framework — the spec's Intent → Invariants and Evaluation → Performance sections may reference it.explore agents to understand the modules, types, and patterns the implementation will touch.jolt-eval references and list:
/new-invariant <name> subtask./new-objective <name> subtask.**Implementation plan for: {spec title}**
**Changes:**
1. {file/module} — {what changes and why}
2. ...
**Order:** {dependency chain}
**Parallel tasks:** {which can run simultaneously}
**Estimated scope:** {number of files, rough line count}
/new-invariant <name> for each new invariant/new-objective <name> for each new objective
Commit these additions as their own logical units.Cycle until all checks pass (up to 5 cycles):
cargo fmt -qcargo clippy -p jolt-core --features host --message-format=short -q --all-targets -- -D warningscargo clippy -p jolt-core --features host,zk --message-format=short -q --all-targets -- -D warningscargo nextest run -p jolt-core muldiv --cargo-quiet --features hostcargo nextest run -p jolt-core muldiv --cargo-quiet --features host,zkcargo nextest run -p jolt-eval --cargo-quiet — runs every invariant's seed-corpus + random-inputs tests; any named in the spec must pass.If the same error persists 3 times, stop and post a PR comment describing the fundamental issue.
Run parallel validation:
cargo run -p jolt-eval --bin measure-objectives -- --objective <name> and confirm it moved in the declared direction (or stayed within the declared tolerance). All invariants named or introduced in the spec's Intent → Invariants section must pass — the Phase 3 cargo nextest run -p jolt-eval covers seed corpus + random inputs.Fix any issues found and re-validate.
Status from proposed/approved to implemented in the spec file.**Implementation complete for: {spec title}**
**Changes made:**
- {file} — {summary}
- ...
**Evaluation results:**
- {criterion 1}: PASS
- {criterion 2}: PASS
- ...
**Tests:** All passing (host + zk modes)
**Lint:** Clean
User: `/implement-spec`
Action: Reads the spec from the PR, creates a plan, implements it, runs QA, validates, pushes commits.
Why good: Full autonomous execution from spec to working code.
User: `/implement-spec` on a spec without `claude-spec-approved`
Action: Should warn that the spec hasn't been analyzed yet, but proceed if the user insists.
Why bad situation: Implementation from an unanalyzed spec risks rework.
Task: Implement the spec in this PR. {{ARGUMENTS}}