← Work with SpecDD skills guides

How to chain SpecDD skills safely

How-To Work with SpecDD skills Intermediate 1091014HOWTO-1091014

HOWTO-1091014Work with SpecDD skillsIntermediate

This guide shows you how to chain SpecDD skills safely in a spec-driven development workflow without turning them into one giant agent workflow.

SpecDD skills are phase tools. The safest chain separates orientation, explanation, risk, planning, authoring, implementation, testing, review, tracing, debugging, and refactoring into checkpoints.

Short answer

Chain skills by phase. Start with orientation, explanation, risk, or planning when context is unclear. Use authoring before implementation when specs need work. Use implementation only after authority is clear. Use testing, review, and trace as separate verification steps. When the target changes, rerun target-specific spec-chain resolution instead of reusing stale context.

When to use this guide

Use this guide when:

Steps

1. Start with the current phase

Do not always start from the same skill. Choose the first skill based on what is missing.

Examples:

The first skill should reduce uncertainty.

2. Use one prompt per action

Good:

Plan the Itinerary validation change.

Then:

Implement the approved Itinerary validation plan.

Then:

Review the Itinerary validation diff.

Avoid combining those into one prompt. Separate prompts give you a chance to catch wrong assumptions before files change.

3. Checkpoint before editing

Before any editing skill such as specdd-author, specdd-do, specdd-test, specdd-debug, or specdd-refactor, the agent should know:

If any of these are unclear and the ambiguity affects scope, authority, public behavior, or risk, stop and resolve that before editing.

4. Verify after implementation

After specdd-do, specdd-debug, specdd-test, or specdd-refactor, use verification:

Then update task status only after verification.

5. Review before the next phase

Use specdd-review after a meaningful diff:

Review the Itinerary validation diff.

Use specdd-trace when you need coverage mapping:

Trace the Itinerary validation change to tests.

Review and trace are different. Review judges a diff. Trace explains relationships and gaps.

6. Rerun resolution when the target changes

Do not carry write authority from one target to another.

If the work moves from Itinerary to TripStorage, the agent should resolve the TripStorage spec chain. Orientation or a previous implementation plan is not enough.

This is especially important when:

Example chains

For a small implementation:

Plan the Itinerary validation change.
Implement the approved Itinerary validation plan.
Review the Itinerary validation diff.

For missing spec context:

Author the Itinerary validation spec.
Implement the Itinerary validation task.
Trace the Itinerary validation behavior to tests.

For a risky bug:

Assess risk for the Itinerary storage failure.
Debug the Itinerary storage failure.
Review the Itinerary storage fix.

Common mistakes

How to verify the result

The skill chain worked when:

← Work with SpecDD skills guides