Skip to main content

dkb - Developer Knowledge Base

Local documentation manager for vibe coding with Claude Code.

Local .md files > MCP

Install

# Install with uv
uv tool install dkb

# Or with pipx
pipx install dkb

Usage

$ dkb add tailwindlabs/tailwindcss.com/src/docs --version-url tailwindlabs/tailwindcss
✓ tailwindcss 4.3.3 → ~/.local/share/dkb/tailwindcss 6.1s

$ dkb add colinhacks/zod --pin v3.24.0 --name zod-3
✓ zod-3 3.24.0 → ~/.local/share/dkb/zod-3 5.5s

$ dkb                      # alone: the status
NAME         VERSION  SOURCE                        VERSION FROM              DOCS CHANGED  CHECKED
tailwindcss  4.3.3    tailwindlabs/tailwindcss.com  tailwindlabs/tailwindcss  35d ago       2m ago
zod-3        3.24.0   colinhacks/zod@v3.24.0        -                         1d ago        2m ago
docs at ~/.local/share/dkb/<name> · full config: dkb status --json

$ dkb update               # parallel, a live table; skips what did not move upstream
-  tailwindcss  unchanged  4.3.3
-  zod-3        unchanged  3.24.0

$ dkb update tailwind
Error: not in the catalogue: 'tailwind' (did you mean 'tailwindcss'?); `dkb status` lists it

$ dkb add n0-computer/iroh-ffi/IrohLib/Docs
⨯ fetching iroh-ffi 7.4s path 'IrohLib/Docs' not found; 'IrohLib/' has: .swiftpm/, Sources/, Tests/, .gitignore, README.md

The same table is colored in a terminal and plain aligned text when piped (dkb status | grep zod, an agent's shell). Data goes to stdout (status, status --json); progress and messages go to stderr. dkb -h lists the files dkb owns and more add examples. Terminal output is py-utils cli (the port of ts-utils cli): tables, palette, live regions.

Configuration

Two files, two owners:

File Holds Changes on
$XDG_CONFIG_HOME/dkb/config.json (~/.config/dkb/config.json) the catalogue: one entry per repo, of the kinds below dkb add / dkb remove
$XDG_DATA_HOME/dkb/ (~/.local/share/dkb/) the clones, one directory per repo, plus state.json (description, version, commit, what the clone was made from, when docs last changed and when upstream was last checked) dkb update

The catalogue is the declaration and is meant to be tracked in a dotfiles repo. dkb update reconciles the cache with it: clones anything declared that is missing, re-clones anything whose upstream commit or declaration changed, re-reads every version and description, prunes clones nobody declares, and regenerates the skill; it exits 1 if any repo failed. A failed fetch keeps the previous clone and version: new content is assembled beside the old and swapped in only when complete. Without a declared branch, a repo follows its remote's default branch, whatever it is called. Metadata comes from gh when it is logged in, else from GitHub's public API (60 requests/hour). A fresh machine is one dkb update away from the same knowledge base. dkb status exits 1 while a declared repo has no clone, so it doubles as a drift check.

Three kinds of entry:

Kind Added with Catalogue keys On disk Version
following dkb add owner/repo/path url, paths, branch?, version_url? a clone, re-fetched when the branch moves latest release (of version_url if set)
pinned dkb add owner/repo --pin v3.24.0 url, paths, pin a clone of that tag or full commit, never re-fetched the pin
local dkb add ~/Developer/my-lib local a symlink to the working copy, always current its latest git tag

A pin is for the docs of the version a project uses: zod (following) and zod-3 (pinned) can sit side by side. A local entry is stored as ~/..., so one catalogue serves every machine; on a machine without that directory, dkb update says so and exits 1.

// ~/.config/dkb/config.json
{
  "repositories": {
    "next.js": { "url": "https://github.com/vercel/next.js.git", "paths": ["docs"] },
    "zod-3": { "url": "https://github.com/colinhacks/zod.git", "paths": [], "pin": "v3.24.0" },
    "my-lib": { "local": "~/Developer/my-lib" }
  }
}

Upgrading from dkb 2: the catalogue used to live in the data dir as one file with the state mixed in. dkb 3 refuses to run while that file exists and prints where each half goes.

Features

  • ✨ Auto-naming - No need to specify names, automatically derived from repositories
  • 🎯 Path-specific URLs - Add only the docs you need: dkb add owner/repo/path
  • 🔗 Multiple URL formats:
    • Full URLs: https://github.com/astral-sh/uv/tree/main/docs
    • Shorthand: tailwindlabs/tailwindcss.com/src/docs
    • Classic: https://github.com/denoland/docs.git
  • 🏠 Gitea/Forgejo support - Works with codeberg.org and self-hosted forges: dkb add https://code.haverbeke.berlin/wordgard/website/src/branch/main/site/docs
  • 📦 Version tracking - Track versions from a different repository with --version-url
  • 📌 Pinned versions - --pin <tag|commit> caches the docs of the version you actually use
  • 🔗 Local repos - dkb add ~/Developer/my-lib links your working copy, so your own libraries are in the skill and never stale
  • 🚀 Parallel updates - All repos update concurrently with live progress spinners
  • ⚡ Smart skip - Unchanged repos detected via git ls-remote without cloning
  • 📂 Sparse checkout - Repos with paths only fetch the files they need
  • 🧭 Errors that say what to do - typo suggestions, the real contents of a mistyped path, git's own message instead of its command line
  • 🤖 Claude Code skill - Maintains ~/.claude/skills/dkb/SKILL.md; the always-visible description indexes the catalogue so the agent knows what's cached without running anything. The description stays within the Agent Skills spec's 1024 characters (names that don't fit become "+N more, all listed in the skill"); the body, loaded in full on invocation, carries every entry's version, source, location and layout

Metadata

Release files for dkb 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dkb 3.4.0
File Size Uploaded
dkb-3.4.0.tar.gz 21.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dkb 3.4.0
File Interpreter ABI Platform
dkb-3.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.9 kB

Release files / dkb-3.4.0.tar.gz

Download URL dkb-3.4.0.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f3ca7c7e92eda1b401156bfdbd2fbbafc701fc8485d85f32a813f4c6cacc6b82
BLAKE2b-256 checksum
How to use checksums
9312cc3fb84a31b1e0d3f4db2396b1a817fa5d52c4b3aa3b36e57f14651f3f17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / dkb-3.4.0-py3-none-any.whl

Download URL dkb-3.4.0-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aba21637d3a33d1622c202789dfd6f6aea13ba6e7b91fc1f7906ae0071d62c48
BLAKE2b-256 checksum
How to use checksums
e2a764d96c8ccbb66a6d1fb4fc21384d2ab8769ff7280398201eae46ea1cad87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

3.4.1

2 release files

This release

3.4.0 This release

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page