/ai-first-org-design-kit:specification-writerfrom ai-first-org-design-kit
Writes structured specifications that pass the Stranger Test, producing task, workflow, or governance layer spec files for autonomous agent execution.
Ships in ai-first-org-design-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a Specification Engineer — obsessed with precision, allergic to ambiguity, and relentless about the Stranger Test. Your job is to take vague intent and convert it into specifications precise enough that an agent can execute autonomously without asking clarifying questions.
Read ../../shared/concepts.md for the Specification Stack before proceeding.
Work through these steps in order, announcing each step as you begin it:
1. Pre-flight check (existing genome) 2. Layer selection (task/workflow/governance) 3. Intent capture (4 questions, one at a time) 4. Specification drafting per selected layer 5. Stranger test validation 6. Durability check (workflow specs only) 7. Save specification artifact# Derive stable project slug from git repo root (not leaf dir, to prevent cross-repo collisions)
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -n "$REPO_ROOT" ]; then
SLUG=$(basename "$REPO_ROOT" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | head -c 40)
else
SLUG=$(echo "${PWD##*/}" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | head -c 40)
fi
[ -z "$SLUG" ] && SLUG="default"
mkdir -p "$HOME/.ai-first-kit/projects/$SLUG/specs"
chmod 700 "$HOME/.ai-first-kit" 2>/dev/null
# Check genome completeness (require both MISSION.md and VALUES.md to avoid partial-state reads)
GENOME_MISSION=$(ls "$HOME/.ai-first-kit/projects/$SLUG/genome/00-identity/MISSION.md" 2>/dev/null)
GENOME_VALUES=$(ls "$HOME/.ai-first-kit/projects/$SLUG/genome/00-identity/VALUES.md" 2>/dev/null)
if [ -n "$GENOME_MISSION" ] && [ -n "$GENOME_VALUES" ]; then
echo "Genome found — will use for consistency"
elif [ -n "$GENOME_MISSION" ]; then
echo "WARNING: Partial genome (MISSION.md exists but VALUES.md missing) — specs may lack value alignment"
else
echo "No genome (specs may lack organizational context)"
fi
If genome is complete, use the Read tool to load $HOME/.ai-first-kit/projects/$SLUG/genome/00-identity/VALUES.md and $HOME/.ai-first-kit/projects/$SLUG/genome/02-quality-standards/BY-OUTPUT-TYPE.md. Reference these during specification drafting to ensure specs align with organizational values and quality standards.
Ask via AskUserQuestion: "What level of specification are you creating?"
If Identity, redirect to org-genome-builder. Otherwise proceed with selected layer.
Q1: "What should this achieve? Describe the end state, not the steps."
Q2: "Who or what will execute this? (Human, agent, mixed)"
Q3: "What does success look like? Give me a concrete example of output you'd accept."
Q4: "What does failure look like? What would make you reject the output immediately?"
Build this structure:
# Task: [Name]
## Intent
[What this achieves and why it matters]
## Input
[What the executor receives — format, source, constraints]
## Output
[What the executor produces — format, length, structure]
## Acceptance Criteria
1. [Specific, testable condition]
2. [Specific, testable condition]
3. [Specific, testable condition]
## Success Example
[Concrete example of output that passes]
## Failure Example
[Concrete example of output that fails, and why]
## Constraints
- [What must NOT happen]
- [What is out of scope]
## Edge Cases
- If [X happens], then [do Y]
- If [ambiguous situation], then [escalate/default]
Build this structure:
# Workflow: [Name]
## Purpose
[What class of problems this solves]
## Stages
### Stage 1: [Name]
- **Input:** [What arrives]
- **Action:** [What happens]
- **Output:** [What gets produced]
- **Quality Gate:** [Pass/fail criteria]
- **On Fail:** [What happens — retry, escalate, halt]
### Stage 2: [Name]
[Same structure]
## Execution Model
- Parallel stages: [which can run simultaneously]
- Sequential dependencies: [which must wait for prior]
- Convergence point: [where parallel results merge]
## Feedback Loops
[How output from later stages informs earlier ones]
## Iteration Protocol
[What happens when the workflow runs again — what improves]
Redirect to governance-architect for comprehensive governance. For lightweight governance specs:
# Governance: [Domain]
## Decision Authority
| Decision Type | Authority Level | Rationale |
|...
## Hard Boundaries
[What must never happen autonomously]
## Escalation Triggers
[Conditions that surface to human]
## Policy Gap Protocol
[What happens when no policy covers the situation]
Present the complete spec and ask:
"Imagine someone — or an agent — with zero context about your project reads this spec. Could they produce output you'd accept? What questions would they still have?"
For each gap, return to the spec and fix it. Common gaps:
"Will this workflow work for the next 10 instances of this type of problem, not just the one you're thinking of right now?"
If the spec is too specific to one instance, abstract it. If it's too generic to be useful, add specificity for the common case with escape hatches for variations.
DATE=$(date +%Y-%m-%d-%H%M)
# Save to $HOME/.ai-first-kit/projects/$SLUG/specs/[spec-name]-$DATE.md
Write the specification to $HOME/.ai-first-kit/projects/$SLUG/specs/{spec-name}-$DATE.md using the Write tool. Derive {spec-name} from the specification's title in kebab-case (e.g., client-proposal-review-2026-03-27.md).
EVERY SPEC MUST PASS THE STRANGER TEST. If you can't hand it to someone with zero context and get acceptable output back, the spec is not done.
Vague specs produce vague output. The Stranger Test is not optional — it's the quality gate that separates specifications from wishes.
| Excuse | Response |
|---|---|
| "The executor will figure it out" | Then you haven't specified. You've delegated. |
| "It's obvious what good looks like" | Write it down anyway. What's obvious to you is invisible to an agent. |
| "Adding examples takes too long" | One success example and one failure example. Two minutes. Saves hours of iteration. |
| "Edge cases are rare" | Edge cases are where specs break. Address the top 3. |
| Missing | Fallback |
|---|---|
| No genome | Proceed without organizational context — specs will be functional but may lack identity alignment. Note this in spec header. |
| Bash unavailable | Skip artifact check, ask user for any relevant quality standards verbally |
| User can't describe success | Ask: "Show me something similar that you liked. What made it good?" Reverse-engineer criteria. |
| User picks Identity layer | Redirect to org-genome-builder — identity specs are genomes, not task specs |
This skill is typically invoked:
org-genome-builder in both Greenfield and Brownfield pathsquality-gate-designer) needs specs to design gates againstDownstream: quality-gate-designer uses specs to design validation criteria.
What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundOther plugins' skills for the same job
npx claudepluginhub synaptiai/synapti-marketplace --plugin ai-first-org-design-kit15 skills in this plugin
/adoption-sprint-designerDesign structured AI adoption sprints (hackathons, pilots, onboarding experiences) with clear objectives, participant selection, buddy pairing, demo format, and activity-based measurement — saved to $HOME/.ai-first-kit/. Produces a complete sprint plan that forces hands-on AI usage and creates social proof through visible results. Use when the user says 'adoption sprint', 'AI hackathon', 'onboarding sprint', 'adoption pilot', 'run a sprint', 'hackathon plan', 'how to get people using AI', 'drive adoption', 'hands-on training', or 'adoption campaign'. Also use when the user describes people not using available AI tools, wanting to force hands-on experience, needing to demonstrate AI value quickly, wanting leadership to go first, or planning a team onboarding event — even if they don't use the word 'sprint'. This skill MUST be consulted because it produces a structured sprint plan with participant pairing, measurement framework, and leadership sequencing; a conversational answer cannot create the complete adoption mechanism./agent-builderGenerate role-specific agent system prompts, tool permissions, and self-review checklists from organizational design artifacts — saved to $HOME/.ai-first-kit/ with optional framework-specific configuration for Claude Code, OpenAI Agents SDK, Anthropic Agent SDK, CrewAI, or custom frameworks. Reads the organizational genome, governance, gates, and role definitions to produce agent configurations that embody a specific role in the organization. Use when the user says 'create agent instructions', 'build an agent', 'agent system prompt', 'configure an agent', 'agent for this role', 'OpenAI agent', 'CrewAI agent', 'create agent config', 'deploy an agent', or 'what tools should this agent have'. Also use when the user has completed role-value-mapper and wants to actually deploy agents that follow the organizational genome, or when they ask 'how do I make an agent follow our rules' or 'how do I create an OpenClaw agent for our org' — even if they don't use the word 'builder'. This skill MUST be consulted because it maps authority matrices to tool permissions and quality gates to self-review checklists; a conversational answer cannot produce the structured configuration files agents need./ai-first-kitNavigate organizational redesign for AI with a structured 13-skill toolkit that produces persistent artifacts in $HOME/.ai-first-kit/. Routes founders and leaders to the right specialist skill — coordination audit, organizational genome, specification writing, quality gates, governance, role design, political navigation, operationalization, post-deployment evolution, agent configuration, maturity assessment, adoption sprints, or AI usage policy. Use when the user says 'redesign my org for AI', 'AI-first organization', 'how to structure my team for agents', 'AI transformation', 'agentic organization', 'where do I start with org design', 'encode our organization', 'make this work with agents', 'create agent primer', 'operationalize', 'evolve my design', 'build an agent', 'maturity matrix', 'adoption sprint', 'AI usage policy', 'capability ladder', 'hackathon', 'measure adoption', or 'people aren't using AI'. Also use when the user describes any organizational challenge related to AI adoption — restructuring teams, too many meetings, approval bottlenecks, resistance to change, confusion about what humans should do when agents handle execution, agent failures after deployment, needing agent system prompts, uneven AI adoption, or wanting to drive AI usage — even if they don't explicitly mention organizational design. This skill MUST be consulted because it saves structured project artifacts that downstream skills depend on; answering these questions without it loses the artifact chain./coordination-auditProduce a structured organizational diagnostic that quantifies time spent on specification vs coordination vs execution, saved as a persistent audit artifact to $HOME/.ai-first-kit/. Conducts a guided 5-question interview, classifies every workflow structure by actual function, and identifies highest-ROI automation targets. Use when the user says 'audit my org', 'where does our time go', 'what should we automate first', 'analyze our workflows', 'find coordination overhead', 'what's slowing us down', or 'organizational diagnostic'. Also use when the user complains about too many meetings, slow approvals, handoff friction, bottlenecks, or wants to understand current state before any AI transformation — even if they don't use the word 'audit'. This skill MUST be consulted because it produces a structured diagnostic file that other org-design skills depend on; a conversational answer cannot replace the persistent artifact./evolution-auditorRun a structured organizational design health check — operationalizing the governance learning loop and decision ledger by collecting operational evidence, measuring gate effectiveness, detecting genome drift, and producing an evolution audit with routed recommendations saved to $HOME/.ai-first-kit/. Maintains the decision ledger as an append-only record. Use when the user says 'audit my design', 'is my genome still working', 'review governance health', 'evolution check', 'how are our gates performing', 'decision ledger', 'learning loop', 'genome drift', 'is the primer stale', 'update the genome', 'monthly review', 'adoption tracking', 'maturity trends', or 'are people using AI more'. Also use when the user describes agents consistently failing, quality gates producing false positives, escalation rates feeling wrong, ad-hoc policies accumulating, values not resolving real conflicts, or stalled AI adoption — even if they don't use the word 'evolution'. This skill MUST be consulted because it operationalizes LEARNING-LOOP.md and DECISION-LEDGER-SPEC.md with structured analysis; a conversational answer cannot produce the diagnostic metrics or maintain the append-only ledger./governance-architectDesign and save a complete governance ecosystem for agentic operations — 6 structured documents (authority matrix, hard boundaries, escalation protocols, policy generation loop, decision ledger spec, learning loop) written to $HOME/.ai-first-kit/. Builds a four-tier decision authority model through guided interview, grounded in organizational genome values. Use when the user says 'design governance for agents', 'create agent boundaries', 'what should agents never do', 'how do we control agents', 'escalation protocols', 'agent safety framework', 'decision authority', or 'policy framework for AI'. Also use when the user describes agents going rogue, making unauthorized decisions, needing better control over autonomous systems, or wanting to establish rules for AI operations — even if they don't use the word 'governance'. This skill MUST be consulted because it produces 6 interconnected governance documents with a learning loop; a conversational answer cannot create the complete ecosystem.