kungfu is a command-line tool for finding, streaming, running, and installing Agent Skills (SKILL.md). Coding agents can stream skill instructions and reference files into a session on demand (kungfu load) or install them into workspace and global folders (kungfu learn).
kungfu implements the Cloudflare Agent Skills Discovery RFC (v0.2.0) (/.well-known/agent-skills/index.json) from Cloudflare's Agent Readiness guide. It loads single-file (type: "skill-md") and packaged .tar.gz or .zip (type: "archive") skills and verifies their sha256 digests.
Install with Go 1.27 or newer:
go install github.com/danicat/kungfu@latestVerify the installation:
kungfu --versionSearch across skill names, descriptions, and tags using hybrid BM25 and fuzzy matching:
# Search by keyword
kungfu find "refactoring ast"
# Limit results
kungfu find "audio" --limit 5
# Search within a specific catalog (full name or unique short repo name)
kungfu find "testing@spf13/go-skills"
kungfu find "testing@go-skills"Stream SKILL.md instructions, references, or assets to stdout. Output paginates at ~6,000 bytes to fit within 8 KiB agent buffers, and cached skills in ~/.cache/kungfu/skills/ are served from disk whenever their sha256 digest matches the catalog index:
# Stream skill instructions (page 1)
kungfu load godoctor
# Read later pages or stream the entire file unpaginated
kungfu load godoctor -p 2
kungfu load godoctor --full
# Stream raw markdown including YAML frontmatter (unpaginated unless -p or --page-size is set)
kungfu load godoctor --raw
# Load from a specific catalog (full name or unique short repo name)
kungfu load go@spf13/go-skills
kungfu load go@go-skills
# Load from local cache only (offline-safe) or force an upstream refresh
kungfu load godoctor --local
kungfu load godoctor -u -f
# Load a companion reference document or asset (optionally scoped to a catalog)
kungfu load godoctor/references/architecture.md
kungfu load go/references/guide.md@spf13/go-skillsRun scripts or executables bundled inside a skill's scripts/ directory (uv, python3, bun, deno, tsx, node, bash, sh, or compiled binaries):
kungfu run godoctor analyze.sh --jsonList available skills or inspect metadata, references, and scripts for one or more skills (show --json always returns a JSON array):
# List all available skills
kungfu list
kungfu list --json
# Show metadata and bundled files for a skill
kungfu show godoctor
kungfu show go@go-skills --jsonSave skills to the workspace (.agents/skills/) or globally (~/.agents/skills/):
# Install to workspace (.agents/skills/<skill>/)
kungfu learn godoctor
# Install from a specific catalog or GitHub repository
kungfu learn go@go-skills
kungfu learn danicat/kungfu
# Install globally to ~/.agents/skills/<skill>/
kungfu learn godoctor -g
# Overwrite an existing installation
kungfu learn godoctor -fView installed skills, versions, and (when local telemetry is enabled) local usage counts:
kungfu status
kungfu status -g
kungfu status godoctor
kungfu status --jsonSync all catalogs and check or apply skill updates:
# Synchronize all catalogs and check for available skill updates (dry run)
kungfu update
# Synchronize all catalogs and apply updates to installed skills
kungfu update --all
kungfu update godoctor
kungfu update -g -f godoctor
# Remove skills from workspace or global scope
kungfu forget godoctor
kungfu forget --all
kungfu forget -g -f kungfuAdd, list, and remove skill catalogs from GitHub repositories, HTTPS manifests, or local folders. Two built-in catalogs (default and kungfu) are always registered and cannot be removed:
# Add a GitHub skills repository (optionally pinning a ref or subpath)
kungfu catalog add google/skills
kungfu catalog add owner/repo --ref v1.2.0 --subpath skills/go --name go-skills
# Add an HTTPS manifest or local directory
kungfu catalog add https://example.com/.well-known/agent-skills/index.json --name custom-catalog
kungfu catalog add ./my-team-skills --name team-skills
# List or remove catalogs
kungfu catalog list
kungfu catalog remove google/skillsWhen indexing a catalog source, kungfu checks three formats in order:
.well-known/agent-skills/index.json: Cloudflare Agent Skills Discovery RFC v0.2.0 manifest (skillsarray withskill-mdorarchiveentries and SHA-256 digests; see Is your site agent-ready?).index.json:google/skillsindex file.- Directory tree:
agentskills.iofolder scan forSKILL.mdfiles.
kungfu reads user settings from ~/.config/kungfu/config.yaml (or $XDG_CONFIG_HOME/kungfu/config.yaml):
catalogs:
default: https://skills.danicat.dev/.well-known/agent-skills/index.json
kungfu: danicat/kungfu
telemetry:
enabled: false| Key | Default | Description |
|---|---|---|
catalogs.default |
https://skills.danicat.dev/.well-known/agent-skills/index.json |
Default catalog URL |
catalogs.kungfu |
danicat/kungfu |
Built-in kungfu skill catalog |
telemetry.enabled |
false |
Opt-in local usage counters (load, run, learn) stored only in local state.json (never sent over the network); can also be toggled with KUNGFU_TELEMETRY=1 or 0 |
| Flag | Description |
|---|---|
--json |
Emit JSON output |
--config <path> |
Custom config file path |
--cache-dir <dir> |
Custom cache folder (default ~/.cache/kungfu) |
-v, --verbose |
Verbose diagnostics on stderr |
-V, --version |
Print version |
-h, --help |
Show help |
Run the test suite with the race detector enabled:
go test -v -race ./...Apache License 2.0. See LICENSE for details.
This is not an officially supported Google product.