skills/cortex-sync/SKILL.md
Enrich existing hermit content with frontmatter and tags. Scans sessions, proposals, and artifact paths for missing fields, clusters similar files for batch confirmation, then rebuilds Connections.md if the Cortex is set up.
npx skillsauth add gtapps/claude-code-hermit cortex-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
tools
Composes and delivers the daily fitness brief — a forward-looking morning read (readiness + today's plan) or a backward-looking evening read (today's training, or an earned-rest note, + tomorrow's setup) — in the operator's configured voice. Invoke with /claude-code-fitness-hermit:fitness-brief --morning|--evening|--slot <name>. Becomes the plugin's two daily beats — the morning Strava connectivity check and the evening activity sync, RPE binding, and Run deep-dive.
development
Renew the hermit's long-lived Claude login token over the channel, before it expires. Relays a one-time sign-in link to the operator, takes the code back, installs the new token, and restarts. Activates on messages like 'relogin', 'renew my login', 'reauth', 'the login is expiring', or when doctor's credential-expiry check flags setup-token.
development
Synthesizes the past 7 days of archived briefs into a weekly digest — top stories, emerging vs faded themes, category activity, and per-source performance built from archive frontmatter. Delivers to the operator's configured channel and archives a weekly note. Designed as a weekly routine. Invoke with /feed-hermit:weekly-digest.
development
Manage developing story arcs tracked across briefs — add, resolve, and list active arcs in compiled/story-arcs-*.md. Arc Watch keywords drive the feed-brief arc-tagging enrichment. Invoke with /feed-hermit:story-arcs add|resolve|list.