Skip to content

chore(claude): make .claude the SSoT for rules & skills - #646

Merged
c-vigo merged 2 commits into
feature/625-nix-claude-migrationfrom
feature/626-claude-ssot
Jun 23, 2026
Merged

c-vigo merged 2 commits into
feature/625-nix-claude-migrationfrom
feature/626-claude-ssot

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements C1 (#626): make .claude/ the single source of truth for agent rules and skills, removing the .cursor/ indirection.

  • Skills: moved the 30 .cursor/skills/*/SKILL.md (and the inception_explore/README.md sibling) to .claude/skills/; rewrote the 29 .claude/commands/*.md wrappers to point at .claude/skills/... and .claude/-located rules.
  • Rules split (7 .mdc): static principles (coding-principles, commit-messages, changelog, single-source-of-truth) consolidated into CLAUDE.md; workflow rules (branch-naming, tdd, subagent-delegation) became on-demand .claude/skills/ with disable-model-invocation: true.
  • Config: ported agent-models.toml and worktrees.json to .claude/.
  • Path consumers updated: docs/generate.py scan path + docstrings; .pre-commit-config.yaml (check-skill-names entry/files, generate-docs files now also fires on .claude/skills/**/SKILL.md — folds in [BUG] generate-docs pre-commit hook misses new skill directories #144); check-skill-names.sh and derive-branch-summary.sh defaults; scripts/manifest.toml; docs/SKILL_PIPELINE.md(.j2); docs/RELEASE_CYCLE.md; CLAUDE.md command table + rule pointers; .github/CODEOWNERS; .github/label-taxonomy.toml; vig-utils README.md and tests.
  • Deleted the root .cursor/.

TDD

  • packages/vig-utils/tests/test_claude_ssot.py asserts no tracked file (outside assets/workspace/, archival docs/issues|pull-requests|plans/, and append-only CHANGELOG.md) references .cursor/skills/, and that root .cursor/ is gone. Committed failing first (RED), then implementation (GREEN).

Verification

  • All 492 vig-utils tests pass.
  • pre-commit run --all-files green.
  • just docs regenerates cleanly; command table intact (33 rows); the 3 new workflow skills do not leak into the table.
  • Every command wrapper resolves to an existing .claude/skills/.../SKILL.md; no .cursor/ path in any wrapper; root .cursor/ deleted.

Coordination notes

Refs: #626

c-vigo added 2 commits June 23, 2026 09:23
Add a guard that fails until agent rules/skills migrate from .cursor/ to
.claude/ and the root .cursor/ directory is deleted. Archival snapshots
(docs/issues, docs/pull-requests, docs/plans) and the downstream workspace
template (assets/workspace/, #629) are excluded.

Refs: #626
Move agent rules and skills from .cursor/ to .claude/ and delete the root
.cursor/ directory:

- Move the 30 skills to .claude/skills/ and rewrite the 29 .claude/commands/*.md
  wrappers to point at the new paths and .claude-located rules.
- Split the 7 .cursor/rules/*.mdc: static principles (coding-principles,
  commit-messages, changelog, single-source-of-truth) are consolidated into
  CLAUDE.md; workflow rules (branch-naming, tdd, subagent-delegation) become
  on-demand .claude/skills/.
- Port agent-models.toml and worktrees.json to .claude/.
- Update path consumers: docs/generate.py scan path, the check-skill-names and
  generate-docs pre-commit hooks, the check-skill-names and derive-branch-summary
  shell entrypoints, scripts/manifest.toml, docs/SKILL_PIPELINE.md(.j2),
  docs/RELEASE_CYCLE.md, CLAUDE.md command table, CODEOWNERS, label-taxonomy.toml,
  and the vig-utils README/tests.

The downstream assets/workspace/.cursor/ template is left for #629.

Refs: #626
@c-vigo
c-vigo marked this pull request as ready for review June 23, 2026 08:16
@c-vigo
c-vigo requested a review from gerchowl as a code owner June 23, 2026 08:16
@c-vigo
c-vigo merged commit 562adb0 into feature/625-nix-claude-migration Jun 23, 2026
2 checks passed
@c-vigo
c-vigo deleted the feature/626-claude-ssot branch June 23, 2026 08:17
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.

1 participant