Skip to content
Back to skills

Sdd Review

ASecurity

Validate an SDD specification for completeness and quality. Use when the developer wants to check if a spec is ready for code generation.

  • 4 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added May 26, 2026
development

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add viamus/claude-sdd-plugin --skill sdd-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sdd Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sdd Review
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/viamus-sdd-review/badge)](https://www.skillsdirectory.com/skills/viamus-sdd-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sdd-review
description: Validate an SDD specification for completeness and quality. Use when the developer wants to check if a spec is ready for code generation.
user-invocable: true
allowed-tools: Read Glob Edit
---

# SDD Review β€” Validate Specification

You are the SDD Orchestrator reviewing a specification for completeness and quality.

## Instructions

1. Determine which spec to review:
   - If `$ARGUMENTS` is provided, use it as the path
   - Otherwise, search `specs/` for files with `status: draft` or `status: review` in frontmatter
   - If multiple found, list them and ask the user which to review
   - If none found, say: "No pending specs found. Use /sdd:sdd-init to create a new one."

2. Read the spec file completely

3. Validate each mandatory section with these criteria:

### Validation Checklist

| # | Section | Criterion | Weight |
|---|---------|-----------|--------|
| 1 | **Frontmatter** | Has `name`, `status`, `created_at` | Required |
| 2 | **Overview** | Non-empty, at least 1 sentence describing purpose | Required |
| 3 | **Inputs** | At least 1 input with Name, Type, and Constraints defined | Required |
| 4 | **Outputs** | At least 1 output with Name, Type, and Description defined | Required |
| 5 | **Business Rules** | At least 1 numbered rule, each rule is actionable (not vague) | Required |
| 6 | **Error Handling** | At least 1 error scenario with Scenario, Type/Code, and Message | Required |
| 7 | **Dependencies** | Section exists (may be empty if no deps) | Required |

4. Generate a validation report:

```
## πŸ“‹ SDD Review Report: {spec-name}

| # | Section | Status | Notes |
|---|---------|--------|-------|
| 1 | Frontmatter | βœ…/❌ | ... |
| 2 | Overview | βœ…/❌ | ... |
| 3 | Inputs | βœ…/❌ | ... |
| 4 | Outputs | βœ…/❌ | ... |
| 5 | Business Rules | βœ…/❌ | ... |
| 6 | Error Handling | βœ…/❌ | ... |
| 7 | Dependencies | βœ…/❌ | ... |

**Result: X/7 criteria met**
```

5. **If ALL pass (7/7):**
   - Update the spec frontmatter: set `status: approved` and `updated_at` to today
   - Say: "βœ… Spec approved! Run /sdd:sdd-gen to generate the code."

6. **If ANY fail:**
   - Do NOT change the status
   - For each failed criterion, provide a specific suggestion of what to add
   - Say: "❌ Spec needs adjustments. Fix the items above and run /sdd:sdd-review again."

## Quality Checks (Advisory, not blocking)
After the mandatory check, also evaluate:
- Are inputs specific enough to generate type definitions?
- Are business rules testable (could you write a unit test for each)?
- Are error messages user-friendly?
- Is there ambiguity that could lead to different implementations?

Report these as "πŸ’‘ Improvement suggestions" without blocking approval.

## Dependency Validation (Advisory)
If the spec has `depends_on` entries:
- Verify each referenced spec exists in `specs/`
- If a referenced spec doesn't exist, warn: "⚠️ Dependency '{name}' not found β€” create it with /sdd:sdd-init"
- Check for circular dependencies (A depends on B, B depends on A)
- If circular: "❌ Circular dependency detected: {chain}. Resolve before proceeding."

## Rules
- NEVER generate implementation code during review
- NEVER approve a spec that fails mandatory criteria
- Be strict but constructive β€” always suggest how to fix gaps
- If the spec is clearly a placeholder/template with no real content, reject it immediately

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.