← Work with SpecDD skills guides

How to review a diff against specs (specdd-review)

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

HOWTO-1091003Work with SpecDD skillsIntermediate

This guide shows you how to use specdd-review to review a diff against active SpecDD specs in a spec-driven development workflow.

Use this skill when there is already a change to judge. It should not edit files unless you explicitly ask for fixes. Its job is to find contract violations, regression risks, missing verification, and unresolved questions.

Short answer

Use specdd-review after a diff exists. The agent should resolve the applicable spec chain for the changed files, compare the diff against Must, Must not, Forbids, Scenario, Tasks, Done when, and write authority, then lead with concrete findings ordered by severity.

When to use this guide

Use this guide when:

Steps

1. Use review mode after a diff exists

Use a review prompt:

Review the Itinerary validation change.

Do not ask for review and fixes in the same prompt unless you want the agent to edit after reporting findings. A clean review report is easier to inspect.

2. Compare changed files to authority

For each changed file, the agent should identify why it is in scope:

Referenced files remain read context unless the active spec chain grants modification authority.

3. Check behavior and boundaries

Review against:

The review should not invent new requirements beyond the active specs. If the spec does not say enough, call that an uncertainty.

4. Check verification depth

Verification should match risk.

Ask:

Missing checks can be a finding when the spec requires verifiable behavior or the risk is high.

5. Separate violations from underspecification

Violation:

The diff edits destination search files, but the Itinerary spec says destination behavior must not change.

Underspecification:

The spec does not say what should happen when storage fails, so the new error behavior cannot be judged as a violation.

Both are useful, but they are different. Review should not turn speculation into a failed contract.

6. Lead with findings

The output should lead with findings ordered by severity. Each finding should include:

If there are no findings, the report should say that clearly and mention any residual test or spec coverage gap.

Example review prompt

Review the Itinerary validation diff.

Good output starts with findings, not a long summary:

Finding: src/trips/itinerary.js changes destination search fallback behavior, but the Itinerary spec says destination search behavior must not change. Keep validation local to itinerary input or move destination work into a separate spec-driven change.

Common mistakes

How to verify the result

The review worked when:

← Work with SpecDD skills guides