agentleFS
nathanadaynathanaday/atlas-obsidian/skills/wiki-sync/SKILL.md

wiki-sync

Skill0 starsChanged 2 months agoMITView on GitHub

Absorb documents into the wiki through one pipeline: chunk, extract, match, draft, change. It serves every way knowledge enters: a captured source, a repository snapshot, the spec and the verification of a verified thread, a closed chord, a saved passage. Use for sync the wiki, absorb the pending documents, update the wiki from this work, wikify this, what does the wiki still need to learn. Capturing files is wiki-ingest; changing topics that exist is wiki-edit.

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. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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. Very specific:

    Chunks: Call source with action: chunks and doc for each document.

    line 28
  2. Very specific:

    Match: Call match with every Item Map at once in items, so a subject named in three chunks is one subject.

    line 37
  3. Distinctive:

    Slice: Put every subject that hits or nears one topic into one slice, so two drafters never write one topic.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

wiki-sync

A document is pending until an applied change absorbs it. This skill drains pending documents: it cuts each into chunks, sends a worker to extract what each chunk says, matches the subjects against the wiki in code, sends drafters to decide and write, and proposes one change the user reviews.

Tools: vault, source (chunks, read), match, change. Agents: wiki-extract, wiki-draft. References: changes.md, pages.md.

Procedure

  1. Documents. Take the ids given, or the pending list from vault. Pending documents are sources, the spec and the passing verification of a verified thread, a chord whose threads are closed or dropped, and events of kind dropped and note. Sources come first, then events, then specs with their verifications. A spec and its verification go into one change: together they close their thread. One change holds at most about ten documents or forty chunks; more is several changes, one after another. From the same vault call, keep the tag list (every tag with its count), the tagging mode, and the vault's description.
  2. Chunks. Call source with action: chunks and doc for each document.
  3. Extract. Send one wiki-extract per chunk, in waves of at most eight. Give each the document id, the chunk index, the document's tags, the tag list, and the vault's description. A single small chunk, extract yourself: source with action: read, then the procedure of wiki-extract. For a verification, the findings with the outcome knowledge and ## Notes are the first things to read.
  4. Check. Each Item Map names its chunk and is complete. Send a partial chunk again, narrower.
  5. Match. Call match with every Item Map at once in items, so a subject named in three chunks is one subject.
  6. Slice. Put every subject that hits or nears one topic into one slice, so two drafters never write one topic. At most eight subjects per slice.
  7. Draft. Send one wiki-draft per slice, with the ids of the documents being absorbed, their tags, the tag list, and the tagging mode. Draft yourself when there are one or two slices.
  8. Assemble the Wiki Change Plan:
    • every drafted write;
    • for each source: a modify of the source, with its description, tags, authority, ## Summary, and ## Structure (from the chunk summaries; keep the embed line at the top of the body);
    • absorbs: the document ids; work: the thread or the chord, when every document serves one;
    • new_tags: true when a write adds a tag that no document holds, and the user agreed to it in tagging: known mode;
    • title: a short name ("Ingest the DINOv2 paper"); notes: what the change does, and every skipped subject with its reason. Past 25 new topics, keep the ones the most claims support and list the rest in the notes for a later run.
  9. Propose the change: change with action: propose.

Gate

Show the Change Preview and link the change document, so the user can read the topics in Obsidian and edit one before the yes. Say the coverage: every chunk read, any chunk partial, the subjects skipped, and each new tag. Wait for the yes, then apply. The change tool refuses apply in the same turn as the proposal.

A change with no writes (the documents held nothing new) needs no yes, unless it absorbs a spec, a verification, or a chord: that change closes a thread or a chord, and the change tool waits for the user's answer. Apply the first kind and say so in one line: the documents are no longer pending.

Hand off

wiki-map when new topics landed under two child tags of one tag; wiki-review after a large sync.

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.