agentleFS
marinvchmarinvch/Cortex/skills/reindex/SKILL.md

reindex

Skill1 starsChanged 2 months agoMITView on GitHub

Rebuild the vault's navigator graph, nominate topics for a Map of Content, and fix dead links. Triggers — "reindex", "rebuild the graph", "what needs a MOC", "tidy the vault".

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the generators so the visual map reflects reality:

    line 15
  2. Very specific:

    Make sure new MOCs are linked from home.md so nothing is stranded.

    line 39
  3. Very specific:

    Never bulk-move notes/. Time-foldering daily/ is the only physical restructure offered.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/reindex — keep navigation healthy as the brain grows

Plain files scale only if navigation keeps up. This ritual refreshes the views, surfaces where the vault is outgrowing its structure, and fixes broken links. No engine — bash + judgement.

Step 1 — Regenerate the views

Run the generators so the visual map reflects reality:

  • bash tools/cortex.sh → cortex.html (force graph, type-to-find search, repos + vault dashboard). Report the counts (notes, links, dead, orphans).

Step 2 — Nominate Maps of Content (the "levels" that scale)

Cortex navigates by MOCs, not deep folders (folders fight [[wikilinks]]). Scan for clusters:

  • Group notes/ by shared tags: and by what links to what. Any topic with ~7+ related notes that has no type: moc note is a MOC candidate.
  • For each candidate, offer to create one from templates/moc.md, fill it with the cluster's notes, and link it from home.md under "Maps of Content". This is how the vault grows in navigable levels.

Step 3 — Resolve dead links (genuine ones only)

The generator already ignores placeholders (examples, templates, archives, commented/code links). For each remaining dead [[target]], pick with the user:

  • Create — it should exist → make the note from a template (promote the link to a real note).
  • Fix — it's a typo/rename → correct the link to the right note.
  • Remove — it was never meant to be a link → unlink it, or wrap example syntax in backticks (`[[like-this]]`) so it's never counted again.

Step 4 — Structure health (light-touch)

  • daily/ getting big? Suggest foldering by year (daily/2026/) — the one place chronological volume needs levels. Offer to move past years; never restructure notes/ into deep folders.
  • Orphans (notes with no links): list them; a note with no links is a dead end — suggest linking each into a MOC or the relevant note.
  • Make sure new MOCs are linked from home.md so nothing is stranded.

Step 5 — Close

Summarise: views regenerated, MOCs created/suggested, dead links resolved, orphans flagged. Suggest re-running /reindex on a cadence (e.g. with /weekly-review).

Rules

  • Navigate by MOCs + links, not folder depth. One filename idioms; keep it boring.
  • Never bulk-move notes/. Time-foldering daily/ is the only physical restructure offered.
  • The AI is the semantic layer: well-tagged, MOC-linked notes let any agent retrieve the right context cheaply. Structure feeds retrieval — that's the "semantic index", no embeddings needed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.