agentleFS
philippe-desplatsphilippe-desplats/second-brain/.claude/skills/to-map/SKILL.md

to-map

Skill8 starsChanged 5 days agoMITView on GitHub

Create a new MOC (Map of Content) in atlas/maps/ to aggregate the notes linked to a topic. Scans sources/, knowledge/, atlas/topics/ to find the relevant notes (frontmatter topics:, wiki-links, keywords), pre-fills the atlas-moc-template.md with those notes, offers a review to the user, and saves into atlas/maps/MOC-{slug}.md with subtype: moc. Aligned with LYT/MOC best practices (Nick Milo). Use when a topic has become dense enough (10+ notes) to deserve a navigation entry point.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After the last write of a run, add one line to the operations log with --skill to-map, see AGENTS.md, Logging writes.

    line 15
  2. Very specific:

    Create a navigable MOC in atlas/maps/ for a dense topic.

    line 18
  3. Very specific:

    No duplicate: if atlas/maps/MOC-{slug}.md already exists, propose an update instead of creating

    line 97
  4. Very specific:

    Wiki-links: every referenced note must be a valid wiki-link [[Exact Title]]

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Arguments

/to-map <topic> [-t MOC|index] [-m N] [-d depth] [-a auto]

Flags, input and examples are detailed below.

Questions to the owner follow AGENTS.md, Asking the owner.

After the last write of a run, add one line to the operations log with --skill to-map, see AGENTS.md, Logging writes.

<objective> Create a navigable MOC in `atlas/maps/` for a dense topic. The MOC acts as an Obsidian hub: it aggregates wiki-links to the relevant notes, organized by type/context, and lets a human or an agent grasp a subject at a glance.

Aligned with the layered design (atlas/maps/ holds MOCs + indexes) and the practice of building a handful of manual MOCs for the densest topics.

Out of scope: generating the static indexes (use generate_indexes.py for that). Out of scope: creating entity notes (use the conventions in atlas/people/, atlas/services/, atlas/topics/). </objective>

<quick_start>

/to-map accessibility-audits                   # MOC on the accessibility-audits topic
/to-map ai-agents                              # MOC on AI agents
/to-map workspace-methodology                  # MOC on the workspace methodology
/to-map automation-patterns -t MOC             # force the MOC type
/to-map active-clients -t index -d 1           # flat index, depth=1 (just the AGENTS.md files)
/to-map accessibility-audits -m 15             # require 15 notes minimum (default: 10)
/to-map -a accessibility-audits                # auto, no confirmations

</quick_start>

<flags>
FlagLongDescription
-t--typeMap type: MOC (manual, contextual) or index (flat, listing). Default: MOC
-m--minMinimum note threshold to justify a MOC (default: 10)
-d--depthScan depth (1 = only files at the root, 2 = includes first-level subfolders, 99 = fully recursive). Default: 99
-a--autoSkip confirmations
</flags><workflow> 1. **Init** -> Parse topic, flags, validate that `atlas/maps/MOC-{slug}.md` does not already exist 2. **Scan** -> Find the linked notes (frontmatter, wiki-links, slugs), group by context 3. **Draft** -> Pre-fill the atlas-moc-template with sections per context 4. **Publish** -> User validation, save into atlas/maps/, optionally regenerate the indexes </workflow>

<step_files>

StepFilePurpose
00steps/step-00-init.mdParse args, check for no duplicate
01steps/step-01-scan.mdScan the notes linked to the topic, group by client/context
02steps/step-02-draft.mdPre-fill the MOC template with structured wiki-links
03steps/step-03-publish.mdValidate, save into atlas/maps/, create back-links (optional)

</step_files>

<state_variables>

VariableTypeSet by
{topic}stringstep-00
{slug}stringstep-00 (kebab-case of the topic)
{map_type}enum (MOC|index)step-00
{min_notes}numberstep-00 (default 10)
{depth}numberstep-00 (default 99)
{auto_mode}booleanstep-00
{target_path}stringstep-00 (atlas/maps/MOC-{slug}.md)
{notes_found}liststep-01 (grouped by context)
{draft_content}stringstep-02
{published_path}stringstep-03

</state_variables>

<references>
ReferenceUsed by
templates/atlas-moc-template.mdstep-02 (canonical template)
.claude/rules/atlas.mdstep-00, step-02 (conventions)
references/moc-patterns.mdstep-02 (examples by topic type)
</references>

<execution_rules>

  • Minimum threshold: at least {min_notes} notes found (default 10), otherwise refuse/defer
  • No duplicate: if atlas/maps/MOC-{slug}.md already exists, propose an update instead of creating
  • Strict frontmatter: type: note + subtype: moc (or subtype: index if -t index)
  • Wiki-links: every referenced note must be a valid wiki-link [[Exact Title]]
  • Group by context: by client/partner, or by type, or by sub-theme depending on density
  • No raw listing: a structured MOC aggregates AND comments, not just a dump of links
  • Local graph utility: mentally test that the MOC opens a readable local graph in Obsidian </execution_rules>

<entry_point> FIRST ACTION: Load steps/step-00-init.md </entry_point>

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.