Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04881

spec-to-impl

Transform a feature spec into audited, implementation-ready prompts. Use when starting a new feature, designing a new adapter, or turning a design doc into…

БесплатноБез исполняемых скриптов
edictum-aiот edictum-ai★ 32 звезды на GitHub

Установить spec-to-impl в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Spec-to-Implementation Pipeline

Transform a feature specification into audited, implementation-ready sequenced prompts. This is a multi-phase process — do NOT skip phases or combine them.

Input: A spec file path (via $ARGUMENTS) or a feature description that needs a spec written first.

Output Directory

All artifacts go into .claude/skills/spec-to-impl/{feature-slug}/:

.claude/skills/spec-to-impl/{feature-slug}/
  README.md              <-- execution order, status tracking, dependency graph
  SPEC-AUDIT.md          <-- Phase 2 violations (persisted for reference)
  SPEC-DECISIONS.md      <-- Phase 3 decisions log
  P1-{SCOPE}.md          <-- first implementation prompt
  P2-{SCOPE}.md          <-- second implementation prompt
  ...

The {feature-slug} is derived from the spec file name or feature description (lowercase, hyphens, no spaces). Example: google-adk-adapter, sandbox-rules, hitl-approval.

Create the directory at the start of Phase 2 (once you know the feature name).


Phase 1: Gather Context

Before auditing anything, read the project rules. These are the audit criteria:

  1. CLAUDE.md — Architecture (core vs server boundary), non-negotiable principles, build/test commands, code conventions, API design checklist, security review checklist, terminology enforcement, pre-merge verification
  2. .docs-style-guide.md — Binding terminology reference, canonical terms, page structure pattern, pipeline description, cross-reference conventions
  3. docs/architecture.md — Pipeline overview, source layout, adapter responsibilities, what lives where

Then read the actual codebase to understand current state:

  1. Core modules — Read the relevant modules in src/edictum/ to know what already exists. Key files:
    • __init__.py (Edictum class, public API, __all__ exports)
    • pipeline.py (CheckPipeline, PreDecision, PostDecision)
    • envelope.py (ToolCall, Principal, create_envelope, SideEffect, ToolRegistry)
    • session.py (Session, counter keys)
    • audit.py (AuditEvent, AuditAction, AuditSink, RedactionPolicy, sinks)
    • findings.py (Finding, PostCallResult, build_violations)
    • telemetry.py (GovernanceTelemetry, start_tool_span, record_block)
    • approval.py (ApprovalBackend, ApprovalRequest, ApprovalDecision, ApprovalStatus)
  2. Existing adapter patterns — Read at least 2 adapters in src/edictum/adapters/ to understand the established pattern (constructor, _pre/_post, _on_deny, _check_tool_success, _emit_audit_pre, pending state, observe mode, on_deny/on_allow callbacks, approval handling). Good choices:
    • One simple adapter (e.g., openai_agents.py — clean pre/post with guardrails)
    • One complex adapter (e.g., nanobot.py — inline execution + approval handling)
  3. Test patterns — Read tests/conftest.py (shared fixtures: NullAuditSink, CapturingAuditSink, make_guard pattern), tests/test_adapter_parity.py (parity test tiers and helper function conventions), and one adapter test file (e.g., tests/test_adapter_openai_agents.py) to understand framework-mocking strategy.
  4. Docs patterns — Docs live in a separate repo (edictum-docs). Check README.md for any code examples that need updating.

Output of Phase 1: Internal understanding. No user-facing output yet.


Phase 2: Audit the Spec

Read the spec file. Audit every section against every rule. Be brutally honest.

Check for these categories of violations:

Architecture Violations (CRITICAL)

  • Does anything contradict CLAUDE.md's core vs server boundary? (evaluation = core, coordination = server)
  • Does it introduce runtime dependencies that violate "zero runtime deps in core"?
  • Does it add imports from src/edictum/server/ into core code?
  • Does it bypass the CheckPipeline and implement governance logic in the adapter?
  • Does it add features listed in CLAUDE.md's "Dropped Features" section?

Adapter Pattern Violations (HIGH)

  • Does the adapter follow the established constructor pattern? (guard, session_id, principal, principal_resolver)
  • Does it implement ALL required internal methods? (_pre, _post, _emit_audit_pre, _check_tool_success, _on_deny, set_principal, _resolve_principal, session_id property)
  • Does it follow the correct pre-execution flow? (create_envelope → increment_attempts → start_span → pre_execute → observe/block/allow handling)
  • Does it follow the correct post-execution flow? (pop pending → check_success → post_execute → record_execution → emit audit → end span → build_violations)
  • Does pending state management match the framework's execution model? (dict for parallel, single-slot for sequential, none for inline)
  • Does it handle observe mode correctly? (block → allow with CALL_WOULD_DENY audit)
  • Does it handle per-rule observed blocks?
  • Does it call on_deny/on_allow/on_postcondition_warn callbacks at the right place?

API Design Checklist (HIGH)

  • Does every new parameter have an observable effect with a behavior
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл spec-to-impl?

Transform a feature spec into audited, implementation-ready prompts. Use when starting a new feature, designing a new adapter, or turning a design doc into sequenced build steps. Covers spec audit against project rules, gap identification, decision collection, and prompt generation.

Как установить скилл spec-to-impl?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл spec-to-impl запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить spec-to-impl с