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
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- vault/CLAUDE.mdCLAUDE.md
- cf-adapt-skillSkill
- cf-adoptSkill
- cf-askSkill
- cf-brainstormSkill
- cf-brandSkill
- cf-claude-cornerSkill
- cf-close-sessionSkill
- cf-extract-routineSkill
- cf-helpSkill
- cf-know-my-productSkill
- cf-new-projectSkill
- cf-new-ruleSkill
- cf-onboardSkill
- cf-open-sessionSkill
- cf-studySkill
- cf-task-observerSkill
- cf-whats-realSkill
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
- Distinctive: line 17
No source folder, no run: Ask which folder. Never guess a path and never search the disk for one.
- Very specific: line 18
The tool copies, you do not: Run tools/import.py; do not copy, rename or convert files by hand.
- Very specific: line 19
Read the report before saying anything: Every statement about what happened points to a line of _import-report.md.
- Very specific: line 36
Start with --dry-run when the source is large or the user is unsure.
- Very specific: line 41
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 …
- Very specific: line 83
Run python3 core/gate.py --vault vault and python3 core/ring.py --vault vault --gate and read the output.
- Distinctive: line 84
Commit only if the user says so, and never push.
≈ “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.
Files
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
- No source folder, no run. Ask which folder. Never guess a path and never search the disk for one.
- The tool copies, you do not. Run
tools/import.py; do not copy, rename or convert files by hand. The original is never touched. - 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. - 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:typeare cleaned. Never print the data itself, and never edit the user's content to clean it without asking. - Unconverted is not lost. Files in
_unconverted/are listed with a reason. Say how many there are and what unblocks them (usuallypython3 -m pip install docling, then run the same command again); do not try to read a binary file yourself. - Propose, the user approves. Nothing moves out of the inbox without a "yes" for that batch.
- 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 entervault/memory/with the user's "yes" and their own words. - 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:
| target | meaning | what moves |
project::<name> | it feeds a project that already exists | the 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 writing | link to it from that piece |
question:: | it answers something the user asked | the answer goes where the question lives |
task:: | it implies work | a task in vault/tasks/ with a link to the project root |
none | nothing to do with it now | it 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## Connectionsblock 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 vaultandpython3 core/ring.py --vault vault --gateand read the output. Thenpython3 tools/hub.pyif 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.
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
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.

