Skip to content

AI Writing Skills

Your test suite is the single source of truth. But a product owner, a developer, and a QA lead all need different things from the same tests. AI writing skills let you control how your coding agent writes documentation — the audience, the tone, the level of detail.

Skills are markdown files you drop into your project. Your AI agent (Claude Code, Cursor, Copilot, or any tool that reads project-level instructions) picks them up and follows them when writing executable stories.

  1. Copy a skill file into your project’s .claude/skills/ directory (or your agent’s equivalent)
  2. Tell your agent to use the skill when writing stories — or it picks it up automatically
  3. The same test suite produces documentation tuned for your audience

No config. No build step. Just a markdown file that shapes how your agent writes.

The same “User logs in successfully” scenario, written for three different readers:

Outcomes-focused. Business language. No implementation details.

Feature: User Authentication
Scenario: User logs in successfully
A registered user can access their dashboard
by entering valid credentials.
Outcome: User sees personalised dashboard
Business rule: Session expires after 30 minutes

Technical and concise. Shows endpoints, payloads, and storage.

## User logs in successfully
Given a registered user exists in the database
When POST /api/auth/login { email, password }
Then response status is 200
And body contains { token, expiresIn: 1800 }
And session is stored in Redis with TTL 1800s

Structured and exhaustive. Preconditions, numbered steps, traceability.

TC-AUTH-001: User logs in successfully
Preconditions:
- User account exists and is active
- Account is not locked (< 5 failed attempts)
Steps:
1. Submit valid credentials
2. Verify 200 response with JWT token
3. Verify session created with correct TTL
4. Verify audit log entry created
Traceability: REQ-AUTH-001, SOC2-CC6.1

Executable Stories ships 9 specification skills you can use out of the box:

SkillPurposeWhen to use
spec-discovery-oopsiStructure discovery with the OOPSI mapping techniqueCollaborative 3 Amigos sessions to explore requirements and avoid analysis paralysis
spec-example-mappingTurn conversations into rules, examples, questionsRefining requirements with stakeholders
spec-outside-in-behaviourDiscover behaviour from user goals (Dan North)Designing from the outside in
spec-refine-examplesRefine raw notes into precise specs (Gojko Adzic)Cleaning up acceptance criteria
spec-rules-decision-tablesDecision tables for policy/calculation rulesComplex business logic with many conditions
spec-workflow-stateWorkflows, state transitions, approvalsMulti-step processes with branching
spec-living-documentationWrite specs as lasting documentationEnsuring docs stay useful over time
spec-convert-testsConvert existing tests to business-facing specsMigrating legacy test suites
spec-reviewReview scenarios for clarity and coverageBefore merging or after writing

Each skill file lives in .claude/skills/ and can be used as-is or as a starting point for your own.

Write a markdown file that tells your agent how to write for your audience:

# Skill: Write for regulatory auditors
When writing executable stories, follow these rules:
- Every scenario must have a unique test case ID (format: TC-AREA-NNN)
- List all preconditions before steps
- Number each verification step
- Include a Traceability line mapping to requirement IDs
- Use formal language — no contractions, no shorthand
- Include boundary conditions as separate scenarios

Drop it into .claude/skills/ and your agent will follow it when writing stories in this project.

You can combine multiple skills — one for audience, one for methodology. The agent reads all skill files in the directory.