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

wiki-edit

Skill0 starsChanged 2 months agoMITView on GitHub

Change knowledge that exists: rewrite, rename, merge, split, remove with a redirect, retag, confirm a topic is current, promote a stub to a topic, or repair what lint found, as one reviewed change. Use for rewrite this topic, rename, merge these topics, split this topic, tag this under p3, rename a tag, make this stub a topic, this page is still right, fix the lint findings, fix the dead links. New knowledge from documents is wiki-sync; unlinking a repository is repo-unlink.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every change to knowledge that exists goes through one change document.

    line 8
  2. Very specific:

    Read each document with Read, and the documents that link to it (search its title, or grep for [[Title).

    line 19
  3. Very specific:

    remove: a remove with redirect set to the document that links now name.

    line 28
  4. Very specific:

    Leave base out unless you read the document's hash.

    line 37
  5. Very specific:

    Use a tag that exists before you make a new one.

    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-edit

Every change to knowledge that exists goes through one change document. Renames, removes, and retags keep every link and tag true, because code rewrites them in the same commit.

Tools: search, lint, change. References: changes.md, pages.md.

Procedure

  1. Resolve the documents to ids with search. For lint repairs, call lint (with tags to check only the documents under them) and take the findings the user chose.
  2. Read each document with Read, and the documents that link to it (search its title, or grep for [[Title).
  3. Build the Wiki Change Plan, one write per move:
    • rewrite: a modify with the whole new body;
    • rename: a rename with the new title; code rewrites the links;
    • merge: a modify of the topic that stays, with both contents and both citations, and a remove of the other with redirect set to the topic that stays;
    • split: a modify of the topic, and a create (type: topic, kind, title, fields, body) for each new topic, linked both ways;
    • remove: a remove with redirect set to the document that links now name;
    • new tags on a document: a modify of fields.tags (the whole list);
    • rename or merge a tag: a retag with from and to; code rewrites the tag in every document, the tags below it too; a to that exists merges the two;
    • a stub that is one topic: a promote with id (a stub with no spec), kind (concept, entity, policy, or overview), fields, body, and a new title when it needs one; code keeps ## Idea as ## Origin;
    • a topic checked and still true: a confirm with id;
    • a dead link: create the target, or change the link in a modify. Leave base out unless you read the document's hash; code records it at propose, and apply refuses a write whose document changed since. Use a tag that exists before you make a new one. In tagging: known mode, set new_tags: true only after the user agreed to each new tag.

Gate

Propose with change action: propose. Show the preview: name each new tag, and count the documents a retag rewrites. Wait for the yes, then apply. The change tool refuses apply in the same turn as the proposal.

Hand off

wiki-review to check the result, after a large repair.

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.