kb

Build and maintain topic-based knowledge bases with the kb CLI.

96|8|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/compozy/kb --skill kb-compozy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kb
Source: https://github.com/compozy/kb/tree/main/skills/kb
Command: npx skills add https://github.com/compozy/kb --skill kb-compozy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires obsidian, qmd, yt-dlp, firecrawl, pdfplumber, pdf2image, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables the creation and maintenance of knowledge bases using the kb CLI and the Karpathy KB pattern, streamlining the process of organizing, querying, and maintaining comprehensive knowledge repositories.

Core Features & Use Cases

  • Topic Scaffolding: Automatically creates the necessary folder structure for new topics.
  • Multi-Source Ingestion: Imports content from URLs, files, YouTube, codebases, and bookmarks.
  • Wiki and OKF Dual-Mode: Supports both Obsidian markdown and OKF v0.1 formats for knowledge base creation and maintenance.
  • Codebase Analysis: Inspects codebases for smells, dead code, complexity, and more.
  • Search and Indexing: Provides powerful search capabilities within the knowledge base.

Quick Start

Use the kb skill to create a new topic and ingest content from a YouTube video. Command: kb topic new my-topic "My Knowledge Base" --mode okf followed by `kb ingest youtube "https://www.youtube.com/watch?v=video-id --topic my-topic".

Frequently Asked Questions about kb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a knowledge base from YouTube videos and codebases?

To build a knowledge base from YouTube videos and codebases, you can use multi-source ingestion to import content and organize it into topic-based markdown or OKF format repositories.

What is the Karpathy KB pattern for organizing notes?

The Karpathy KB pattern is a method for structuring and maintaining topic-based knowledge bases, streamlining the process of organizing, querying, and indexing comprehensive repositories using markdown and OKF formats.

Can I analyze codebases for dead code and complexity within Obsidian?

Yes, you can inspect codebases for smells, dead code, and complexity, integrating the analysis directly into your Obsidian markdown knowledge base for search and indexing.

Do I need external tools like yt-dlp and pdfplumber to ingest content?

Yes, full functionality requires external tools like yt-dlp and pdfplumber to extract and ingest content from diverse sources such as YouTube videos and PDF files into your knowledge base.

How do I scaffold a new topic folder structure for a knowledge base?

You can scaffold a new topic folder structure automatically using specific CLI commands, instantly creating the necessary directories to start ingesting content in either markdown or OKF mode.