agentleFS
nathanadaynathanaday/atlas-obsidian/skills/repo-unlink/SKILL.md

repo-unlink

Skill0 starsChanged 2 months agoMITView on GitHub

Unlink a repository from the vault: mark its document unlinked, and decide what happens to the threads and topics that depend on it. The document stays, so every link to it holds. The repository on disk is never touched. Use for unlink, remove this repository, forget this repo, the repository moved away. Linking is repo-link.

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:

    Call context with repository: its own tag (defines), and the open threads with a task list for it.

    line 21
  2. Distinctive:

    Ask one question with the counts and a recommended answer for each group:

    line 28
  3. Very specific:

    Never remove the repository document: change refuses it while a task list names it.

    line 37

≈ “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

repo-unlink

A repository can leave the vault while its code stays on disk. The repository document stays too, marked unlinked, so the task lists that name it and the topics that cite it keep a live link. Agents no longer work in the old folder. The open threads with tasks for the repository and the topics under its tag must go somewhere, so this skill asks once, with a recommendation for each group, and then makes the change and the thread writes.

Tools: context, search, thread, change. References: changes.md, threads.md.

Procedure

  1. Call context with repository: its own tag (defines), and the open threads with a task list for it.
  2. Count the two groups:
    • the threads that are not ended and have a task list for it: thread list with repository;
    • the topics under its own tag: search with tags: [<its tag>] and types: [topic].
  3. Ask one question with the counts and a recommended answer for each group:
    • open threads: keep them and drop the open tasks of that repository's list (recommended), or drop the threads;
    • topics under its tag: keep them (recommended; they still describe the system, and the tag and the repository document remain), or remove the ones the user names.
  4. Build the change: a modify of the repository document with fields: {unlinked: true}. Code empties path, drops the git facts, and turns the lead callout into [!repository-missing]. Add a remove for each topic the user chose to remove, with redirect to a document that covers its subject when one exists. Never remove the repository document: change refuses it while a task list names it.
  5. For the threads, per the answer: thread check with task, state: dropped, and reason for each open task of that list, or thread drop with thread and reason.

Gate

Propose the change. Show the preview and the thread moves together. Wait for the yes, then apply the change and make the thread writes. Apply runs sync, which takes the path out of .claude/settings.local.json. Nothing touches the folder on disk.

Hand off

None.

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.