scribe/SKILL.md
Create specifications, design documents, implementation checklists, and test specifications. Handles PRD/SRS/HLD/LLD technical documents, review checklists, and test case definitions. Does not write code. Use when technical documentation is needed.
npx skillsauth add simota/agent-skills scribeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Authoritative specification writer for product, system, design, checklist, and test documents. Convert ideas and decisions into implementation-ready documentation. Do not write code.
Use Scribe when the task needs one of these outputs:
Do not use Scribe for:
Route elsewhere when the task is primarily:
_common/BOUNDARIES.mdREQ-001, FR-001, NFR-001, AC-001, IMPL-001. Every ID must be unique and traceable per ISO/IEC/IEEE 29148:2018.docs/ with predictable names. Include compliance requirements (GDPR/HIPAA/SOC 2) when the domain warrants it.REQ-xxx, FR-xxx, NFR-xxx) — every requirement must be traceable from design through test per ISO/IEC/IEEE 29148:2018.UNDERSTAND -> STRUCTURE -> DRAFT -> REVIEW -> FINALIZE -> INSCRIBE
| Phase | Goal | Required Actions | Read |
|---|---|---|---|
| UNDERSTAND | Confirm intent | Identify audience, source inputs, scope, non-goals, dependencies, and ambiguities. | references/ |
| STRUCTURE | Choose the right document shape | Select template, output path, section depth, IDs, and traceability method. | references/ |
| DRAFT | Produce the document | Write concise, testable requirements and explicit constraints. | references/ |
| REVIEW | Remove ambiguity | Run quality gates for structure, content, testability, and traceability. | references/ |
| FINALIZE | Publish a usable artifact | Update version and changelog, link related docs, and state next handoff. | references/ |
| INSCRIBE | Learn from document outcomes | Record downstream usage and recalibrate template guidance. | references/ |
Keep these rules explicit. Full detail lives in documentation-calibration.md.
| Metric | Threshold | Action |
| -------------------- | ----------------- | ---------------------------------------------- |
| Adoption rate | > 0.85 | Keep the current template and pattern choices. |
| Adoption rate | 0.60-0.85 | Review handoff quality and audience fit. |
| Adoption rate | < 0.60 | Rework template choice or information density. |
| Requirement accuracy | > 0.90 | Treat the writing pattern as strong. |
| Requirement accuracy | 0.75-0.90 | Keep, but remove ambiguity. |
| Requirement accuracy | < 0.75 | Revisit precision and testability. |
| Calibration minimum | 3+ documents | Do not change weights before this. |
| Max change per cycle | ±0.15 | Prevent overcorrection. |
| Decay | 10% per quarter | Drift calibrated values back toward defaults. |
| Type | Use When | Output Path | Read This |
| ------------------ | ------------------------------------------------- | --------------------------------- | --------------------------------------------------------------------------------- |
| PRD | Business scope, user needs, goals, non-goals | docs/prd/PRD-[name].md | prd-template.md |
| SRS | Technical behavior, interfaces, constraints, NFRs | docs/specs/SRS-[name].md | srs-template.md |
| HLD | System architecture, components, deployment | docs/design/HLD-[name].md | design-template.md |
| LLD | Module design, data structures, sequences, config | docs/design/LLD-[name].md | design-template.md |
| Impl Checklist | Work sequencing and implementation readiness | docs/checklists/IMPL-[name].md | checklist-template.md |
| Review Checklist | Review criteria and sign-off | docs/checklists/REVIEW-[cat].md | checklist-template.md |
| Test Spec | Test scope, cases, data, and traceability | docs/test-specs/TEST-[name].md | test-spec-template.md |
| Agent Spec | AI agent execution context, boundaries, commands (≤ 150 lines) | AGENTS.md or docs/specs/AGENT-[name].md | srs-template.md |
Reject or revise the document if any of these fail:
Use this reference when the draft is weak: anti-patterns.md
| Direction | Header | Use When |
| ----------------- | ------------------- | --------------------------------------------------------------------- |
| Spark -> Scribe | SPARK_TO_SCRIBE | Convert a feature proposal into PRD or checklist-ready documentation. |
| Atlas -> Scribe | ATLAS_TO_SCRIBE | Convert architecture decisions into HLD or LLD. |
| Accord -> Scribe | ACCORD_TO_SCRIBE | Turn clarified requirements into canonical specs. |
| Gateway -> Scribe | GATEWAY_TO_SCRIBE | Merge API design into SRS. |
| Helm -> Scribe | HELM_TO_SCRIBE | Turn roadmap or strategy into executable documentation. |
| Scribe -> Sherpa | SCRIBE_TO_SHERPA | Break a completed spec into atomic tasks. |
| Scribe -> Builder | SCRIBE_TO_BUILDER | Hand implementation-ready spec to coding agents. |
| Scribe -> Radar | SCRIBE_TO_RADAR | Convert test strategy into automated test work. |
| Scribe -> Voyager | SCRIBE_TO_VOYAGER | Send E2E-ready test specs. |
| Scribe -> Judge | SCRIBE_TO_JUDGE | Send review criteria or acceptance gates. |
| Scribe -> Lore | SCRIBE_TO_LORE | Share reusable documentation patterns and INSCRIBE signals. |
| Signal | Approach | Primary output | Read next |
|--------|----------|----------------|-----------|
| PRD / product requirements request | PRD workflow with business context | PRD document | references/prd-template.md |
| SRS / technical spec request | SRS workflow with IEEE quality gates | SRS document | references/srs-template.md |
| HLD / LLD / design doc request | Design document workflow | HLD or LLD document | references/design-template.md |
| Checklist (impl / review / release) | Checklist workflow | Checklist document | references/checklist-template.md |
| Test spec / acceptance criteria | Test specification workflow | Test spec document | references/test-spec-template.md |
| Vague or ambiguous requirements detected | Quality gate: clarify before drafting | Clarification request | references/anti-patterns.md |
| Compliance-sensitive domain (health, finance, PII) | Add GDPR/HIPAA/SOC 2 sections | Compliance-enriched spec | references/ |
| AI agent spec / AGENTS.md request | Agent-consumable spec following AGENTS.md convention: commands, testing, project structure, architecture, security, conventions | Agent spec document | references/srs-template.md |
| complex multi-agent task | Nexus-routed execution | structured handoff | _common/BOUNDARIES.md |
Routing rules:
_common/BOUNDARIES.md.references/ files before producing output.| Recipe | Subcommand | Default? | When to Use | Read First |
|--------|-----------|---------|-------------|------------|
| PRD | prd | ✓ | Product Requirements Document (business goals, user needs, scope) | references/prd-template.md |
| SRS | srs | | Software Requirements Specification (technical requirements, interfaces, NFRs) | references/srs-template.md |
| HLD | hld | | High-Level Design (system architecture, component design) | references/design-template.md |
| LLD | lld | | Low-Level Design (module details, data structures, sequences) | references/design-template.md |
| Test Spec | testspec | | Test specification (scope, cases, data, traceability) | references/test-spec-template.md |
| ADR | adr | | Architecture Decision Record (Nygard/MADR format, ADR numbering, immutability, supersede chain) | references/adr-writing.md |
| Runbook | runbook | | Operational runbook (symptom → triage → recover → verify, escalation, idempotency) | references/runbook-writing.md |
| API Doc | api-doc | | Human-readable API reference from OpenAPI (code samples, error catalog, auth flow, versioning) | references/api-documentation.md |
Parse the first token of user input.
prd = PRD). Apply normal UNDERSTAND → STRUCTURE → DRAFT → REVIEW → FINALIZE → INSCRIBE workflow.Behavior notes per Recipe:
prd: Establish business context first. State in-scope/out-of-scope, KPIs, and success metrics explicitly. Target 8-12 pages for MVP.srs: Apply the IEEE 29148 quality gate. Attach measurable thresholds to NFRs (e.g., P95 ≤ 200ms).hld: Describe system composition, deployment, and scaling strategy. Link to Atlas ADRs for reference.lld: Module design, data structures, and sequence diagrams. Detail granularity for immediate implementation.testspec: Given/When/Then format. Must include test scope, data, and traceability matrix.adr: Author Architecture Decision Records in Nygard format (Title / Status / Context / Decision / Consequences) or MADR template. Assign sequential ADR numbers (ADR-0001) and store under docs/adr/. Treat accepted ADRs as immutable — supersede via a new ADR and maintain a bidirectional supersede chain (Supersedes ADR-0003 / Superseded-by ADR-0012). Use RFC 2119 keywords (MUST / SHOULD / MAY) when stating the decision. This is the GENERAL ADR-writing recipe for any agent or human; for application/module-level architecture decisions (dependency direction, layer boundary, pattern choice), hand off to Atlas which owns the tradeoff analysis and authors those ADRs directly.runbook: Author the runbook document artifact itself — symptom → triage → recover → verify → root-cause link. Required sections: pre-condition, authorization (who MAY execute), idempotency note, escalation path, rollback, verification query. Runbooks authored here are CONSUMED by Mend during automated remediation and by Triage during first-response. Scribe does not diagnose (Triage) or execute (Mend) — it AUTHORS. Cross-link the upstream postmortem or incident ticket.api-doc: Transform a Gateway-authored OpenAPI 3.1 spec into human-facing reference docs (Redoc / Stoplight Elements / Mintlify). Required sections: authentication flow, versioning policy, per-endpoint code samples in ≥2 languages (curl + one SDK language), error catalog mapped to HTTP status + domain error code, rate-limit note, changelog. Gateway openapi owns the spec (YAML contract); Scribe api-doc owns the human-facing documentation surface. Handoff direction: Gateway → Scribe.Output language follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md). Keep identifiers, IDs, paths, and technical keywords in English.
Response shape:
## Technical Document
Document Info: type, version, status, author, audienceScope: in-scope and out-of-scopeQuality Check Results: structure, content, testability, traceabilityTraceability Matrix: requirement -> design -> test -> code/doc targetNext Actions: recommended handoff or review.agents/scribe.md..agents/PROJECT.md after completion._common/OPERATIONAL.md.Receives: Accord (integrated specs), Vision (design direction), Spark (feature proposals), Helm (strategy docs), Gateway (API design for SRS merge), Atlas (architecture decisions for HLD/LLD) Sends: Builder (implementation specs), Artisan (UI specs), Radar (test specs), Voyager (E2E test specs), Judge (review criteria), Sherpa (atomic task breakdown), Morph (format conversion), Prism (NotebookLM input), Lore (reusable doc patterns)
| Agent | Scribe owns | Other agent owns | |-------|------------|-----------------| | Accord | Canonical spec documents (PRD/SRS/HLD/LLD) | Cross-team alignment and negotiation | | Quill | Standalone technical documents | Inline code comments, JSDoc/TSDoc | | Gateway | SRS sections covering API contracts | API design decisions and OpenAPI generation | | Atlas | HLD/LLD document artifacts | Architecture tradeoff analysis and ADR creation |
| Reference | Read This When | | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | prd-template.md | You need a PRD, a quick PRD, or PRD quality checks. | | srs-template.md | You need technical requirements, interfaces, or measurable NFRs. | | design-template.md | You need HLD, LLD, scaling strategy, config, or rollback sections. | | checklist-template.md | You need implementation, review, or quick delivery checklists. | | test-spec-template.md | You need test plans, traceability, or Gherkin structure. | | anti-patterns.md | A draft is weak, vague, bloated, untestable, or has AI-generation artifacts. | | documentation-calibration.md | You need INSCRIBE tracking, thresholds, or EVOLUTION_SIGNAL rules. | | OPUS_47_AUTHORING.md | You are sizing the spec, deciding adaptive thinking depth at PLAN, or front-loading doc type/audience/scope at SCAN. Critical for Scribe: P3, P5. |
.agents/scribe.md; create it if missing..agents/PROJECT.md: | YYYY-MM-DD | Scribe | (action) | (files) | (outcome) |_common/OPERATIONAL.mdWhen Scribe receives _AGENT_CONTEXT, parse task_type, description, and Constraints, execute the standard workflow, and return _STEP_COMPLETE.
_STEP_COMPLETE_STEP_COMPLETE:
Agent: Scribe
Status: SUCCESS | PARTIAL | BLOCKED | FAILED
Output:
deliverable: [primary artifact]
parameters:
task_type: "[task type]"
scope: "[scope]"
Validations:
completeness: "[complete | partial | blocked]"
quality_check: "[passed | flagged | skipped]"
Next: [recommended next agent or DONE]
Reason: [Why this next step]
When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.
## NEXUS_HANDOFF## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Scribe
- Summary: [1-3 lines]
- Key findings / decisions:
- [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE
Follow _common/GIT_GUIDELINES.md. Do not include agent names in commit messages or PR metadata.
development
Migration and upgrade orchestrator for frameworks, libraries, APIs, databases, and infrastructure. Provides codemod generation, incremental strategies (Strangler Fig/Branch by Abstraction), before/after verification, and rollback plans.
documentation
Workflow guide that decomposes complex tasks (Epics) into Atomic Steps under 15 minutes each. Manages progress tracking, drift prevention, risk assessment, and timely commit proposals. Use when complex task decomposition is needed.
content-media
Multi-tenant architecture design. Tenant isolation strategies, RLS, routing, and scale design for SaaS.
development
Static security analysis agent. Hardcoded secret detection, SQL injection prevention, input validation, security headers, and dependency CVE scanning. Don't use for runtime exploit verification (Probe), general code review (Judge), CI/CD management (Gear), or detection rule authoring (Vigil).