From claude-code-hermit
Enriches hermit/Cortex Markdown files with frontmatter (title, created) and tags. Scans sessions, proposals, artifacts for gaps; clusters similar files for batch confirmation before writes.
npx claudepluginhub gtapps/claude-code-hermit --plugin claude-code-fitness-hermitThis skill uses the workspace's default tool permissions.
Brings existing hermit content up to date with the frontmatter contract. Safe to run multiple times — only touches files that are missing required fields.
Scans project .md files to add or fix YAML frontmatter (summary + read_when) for discovery by Reflex context routers.
Sets up Hermit Cortex Obsidian vault in project root: creates obsidian/ directory with Brain.md, Cortex.md, Evolution.md, System Health.md, Connections.md, and Cortex Portal.md from templates. Generates cortex-manifest.json scanning for artifacts. Run once per project.
Performs extended vault cleanup: full audit plus stale content scan, outdated references, content quality review, redundant tags, broken external links, and template compliance. Ideal for messy Markdown vaults.
Share bugs, ideas, or general feedback.
Brings existing hermit content up to date with the frontmatter contract. Safe to run multiple times — only touches files that are missing required fields.
Scan for missing fields:
sessions/S-NNN-REPORT.md — missing tagsproposals/PROP-NNN.md — missing tagscortex-manifest.json — missing frontmatter (title, created) or tagsIf cortex-manifest.json does not exist or artifact_paths is empty: skip artifact scanning entirely and include in the summary: "No artifact paths configured — skipping artifact enrichment. Run /claude-code-hermit:obsidian-setup to configure."
Report a full summary before doing anything. No writes in this step.
Cortex sync — gaps found:
Sessions without tags: 18
Proposals without tags: 4
Artifact files without frontmatter: 6
Artifact files without tags: 3
Proceed? (y/n)
"Proceed?" is abort-or-continue only — not blanket approval. Each cluster in the following steps still requires its own confirmation. Within each cluster, "skip" skips that cluster only — the skill continues with remaining clusters. If nothing is missing: "All content is up to date. Nothing to do." Stop.
Handle all artifact files with gaps — both missing frontmatter and missing tags:
Missing frontmatter (title or created absent):
docs/frontmatter-contract.md): infer title from H1 heading or filename, created from git log or file mtime, source as interactive, propose tags from content"6 artifact files in relatorios/ look like weekly reports. Apply this frontmatter to all? (confirm/edit/skip)"
Has frontmatter but missing tags:
Before proposing any tags: scan the last 5 session reports and proposals for the existing vocabulary. Follow the tag discipline rule from CLAUDE-APPEND: reuse existing tags, introduce new ones only when nothing fits, bias toward 1–2 tags per document.
After confirming each cluster, fold the accepted tags into the live vocabulary before proposing the next cluster — tags coined early in the run should be reusable for later clusters.
Cluster by inferred topic rather than confirming one by one:
"12 sessions appear to be content-related. Tag all with [content]? (y/edit/skip)"
Check whether the Cortex is set up by using Glob("obsidian/*.md") — if it returns results, the Cortex is set up.
If yes: Run:
node ${CLAUDE_PLUGIN_ROOT}/scripts/build-cortex.js .claude-code-hermit obsidian .
This regenerates Connections.md with the enriched content. Cortex Portal.md is a live Dataview template and does not need to be rebuilt.
If no: Skip the rebuild and report:
"Content enriched. Run
/claude-code-hermit:obsidian-setupto generate Cortex pages."
Cortex sync complete
Frontmatter added: 6 files
Artifact files tagged: 3
Sessions tagged: 18
Proposals tagged: 4