kb-promote

kb-promote is a command for Claude Code from thomascasali/claude-kb-workflow. It costs 0 tokens per session (584 once invoked), scanned A, original, MIT.

A command for moving a documented concept from a project wiki into a stable knowledge base. It checks whether the concept is used across projects, has remained stable, and has been verified in production.

In plain words
What is it for?
Use it to review a wiki concept, check its eligibility, and add it as a reusable pattern, personal convention, stack-specific note, or operating guide.
Why use it?
It prevents untested or duplicate ideas from being added to shared documentation. It also helps place each concept in the appropriate knowledge-base file.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to review a wiki concept, check its eligibility, and add it as a reusable pattern, personal convention, stack-specific note, or operating guide.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thomascasali/claude-kb-workflow/kb-promote
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.

Clone the repo
git clone --depth 1 https://github.com/thomascasali/claude-kb-workflow

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/thomascasali/claude-kb-workflow/kb-promote/github.svg)](https://agentmods.dev/commands/thomascasali/claude-kb-workflow/kb-promote)
Your own site
<a href="https://agentmods.dev/commands/thomascasali/claude-kb-workflow/kb-promote"><img src="https://agentmods.dev/badge/commands/thomascasali/claude-kb-workflow/kb-promote/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-promote

Your own site · 80×15
<a href="https://agentmods.dev/commands/thomascasali/claude-kb-workflow/kb-promote"><img src="https://agentmods.dev/badge/commands/thomascasali/claude-kb-workflow/kb-promote.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 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.00000 $0.00584
Opus 5 $0.00000 $0.00292
Sonnet 5 $0.00000 $0.00117
Haiku 4.5 $0.00000 $0.00058

Measured 9d ago against content hash 96a24325a06b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

kb-promote 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 9d 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.

commands/kb-promote.md · 43 lines

What it actually says

/kb-promote — Promuovi un concetto dalla Wiki alla KB stabile

Promuovi il concetto specificato da llm-wiki/wiki/concepts/ alla KB stabile (questo repo o un fork): $ARGUMENTS

Path: $LLM_WIKI_PATH per la wiki, $KB_PATH per la KB stabile (es. clone locale di claude-kb-workflow).

Criteri di eleggibilità (verifica prima di procedere)

  • Appare in ≥ 2 progetti diversi
  • Stabile da ≥ 2 sessioni (controlla wiki/log.md)
  • Verificato in produzione (non solo teorico)
  • Non già presente in $KB_PATH/patterns/patterns.md o $KB_PATH/patterns/field-notes-it.md

Steps

  1. Leggi $LLM_WIKI_PATH/wiki/concepts/[concetto].md
  2. Verifica i criteri sopra — se non soddisfatti, avvisa l'utente e fermati
  3. Identifica destinazione in $KB_PATH/:
    • Pattern riusabile cross-progetto → patterns/patterns.md (aggiungi sezione)
    • Convenzione personale (deploy, naming, provider) → patterns/field-notes-it.md
    • Pattern specifico per stack → aggiorna agente rilevante agents/[agente].md
    • Guida operativa → knowledge-base/[NOME].md
  4. Aggiungi il pattern con formato coerente agli altri (vedi convenzioni in CONTRIBUTING.md)
  5. Aggiorna wiki/concepts/[concetto].md con nota:
    > **Promosso** a `KB/[destinazione]` il YYYY-MM-DD
    
  6. Appendi a wiki/log.md:
    | YYYY-MM-DD | PROMOTE | [concetto] | Promosso a KB/[destinazione] |
    
  7. Commit su entrambi i repo:
    git -C $LLM_WIKI_PATH commit -m "wiki: promote [concetto]"
    git -C $KB_PATH commit -m "kb: add pattern [concetto] (from llm-wiki)"
    

Filosofia

La promozione è un rito di stabilizzazione: una conoscenza nasce sporca nelle sessioni, viene sintetizzata nella wiki, e solo dopo prove ripetute "guadagna" il posto nella KB stabile.

Questo evita il rumore: la KB resta piccola, focalizzata, autorevole. La wiki resta viva, sperimentale, mutevole.

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. 9d ago First seen · 43 lines · 0 tokens per session scan A 96a24325a06b

Subscribe to this mod's changes

kb-promote is a command published in the GitHub repository thomascasali/claude-kb-workflow (2 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 584 tokens. 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.