Skip to content

feat(#498): add three-directory skill sync verification script - #519

Merged
admarble merged 1 commit into
mainfrom
feature/498-add-three-directory-skill-sync-verification-sc
Apr 12, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/498-add-three-directory-skill-sync-verification-sc

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add scripts/check-skill-sync.ts that compares files across .claude/skills/, templates/skills/, and skills/
  • Reports synced/diverged/missing files with line counts; exits code 1 on divergence (CI-usable)
  • --fix flag copies from .claude/skills/ (source of truth) to the other two directories

AC Coverage

AC Description Status
AC-1 Compares files across all three directories ✅
AC-2 Reports match/diverge with line count diff ✅
AC-3 Exits code 1 on divergence (CI-usable) ✅
AC-4 Handles missing files gracefully ✅
AC-5 --fix flag copies from source of truth ✅

Note

Issue AC specifies scripts/dev/check-skill-sync.ts but scripts/dev/ is gitignored (generated by sequant init). Placed at scripts/check-skill-sync.ts instead, consistent with scripts/prepare-marketplace.ts.

Test plan

  • npm run build passes
  • npm run lint passes
  • Script detects 18 synced, 10 diverged, 10 missing files correctly
  • --fix syncs all 38 files, re-run shows 0 divergence
  • Exit code 1 on divergence, exit code 0 when all synced

Closes #498

Add scripts/check-skill-sync.ts that compares files across .claude/skills/,
templates/skills/, and skills/ to detect divergence. Source of truth is
.claude/skills/.

Features:
- Reports synced, diverged, and missing files with line counts
- Exits with code 1 on divergence (CI-usable)
- --fix flag copies from .claude/skills/ to other directories
- Handles orphan files and missing directories gracefully

Closes #498
@admarble
admarble merged commit 01e2012 into main Apr 12, 2026
5 checks passed
@admarble
admarble deleted the feature/498-add-three-directory-skill-sync-verification-sc branch April 12, 2026 14:40
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 three-directory skill sync verification script

1 participant