Skip to content

feat(#201): Add AC linting to /spec to catch vague acceptance criteria - #202

Merged
admarble merged 1 commit into
mainfrom
feature/201-add-ac-linting-to-spec-to-catch-vague-acceptance-c
Jan 30, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/201-add-ac-linting-to-spec-to-catch-vague-acceptance-c

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds static analysis of acceptance criteria in /spec to flag vague, untestable, or incomplete requirements
  • Creates pattern detection for common issues (vague terms, unmeasurable metrics, incomplete specs, open-ended lists)
  • Warning-only approach - surfaces issues but doesn't block plan generation
  • Includes --skip-ac-lint flag for cases where linting should be bypassed

Test plan

  • All 34 new AC linter tests pass
  • Build compiles successfully
  • Lint passes
  • Manual test: Run /spec on an issue with vague AC to verify flagging
  • Manual test: Run /spec --skip-ac-lint to verify skip behavior

Files changed

File Description
src/lib/ac-linter.ts Core AC linter module with pattern detection
src/lib/ac-linter.test.ts Comprehensive test coverage (34 tests)
.claude/skills/spec/SKILL.md Updated with AC Quality Check section
templates/skills/spec/SKILL.md Template sync with skill updates

Closes #201

🤖 Generated with Claude Code

Add static analysis of acceptance criteria in /spec that flags vague,
untestable, or incomplete requirements before implementation begins.

Changes:
- Create src/lib/ac-linter.ts with pattern detection for:
  - Vague patterns ("should work", "properly", "correctly")
  - Unmeasurable patterns ("fast", "performant", "responsive")
  - Incomplete patterns ("handle errors", "edge cases")
  - Open-ended patterns ("etc.", "and more", "such as")
- Add comprehensive test coverage in src/lib/ac-linter.test.ts (34 tests)
- Update /spec skill with "AC Quality Check" section
- Add --skip-ac-lint flag to bypass linting when needed

The linter is warning-only - it surfaces issues but doesn't block plan
generation, allowing teams to proceed while being aware of AC quality.

Closes #201

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit d4588e1 into main Jan 30, 2026
6 checks passed
@admarble
admarble deleted the feature/201-add-ac-linting-to-spec-to-catch-vague-acceptance-c branch January 30, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AC linting to /spec to catch vague acceptance criteria

1 participant