/all-skills:optimizerfrom All Skills
Audits and optimizes a Baalda vault across 10 frameworks covering CLAUDE.md quality, wiki structure, compression, context rot, memory, progressive disclosure, hygiene, cross-file synthesis, architecture, and discoverability. Ships concrete fixes per finding with apply-now or save-to-plan options. Includes F10 Claude 5 rule rewriting.
Ships in All Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Apply 10 frameworks to every markdown file in the vault. For each framework, read its pass-implementation file, run every check, log findings, walk the user through fixes per item, apply (or save to a plan). Save one comprehensive HTML report grouped by framework. Do not inline the HTML in chat — only the saved path and a one-paragraph summary.
Every finding ships a concrete fix. No flag-only. No "warn and forget." No manual-review pile. When the user runs apply-mode, every finding becomes either an applied edit, a saved migration step in a dated reorg plan, or (only if the user explicitly declines this finding in walk) a recorded decline. Nothing lingers as an open warning across runs.
Severity is informational, not gating. fail / warn / info describes how load-bearing the issue is; it does not gate whether a fix is offered. Every check produces fixes.
Walk per item, user picks the target. Bulk-apply is reserved for purely mechanical fixes (em dashes, duplicate H1). Anything semantic — wikilink repointing, merges, routing rewrites, Plot.md generation, reorganizations — is walk-only with the user confirming the destination/winner/wording per item.
Two modes for every fix: apply now (executes in this run) or save to plan (writes the change as a checklist step into the plan file, whose path is resolved from the role registry in Step 4.3). User picks per finding for high-blast-radius items. Smaller fixes default to apply-now.
Visible progress, never silent. Step 0.5 creates one TaskCreate entry per stage and per framework; tasks update in_progress → completed as the run unfolds. The user watches the audit walk through the vault rather than waiting for one big report at the end.
Read and reason, don't just match. Every framework's triggers surface candidates; every finding requires the agent to read context, judge alignment with the user's stated world, and produce reasoning specific to the case. No paraphrased rule restatements as "reasoning."
Discover structure, never assume folder names. Vaults vary. One user's curated layer is Context/; another's is About/, Me/, frontmatter on root, or scattered across topic folders. The optimizer runs Step 1.5 (role discovery) before any framework, and every framework references roles (context-equivalent, decisions-equivalent, daily-equivalent, folder-index convention…) discovered from content — never hardcoded names. If a role is missing, it surfaces as a finding with a proposed fix ("you have no decisions-equivalent folder; here's a recommendation"), not as a silent assumption. Static path references in pass files are always abstractions; the agent resolves them through the role registry at run time.
Respect how Baalda stores things. Notes are plain .md files, so every content fix is a
normal file edit and lands live in the app (and for teammates) within ~300ms. But three things
are not negotiable — see Baalda rules below. Violating them silently destroys note identity
and version history, which is the one failure mode this skill must never cause.
Run these checks in Step 0, before anything else.
.context/ and attachments/ are out of scope<vault>/.context/ is Baalda's SQLite index, CRDT update log and doc-id map. attachments/ holds
binaries the app syncs on its own. Never audit, edit, move, delete or report on either. They are in
the technical skip list in Step 1.1 and in the protected list in Step 5.
test -f .context/config.json && echo "SYNCED-CAPABLE" || echo "LOCAL-ONLY"
A .context/config.json carries the server vault id and the note→doc_id map, so this vault is
(or has been) synced: its notes have identity and history on a server, and possibly teammates.
mv/rm looks like delete-then-create to the app: the note
gets a brand-new doc_id and loses its version history, its backlinks from other notes' indexes
and its sharing settings. So for every finding whose fix relocates or removes a note or folder
(F2 merges, F8.2 merges, F9.5 folder merges, F9.6 reorgs, hygiene deletes):
move_note, move_folder, delete_note, delete_folder and
create_folder are available — apply the fix through them, never with shell commands.
They preserve doc_id and broadcast the change to every open app.X into Y" / "rename A to B in the sidebar". Do not
offer apply-now for it. Say why in one line so the user isn't confused by the missing option.Baalda has a vault-wide safety net. Before the first fix lands in Step 5, tell the user:
Take a checkpoint first: Vault settings → Versioning → Create checkpoint, label it
pre-optimizer. It captures every note's content and the folder tree, and one click reverts the whole vault. Per-note history (the clock icon in the editor) is a second net for single files.
Wait for a yes before applying. If they decline, say once that fixes are then only recoverable per-note, and continue. Never take the checkpoint for them — it's owner/admin-only and capped at 5.
When a fix rewrites note content, keep to Baalda's markdown: frontmatter, [[wikilinks]], #tags,
- [ ] tasks, tables, fenced code,  images. Obsidian-only syntax (![[embeds]],
> [!callout], ==highlight==, %%comment%%) renders as literal text — if the audit finds it in a
vault that came from Obsidian, that is itself a hygiene finding with a rewrite as the fix.
%%comments%% are a fail, not a cosmetic finding. In Obsidian they are private asides hidden
from the reader; in Baalda they are ordinary visible text, so in a shared folder the whole team reads
them. Surface every one with its file and line and let the user decide per instance (delete, or
promote to real text) — never rewrite them silently.
Backlinks, the graph view and [[ autocomplete are all derived from wikilink text by the local
index. A dead wikilink is a dead edge in the user's graph, which makes F2.2 / F9 link findings worth
more here than in a plain markdown folder. Never leave a rename without repointing inbound links.
| # | Framework | Reference (the why) | Pass file (the how) | Applies to |
|---|---|---|---|---|
| F1 | Anthropic CLAUDE.md | references/anthropic-claude-md.md | references/passes-anthropic-claude-md.md | every CLAUDE.md |
| F2 | Karpathy LLM Wiki | references/karpathy-llm-wiki.md | references/passes-karpathy-wiki.md | wiki content notes |
| F3 | Caveman compression | references/caveman-compression.md | references/passes-caveman.md | instruction-layer files |
| F4 | Chroma context rot | references/chroma-context-rot.md | references/passes-chroma-context-rot.md | every .md |
| F5 | Anthropic Memory | references/anthropic-managed-memory.md | references/passes-anthropic-memory.md | every .md |
| F6 | Progressive Disclosure | references/progressive-disclosure.md | references/passes-progressive-disclosure.md | every SKILL.md |
| G7 | General Hygiene | (project rules + practitioner notes) | references/passes-general-hygiene.md | every .md |
| F10 | Claude 5 Rule Rewriting | references/claude-5-rules.md | references/passes-claude-5-rules.md | every CLAUDE.md, .claude/rules/, and every SKILL.md |
| F8 | Reflection (Anthropic Dreams) | references/anthropic-dreams.md | references/passes-reflection.md | every folder where layer == "curated" in the Step 1.5 registry; reads the session-layer folders as evidence |
| F9 | Architecture & Discoverability | references/anthropic-architecture.md | references/passes-architecture.md | whole vault — root CLAUDE.md, routing, every folder's Plot.md, the navigation chain end-to-end |
When running a check, read the pass-implementation file and follow its regex / heuristic / finding format exactly. Don't paraphrase. Cite the framework reference in every finding.
.md file — only technical skips (Step 1)Run the Baalda rules checks first (R1–R2 detection now, R3 before Step 5).
Don't require any specific folder layout. Check (any one is sufficient):
test -f CLAUDE.md || test -f claude.md
[ "$(find . -maxdepth 4 -name 'CLAUDE.md' | head -1)" ]
[ "$(find . -maxdepth 1 -name '*.md' | wc -l)" -gt 0 ]
If none are true → stop:
This doesn't look like a markdown vault — no
.mdfiles orCLAUDE.mdfound.cdinto your vault root and re-run.
Otherwise tell the user one line:
Auditing your vault against 10 frameworks. First I'll discover your structure (Step 1.5) — I won't assume folder names. Then I walk every fix with you. You'll see each stage as a task.
Proceed into Step 0.5.
This is mandatory. People running this skill on their second brain need to see what's happening — silent is unacceptable for a long-running vault audit.
Create one task per stage + one task per framework, in order. Use TaskCreate with explicit short titles. The user watches them tick through.
[ ] Discover & classify .md files (Step 1)
[ ] Role discovery — semantic folder/file classification, no hardcoded names (Step 1.5)
[ ] F1 Anthropic CLAUDE.md — read CLAUDE.md files, judge candidates
[ ] F2 Karpathy Wiki — wikilinks, orphans, schema
[ ] F3 Caveman — compression of instruction-layer files
[ ] F4 Chroma Context Rot — length, distractors, position
[ ] F5 Anthropic Memory — file size, naming, indexes
[ ] F6 Progressive Disclosure — SKILL.md layering
[ ] G7 General Hygiene — em dashes, frontmatter, H1 rules
[ ] F10 Claude 5 Rules — retired, bare prohibitions, one-sided, aggressive
[ ] F8 Reflection — cluster + judge cross-file synthesis
[ ] F9 Architecture — routing truth, Plot.md presence, discoverability walk
[ ] Aggregate findings + architectural read (Steps 3 / 3.5)
[ ] Walk every finding through apply / save-to-plan (Step 4)
[ ] Apply approved fixes (Step 5)
[ ] Render dashboard + open (Step 6)
Mark in_progress when entering a stage; completed when leaving it. For long frameworks (F2, F8, F9) emit a sub-update mid-run via TaskUpdate or a single chat line so the user knows progress.
Skipping the task list to "save time" defeats the purpose of this skill. The visible task list is non-optional.
.md filefind . -name '*.md' \
-not -path '*/.git/*' \
-not -path '*/.context/*' \
-not -path '*/attachments/*' \
-not -path '*/.obsidian/*' \
-not -path '*/.trash/*' \
-not -path '*/.claude/worktrees/*' \
-not -path '*/node_modules/*' \
-not -path '*/dist/*' \
-not -path '*/build/*'
No role-based skips. No "templates skipped", no "Daily skipped", no "Onboarding skipped". Every .md outside the technical skip list above gets audited against every framework rule that applies to its role. Classification routes the right rules to the right files; classification does NOT exclude files.
The patterns below are hints that bias the role registry built in Step 1.5. They're not authoritative — Step 1.5 reads sample content to confirm role assignments. A file matching \d{4}-\d{2}-\d{2}\.md outside any daily-shaped folder will not be classified daily if Step 1.5 finds no daily role; it'll be a regular note.
For backwards compatibility with vaults that do use the conventional names, the patterns still apply; for vaults that don't, Step 1.5 takes over.
| Role | Detection |
|---|---|
root-claude | ./CLAUDE.md or ./claude.md (cwd root only) |
folder-claude | any other CLAUDE.md / claude.md in subfolders |
claude-rules | files inside .claude/rules/ |
skill | SKILL.md files (anywhere) |
index | index.md (case-insensitive) |
readme | README.md (case-insensitive) |
daily | matches \d{4}-\d{2}-\d{2}\.md inside any Daily/ |
meeting | inside *meetings*/ or filename matches \d{4}-\d{2}-\d{2} - .+\.md outside Daily/ |
transcript | inside *transcripts*/ or files >100KB |
decision | inside *decisions*/ |
template | inside *templates*/ or filename ends -template.md |
context | inside any Context/ (case-insensitive) |
note | everything else |
Build the classification map:
{
"root_claude": "./CLAUDE.md",
"folder_claudes": [...],
"claude_rules": [...],
"skills": [...],
"indexes": [...],
"readmes": [...],
"dailies": [...],
"meetings": [...],
"transcripts": [...],
"decisions": [...],
"templates": [...],
"context_files": [...],
"notes": [...],
"by_folder": {...},
"stats": {"total_files": N, "total_bytes": B, "folders": F}
}
| Index | Built from | Used by |
|---|---|---|
vault_filename_index | every .md basename, lowercased, with and without extension | F2.2, F2.4 |
inbound_link_index | grep across vault for `[[name(| | ] |
routing_table | root CLAUDE.md routing/knowledge-routing section | F2.6 |
top_level_entries | find . -maxdepth 1 | F2.6 |
headers_index | per-file H2/H3 list with line numbers + byte sizes | F3.6, F5.2 |
protected_zones_map | per-file map of code/URL/path/frontmatter/wikilink spans | F3.x, G7.1 |
## 📋 Discovery — {N} markdown files across {F} folders, {B-formatted} total
| Role | Count |
|---|---:|
| Root CLAUDE.md | 1 |
| Folder CLAUDE.mds | {n} |
| Skills (SKILL.md) | {n} |
| .claude/rules | {n} |
| Indexes / READMEs | {n} |
| Context files | {n} |
| Notes | {n} |
| Dailies | {n} |
| Meetings | {n} |
| Transcripts | {n} |
| Decisions | {n} |
| Templates | {n} |
**Framework targets (every file in scope is audited):**
- F1 Anthropic CLAUDE.md → {n} CLAUDE.md files
- F2 Karpathy Wiki → {n} content notes (notes + context + decision + meeting + index + readme) + 1 schema doc check
- F3 Caveman → {n} instruction-layer files (CLAUDE.md + SKILL.md + .claude/rules + skill references)
- F4 Chroma Context Rot → {N} files (every `.md`)
- F5 Anthropic Memory → {N} files (every `.md`)
- F6 Progressive Disclosure → {n} skills
- G7 General Hygiene → {N} files
- F10 Claude 5 Rules → {n} instruction files (CLAUDE.md + .claude/rules + SKILL.md)
- F8 Reflection → {n} files in discovered curated-layer roles + {n} files in discovered session-layer roles ({window} window) for cross-vault synthesis
- F9 Architecture → routing table ({n} entries), {n} folders for index presence + freshness against the discovered convention, full navigation graph for discoverability, vault-specific orientation built from the discovered identity-layer
Running role discovery (Step 1.5) now…
This step replaces every hardcoded assumption about folder/file names. The pass files reference roles (context, projects, decisions, daily, meetings, transcripts, resources, skills, archive, identity, folder_index_convention). Step 1.5 discovers what folder/file in this vault plays each role — or records that the role is absent.
For each abstract role, the agent does the following — in order — until something resolves:
missing.The agent does not privilege a specific folder name. Context/, About/, Me/, Personal/, Identity/, or a frontmatter section on root CLAUDE.md can all play the identity role. The agent decides by reading.
These are patterns, not an exhaustive taxonomy. Every folder/file gets classified — these standard roles match the common shapes; anything that doesn't match becomes a custom role (Step 1.5.3).
| Standard role | Default layer | What it is | How to recognize it |
|---|---|---|---|
identity | curated | Files describing the user/operator (who they are, what they do, voice, preferences) | First-person bio content; mentions of role/title; voice or style guidelines |
context | curated | Folder(s) holding canonical knowledge about the user's world (business, strategy, brand, team, stakeholders) — broader than identity | Declarative present-tense facts about the operating environment; named entities (company, products, key people) |
projects | curated | Active or recent work units | Folder names matching projects mentioned in identity/context; per-folder index describing scope, status, deadlines |
decisions | curated | Persistent decision records | Files with date prefixes containing decision language ("decided", "chose", "going with") |
daily | session | Per-day journals or logs | Filenames matching YYYY-MM-DD\.md; folder organized by date hierarchy |
meetings | session | Meeting notes | Filenames with date + person/topic; content with attendee lists, action items |
transcripts | session | Raw call/voice transcripts | >100KB files with monologue/dialogue formatting |
resources | curated | Reference library (prompts, frameworks, swipe files, templates) | Reusable assets, not project-specific; often nested by category |
skills | curated | Skill / SOP / playbook content the user owns | SKILL.md files, or markdown describing repeatable processes/playbooks |
archive | archive | Intentionally deactivated content | Folder named archive/old/deprecated/_archive, or files marked archived in frontmatter |
folder_index_convention | (meta) | The user's chosen per-folder index file name | Most-frequent filename across folders that functions as an index (Plot.md, README.md, index.md, _index.md, CLAUDE.md, etc.) |
After standard-role discovery, every remaining top-level folder and every meaningful subfolder must be classified, not ignored. For each unclassified folder:
name — a slug derived from the folder name plus content (e.g., Building/ with prototype-build content → role name building; Garden/ with idea-incubation content → garden).layer — one of curated (canonical, durable), session (ephemeral, time-stamped), archive (deactivated), meta (tooling, system files), unknown (agent could not confidently classify).purpose — 1-line description of what the folder holds.is_standard: false.confidence: high | medium | low.If the agent cannot confidently assign a layer (confidence low) → emit an F9.0 finding asking the user to clarify the folder's purpose during walk. The answer persists in the registry going forward.
Custom roles are first-class. F8, F9, and the per-finding fixers operate on roles by layer, not by membership in the standard-role list. A custom building role with layer: curated participates in F8's curated-layer synthesis exactly like the standard context role.
Build this once, cache for the rest of the run, and persist to .claude/vault-roles.json at end of Step 1.5 so future runs start from confirmed assignments instead of re-prompting:
{
"vault_root": "./",
"discovered_at": "2026-05-08T14:23:00Z",
"folder_index_convention": {
"name": "README.md",
"confidence": "high",
"evidence": "23 of 31 non-trivial folders have README.md",
"coverage": 0.74
},
"roles": [
{"name": "identity", "path": "./About/me.md", "kind": "file", "layer": "curated", "is_standard": true, "confidence": "high", "purpose": "Operator bio + voice"},
{"name": "context", "path": "./Knowledge/", "kind": "folder", "layer": "curated", "is_standard": true, "confidence": "high", "purpose": "Org/strategy/brand canonical knowledge"},
{"name": "projects", "path": "./Work/", "kind": "folder", "layer": "curated", "is_standard": true, "confidence": "high", "purpose": "Active and recent work units"},
{"name": "daily", "path": "./Journal/", "kind": "folder", "layer": "session", "is_standard": true, "confidence": "medium", "purpose": "Per-day journal entries"},
{"name": "resources", "path": "./Library/", "kind": "folder", "layer": "curated", "is_standard": true, "confidence": "high", "purpose": "Prompts, frameworks, templates"},
{"name": "archive", "path": "./_archive/", "kind": "folder", "layer": "archive", "is_standard": true, "confidence": "high", "purpose": "Deactivated content"},
{"name": "building", "path": "./Building/", "kind": "folder", "layer": "curated", "is_standard": false, "confidence": "high", "purpose": "Active prototype builds and experiments"},
{"name": "garden", "path": "./Garden/", "kind": "folder", "layer": "curated", "is_standard": false, "confidence": "medium", "purpose": "Long-form essays in slow incubation"},
{"name": "inbox", "path": "./Inbox/", "kind": "folder", "layer": "session", "is_standard": false, "confidence": "high", "purpose": "Unprocessed capture; aged out into Garden or Resources"}
],
"missing_standard_roles": ["decisions", "meetings", "transcripts"],
"low_confidence_roles": ["garden"],
"unconfirmed_custom_roles": []
}
Frame this as "here's the structure I see in your vault" — not "here's what's missing from a checklist." The user's structure is the source of truth; the reference taxonomy is just one of the lenses the agent uses to recognize patterns.
## 🔍 Your vault structure — {N_folders} folders classified
| Folder | Role | Layer | Purpose | Confidence |
|---|---|---|---|---|
| ./About/me.md | identity | curated | Operator bio + voice | high |
| ./Knowledge/ | context | curated | Org/strategy/brand | high |
| ./Work/ | projects | curated | Active and recent work | high |
| ./Journal/ | daily | session | Per-day journal | medium |
| ./Library/ | resources | curated | Prompts, frameworks, templates | high |
| ./_archive/ | archive | archive | Deactivated content | high |
| ./Building/ | building (custom) | curated | Active prototype builds | high |
| ./Garden/ | garden (custom) | curated | Long-form essays in slow incubation | medium |
| ./Inbox/ | inbox (custom) | session | Unprocessed capture | high |
**Folder-index convention I detected:** README.md (74% coverage)
I'll audit this structure as it stands. F9.0 may suggest specific structural improvements where I see concrete evidence they'd help your vault (not just because the reference taxonomy contains them) — you'll review each suggestion in walk. Confirmed assignments persist to `.claude/vault-roles.json`.
Running F1 now…
The summary frames what the user has first. F9.0 findings about gaps appear later in the walk, with reasoning grounded in observed problems — not as a deficiency table at discovery time.
layer == 'curated' (standard or custom). F8's session layer = every role with layer == 'session'. F9 walks every folder regardless of role membership.building is layer: curated, F8 looks at Building/ for merge candidates, contradictions, themes, and promotions exactly like Context/.decisions is missing, F8 proceeds without it; F9.0 produces a finding suggesting the user create one (or assign the role to an existing custom folder)..claude/vault-roles.json exists from a prior run, the agent loads it as the baseline and only re-classifies new folders or folders the user flagged for re-review. Confirmed assignments don't re-prompt every run.This is not a regex pass. For each framework, read its pass-implementation file, then apply every check it defines to the files in that framework's scope. Triggers in the pass files surface candidates; the agent reads context and judges each candidate before producing a finding. Every finding includes reasoning specific to the case.
Why: a regex match on \bjust\b flags "just run X" (where "just" is doing real work — contrasting with running multiple) the same as "It's just a quick check" (where it's filler). Only an agent reading the line in context can tell which is which. The same applies to "be careful" (sometimes a closing reminder, sometimes a vague platitude), IMPORTANT: (sometimes earned, sometimes inflation), voice.md + brand.md (sometimes overlapping, sometimes intentionally separated), and most other framework signals.
F10 runs after G7: it is file-local like F1–G7 and shares their targets. F8 runs second-to-last (cross-file synthesis). F9 runs last because it consumes the structural picture F1–G7 produced and operates on the largest blast radius (whole-vault structural reasoning, Plot.md generation, reorg proposals). Running them last keeps fix application ordered smallest-to-largest in Step 5.
Update the TaskCreate task for the current framework to in_progress before starting it; completed when its findings are logged. Mid-framework sub-updates allowed for long runs (F2, F8, F9).
For each framework:
Read the pass-implementation file for that framework (e.g., references/passes-anthropic-claude-md.md for F1). Cache it for the duration of the framework run.
Determine the file scope from the table at the top of this SKILL.md (e.g., F1 = every CLAUDE.md; F6 = every SKILL.md; F4/F5/G7 = every .md; F10 = every CLAUDE.md, .claude/rules/ file and SKILL.md).
For each check in the pass file:
Read tool, then apply the agent-judgment criteria the pass file lists. Read other files (linked targets, sibling clusters, the file's index) when judgment requires it.reasoning field (1–2 sentences specific to this case, not a generic restatement of the rule).Run the framework's vault-wide checks (using indexes from Step 1.3): orphan detection, dead wikilinks, distractor pairs, schema compliance, etc. — see each pass file's "vault-wide" sections.
Emit one progress line when the framework completes:
F1 Anthropic CLAUDE.md — read 14 CLAUDE.md files, judged 312 candidates → 22 findings (5 fail · 17 warn)
The judged count vs findings count is a sanity check: if they're roughly equal, the run was lazy (regex candidates became findings without judgment); if judged ≫ findings, judgment is filtering false positives — that's the intended behavior.
After completing each framework's run, sample 5 random findings (or all findings if < 5). Read each one's reasoning field. If > 40% of sampled reasonings are paraphrases of the rule rather than case-specific judgment ("This file uses too many em dashes" — paraphrase; "These em dashes appear in callout headers where the writer was substituting for colons; replacing with colons preserves the cadence" — judgment), stop and re-run that framework with deeper reads.
This is a hard gate. The skill's value is judgment, not regex. Shipping a framework's findings without enforcing this gate is a bug.
{
"framework": "F1",
"check_id": "F1.2",
"check_name": "Specificity heuristic",
"path": "./Projects/foo/CLAUDE.md",
"line": 42,
"severity": "warn",
"excerpt": "Be careful with auth",
"reasoning": "This rule sits in the top half of a CLAUDE.md that's otherwise a routing index — there's no specific auth boundary, file path, or function named anywhere else. As a primary rule it falls into the 35%-compliance bucket; either anchor it to a specific path/function or remove it.",
"action": "Either delete or rewrite as 'All /api/admin/* routes must call requireAdmin() from src/auth/middleware.ts'.",
"fixable": false,
"fixed": false,
"citation": "anthropic-claude-md.md → Specificity beats vagueness"
}
The reasoning field is mandatory. Every finding has it.
Every finding ships a fix. The pass file always emits fixable: true. Old fixable: false "manual review" findings are gone — checks that historically went flag-only (F1.x, F4.x, F5.x) now ship walk-only fix proposals like every other framework.
The fix_status field is set by Step 5 after the user walks each finding. Possible values:
applied → fix executed this run (green FIXED pill)saved_to_plan → fix written into the plan file for staged execution (blue SAVED pill)declined → user explicitly chose not to fix this item in walk (grey DECLINED pill)failed → fix attempted but failed safety check (red FAILED pill, with failure_reason)There is no "skipped" or "deferred" state. Either the fix was applied, saved as a planned step, declined explicitly per-item, or failed mechanically. Open warnings do not survive the run.
For each framework F1–F8, count: total findings, severity breakdown (fail/warn/info), fixable count, files touched.
For each framework F1..G7 and F10:
deduction = (fail_count × 5) + (warn_count × 1)
capped_deduction = min(deduction, 25)
score = max(0, 100 - sum(capped_deduction for F1..G7, F10))
F10 does affect the score — its findings are lint-like rule defects, same as F1–G7. F8 and F9 do not affect the score. F8 surfaces synthesis opportunities; F9 surfaces structural/discoverability changes. Both are optimization opportunities, not lint failures — counting them would conflate "vault hygiene" with "vault could be reorganized." Track F8 in an "Insights surfaced / applied" tile and F9 in an "Architecture changes / proposed / applied / saved-to-plan" tile.
| Score | Interpretation |
|---|---|
| 90–100 | Well-tuned. Run audit monthly. |
| 70–89 | Visible drift. Address top findings. |
| 50–69 | Bloat is hurting performance. |
| <50 | Vault rot. Major cleanup needed. |
After scoring, do not render a long markdown summary in chat. Emit one short block:
✅ All 10 frameworks applied.
| Framework | Files | Checks | Findings | Fail | Warn | Fixes proposed |
|---|---:|---:|---:|---:|---:|---:|
| F1 Anthropic CLAUDE.md | … | … | … | … | … | … |
| F2 Karpathy Wiki | … | … | … | … | … | … |
| F3 Caveman | … | … | … | … | … | … |
| F4 Chroma Context Rot | … | … | … | … | … | … |
| F5 Anthropic Memory | … | … | … | … | … | … |
| F6 Progressive Disclosure | … | … | … | … | … | … |
| G7 Hygiene | … | … | … | … | … | … |
| F10 Claude 5 Rules | … | … | … | … | … | … |
| F8 Reflection | … | … | … | … | … | … |
| F9 Architecture | … | … | … | … | … | … |
| **TOTAL** | … | … | … | … | … | … |
Score: {score_before}/100 (F8 + F9 not scored). Walking the architectural read next…
Before walking fixes, write a short architectural read of the vault — top 1–3 things wrong with the structure as a whole, with reasoning grounded in Context/. This is the layer the user explicitly asked for: the agent demonstrating it understood what the vault means, not just what it failed.
Format:
### Architectural read
{1–3 short paragraphs. Each paragraph: one structural observation, why it matters for *this* user's world (cite Context/), the F9 finding(s) that surfaced it, the proposed direction.}
This paragraph also goes verbatim into the HTML dashboard (above the framework rows) so it's the first thing the user sees when they open the report. Keep it under 250 words total — synthesis, not a recap of findings.
If the agent cannot identify a structural observation worth surfacing (the vault is well-organized): write one sentence saying so, citing the F9 metrics that justify the assessment. Don't pad.
Every finding ships a fix proposal. Step 4 walks the user through them. There is no "skip this framework," no "flag only," no "fix later." Each finding ends in one of four explicit states: applied, saved_to_plan, declined, or failed.
Before walking, fire one AskUserQuestion:
"Audit complete: {N_total} findings across 9 frameworks ({fail} fail · {warn} warn · {info} info). Every finding has a proposed fix. Pick mode:"
Options:
failed (mechanical: OS lock, file conflict, dependency missing). No saved_to_plan, no declined. Use this when you've said "apply everything."Option 1 is the default. The user picks 2 only when they want item-by-item gating. The user's prior instruction "apply everything" maps to Option 1, not Option 2.
Hard rules when this mode is active:
saved_to_plan outcomes. That state is removed from the available fix_status set.declined outcomes. Same.<!-- automated split, review headings --> marker; mark the split as applied with applied_with_caveat: true).failed with failure_reason (OS-locked file, missing parent directory, file conflict, framework-safety check rolled back the fix). Failed fixes are reported in the dashboard with their reason — they're not silently skipped.Order: F1 → F2 → F3 → F4 → F5 → F6 → G7 → F8 → F9. Within F8/F9, smallest blast radius first (per pass file).
For each finding:
proposed_edit or migration step.| Finding type | Sub-prompt options |
|---|---|
| Mechanical (G7.1 em dashes, G7.3/F1.10 duplicate H1) | Apply now / Decline this item / Apply all remaining of this type without asking |
| Wikilink repoint (F2.2) | Apply with target [X] / Pick a different target / Decline |
| Cross-ref add (F2.4) | Apply / Edit linked-file list / Decline |
| Caveman substitution (F3.1–F3.4 per file) | Apply all in this file / Walk substitutions in this file / Decline this file |
| Skill-vault dedup (F6.11) | Apply / Decline |
| CLAUDE.md edit (F1.x) | Apply drafted edit / Edit text first then apply / Save to plan / Decline |
| Memory split / rename (F5.1, F5.3) | Apply with proposed split-points or filename / Edit then apply / Save to plan / Decline |
| Context-rot reorg (F4.3, F4.4, F4.6, F4.7) | Apply drafted reorder / Edit text / Save to plan / Decline |
| Reflection — contradiction (F8.1) | Winner: [A] / [B] / [neither — defer to a third source] → Apply rewrite to loser / Edit text / Decline |
| Reflection — merge (F8.2) | Canonical: [A] / [B] / [C] → Confirm merge + redirect + archive / Save to plan / Decline |
| Reflection — stale (F8.3) | Apply rewrite / Edit text / Decline |
| Reflection — theme (F8.4) | Create at [proposed path] / Pick a different path / Edit content first / Decline |
| Reflection — promotion (F8.5) | Destination: [proposed] / [pick other] → Apply append + leave wikilink stub / Decline |
| Routing rewrite (F9.1) | Apply drafted entry / Edit text / Decline |
| Plot.md generation (F9.2) | Apply drafted Plot.md / Edit Purpose line + descriptions first / Decline |
| Discoverability fix (F9.3) | Add to Plot.md / Add routing entry / Move file / Archive / Decline |
| Misplaced file (F9.4) | Move to [proposed folder] / Pick different folder / Broaden current folder's Plot.md instead / Decline |
| Folder duplication (F9.5) | Merge into [A] / Merge into [B] / Clarify Plot.md purposes on both / Save to plan / Decline |
| Reorg proposal (F9.6) | Apply now (walk migration steps) / Save to plan (write to {date}-reorg.md) / Decline |
| Orientation gap (F9.7) | Apply drafted CLAUDE.md edit / Edit text first / Save to plan / Decline |
Every option reaches a terminal state for this finding. There is no "skip" option that leaves the finding open. "Decline" is recorded as an explicit user decision and shown in the report — it's a decision, not a deferral.
fix_status (applied / saved_to_plan / declined) and any per_item_target chosen by the user.{i}/{N} progress note every 10 findings.Save-to-plan path resolution (uses the role registry):
roles.decisions.path is set → save under {decisions.path}/{YYYY-MM-DD}-reorg.md.*decisions*/, *logs*/, *records*/ (case-insensitive) → use that.audits/ at vault root and save there. Note the missing decisions role to F9.0 — the user gets a fix proposal to formalize a decisions-equivalent folder.When findings are routed to save-to-plan, append checklist entries to the resolved path:
---
status: pending
type: reorg-plan
tags: [optimizer, plan]
date: 2026-05-08
source: optimizer run 2026-05-08T14:23:00Z
---
# Vault reorg plan — 2026-05-08
Generated by optimizer. Each item is a fix proposal saved for staged execution. Walk them when ready.
## F9.6 Reorg proposals
- [ ] **Merge `Notes/` into `Resources/notes/`** — F9.5 finding cluster: both folders hold scratch with 38% file-name overlap. Migration:
- Move 12 files from `Notes/` to `Resources/notes/`.
- Redirect 4 inbound wikilinks.
- Update root CLAUDE.md routing entry to remove `Notes/`.
- Delete empty `Notes/` directory.
- Reasoning: `Resources/notes/` Plot.md states it holds reference notes; `Notes/` Plot.md states the same. Per `Context/me.md`, the user's stated convention is one resource library — keeping two is structural drift.
## F8.2 Merge candidates
- [ ] **Merge `Notes/2026-q1-strategy.md` and `Projects/positioning/research/strategy-thoughts.md` into `Context/strategy.md`** — F8.2 finding. Steps: …
(continues per saved finding)
The plan file is itself audited next run — F1/G7 conventions apply.
If the agent skips a finding (forgets to fire its sub-prompt, batches multiple findings into one prompt, or treats "no answer" as decline) — that's a bug. Walk every finding individually. The visible task list catches this: if a framework's task moves to completed while findings remain unwalked, the verification step in 5.7 will flag it.
fix_status per finding)Apply in this order (smallest blast radius first). For every finding, set fix_status to applied, saved_to_plan, declined, or failed based on what happened in Step 4 + this step. The HTML render uses fix_status directly.
Save-to-plan items are written to the plan file in Step 4.3 — this step (5) only handles the items the user picked "apply now" for. (In Bulk-apply mode there are no save-to-plan items.)
Before applying any fix, snapshot per-role and per-framework metrics into the before_metrics cache. These are what the dashboard's before/after columns render against.
Per-role metrics (one row per role in the registry, plus a TOTAL row):
file_counttotal_chars (sum of body bytes, post-frontmatter)total_tokens_est (chars / 4)em_dash_count (G7.1 trigger output)frontmatter_complete_pct (files with status: + ≥2 tags: / total)wikilink_orphan_count (no inbound wikilink)index_coverage_pct (folders with the discovered folder-index file / non-trivial folder count)findings_open (count of findings touching files in this role)Per-framework metrics (F1–F9 + TOTAL):
findings_countfail_count, warn_count, info_countapplied_count (starts at 0)failed_count (starts at 0)score_contribution (per the Step 3 formula; F8/F9 always 0)Cache these. Apply fixes (5.1–5.8). Then run 5.9.
applied finding: replace — → . , – → , in stripped body only.fix_status: failed with failure_reason.Edit with replace_all: true per file.fix_status: applied on every G7.1 finding whose file was successfully fixed.Edit. Set fix_status: applied.[[Old Target]] with the picked replacement.fixed: true per finding fixed; fixed: false for any skipped or low-confidence ones the user said no to.fix_status: failed.rm the duplicate, set fix_status: applied.references/passes-caveman.md to the stripped body.fix_status: failed for that file's findings.fixed: true on every F3.x finding for files the agent successfully substituted.Apply F8 fixes last (largest blast radius). Order within F8 is smallest-to-largest:
See [[Winner]] for current state. (defer mode) or delete the line entirely (drop mode); the user picks per item in Step 4. Use Edit. Set fix_status: applied.## History section with the prior wording if it has decision context (per pass file rule). Add wikilink to superseding source. Set fix_status: applied.fix_status: failed, surface as flag-only with the abort reason in reasoning_post.[[SourceName]] and [[SourceName|alias]] patterns; replace each with [[CanonicalName|alias]] (or [[CanonicalName]]).fix_status: failed.{archive-equivalent}/{YYYY-MM-DD}-merged/. If the vault has no archive-equivalent, ask where before moving anything. Use Bash mv.fix_status: applied.Context/{theme-slug}.md or Resources/{theme-slug}-MOC.md).status:, tags:, type:, date: (G7.2 compliance) and contain no em dashes (G7.1).fix_status: applied.See [[Target#section]].fix_status: applied.Cross-framework safety check after every F8 fix:
fix_status: failed.reasoning_post; the next audit run will surface it as F5 flag-only (don't roll back, but log).Apply F9 fixes after F8. Order: smallest blast radius first.
applied finding: Edit the root CLAUDE.md routing table with the user-confirmed line(s). Per-item only; no batch rewrites. This is the single legitimate path for editing a CLAUDE.md (per-item user approval).applied finding:
Write the agent-drafted Plot.md (user already confirmed Purpose + child descriptions in walk).Edit to update the Children list; preserve any user edits to Purpose if not deprecated.applied finding, apply the user-chosen repair:
Edit the parent Plot.md.Edit root CLAUDE.md routing.Bash mv; redirect inbound wikilinks (same as F8.2 mechanic).Bash mv to the archive-equivalent from the role registry. If the vault has none, ask before moving.Bash mv to user-chosen folder. Update source folder's Plot.md (remove child) and target folder's Plot.md (add child). Redirect inbound wikilinks.applied micro-step). For "clarify Plot.md purposes" findings: Edit both Plot.mds.Edit root CLAUDE.md with the agent-drafted section the user confirmed. Per-item only.Cross-framework safety check after every F9 fix:
fix_status: failed.failure_reason; the next audit run will flag F1.1.fix_status: failed.For findings whose checks historically didn't have a specialized fix procedure (most of F1, F4, F5), the runner is generic:
proposed_edit from the finding (the user already confirmed or edited it in Step 4.2).fix_status: failed.applied came through walk-with-explicit-confirmation (Step 4.2). Never bulk-apply CLAUDE.md edits via this runner.fix_status: applied on success.This runner handles, e.g.:
Bash mv + inbound wikilink redirectThe fix sub-procedure can vary per finding type — what stays constant is: read → apply confirmed edit → safety check → status. The pass file's per-check guidance still constrains what the agent drafts.
After Step 5.1–5.8 finish, re-measure the same metrics captured in 5.0. This is the source of truth for the dashboard's AFTER columns and the recomputed score. Skipping this step is the bug that produced the 46/100 BEFORE-only render — never skip it.
Re-measure:
{{SCORE_AFTER}}. Do not reuse the BEFORE score.tokens_saved_per_role, em_dashes_removed, frontmatter_pct_delta, findings_resolved_per_framework.If the re-measurement shows a finding category whose count increased (e.g., a fix accidentally added new orphans), surface that as a regression-warning row in the dashboard — the fix succeeded mechanically but produced a downstream issue.
The re-measurement should take seconds, not minutes — same probes as Step 1 + the framework triggers, but only on files touched by Step 5 plus the small global counts (em dashes vault-wide, frontmatter coverage). Cache for Step 6.
After applying:
total_applied = findings with fix_status: applied.total_saved_to_plan = findings with fix_status: saved_to_plan.total_declined = findings with fix_status: declined.total_failed = findings with fix_status: failed.These four should equal total_findings. No null or unset fix_status is permitted — every finding hit Step 4 and was walked. If any finding has unset fix_status after Step 5, the orchestrator skipped a walk; halt and surface the bug to the user before rendering. (HTML still renders correctly from per-finding flags but the skipped finding signals a Step 4.4 bug.)
If any fix fails (file missing, edit conflict, ambiguous match, protected-zone violation) → stop, report which item failed, ask the user how to proceed. Never silently skip a failure.
.context, attachments, .git, .obsidian, .trash, node_modules, dist, build).Snapshot before/after per framework:
| Variable | Source |
|---|---|
{{F1_FILES}}, {{F1_CHECKS}}, {{F1_FINDINGS_BEFORE}}, {{F1_FINDINGS_AFTER}}, {{F1_FAIL_BEFORE}}, {{F1_FAIL_AFTER}}, {{F1_WARN_BEFORE}}, {{F1_WARN_AFTER}}, {{F1_INFO_BEFORE}}, {{F1_INFO_AFTER}}, {{F1_APPLIED}}, {{F1_FAILED}}, {{F1_DETAILS}} | F1 bucket — every count has a before/after pair so the dashboard can show the delta |
| same for F2, F3, F4, F5, F6, G7, F8, F9 | each bucket |
{{ARCHITECTURAL_READ}} | Step 3.5 paragraph, rendered above the framework rows |
{{F8_INSIGHTS_SURFACED}}, {{F8_INSIGHTS_APPLIED}} | F8-only — drives the "Insights surfaced / applied" tile |
{{F9_PROPOSALS}}, {{F9_APPLIED}}, {{F9_FAILED}} | F9-only — drives the "Architecture changes" tile (in bulk-apply mode there's no Saved/Declined column) |
{{ROLE_METRICS_TABLE}} | per-role before/after table (Step 6.1.5) |
{{FRAMEWORK_METRICS_TABLE}} | per-framework before/after table (Step 6.1.5) |
{{REORG_PLAN_PATH}} | path to the saved reorg plan if any saved-to-plan items exist (selective walk only); empty in bulk-apply mode |
{{TOTAL_FIXABLE}} | count of all findings with fixable: true |
{{TOTAL_FIXED}} | count of all findings with fixed: true |
{{TOTAL_FIXABLE_NOT_FIXED}} | count of findings with fixable: true && fixed: false (skipped/denied) |
{{TOTAL_BEFORE}}, {{TOTAL_AFTER}}, {{TOTAL_SAVED}}, {{TOTAL_PCT}} | sum across all frameworks |
{{SCORE_BEFORE}}, {{SCORE_AFTER}}, {{SCORE_DELTA}}, {{SCORE_DELTA_SIGN}} | scoring formula before & after |
{{SESSION_BEFORE}}, {{SESSION_AFTER}}, {{SESSION_PCT}} | root CLAUDE.md token count before & after |
{{ANNUAL_SAVINGS}} | {{TOTAL_SAVED}} × SESSIONS_PER_WEEK × WEEKS_PER_YEAR, K/M suffix |
{{SESSIONS_PER_WEEK}} (default 50) | user override if specified |
{{WEEKS_PER_YEAR}} (default 50) | — |
{{FILES_SCANNED}}, {{FOLDERS_COVERED}} | from Step 1 |
{{ORG_NAME}} | Context/business.md or Context/organization.md title or name: frontmatter; fallback cwd folder name |
{{DATE}}, {{TIMESTAMP}} | today (YYYY-MM-DD) and ISO UTC |
For each framework's {{Fx_DETAILS}}: render the findings list as HTML (severity pills, paths, excerpts, actions, framework citation). Cap at top-25 findings per framework — if more, append "and N more flagged in {decisions-folder}/{date}-vault-audit-findings.json".
Format integers with thousands separators. Format percentages to one decimal.
These two tables are the dashboard's headline evidence that the run changed the vault, not just described it. Render both above the framework detail sections (between the architectural read and the framework rows).
Per-role table ({{ROLE_METRICS_TABLE}}) — one row per role in the registry plus a TOTAL row:
| Role | Files | Tokens before → after | Em dashes before → after | Frontmatter complete before → after | Index coverage before → after | Findings open before → after |
|---|---|---|---|---|---|---|
| identity | 6 | 4,200 → 4,150 (-50) | 12 → 0 (-12) | 17% → 100% (+83pp) | — | 6 → 0 |
| context | 10 | 12,400 → 11,890 (-510) | 23 → 0 (-23) | 80% → 100% (+20pp) | 100% → 100% | 5 → 0 |
| projects | 14 | 8,200 → 8,200 (0) | 0 → 0 | 71% → 100% (+29pp) | 0% → 100% (+100pp) | 4 → 0 |
| daily | 241 | 145,000 → 145,000 (0) | 18 → 0 | 95% → 100% | — | 18 → 0 |
| meetings | 611 | 412,000 → 412,000 | 89 → 0 | 92% → 100% | — | 89 → 0 |
| (etc.) | ||||||
| TOTAL | 1,710 | 2.1M → 1.9M (-200K) | 289 → 0 | 67% → 100% | 12% → 100% | 502 → 12 |
Style each delta cell with green for improvements, red for regressions, gray for unchanged. Em dash + frontmatter columns drop "before → after" when both are 0.
Per-framework table ({{FRAMEWORK_METRICS_TABLE}}) — one row per framework F1–F9 plus TOTAL:
| Framework | Findings before → after | Fail before → after | Warn before → after | Info before → after | Applied | Failed |
|---|---|---|---|---|---|---|
| F1 Anthropic CLAUDE.md | 9 → 0 | 2 → 0 | 6 → 0 | 1 → 0 | 9 | 0 |
| F2 Karpathy Wiki | 4 → 0 | 1 → 0 | 2 → 0 | 1 → 0 | 4 | 0 |
| F3 Caveman | 2 → 0 | 1 → 0 | 1 → 0 | 0 → 0 | 2 | 0 |
| F4 Chroma | 1 → 0 | 0 → 0 | 1 → 0 | 0 → 0 | 1 | 0 |
| F5 Memory | 3 → 1 | 2 → 0 | 1 → 1 | 0 → 0 | 2 | 1 |
| F6 Progressive Disclosure | 3 → 0 | 1 → 0 | 2 → 0 | 0 → 0 | 3 | 0 |
| G7 Hygiene | 3 → 0 | 1 → 0 | 1 → 0 | 1 → 0 | 3 | 0 |
| F8 Reflection | 4 → 0 | 1 → 0 | 2 → 0 | 1 → 0 | 4 | 0 |
| F9 Architecture | 5 → 0 | 1 → 0 | 1 → 0 | 3 → 0 | 5 | 0 |
| TOTAL | 34 → 1 | 9 → 0 | 17 → 1 | 8 → 0 | 33 | 1 |
Score row, separately, with before → after rendered prominently:
Score (F1–G7): 46 → 97 (+51) · "Vault rot" → "Well-tuned"
These tables are the difference between "here's what we need to do" (which is what saved-to-plan/declined would have been) and "here's what was done" (which is what bulk-apply mode produces). The dashboard frames the run retrospectively.
Templates (read once, substitute many times):
| File | Used as |
|---|---|
references/report-template.html | main shell |
references/report-row-template.html | one row per framework in the summary table |
references/report-section-template.html | one detail section per framework |
references/report-finding-template.html | one card per finding inside a detail section |
Steps:
report-row-template.html with the framework's metrics → append to {{ROWS}} accumulator.report-finding-template.html → append to that section's {{FINDINGS_HTML}}. HTML-escape EXCERPT, REASONING, and ACTION (<, >, &, "). The REASONING field is mandatory — if the finding has no reasoning text, the skill is bugged; fail loudly.{{STATUS_PILL}} per finding from fix_status:
applied → <span class="pill fixed">FIXED THIS RUN</span>saved_to_plan → <span class="pill saved">SAVED TO PLAN</span> (links to {{REORG_PLAN_PATH}})declined → <span class="pill declined">DECLINED</span>failed → <span class="pill failed">FAILED</span> (with failure_reason shown inline){{FINDINGS_HTML}} empty and substitute {{CLEAN_STATE}} with <div class="clean">✅ All checks passed. No findings for this framework.</div>.{{MORE_NOTE}} with <p class="more">…and {N} more findings logged in {YYYY-MM-DD}-vault-audit-findings.json.</p>. Otherwise leave empty.report-section-template.html → append to {{DETAILS}} accumulator.{{ROWS}} and {{DETAILS}} in the main template.{{PLACEHOLDER}} (header stats, score, session impact, etc.).{{...}} or {{ }}. If any remain → fail loudly, never save a half-rendered file.The {{FRAMEWORK_WHY}} for each section comes from the matching framework reference's "Core thesis" — one short paragraph max. Fixed strings:
Pick the save folder via the role registry:
roles.decisions.path is set → save there.roles.archive.path is set + writable → save there.audits/ at vault root and save there. Note the missing role to F9.0.Save HTML to {decisions-folder}/{YYYY-MM-DD}-vault-audit.html.
Save the raw findings JSON to {decisions-folder}/{YYYY-MM-DD}-vault-audit-findings.json (so users can mine the full list).
Read the HTML back to confirm content present (not just file present). On mismatch → retry once → fail loudly.
Part 1 — open in browser. Bash: open "{path}" (macOS) / xdg-open (Linux) / start (Windows).
Part 2 — emit the full saved HTML inside an html code fence. Runtimes with artifact support (claude.ai, Claude Desktop) render it as a side panel; CLI shows it as a code block (browser already opened in Part 1). This is the only place HTML appears in chat — don't dump fragments mid-run, don't paste it twice, don't wrap commentary around it.
Part 3 — summary (after the HTML, no commentary in between):
✅ Optimizer run complete — here's what changed:
Report: {decisions-folder}/{YYYY-MM-DD}-vault-audit.html
JSON sidecar: {decisions-folder}/{YYYY-MM-DD}-vault-audit-findings.json
Score (F1–G7): {score_before} → {score_after} ({delta_sign}{delta}) — "{interpretation_before}" → "{interpretation_after}"
{N} files audited · {applied_total} fixes applied · {failed_total} mechanical failures (see report for reasons)
Em dashes: {em_before} → {em_after} (-{em_delta}) · Frontmatter coverage: {fm_pct_before} → {fm_pct_after} (+{fm_pct_delta}pp) · Folder-index coverage: {idx_pct_before} → {idx_pct_after} (+{idx_pct_delta}pp)
Tokens saved: {tokens_saved} ({tokens_pct_saved}% reduction in agent-load) · ~{annual_savings} tokens/year saved at {sessions}/week
The summary frames the run retrospectively — what was done, what changed. In bulk-apply mode, "saved-to-plan" and "declined" lines are absent; only applied and failed exist. In selective-walk mode, append the saved-to-plan and declined counts as additional lines.
Stop. Do not propose follow-up actions.
Context/, Projects/, Daily/, Plot.md, me.md, etc. are examples in the documentation; the runtime resolves abstract roles to whatever the user actually has.Building/, Garden/, anything user-specific) are first-class participants in every framework that operates on their layer. Skipping them defeats the discovery pass..claude/vault-roles.json at end of Step 1.5 so future runs start from the user's confirmed view of their vault, not from a fresh re-classification that re-prompts everything.Lab/ (custom curated) is already playing the projects role, no F9.0 tier-2 finding fires for "you should add a projects folder." Function over name.applied / failed in bulk-apply mode. The user said apply everything; that means everything. If applying is mechanically dangerous, attempt the safest mechanical version (e.g., split a 222KB file at H2 boundaries with an automated-split marker, mark applied_with_caveat: true). The only valid escape is mechanical failure with a recorded failure_reason.{{SCORE_AFTER}} and the per-role/per-framework after columns. A dashboard that shows only BEFORE-state numbers is a bug.AskUserQuestion walk in Step 4..context, attachments, .git, .obsidian, .trash, node_modules, dist, build). .context/ in particular is Baalda's index and CRDT store — reading it is pointless, writing it is corruption.mv/rm a note in a synced vault (.context/config.json present). Move, rename and delete go through the app or the MCP move_note / move_folder / delete_note tools, or the finding is saved to plan as a human step. See Baalda rules → R2.fix_status set to applied, saved_to_plan, declined, or failed. Unset is a bug..claude/rules/. F8's scope is the curated layer; F9's scope excludes SKILL.md and .claude/rules/.fix_status: failed.Intelligence/archive/{date}-merged/.in_progress → completed as the run unfolds. Skipping the task list defeats the skill.{{placeholder}} survives → fail.Eight frameworks plus practitioner field notes converge on one conclusion: vaults rot without active maintenance. Karpathy calls it lint. Anthropic calls it the pruning test + the memory budget. Chroma calls it context rot. Caveman calls it token discipline. Progressive disclosure calls it layering. Anthropic Dreams calls it reflection — read the curated layer alongside recent sessions and surface what per-file lint can't see. F9 adds architecture & discoverability: walk the actual co-worker-Claude path, verify routing matches folder reality, ensure every folder has a current Plot.md, and confirm every file is reachable from the root in ≤ 3 hops. The audit encodes every auditable signal as a discrete check, applies them all on every run, walks every finding through apply-now / save-to-plan / declined, and saves a categorized HTML dashboard with the agent's architectural read at the top.
Run weekly while the vault is growing. Monthly once stable. Each run appends a dated dashboard so the user can watch the score climb.
For the deep rules behind each pass, read the relevant references/{framework}.md and references/passes-{framework}.md. Each is complete on its own — TOC, full rules, exact regex, finding format, source URLs.
references/anthropic-architecture.md (opens in a new tab)references/anthropic-claude-md.md (opens in a new tab)references/anthropic-dreams.md (opens in a new tab)references/anthropic-managed-memory.md (opens in a new tab)references/caveman-compression.md (opens in a new tab)references/chroma-context-rot.md (opens in a new tab)references/claude-5-rules.md (opens in a new tab)references/karpathy-llm-wiki.md (opens in a new tab)references/passes-anthropic-claude-md.md (opens in a new tab)references/passes-anthropic-memory.md (opens in a new tab)references/passes-architecture.md (opens in a new tab)references/passes-caveman.md (opens in a new tab)references/passes-chroma-context-rot.md (opens in a new tab)references/passes-claude-5-rules.md (opens in a new tab)references/passes-general-hygiene.md (opens in a new tab)references/passes-karpathy-wiki.md (opens in a new tab)references/passes-progressive-disclosure.md (opens in a new tab)references/passes-reflection.md (opens in a new tab)references/practitioner-notes.md (opens in a new tab)references/progressive-disclosure.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub benaios/benai-skills --plugin all-skills130 skills in this plugin
/adsComprehensive paid advertising audit and optimization for any business type. Performs full multi-platform audits (Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads, Microsoft Ads), single-platform deep analysis, conversion tracking health checks, creative quality assessment, budget allocation optimization, bidding strategy evaluation, and compliance verification. Industry detection for SaaS, e-commerce, local service, B2B enterprise, info products, mobile app, real estate, healthcare, finance, and agency. Triggers on: "ads", "PPC", "paid advertising", "Google Ads", "Meta Ads", "Facebook Ads", "LinkedIn Ads", "TikTok Ads", "Microsoft Ads", "Bing Ads", "ad audit", "campaign audit", "ROAS", "conversion tracking", "creative fatigue", "bid strategy".
/ads-auditFull multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads, and Microsoft Ads accounts. Generates health score per platform and aggregate score. Use when user says "audit", "full ad check", "analyze my ads", "account health check", or "PPC audit".
/ads-budgetBudget allocation and bidding strategy review across all ad platforms. Evaluates spend distribution, bidding strategy appropriateness, scaling readiness, and identifies campaigns to kill or scale. Uses 70/20/10 rule, 3x Kill Rule, and 20% scaling rule. Use when user says "budget allocation", "bidding strategy", "ad spend", "ROAS target", "media budget", or "scaling".
4 plugins in 3 repositories ship this exact skill · first indexed Sep 18, 2026
Other plugins' skills for the same job