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 commands/ufomiao/zcf/claudegit clone --depth 1 https://github.com/UfoMiao/zcfWrote 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/commands/ufomiao/zcf/claude)<a href="https://agentmods.dev/commands/ufomiao/zcf/claude"><img src="https://agentmods.dev/badge/commands/ufomiao/zcf/claude.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 | $0.00000 | $0.01828 |
| Opus 5 | $0.00000 | $0.00914 |
| Sonnet 5 | $0.00000 | $0.00366 |
| Haiku 4.5 | $0.00000 | $0.00183 |
Grade A, and why
CLAUDE 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 4d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- CLAUDE — 92% identical, 8 lines differ
How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Commands Module
Last Updated: Mon Oct 27 19:39:26 CST 2025
Module Responsibilities
CLI command implementation module containing all major command functions for ZCF, providing both interactive and non-interactive operation interfaces for Claude Code environment setup and management.
Entry Points and Startup
- Main Entry Points:
init.ts- Complete initialization flow with full setup options (45KB, 1,200+ lines)menu.ts- Interactive menu system with feature selection (13KB, 350+ lines)update.ts- Workflow template updates without full reinstall (4KB, 100+ lines)ccr.ts- Claude Code Router proxy configuration (1KB, 30+ lines)ccu.ts- CCusage tool integration and execution (1KB, 40+ lines)check-updates.ts- Tool version checking and update management (1.3KB, 50+ lines)config-switch.ts- Configuration switching for multi-provider support (14KB, 400+ lines)uninstall.ts- ZCF uninstallation with selective removal (10KB, 300+ lines)
External Interfaces
Command Interfaces
// Initialize command options (v3.3.0+)
export interface InitOptions {
configLang?: SupportedLang
aiOutputLang?: AiOutputLanguage | string
force?: boolean
skipBanner?: boolean
skipPrompt?: boolean
codeType?: CodeToolType | string // Support 'cc', 'cx' abbreviations
// Non-interactive mode parameters
configAction?: 'new' | 'backup' | 'merge' | 'docs-only' | 'skip'
apiType?: 'auth_token' | 'api_key' | 'ccr_proxy' | 'skip'
apiKey?: string // Used for both API key and auth token
apiUrl?: string
apiModel?: string // Primary API model
apiFastModel?: string // Fast API model
provider?: string // API provider preset (302ai, glm, minimax, kimi, custom)
mcpServices?: string[] | string | boolean
workflows?: string[] | string | boolean
outputStyles?: string[] | string | boolean
defaultOutputStyle?: string
allLang?: string // Unified language parameter
installCometixLine?: string | boolean // CCometixLine installation control
// Multi-configuration parameters
apiConfigs?: string // JSON string for multiple API configurations
apiConfigsFile?: string // Path to JSON file with API configurations
}
// Update command options
export interface UpdateOptions {
lang?: SupportedLang
force?: boolean
selectedWorkflows?: string[]
}
// CCR command options
export interface CcrOptions {
lang?: SupportedLang
}
// Check updates options
export interface CheckUpdatesOptions {
lang?: SupportedLang
codeType?: CodeToolType | string
}
// Config switch options
export interface ConfigSwitchOptions {
codeType?: CodeToolType | string
list?: boolean
}
// Uninstall options
export interface UninstallOptions {
mode?: 'complete' | 'custom' | 'interactive'
items?: string
lang?: SupportedLang
}
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.
- 4d ago First seen · 224 lines · 0 tokens per session scan A 2aa5dfa718b3
CLAUDE is a command published in the GitHub repository UfoMiao/zcf (6,085 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,828 tokens. 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 commands, from other repositories
implement
Execute phased implementation with validation gates.
README
Git workflow and quality assurance commands for the claude-skills repository.
convert-to-todowrite-tasklist-prompt
Purpose: Transform verbose, context-heavy slash commands into efficient TodoWrite tasklist-based methods with parallel subagent execution for 60-70% speed improvements.
security-audit
Perform a comprehensive security audit of the codebase to identify potential vulnerabilities, insecure patterns, and security best practice violations.
statusbar-style
Switch the status-bar style (classic / capsule / hairline).
save
Save a key-value memory entry to persistent storage.