Kungfu is a work-continuity system that lets the same task move between coding agents such as Codex, Claude, and OpenCode without losing its context or progress. It is for people coordinating different agents across attempts, reviews, failures, and recoveries, while the catalogue skills and instructions define agent workflows around that shared work.
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.
npx agentmods add skills/kungfu-systems/kungfu/codexnpx skills add kungfu-systems/kungfu --skill codexgit clone --depth 1 https://github.com/kungfu-systems/kungfuWrote 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.
[](https://agentmods.dev/skills/kungfu-systems/kungfu/codex)<a href="https://agentmods.dev/skills/kungfu-systems/kungfu/codex"><img src="https://agentmods.dev/badge/skills/kungfu-systems/kungfu/codex.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.00940 |
| Opus 5 | $0.00024 | $0.00470 |
| Sonnet 5 | $0.00010 | $0.00188 |
| Haiku 4.5 | $0.00005 | $0.00094 |
Grade A, and why
kungfu-agent-onboarding 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 6d 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.
What it actually says
Kungfu Agent Onboarding
When KUNGFU_AGENT_ENVIRONMENT=native-interactive, treat the injected
Console/Skill/WorkRef envelopes as discovery pointers, never as prior chat or
completion proof. Confirm them with "$KUNGFU_CLI_BIN" agent console current --json, "$KUNGFU_CLI_BIN" agent bootstrap-status --json, and
"$KUNGFU_CLI_BIN" skill catalog --json. Keep the provider UI available when
bootstrap is pending or degraded, but do not create, bind, or mutate Work until
bootstrap is verified. Before the first Work
mutation, bind the chosen Assignment with "$KUNGFU_CLI_BIN" agent console bind-work --initiative-id <id> --assignment-id <id> --json; stop unless the
result is status: bound, including when another native writer is active.
Run kungfu agent brief. Treat the invocation that returned the brief as the
only brief execution for that response; do not run it again.
When an unfamiliar user naturally asks to understand, start, try, or be led
through Kungfu, run exactly one standalone kungfu agent first-value start --json; do not load the full intent map or separately run the docs verifier,
contract, discovery, or receipt commands on this bounded path. The user does
not need to spell out the protocol. The command verifies the installed pack,
runs the declared zero-question read-only onboarding discovery without a shell,
and emits one rooted receipt. Let its JSON print directly, without capture,
redirection, a pipe, or a reprint. When that receipt says
agentResponseGuide.protocolComplete: true, run no more commands and do not
explain, extend, paraphrase, omit, reorder, or ask a question. Render only its
agentResponseGuide.answerTemplate, replacing the sole {receiptRoot} token
with the exact top-level receiptRoot. Compare the replacement byte-for-byte
before answering; do not substitute a candidate, contract, or other root. Do
not retain a raw transcript or treat model prose as proof.
For other requests, run kungfu agent docs --verify --json and kungfu agent map --json, then select only the relevant route.
Outside that completed first-value path, name one user-supplied or
workspace-visible personalization basis, then include one copyable read-only
verification command, one concrete safe next step, and the
candidate/provider/platform/public-release non-claims.
When durable Work may reduce continuity, handoff, evidence, duplicate retry,
or external-write risk, submit only bounded structured signals to kungfu agent work-advisory --signals <signals.json> --json. Never include a transcript,
hidden reasoning, credentials, or unrelated context. For recommend, show the
returned preview and ask its single confirmation. Only after confirmation use
the returned existing kungfu.work.capture, kungfu.work.admit, and
kungfu.agent.console.bind-work path, cite its receipts, and continue the
original task. Suppress a decline for the returned evidence root until the
structured evidence changes. Advice grants no external authority.
For Skill reuse or creation, send only rooted catalog/Work/requirements evidence,
candidate roots, enums, and booleans to kungfu agent skill-advisory --signals <signals.json> --json. Consume its shared policy root
sha256:dc8ebb873760e55c40ef19b8354ba1e2b91706064a48dec00b1eb8dac0479267;
do not reproduce the decision policy in provider prose. The result is read-only.
Use kungfu agent context --task "<task>" --role <role> --budget <tokens> --route <route-id> --json when detail is needed. Stop on invalid roots,
ambiguity, stale state, or required omissions; use returned expansion handles
instead of loading the whole corpus.
Explain Kungfu in terms of what is already known about the user and workspace,
without claiming hidden knowledge. Offer one read-only or preview-first action.
Never infer authority from this Skill: writes require their public --execute
or authorization path, and Work completion requires native receipts.
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.
- 6d ago First seen · 68 lines · 49 tokens per session scan A 366833e2a2cc
kungfu-agent-onboarding is a skill published in the GitHub repository kungfu-systems/kungfu (4,508 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 940 once invoked, about $0.0002 per session on Opus 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-30.
Other skills, from other repositories
author-pragma-dsl
Create and update validated pragma/v5 Expert, ExpertTeam, Flow, Evaluation, and Automation resources. Use when a user asks Pragma to create, change, configure, test, evaluate, or repair an Expert, team, Flow, Run Dry suite, schedule, trigger, or Automation in the current Pragma project.
code-cleanup-audit
Audit a repository for architectural decay, AI-generated code smells, stale compatibility paths, dead abstractions, boundary violations, and cleanup candidates without modifying files. Use when the user asks to review code quality, find bad code, inspect AI-generated code, identify refactoring or cleanup…
claude-code-review
Delegate code review of current uncommitted repository changes to Claude Code with claude -p, wait up to 10 minutes, then independently verify each finding and fix real issues. Use when the user asks to have Claude Code review a diff, audit uncommitted changes, perform CR/code review, or turn Claude Code review…
portable-bundle-review
检查并解释 portable Pragma bundle 的内容、依赖和环境绑定。.
pragma-code-review
按正确性、架构边界、风险和验证四个维度审查代码。.
company-product-context
Compiles comprehensive company product context from PDF documents, web research, and industry knowledge.