analyze_spec_quality
Analyze specification quality by detecting vague language, implementation-detail leakage, and role references missing Preconditions. Get actionable findings with severity and suggested rewrites for improved clarity.
Instructions
Run heuristic checks against a spec's body: vague language without measurable thresholds (fast / easy / intuitive / 現代 / 順暢 ...), implementation-detail leakage in AC ('uses Redis', '透過 X 服務'), and references to roles ('logged-in user', '管理員') without a Preconditions section. Pass spec_id for one spec, raw_text to analyze a freeform draft, or neither to sweep every spec from the active source. Returns {source, specs_analyzed, total_findings, results[]}. Each result has {spec_id, title, ac_count, score (0–100), findings[]} where each finding carries severity (info / warn / error), evidence, and a suggested rewrite. Pair with propose_spec_improvements for the markdown coach plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_id | No | ||
| raw_text | No |