vault-resync
Use when /vault-resync is invoked in ProjectVault, or when the user asks to resync, repair, or update the vault harness after workflow changes. Audits CLAUDE.md, skill files, README.md, and idea folder structures for drift, then proposes and applies fixes.
- License 许可
- MIT
- 最近更新
- 2026-04-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- vault-resync
- description
- Use when /vault-resync is invoked in ProjectVault, or when the user asks to resync, repair, or update the vault harness after workflow changes. Audits CLAUDE.md, skill files, README.md, and idea folder structures for drift, then proposes and applies fixes.
03 SKILL.md 正文
ProjectVault: Vault Resync Skill
You are auditing and repairing the ProjectVault harness — CLAUDE.md, skills, README.md, and idea folders — for drift caused by incremental workflow changes.
What "drift" means
Drift is any mismatch between:
- What CLAUDE.md says should exist (triggers, skill names, folder rules, status keys) vs. what actually exists on disk
- What README.md says about an idea vs. what that idea's
Overview.mdfrontmatter says - What a skill's frontmatter claims vs. what it does
- What CLAUDE.md's trigger table references vs. which skill files actually exist
Audit Steps
Run all four audits, then present a single consolidated report before touching anything.
Audit 1: Skill inventory
- List all directories under
.claude/skills/ - For each, check that
SKILL.mdexists and has valid frontmatter (name,description) - Cross-reference against every skill name mentioned in CLAUDE.md (trigger table, Skill Overrides section, slash command table)
- Flag:
Audit 2: README.md vs Overview.md status sync
- Read
README.md— parse every row in the Ideas table (slug, status, stack, description) - For each slug, read
ideas/[slug]/Overview.mdfrontmatter - Flag any mismatch between the
statusfield in README.md and thestatus:frontmatter in Overview.md - Flag any slug in README.md that has no matching folder under
ideas/ - Flag any folder under
ideas/that has no row in README.md
Audit 3: Idea folder completeness
For each idea folder under ideas/:
- Check which files are present: Overview.md, Stack.md, Architecture.md, Phases.md, Design-Spec.md
- Compare against the idea's status — use this matrix to determine what's expected:
| Status | Required | Expected (warn if missing) |
|---|---|---|
| Seed | Overview.md | — |
| Exploring | Overview.md | Stack.md |
| Designing | Overview.md, Stack.md | Architecture.md, Phases.md |
| Building | Overview.md, Stack.md, Architecture.md, Phases.md, Design-Spec.md, ProjectInitialize.md | — |
| Parked / Shipped | Overview.md | — |
Flag missing required files as errors. Flag missing expected files as warnings.
Audit 4: CLAUDE.md self-consistency
- Read CLAUDE.md — check the "Trigger Phrases" table and "Skill Overrides" section
- For each skill name referenced, confirm the skill directory exists
- Check that the Status Key in README.md matches the status values used in CLAUDE.md and idea Overview.md files
- Flag any trigger phrases pointing to nonexistent skills
Report Format
Present findings as a structured diff before doing anything. Group by severity:
## Vault Resync Report
### Errors (must fix)
- [SKILL-MISSING] CLAUDE.md references skill `foo-bar` but .claude/skills/foo-bar/ does not exist
- [STATUS-MISMATCH] README.md says hobby-learning-webapp=Exploring, Overview.md says Designing
- [FILE-MISSING] ideas/my-idea/ has status Building but is missing Design-Spec.md
### Warnings (worth reviewing)
- [SKILL-ORPHAN] .claude/skills/old-skill/ exists but is not referenced in CLAUDE.md
- [FILE-MISSING] ideas/my-idea/ has status Exploring but Stack.md is missing
### OK
- All trigger phrases resolve to existing skill files
- README.md row count matches ideas/ folder count
After presenting the report, ask:
"Which of these do you want me to fix? (all / errors-only / specific items / none)"
Wait for confirmation before making any changes.
Fix Behaviors
Only apply fixes that were explicitly approved.
| Issue type | Fix action |
|---|---|
| STATUS-MISMATCH | Ask which is correct (README or Overview), then update the other to match |
| SKILL-MISSING (referenced but absent) | Ask what the skill should do — do not create it silently |
| SKILL-ORPHAN (exists but unreferenced) | Ask whether to add a trigger to CLAUDE.md or delete the skill |
| FILE-MISSING (required) | Warn that the idea folder is in an inconsistent state — do not auto-create files |
| FILE-MISSING (expected/warning) | Note it but do not auto-create |
| README-MISSING (idea folder has no row) | Offer to add a row from the Overview.md content |
| README-ROW-DANGLING (row with no folder) | Offer to remove the row |
Never silently create, delete, or overwrite files. Always describe what you're about to do and wait for confirmation per fix.
Applying Workflow Changes
If the user is running vault-resync because they have a new convention or workflow change (not just drift), do this first:
- Ask: "What changed? (new skill, new folder rule, new status, trigger phrase update, other)"
- Based on the answer, identify which files need updating:
- New skill → create
.claude/skills/[name]/SKILL.md, add trigger to CLAUDE.md - New folder rule → update CLAUDE.md's "Per-Idea Folder Rules" section
- New status → update CLAUDE.md's status key AND README.md's Status Key section
- Trigger phrase change → update CLAUDE.md's Trigger Phrases table
- Skill rename → update skill directory name, skill
namefrontmatter, and all CLAUDE.md references
- New skill → create
- Then run the full audit to catch any secondary drift.
End State
After all approved fixes are applied:
"Resync complete. [N errors fixed, M warnings noted]. Run /vault-status to confirm the current state."
04 同仓库更多 Skills
vault-status
Use when /vault-status is invoked in ProjectVault. Reads README.md and renders a formatted table of all ideas with their status, stack, and description.
vault-init
Use when /vault-init is invoked in ProjectVault. Delegates to the projectvault-init-repo skill with the provided slug argument.
projectvault-rapid-intake
Use when working in ProjectVault and the prompter lists multiple project ideas at once, or uses /intake. Creates Overview.md stubs (status: Seed) for each idea. Never creates Stack.md, Architecture.md, Phases.md, or Design-Spec.md — only Overview stubs.
projectvault-new-idea
Use when working in ProjectVault and a new project idea is being described or explored. Handles the full brainstorm-to-spec workflow using vault conventions, Stack-Preferences, and Prompter-Profile. Do NOT invoke superpowers:brainstorming in this context.
projectvault-init-repo
Use when working in ProjectVault and the prompter uses /vault-init [slug] or asks to move an idea to a real repo. Reads the idea's design files, generates ProjectInitialize.md, and updates the idea's status to Building.
intake
Use when /intake is invoked in ProjectVault. Delegates to the projectvault-rapid-intake skill for batch idea capture.