kb-import

kb-import is a skill for Claude Code, Codex from BeppeTemp/cartographer. It costs 48 tokens per session (2,034 once invoked), scanned A, original, Apache-2.0.

A guided process for importing an existing wiki or knowledge base, such as an Obsidian vault, Markdown folder, or exported wiki, into a Cartographer knowledge base. It separates automatic file and link preparation from gradual content review.

In plain words
What is it for?
Use it to inspect an external document collection, map its folders, create metadata, rewrite links, find duplicates, curate content in batches, and import the result into Cartographer.
Why use it?
It avoids rewriting a whole knowledge base at once and requires approval of the import plan before files are changed. It also helps identify secrets and non-content files before import.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Codex.

Good fit Use it to inspect an external document collection, map its folders, create metadata, rewrite links, find duplicates, curate content in batches, and import the result into Cartographer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beppetemp/cartographer/kb-import
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BeppeTemp/cartographer --skill kb-import
Clone the repo
git clone --depth 1 https://github.com/BeppeTemp/cartographer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kb-import

README.md
[![agentmods](https://agentmods.dev/badge/skills/beppetemp/cartographer/kb-import/github.svg)](https://agentmods.dev/skills/beppetemp/cartographer/kb-import)
Your own site
<a href="https://agentmods.dev/skills/beppetemp/cartographer/kb-import"><img src="https://agentmods.dev/badge/skills/beppetemp/cartographer/kb-import/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kb-import

Your own site · 80×15
<a href="https://agentmods.dev/skills/beppetemp/cartographer/kb-import"><img src="https://agentmods.dev/badge/skills/beppetemp/cartographer/kb-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,034 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02034
Opus 5.5 $0.00019 $0.00814
Sonnet 5.5 $0.00010 $0.00407
Haiku 4.5 $0.00005 $0.00203

Measured today against content hash 9b41ee11aa3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-import scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/skillbundle/bundled/kb-import/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

KB Import — Skill

Purpose

Guide an agent (with its operator) through importing an external corpus that does not follow Cartographer/OKF patterns — an Obsidian vault, a plain docs folder, an exported wiki — into a Cartographer KB. The core principle (D74, consistent with D28: no server-side ingest tool):

  • Mechanical work is free: layout mapping, frontmatter synthesis and link rewriting go through the cartographer import CLI scaffold — zero LLM tokens, cost proportional to corpus size.
  • Semantic work is agentic and incremental: archive mapping, dedup and content curation are done by the agent, in small batches across sessions, driven by the imported_draft lint finding. Never rewrite a whole wiki in one session.
  • Human checkpoint before any write: the mapping plan is approved by the operator first.

Steps

1. Recon the source (read-only)

Inventory the corpus without modifying it: file count and formats, directory structure, link style ([[wiki]] vs [text](path.md)), presence/shape of existing frontmatter, obvious non-content (assets, templates, daily notes, trash). Produce a short summary for the operator.

Secrets check. Grep the source for credentials/PII (password, token, BEGIN.*KEY, etc.) before anything is written to a KB that will be pushed — git history is forever, so this check comes before any write and stays first. For each finding, decide explicitly between two outcomes and record the choice with the operator:

  1. Exclude the file (or strip the value) from the import — the default for anything that is not a credential the KB needs to resolve;
  2. Move the value into an encrypted file and leave the concept referencing it via secret_refs. The full procedure — age key, root .sops.yaml creation rules, the first encrypted file, the Service concept — is the kb-create skill's references/secrets.md. Cartographer performs none of the operator-side steps.

If the corpus carries a .sops.yaml or *.sops.yaml of its own, do not merge it blindly into the target KB's rules: the recipients must be reconciled deliberately, because a wrong merge silently produces files nobody on the team can decrypt.

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +6 lines 9b41ee11aa3a
  2. 26d ago Changed · +16 lines 016b00ce3d77
  3. 1mo ago Changed · +1 lines 50e93d3c2281
  4. 1mo ago Changed · +20 lines 854c6dcfbfd7
  5. 1mo ago First seen · 89 lines · 48 tokens per session scan A c1eb1d579e44

Subscribe to this mod's changes

kb-import is a skill published in the GitHub repository BeppeTemp/cartographer (42 stars, last pushed today), licensed Apache-2.0. It adds 48 tokens to every session and 2,034 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.