Skip to content

feat(#467): prevent skill/CLI drift with phase vocabulary docs - #468

Merged
admarble merged 3 commits into
mainfrom
feature/467-prevent-skill-cli-drift-with-phase-vocabulary-docs
Mar 26, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/467-prevent-skill-cli-drift-with-phase-vocabulary-docs

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add "Valid phases" reference line to assess skill Step 4 listing all 9 PhaseSchema phases, synced across all 3 skill directories
  • Create assess-skill.test.ts smoke test that verifies SKILL.md references only valid phases (from PhaseSchema) and valid CLI flags (from bin/cli.ts .option() calls)
  • Test also verifies all 3 skill directories remain in sync

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original Valid phases reference line in Step 4 ✅ Implemented .claude/skills/assess/SKILL.md:122
AC-2 Original Evaluate + implement smoke test ✅ Implemented src/lib/__tests__/assess-skill.test.ts
AC-3 Derived Label→phase table uses valid phases ✅ Implemented Test: "should only use valid phases in the label→phase workflow table"
AC-4 Derived 3-directory sync verified ✅ Implemented Test: "should have identical content across all 3 skill directories"

Test plan

  • npm run build — passes
  • npm run lint — passes
  • npm test — 2270/2271 pass (1 pre-existing timeout in state-utils, known CI issue)
  • New test: 5/5 pass covering phase vocabulary, CLI flags, and directory sync

Closes #467

🤖 Generated with Claude Code

Add "Valid phases" reference line to assess skill Step 4 (all 3 dirs)
and create assess-skill.test.ts that verifies phase names and CLI flags
in SKILL.md match canonical sources (PhaseSchema, bin/cli.ts).
Table phase test now splits `exec → qa` on ` → ` to extract individual
phases (was matching zero). Other flags regex now handles `--base <branch>`.
@admarble
admarble merged commit f33982a into main Mar 26, 2026
6 of 8 checks passed
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.

Prevent skill/CLI drift with phase vocabulary docs and optional smoke test

1 participant