Repository navigation
Description
Context
Since #626 made .claude/ the SSoT here and install.sh copies the skill tree into downstream repos, the copies drift. Concrete evidence (July 2026 audit across the workspace):
- Five repos still run 1.5–4-month-old
.cursorscaffolds (pre-0.4 payloads:cursor-agent --yolo, Cursor-era model names, missing skills). (These.cursortrees are being deleted separately.) - The canonical skills carried ~19 broken
../../rules/*.mdclinks, duplicated## Delegationsections, a skill-name mismatch, and a PR-title contradiction — all fixed in fix(skills): correct broken links, dup sections, name/title mismatches, drop commands/ #917, but the file-copy model means every fix has to re-propagate by hand. - Org prose conventions (commit format, changelog, TDD, confidentiality) are copied 3–5× down the CLAUDE.md hierarchy, against our own "single source of truth" rule.
The file-copy distribution model is the root cause. Claude Code's supported org pattern is a plugin distributed through a marketplace repo, installed once per machine instead of vendored per repo.
Proposal
Bundle our Claude config into one plugin and distribute it from a private marketplace repo (proposed home: vig-os/org-config — private, already has a .claude/, named for exactly this; alternative: a dedicated vig-os/claude-plugin). Teammates run /plugin marketplace add vig-os/org-config once, then /plugin install; updates ship via push + /plugin update.
A plugin can standardize all four layers:
| Layer | Today | With the plugin |
|---|---|---|
Skills (ci_check, pr_*, worktree_*) |
copied per repo, drift | one versioned copy |
Hooks (e.g. block --no-verify / AI-attribution) |
none shared | hooks/hooks.json, enforced for everyone |
| Agents | none shared | shipped in the bundle |
| Prose conventions | copied down every CLAUDE.md level | one canonical CONVENTIONS.md, repos defer to it |
A reference PreToolUse commit-guard hook (blocks git commit --no-verify/-n and Co-Authored-By: Claude/AI trailers) already exists and works; it's the natural seed for hooks/hooks.json.
CLAUDE.md half
Keep one canonical CONVENTIONS.md in the marketplace repo; make each repo's CLAUDE.md thin — repo-specific facts only, plus a pointer to the canonical conventions. Repo-level files stay the source of truth for their own repo; they just stop restating org rules.
Decisions to resolve as part of this (deferred from #917 on purpose — they need team eyes)
- Retire skills that overlap built-ins?
code_debug(≈/debug) andcode_verify(≈/verify, minus ourjustcommand list). Rebasecode_reviewon the built-in reviewer + our project checklist? - Cut the
inception_*family (~900 lines of largely generic system-design/interview boilerplate) or move it out of the per-repo sync into an on-demand location? - Dead config:
worktrees.json(unread Cursor leftover) andagent-models.toml(not a Claude Code file — only one shell script greps it). Drop from the synced payload, or keep and document? - Re-enable model invocation for the converted ambient rules (
tdd,branch-naming,subagent-delegation) — currentlydisable-model-invocation: true, so they can never auto-fire.
Migration path (incremental, low-risk)
- Merge fix(skills): correct broken links, dup sections, name/title mismatches, drop commands/ #917 (package clean skills, not the broken-link ones).
- Add
.claude-plugin/marketplace.json+hooks/hooks.json(seed from the reference guard) + move the repaired skills into the marketplace repo; addCONVENTIONS.md. - Pilot on one repo; confirm skills + hook fire.
- Retire
install.sh's.claude/copying; delete per-repo skill copies. - Thin the repo CLAUDE.md files to defer to
CONVENTIONS.md.
Caveat (GitHub Free plan)
Plugin hooks run client-side and a teammate can disable the plugin — so they're consistency + defense-in-depth, not a hard gate. The real gates stay each repo's pre-commit hooks + CI. Same trust model we already rely on (no server-side branch protection on Free).
Open questions for the team
vig-os/org-configvs a dedicatedvig-os/claude-pluginas the marketplace home?- Scope of the built-in-overlap cleanup (decisions 1–2) — how aggressive?
- Do we want shared agents in v1, or skills + hooks + conventions first?
Refs: #626
Activity
gerchowl commentedon Jul 8, 2026
yes - it's always a question where/how things should live
there is also claude config nix flake - which then in turn makes adding plugins/mcps/.. manually ephemeral ..
chore: release 1.18.0 (#1819)
gerchowl commentedon Nov 3, 2026
Consumer data point (
exoma-ch/ravmatic, 1.18.0, direnv):.claude/settings.jsonis devkit-managed (overwritten on upgrade, checked by scaffold drift). So a consumer has no committed place for a team-wide Claude Code config. That includes a permission allowlist (Bash(just *),Bash(gh pr *),Bash(nix develop *)) and a SessionStart hook that warns when the session is outside the dev shell, which the git hooks require. The only option left is each contributor's own.claude/settings.local.json. A preserved.claude/settings.project.json, merged at scaffold time like.gitignore.project, or the plugin route discussed here, would close that.