agentleFS
Arthuro0103Arthuro0103/cogiforge/.claude/skills/cf-import-knowledge/SKILL.md

cf-import-knowledge

Skill10 starsChanged 7 days agoMITView on GitHub

Brings an existing knowledge base (another vault, a notes folder, a wiki export, loose documents) into the workbench - runs tools/import.py, reads its report, then helps triage the imported inbox into vault/notes/, target first, a real link per note. The user approves. TRIGGERS - "import my old notes", "bring my wiki in". Do NOT trigger for one loose idea, opening or closing a session, or notes already in vault/notes/.

  • Installs packages

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No source folder, no run: Ask which folder. Never guess a path and never search the disk for one.

    line 17
  2. Very specific:

    The tool copies, you do not: Run tools/import.py; do not copy, rename or convert files by hand.

    line 18
  3. Very specific:

    Read the report before saying anything: Every statement about what happened points to a line of _import-report.md.

    line 19
  4. Very specific:

    Start with --dry-run when the source is large or the user is unsure.

    line 36
  5. Very specific:

    If the source is a chat export (the .zip or its conversations.json), use tools/import_chats.py instead of tools/import.py: it writes one …

    line 41
  6. Very specific:

    Run python3 core/gate.py --vault vault and python3 core/ring.py --vault vault --gate and read the output.

    line 83
  7. Distinctive:

    Commit only if the user says so, and never push.

    line 84

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

cf-import-knowledge: bring it in whole, then decide note by note

Why it exists

A team, a school or a person usually arrives with a base that already exists. Copying it into notes/ would fill the vault with notes that link to nothing and serve nothing; leaving it outside means it is never used. The path here has two separate steps: copy and convert (mechanical, a script does it, nothing is lost) and triage (a decision, the user makes it). This skill drives both and never mixes them.

The rules

  1. No source folder, no run. Ask which folder. Never guess a path and never search the disk for one.
  2. The tool copies, you do not. Run tools/import.py; do not copy, rename or convert files by hand. The original is never touched.
  3. Read the report before saying anything. Every statement about what happened points to a line of _import-report.md. If you did not read it, you do not claim it.
  4. A leak is the first thing you report. If the report has a WARNING about personal data, say it before anything else: the pre-commit hook will block the commit until the listed file:line:type are cleaned. Never print the data itself, and never edit the user's content to clean it without asking.
  5. Unconverted is not lost. Files in _unconverted/ are listed with a reason. Say how many there are and what unblocks them (usually python3 -m pip install docling, then run the same command again); do not try to read a binary file yourself.
  6. Propose, the user approves. Nothing moves out of the inbox without a "yes" for that batch.
  7. No invented links, nothing about the user. A link is created only if the connection is real and you can point at the sentence that justifies it. You do not write facts about the user; at most you propose them in vault/memory/observations.md, and they only enter vault/memory/ with the user's "yes" and their own words.
  8. Talk to the user in the language they write in. Fixed tokens (paths, frontmatter keys, the report's own words) stay as they are.

The steps

1. Run the tool (you)

python3 tools/import.py <SRC> --dry-run           # plan first: prints the report, writes nothing
python3 tools/import.py <SRC>                     # copy and convert into vault/inbox/imported/<name>
python3 tools/import.py <SRC> --person <HANDLE>   # into that person's inbox (vault/people/<HANDLE>/ must exist)

Start with --dry-run when the source is large or the user is unsure. The result is the same folder structure, markdown where it could be converted, and _import-report.md at the destination.

A chat export (Claude or ChatGPT)

If the source is a chat export (the .zip or its conversations.json), use tools/import_chats.py instead of tools/import.py: it writes one note per conversation into vault/inbox/chats/ (add --dry-run first). Point the user to docs/EXPORTING-CHATS.md for how to get the file and for the privacy warning (an export holds everything they ever typed; run python3 core/leak.py . before any commit). Read its output the way you read the report, and do the triage (steps 3 and 4) as for any other inbox note.

python3 tools/import_chats.py <export.zip | conversations.json> --dry-run
python3 tools/import_chats.py <export.zip | conversations.json>

2. Read the report (you)

Open <dest>/_import-report.md and tell the user, in at most 8 lines: how many files were in the source and how the count closed (converted, copied, unchanged, ignored, not converted, skipped), the leak WARNING first if there is one, the name collisions, and the skipped files with their reasons (an iCloud placeholder that is not downloaded needs the user to download it, then run again).

Exit codes: 0 ok · 1 something needs a look (not converted, skipped, or a leak; information, not an error) · 2 usage error · 3 source unreadable. "nothing to import" means the source had no importable file: say so, never call it a success.

3. Triage the inbox (you propose, they approve)

Work in batches of at most 10 notes, starting with the folder the user points at.

For each note, read it and propose one of the five targets from vault/CLAUDE.md:

targetmeaningwhat moves
project::<name>it feeds a project that already existsthe note goes to notes/<area>/, links to the project root in its body, and the project file changes in the same commit
article::it belongs to a piece of writinglink to it from that piece
question::it answers something the user askedthe answer goes where the question lives
task::it implies worka task in vault/tasks/ with a link to the project root
nonenothing to do with it nowit stays in the inbox, with the date

none is a legitimate answer. Present each batch as a table (note, proposed target, the sentence that justifies the link, the area) and ask for approval of the batch, line by line if the user wants.

4. Apply only what was approved (you)

  • Move with the frontmatter area: that matches the folder (vault/areas.txt), a title that is a statement of up to 10 words, and the link in the body, in the middle of the argument, never in a ## Connections block at the bottom.
  • Wikilinks inherited from the old base may be dead here: do not "fix" them by guessing. Either drop the brackets and say so, or ask.
  • Run python3 core/gate.py --vault vault and python3 core/ring.py --vault vault --gate and read the output. Then python3 tools/hub.py if a project root gained notes.
  • Commit only if the user says so, and never push.

Never

  • Copy, convert or delete files outside tools/import.py, or delete the source.
  • Move a note to notes/ without a named target and a real link in the body.
  • Hide or shorten a leak list, or print the data it points at.
  • Declare the import "done" while the report lists files that were not converted, without saying so.

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.