kb-scaffold

kb-scaffold is a skill for Claude Code from waelmas/codeplow. It costs 102 tokens per session (4,935 once invoked), scanned A, original, MIT.

A tool for creating an empty Obsidian vault, which is a folder of linked Markdown notes, for a project. It creates the folders and placeholder notes without examining the codebase.

In plain words
What is it for?
Use it to create a bare project vault and its placeholders; use a fuller initialization process when you also need code analysis and documentation auditing.
Why use it?
It sets up a consistent knowledge-base structure when you are not ready to populate it with project analysis.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the obsidian-kb plugin — 8 skills, 8 commands shipped together

Good fit Use it to create a bare project vault and its placeholders; use a fuller initialization process when you also need code analysis and documentation auditing.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add waelmas/codeplow
Claude Code
/plugin install obsidian-kb

Made for: Claude Code.

Or install obsidian-kb, the plugin that ships this one along with the rest of its 8 skills, 8 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/waelmas/codeplow/kb-scaffold/github.svg)](https://agentmods.dev/skills/waelmas/codeplow/kb-scaffold)
Your own site
<a href="https://agentmods.dev/skills/waelmas/codeplow/kb-scaffold"><img src="https://agentmods.dev/badge/skills/waelmas/codeplow/kb-scaffold/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-scaffold

Your own site · 80×15
<a href="https://agentmods.dev/skills/waelmas/codeplow/kb-scaffold"><img src="https://agentmods.dev/badge/skills/waelmas/codeplow/kb-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,935 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.
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.00102 $0.04935
Opus 5.5 $0.00041 $0.01974
Sonnet 5.5 $0.00020 $0.00987
Haiku 4.5 $0.00010 $0.00494

Measured 2mo ago against content hash b95b04b99251, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-scaffold 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 2mo 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.

obsidian-kb/skills/kb-scaffold/SKILL.md · 419 lines

How it starts

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

kb-scaffold - Create an Empty Project Knowledge Base

Create a new Obsidian vault with a standardized empty structure. This is the lightweight alternative to kb-init - use when the user wants just the folders and placeholders, without automated codebase analysis.

For the full flow (scaffold + populate + audit), direct the user to kb-init instead.

Step 0: Preflight - Obsidian available and running?

Follow the Preflight Check in the obsidian-kb awareness skill (${CLAUDE_PLUGIN_ROOT}/skills/obsidian-kb/SKILL.md). In short:

  1. command -v obsidian - if missing, check if the app is installed; if neither, show cross-platform install instructions (brew install --cask obsidian / flatpak install flathub md.obsidian.Obsidian / winget install Obsidian.Obsidian, or https://obsidian.md/download) and stop.
  2. timeout 3 obsidian vaults - if it fails, launch Obsidian (open -a Obsidian on macOS, equivalent for Linux/Windows), wait 2-3 seconds, retry.
  3. Only proceed once obsidian vaults succeeds.

Step 1: Check for Existing Vaults (strict priority)

Follow the Vault Resolution Algorithm in ${CLAUDE_PLUGIN_ROOT}/skills/obsidian-kb/SKILL.md. Use strict priority order:

  1. Path overlap - exactly one vault whose path is inside $PWD or vice versa.
  2. Frontmatter project_path - a root note's YAML matches $PWD exactly.
  3. Strong name match - word-boundary substring match, exactly one candidate.

If a match at any tier exists, treat that vault as a potential existing KB for this project and follow the "If a matching or similar vault is found" branch below.

If none of the tiers match, there's no existing vault - proceed to Step 2 to scaffold a new one.

Critical: every subsequent obsidian command in this skill MUST include vault="<name>" with the explicit vault name.

If a matching or similar vault is found

Present the finding to the user and ask them to choose:

"I found an existing vault [vault name] at [path] that appears to be associated with this project. Would you like to:

  1. Use it - adopt this vault as the project KB (I'll update its Index.md with the project path if needed)
  2. Delete and recreate - remove this vault and create a fresh one
  3. Ignore it - create a new vault alongside it with a different name"

Read the full file on GitHub · 419 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. 2mo ago First seen · 419 lines · 102 tokens per session scan A b95b04b99251

Subscribe to this mod's changes

kb-scaffold is a skill published in the GitHub repository waelmas/codeplow (8 stars, last pushed 6mo ago), licensed MIT. It adds 102 tokens to every session and 4,935 once invoked, about $0.0004 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-31.

Related

kb-scaffold compared with skills from other repositories

kb-scaffold next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kb-scaffoldwaelmas/codeplowSkill86mo agoMITA102Claude Code
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex