kb-setup

kb-setup is a skill for Claude Code, Codex from wlfghdr/agentic-kb. It costs 101 tokens per session (8,695 once invoked), scanned A, original, Apache-2.0.

An interactive setup wizard for an agentic knowledge base: a workspace that organises information into connected layers and tracks ownership. It asks about the workspace, goals, audience, sources, and desired outputs before proposing its structure.

In plain words
What is it for?
It bootstraps configuration, layer repositories, workspace indexes, and a proposed feature set, while preserving existing material and adding only missing pieces.
Why use it?
It gives a new knowledge-base workspace an organised starting point without requiring the user to design every layer and feature by hand.

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/wlfghdr/agentic-kb/kb-setup
Any agent
npx skills add wlfghdr/agentic-kb --skill kb-setup
Clone the repo
git clone --depth 1 https://github.com/wlfghdr/agentic-kb

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/wlfghdr/agentic-kb/kb-setup.svg)](https://agentmods.dev/skills/wlfghdr/agentic-kb/kb-setup)
Your own site
<a href="https://agentmods.dev/skills/wlfghdr/agentic-kb/kb-setup"><img src="https://agentmods.dev/badge/skills/wlfghdr/agentic-kb/kb-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,695 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 $0.00101 $0.08695
Opus 5 $0.00051 $0.04347
Sonnet 5 $0.00020 $0.01739
Haiku 4.5 $0.00010 $0.00869

Measured 3d ago against content hash fcde67e8ba25, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kb-setup 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 3d 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.

plugins/kb/skills/kb-setup/SKILL.md · 394 lines

How it starts

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

Skill: KB Setup

This skill is the single entry point for bootstrapping an agentic-kb workspace. It is idempotent: reruns add missing pieces, propose graph extensions, and never overwrite existing material without confirmation.

Scope boundary — install vs. init

This skill initializes the user's KB workspace. It does not distribute itself.

Two concerns, two tools:

Concern Who handles it When
Get kb-management + kb-setup + kb-operator into the harness Marketplace install or scripts/install.py Before this skill runs
Scaffold the user's layer repos, config, and workspace indexes This skill When the user types /kb setup

When to invoke

  • The user types /kb setup.
  • The user says they want to set up, bootstrap, or onboard a KB workspace.
  • kb-management detects no .kb-config/layers.yaml in the current workspace and the user tries any /kb command.

Interactive question flow

The interview is goal-oriented, not feature-list-driven. Phase 1 collects the minimum admin facts the wizard cannot infer (workspace root and harness — frontloaded so the user knows where files will land before they invest in long answers); phase 2 asks the user about their world in their own language; phase 3 shows a derived plan and lets the user adjust before anything is written.

Ask each block in order. Stop and wait after each block for the user's answer before proceeding. Never ask the user to enumerate layers, features, contributor-mode flags, or scopes in phase 2 — those are derived in phase 3 and only adjusted there.

Phase 1 — Workspace and harness facts (short admin, frontloaded)

This phase runs first so the user always knows which directory the scaffold will land in and which harness will host /kb before they invest in open-ended answers. Wrong harness or wrong workspace root caught here is a one-line fix; caught after phase 2 it is sunk-cost frustration.

  1. Workspace root — absolute path; default current directory. Confirm with the user before continuing if the current directory looks accidental (e.g. ~/Downloads, a non-git directory the user did not expect).
  2. IDE targets — multi-select from claude-code, vscode, opencode, codex, gemini, kiro. Used by scripts/install.py to decide where harness hooks are written (.claude/commands/, .github/prompts/, .agents/skills/, etc.). The right answer here prevents a silent "No KB detected" later.
  3. Discovery pass — scan the workspace for existing KB repos, harness hooks, and likely layer candidates. Also probe for repo-as-OS structures (e.g. work/signals/, work/missions/, org/<layer>/, CONFIG.yaml, CODEOWNERS with policy directories). If a repo-as-OS structure is detected, surface it before phase 3 so the proposal can reuse existing repos and propose bridge defaults instead of inventing parallel structure.

Read the full file on GitHub · 394 lines

Files

What ships with it

40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 394 lines · 101 tokens per session scan A fcde67e8ba25

Subscribe to this mod's changes

kb-setup is a skill published in the GitHub repository wlfghdr/agentic-kb (10 stars, last pushed 19d ago), licensed Apache-2.0. It adds 101 tokens to every session and 8,695 once invoked, about $0.0005 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-31.