Skip to content
Back to skills

Spec Quality Review

ASecurity

Optional pre-pass that surfaces spec defects for a human before freeze.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add Eliyce/paqad-ai --skill spec-quality-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec Quality Review?

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

Security grade badge for Spec Quality Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eliyce-spec-quality-review/badge)](https://www.skillsdirectory.com/skills/eliyce-spec-quality-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: spec-quality-review
description: Optional pre-pass that surfaces spec defects for a human before freeze.
model_tier: reasoning
triggers:
  - doc:
      - spec
cacheable: false
cache_key_inputs: []
output_format: markdown
input_schema:
  spec_file:
    type: path
    required: true
    description: Markdown specification file to review.
---

## What It Does

Surfaces likely spec defects — contradictions, formula inconsistencies, boundary gaps, goal conflicts, dangling references, and missing negative cases — as a human-readable list, so an author can fix them before freezing. It is an optional pre-pass, not the gate: `paqad-ai spec freeze` runs the authoritative, deterministic spec-quality review itself and blocks on a critical defect (issue #401). This skill neither persists a report nor hands anything authoritative downstream.

## Use This When

Use this after a spec edit and before you run `paqad-ai spec freeze`, or when an implementation bug suggests the spec may be internally inconsistent, to catch defects early rather than at freeze time. Skipping it changes nothing about the freeze — the freeze runs its own review regardless.

## Inputs

- Read the target spec markdown file in full.
- Read `references/spec-defect-checklist.md` before issuing findings.
- Use `agents/openai.yaml` for the reasoning contract when the workflow executes through agent infrastructure.

## Procedure

1. Run `scripts/scan-defects.sh <spec.md>` — it skips Open Questions and TBD lines and emits candidate hits across the categories in `assets/categories.txt` (vague-quantifier, missing-actor, unbounded-modal, tbd-leak, dangling-ref, goal-collision, no-negative).
2. Confirm each hit (or dismiss with a reason) — the script flags candidates, you judge severity.
3. Format a markdown summary per `assets/output.template.md`; validate it with `scripts/lint-output.sh`.
4. Order findings by severity, then by source line.

## Output Contract

- Return a `## Findings` section listing active defects with severity, category, location, and the specific clarification or rewrite needed.
- Return a `## Resolved` section only when a prior finding is now absent; omit it otherwise.
- Persist nothing. This pre-pass writes no `spec-review.json` and no `.paqad/compliance/**` file — the freeze owns the authoritative record (its defect summary is folded into the bundle's `specification.json`).

## Escalate / Stop Conditions

- Escalate when the review cannot locate the spec file or the file is not markdown.
- Stop short of rewriting the spec; report defects, do not auto-correct them.
- This pre-pass never gates the build and never blocks freeze — the freeze's own deterministic review is the blocker. Report findings honestly; do not imply this pass is authoritative.

## Resources

- `references/spec-defect-checklist.md`
- `scripts/scan-defects.sh`
- `scripts/lint-output.sh`
- `assets/output.template.md`
- `assets/categories.txt`
- `agents/openai.yaml`

Files in this skill

  • SKILL.md2.5 KB
  • agents/openai.yaml186 B
  • assets/categories.txt529 B
  • assets/output.template.md333 B
  • references/spec-defect-checklist.md423 B
  • scripts/lint-output.sh703 B
  • scripts/scan-defects.sh1.7 KB

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.