kb-import

kb-import is a skill for Claude Code, Codex from BeppeTemp/cartographer. It costs 48 tokens per session (1,231 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

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.

agentmods
npx agentmods add skills/beppetemp/cartographer/kb-import
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.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.svg" alt="Measured on agentmods" 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 1,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.01231
Opus 5 $0.00024 $0.00616
Sonnet 5 $0.00010 $0.00246
Haiku 4.5 $0.00005 $0.00123

Measured 5d ago against content hash c1eb1d579e44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d ago.

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 · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 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. Anything found is excluded or moved to the SOPS flow — git history is forever.

2. Mapping plan — human checkpoint

Propose, and get the operator's explicit approval on:

  • target Maps (existing ones, or new via map_create: entities/, topics/, notes/, incidents/, or custom) and the mapping source directory → map[/expanded concept];
  • what to exclude (assets, templates, generated files, empty stubs);
  • whether the target is an existing KB or a new one (create it first with the kb-create skill).

No write happens before this checkpoint.

3. Mechanical scaffold (CLI, no tokens)

On a machine with the cartographer binary and a local clone of the KB repo:

Read the full file on GitHub · 89 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. 5d 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 (17 stars, last pushed 6d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,231 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

powerpoint

Create designed, editable PowerPoint .pptx presentations with PptxGenJS. Use when the user asks to create, generate, update, or inspect a deck, slide deck, presentation, or .pptx file.

the-open-agent/openagent · 48 tokens

openkb-deck-neon

Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow / glassmorphism look (赛博 / 科技风 / 暗色 / 霓虹 / 炫酷). Generates a polished single-file HTML deck in the Aurora Glass visual direction (near-black…

VectifyAI/OpenKB · 173 tokens

openkb-deck-editorial

Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content. Generates a polished single-file HTML deck in the Editorial Monocle visual direction (warm cream background, serif type, brick-red accent) — designed to be opened in a browser…

VectifyAI/OpenKB · 117 tokens

mindos-zh

MindOS 是用户的本地知识助手,也是跨会话、跨 Agent 共享的知识库。它保存决策记录、会议纪要、SOP、 排错经验、架构选型、调研结论和偏好设置。 仅 mindRoot 知识库内任务。不用于:改代码仓库、项目源码、KB 外路径。 核心概念:空间、指令(INSTRUCTION.md)、技能(SKILL.md);笔记可承载指令与技能。 触发场景:保存或记录任何内容、搜索历史笔记或上下文、更新或编辑文件、整理或重组文件结构、 执行SOP或工作流、捕获对话中的决策、复盘或总结经验、追加表格或CSV数据、跨Agent交接上下文、 提炼经验教训、同步关联文档、查找之前是否讨论过某事、查询历史决策、查找模板或SOP、…

GeminiLight/MindOS · 490 tokens

file-crdb-issue

Use when filing, creating, or reporting GitHub issues for CockroachDB. Use when asked to open a bug report, feature request, investigation issue, or performance inquiry. Also use when the user mentions wanting to track a problem, report a regression, or document unexpected behavior in CockroachDB.

cockroachdb/cockroach · 66 tokens

wechat-article-ingest

微信公众号文章 → Markdown 提取 + A层观点提取 + B层问题链生成。 支持直接链接抓取和 PDF 提取两种方式。.

chubbyguan/chubbyskills · 39 tokens