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/opencodenpx skills add kungfu-systems/kungfu --skill opencodegit clone --depth 1 https://github.com/kungfu-systems/kungfuWhat 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 | $0.00033 | $0.00847 |
| Opus 5 | $0.00016 | $0.00424 |
| Sonnet 5 | $0.00007 | $0.00169 |
| Haiku 4.5 | $0.00003 | $0.00085 |
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 3d 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.
This is a copy
97% identical to kungfu-agent-onboarding — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Kungfu Agent Onboarding
When KUNGFU_AGENT_ENVIRONMENT=native-interactive, use the in-process
environment envelopes before acting:
KUNGFU_AGENT_CONSOLE_ENVELOPEidentifies the exact Project, WorkConsole, SessionAttempt, runtime Profile, and optional WorkRef.KUNGFU_SKILL_CONTEXTadvertises the compact Skill catalog. Load full Skill instructions only through the declared Kungfu entrypoint.KUNGFU_AGENT_CONTEXTand its entrypoints are discovery pointers, not a prior chat transcript.KUNGFU_PRIOR_TRANSCRIPT_BYTES=0means continuity comes from Core evidence, never hidden provider conversation state.
Confirm current facts with read-only commands when needed:
"$KUNGFU_CLI_BIN" agent console current --json
"$KUNGFU_CLI_BIN" agent bootstrap-status --json
"$KUNGFU_CLI_BIN" agent capabilities --json
"$KUNGFU_CLI_BIN" skill catalog --json
"$KUNGFU_CLI_BIN" work status --workspace <path> --initiative-id <id> --assignment-id <id>
"$KUNGFU_CLI_BIN" agent session list --json
A bare kungfu run opencode launch is intentionally Work-unbound so many
terminal windows can start in the same Project. As soon as you choose or accept
one Assignment, and before editing files or invoking a Work mutation, run:
"$KUNGFU_CLI_BIN" agent console bind-work --initiative-id <id> --assignment-id <id> --json
Keep the provider UI available when bootstrap is pending or degraded, but do
not create, bind, or mutate Work until kungfu agent bootstrap-status --json reports
state: verified.
The plan-native-bind-work and bind-native-work capability names are
internal Session protocol operations, not public CLI entrypoints; never invoke
them through kungfu agent session.
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.
Do not continue unless it returns status: bound. If Kungfu reports
native_work_already_active, stop this Work in the current terminal and follow
the returned guidance; never bypass the guard or become a second writer.
Do not infer Work completion from terminal output or process exit. Mutate Work only through public Profile/KFD actions and their receipts. The Kungfu TUI is an observer of this native UI and never owns OpenCode input or transcript bytes.
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.
- 3d ago First seen · 78 lines · 33 tokens per session scan A b39a3090fbf9
kungfu-agent-onboarding is a skill published in the GitHub repository kungfu-systems/kungfu (4,507 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 847 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to kungfu-agent-onboarding, differing in 11 lines, and is treated as a copy.
Other skills, from other repositories
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…
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.
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.