zcf-update-docs
Skill6.1k starsChanged 15 months agoMITView on GitHub
Automatically check code changes since last tag and update documentation in docs/ directory (en, zh-CN, ja-JP) and CLAUDE.md to ensure consistency with actual code implementation
Trending
Quiet since October.about the whole repository
Who's talking about UfoMiao/zcf
- code-yeongyu/oh-my-openagent“[Feature]: MCP API should have free alternatives”GitHub · Jan 10, 2026 · 2 reactions
- Lapis0x0/obsidian-yolo“[Feature Request]: Adding BMAD or Spec "kits" to the repo”GitHub · Sep 11, 2025 · 1 reactions
- sudosubin/agents.nix“agent-skills.github.ufomiao.zcf: init at 3.7.3”GitHub · Oct 3, 2026
- zhycn/learning-by-output“[AI Coding] ZCF(Zero-Config Code Flow)安装与使用向导”GitHub · Feb 13, 2026
- nguyenphutrong/quotio“Ollama and MLX Support”GitHub · Jan 28, 2026
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub (15 times).
On GitHub · 15
- Jan 10, 2026[Feature]: MCP API should have free alternatives — code-yeongyu/oh-my-openagent2 reactions · 10 comments
- Sep 11, 2025[Feature Request]: Adding BMAD or Spec "kits" to the repo — Lapis0x0/obsidian-yolo1 reaction · 2 comments
- Oct 3, 2026agent-skills.github.ufomiao.zcf: init at 3.7.3 — sudosubin/agents.nix0 reactions
- Feb 13, 2026[AI Coding] ZCF(Zero-Config Code Flow)安装与使用向导 — zhycn/learning-by-output0 reactions
- Jan 28, 2026Ollama and MLX Support — nguyenphutrong/quotio0 reactions
10 more on GitHub
- Jan 10, 2026Q: Considerations of other MCPs — agiletec-inc/airis-mcp-gateway0 reactions · 3 comments
- Dec 24, 2025[Question] ZCF compatibility — jeremylongshore/tons-of-skills-marketplace0 reactions · 3 comments
- Dec 16, 2025Can this be turned into an MCP? — hluaguo/learn-faster-kit0 reactions · 1 comment
- Dec 16, 2025Claude Code Router Compatibility — Spacehunterz/Emergent-Learning-Framework_ELF0 reactions
- Oct 26, 2025serena - activate_project Search the superior directory — oraios/serena0 reactions · 2 comments
- Oct 18, 2025Could this be turned into a portable DB? — gannonh/memento-mcp0 reactions · 2 comments
- Oct 6, 2025Are you guys ZCF-compatible? — snahrup/bmad-agent-windsurf0 reactions
- Oct 3, 2025Can Agents use JJ for version control? — agent-era/devteam0 reactions
- Aug 25, 2025Use Qwen? — ammaarreshi/Gemini-Search0 reactions
- Aug 25, 2025CCR can't use Gemini to fetch website — musistudio/claude-code-router0 reactions · 4 comments
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- zcf-add-sponsorSkill
- zcf-prSkill
- zcf-releaseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Check if documentation needs updates in docs/ directory structure
- Distinctive: line 26
Ensure CLI commands, features, and workflows documentation match actual code
- Distinctive: line 28
Update CLAUDE.md for development-related changes
- Distinctive: line 133
Read and analyze current documentation structure:
- Distinctive: line 197
Ensure features documentation matches actual implementation:
- Distinctive: line 220
Create a detailed report of findings:
- Distinctive: line 267
If not in check-only mode, update the documentation:
- Very specific: line 416
ALWAYS: ensure CLI command documentation matches actual implementation in src/commands/
- Distinctive: line 417
ALWAYS: verify feature descriptions match actual code behavior
- Distinctive: line 419
ALWAYS: update SUMMARY.md when file structure changes
- Distinctive: line 420
NEVER: remove existing content without verification
- Distinctive: line 422
NEVER: create inconsistency between language versions
- Very specific: line 425
Use actual i18n translations from src/i18n/locales/{lang}/*.json
- Distinctive: line 427
Update code examples to reflect current implementation
- Distinctive: line 429
Remove or mark deprecated features that no longer exist
- Distinctive: line 431
Keep CLAUDE.md focused on development-specific information
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ZCF Update Docs - Documentation Synchronization
Automatically check code changes since last tag and update documentation in docs/ directory (multilingual: en, zh-CN, ja-JP) and CLAUDE.md to ensure consistency with actual code implementation.
Usage
/zcf-update-docs [--check-only]Parameters
--check-only: Only check for inconsistencies without making updates (dry run)
Context
- Analyze all code changes since the last Git tag
- Check if documentation needs updates in docs/ directory structure
- Ensure CLI commands, features, and workflows documentation match actual code
- Maintain multilingual documentation consistency across en, zh-CN, ja-JP
- Update CLAUDE.md for development-related changes
Your Role
You are a professional documentation maintainer responsible for:
- Analyzing code changes and their impact on documentation
- Identifying documentation sections that need updates
- Ensuring documentation accuracy and consistency
- Maintaining multilingual synchronization
Execution Flow
Parse arguments: $ARGUMENTS
1. Parameter Parsing
CHECK_ONLY=false # Default to update mode
case "$ARGUMENTS" in
--check-only)
CHECK_ONLY=true
echo "📋 Running in check-only mode (no files will be modified)"
;;
"")
CHECK_ONLY=false
echo "✏️ Running in update mode"
;;
*)
echo "Unknown parameter: $ARGUMENTS"
echo "Usage: /zcf-update-docs [--check-only]"
exit 1
;;
esac2. Get Changes Since Last Tag
Analyze all changes since the last release:
# Get last release tag
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -z "$LAST_TAG" ]; then
echo "⚠️ No previous version tag found, analyzing all files"
FILES_CHANGED=$(git ls-files)
else
echo "📊 Last version: $LAST_TAG"
echo "Analyzing changes since $LAST_TAG..."
FILES_CHANGED=$(git diff --name-only $LAST_TAG..HEAD)
fi
# Categorize changed files
echo -e "\n📁 Analyzing changed files..."3. Identify Documentation Update Areas
Based on file changes, determine which documentation files in docs/ need updates:
Code Changes → Documentation Mapping:
- CLI Commands (
src/commands/*.ts) →docs/{lang}/cli/src/commands/init.ts→cli/init.md- Installation and initializationsrc/commands/menu.ts→cli/menu.md- Interactive menu systemsrc/commands/update.ts→cli/update.md- Update workflowssrc/commands/ccr.ts→cli/ccr.md- CCR proxy managementsrc/commands/ccu.ts→cli/ccu.md- Usage analysissrc/commands/uninstall.ts→cli/uninstall.md- Uninstallationsrc/commands/config-switch.ts→cli/config-switch.md- Config switchingsrc/commands/check-updates.ts→cli/check-updates.md- Version check
- Features →
docs/{lang}/features/src/utils/installer.ts,src/utils/claude-config.ts→features/claude-code.mdsrc/utils/code-tools/codex*→features/codex.mdsrc/config/workflows.ts→features/workflows.mdsrc/config/mcp-services.ts→features/mcp.mdsrc/utils/ccr/→features/ccr.mdsrc/utils/cometix/→features/cometix.mdsrc/utils/config.ts→features/multi-config.md
- Workflows (
src/config/workflows.ts,templates/*/workflow/) →docs/{lang}/workflows/- Workflow definitions →
workflows/index.md - Specific workflow templates →
workflows/{workflow-name}.md
- Workflow definitions →
- Advanced Configuration →
docs/{lang}/advanced/src/types/config.ts,src/utils/config.ts→advanced/configuration.mdsrc/config/api-providers.ts→advanced/api-providers.mdtemplates/→advanced/templates.mdsrc/i18n/→advanced/i18n.md
- Getting Started →
docs/{lang}/getting-started/src/commands/init.ts,src/utils/installer.ts→getting-started/installation.md- General introduction →
getting-started/index.md
- Development →
docs/{lang}/development/andCLAUDE.md- Architecture changes →
development/architecture.md+CLAUDE.md - Testing changes →
development/testing.md+CLAUDE.md - Contributing guidelines →
development/contributing.md - Package.json scripts →
CLAUDE.md
- Architecture changes →
4. Check Current Documentation
Read and analyze current documentation structure:
# Check if documentation directories exist
DOCS_LANGS=("en" "zh-CN" "ja-JP")
DOCS_CATEGORIES=(
"getting-started"
"cli"
"features"
"workflows"
"advanced"
"best-practices"
"development"
)
echo "📁 Checking documentation structure..."
for LANG in "${DOCS_LANGS[@]}"; do
if [ ! -d "docs/$LANG" ]; then
echo "❌ Warning: docs/$LANG directory not found"
else
echo "✅ Found: docs/$LANG/"
for CATEGORY in "${DOCS_CATEGORIES[@]}"; do
if [ ! -d "docs/$LANG/$CATEGORY" ]; then
echo " ⚠️ Missing category: $CATEGORY"
else
echo " ✅ Category: $CATEGORY"
fi
done
fi
done
# Check CLAUDE.md
if [ ! -f "CLAUDE.md" ]; then
echo "❌ Warning: CLAUDE.md not found"
else
echo "✅ Found: CLAUDE.md"
fi5. Verify CLI Commands Consistency
Compare CLI commands implementation with documentation:
Check Points:
- Command names, options, and parameters
- Command descriptions and usage examples
- Interactive menu options and flow
- Keyboard shortcuts and navigation
- Exit and back options
- Multilingual prompt translations
Code Sources → Documentation Files:
src/commands/menu.ts,src/i18n/locales/*/menu.json→docs/{lang}/cli/menu.mdsrc/commands/init.ts,src/i18n/locales/*/cli.json→docs/{lang}/cli/init.mdsrc/commands/update.ts→docs/{lang}/cli/update.mdsrc/commands/ccr.ts→docs/{lang}/cli/ccr.mdsrc/commands/ccu.ts→docs/{lang}/cli/ccu.mdsrc/commands/uninstall.ts→docs/{lang}/cli/uninstall.mdsrc/commands/config-switch.ts→docs/{lang}/cli/config-switch.mdsrc/commands/check-updates.ts→docs/{lang}/cli/check-updates.md
6. Verify Features Documentation
Ensure features documentation matches actual implementation:
Check Points:
- Claude Code configuration capabilities
- Codex CLI integration and setup
- Workflow system and categories
- MCP service integration
- CCR proxy management
- Cometix status line
- Multi-config and backup system
- API provider presets
Code Sources → Documentation Files:
src/utils/installer.ts,src/utils/claude-config.ts→docs/{lang}/features/claude-code.mdsrc/utils/code-tools/codex*.ts,templates/codex/→docs/{lang}/features/codex.mdsrc/config/workflows.ts→docs/{lang}/features/workflows.mdsrc/config/mcp-services.ts→docs/{lang}/features/mcp.mdsrc/utils/ccr/→docs/{lang}/features/ccr.mdsrc/utils/cometix/→docs/{lang}/features/cometix.mdsrc/utils/config.ts→docs/{lang}/features/multi-config.md
7. Generate Update Report
Create a detailed report of findings:
## Documentation Update Report
### Files Changed Since $LAST_TAG
- [List of relevant changed files categorized by module]
### Documentation Files Requiring Updates
#### docs/en/ (English Documentation)
- [ ] getting-started/installation.md - Installation and setup
- [ ] cli/*.md - CLI command documentation
- [ ] features/*.md - Feature descriptions
- [ ] workflows/*.md - Workflow guides
- [ ] advanced/*.md - Advanced configuration
- [ ] development/*.md - Development documentation
#### docs/zh-CN/ (Chinese Documentation)
- [ ] getting-started/installation.md - 安装和设置
- [ ] cli/*.md - CLI 命令文档
- [ ] features/*.md - 功能说明
- [ ] workflows/*.md - 工作流指南
- [ ] advanced/*.md - 高级配置
- [ ] development/*.md - 开发文档
#### docs/ja-JP/ (Japanese Documentation)
- [ ] getting-started/installation.md - インストールとセットアップ
- [ ] cli/*.md - CLI コマンドドキュメント
- [ ] features/*.md - 機能説明
- [ ] workflows/*.md - ワークフローガイド
- [ ] advanced/*.md - 高度な設定
- [ ] development/*.md - 開発ドキュメント
#### CLAUDE.md (Root Development Documentation)
- [ ] Development commands (package.json scripts)
- [ ] Architecture and module structure
- [ ] Testing guidelines and coverage
- [ ] Workflow system implementation
- [ ] Code standards and conventions
### Specific Inconsistencies Found
[Detailed list of mismatches between code and documentation, organized by file]8. Update Documentation Files
If not in check-only mode, update the documentation:
if [ "$CHECK_ONLY" = false ]; then
echo "📝 Updating documentation files in docs/ directory..."
# Update docs/en/ (English Documentation)
# - CLI commands: Update docs/en/cli/*.md based on src/commands/*.ts
# - Features: Update docs/en/features/*.md based on feature implementations
# - Workflows: Update docs/en/workflows/*.md based on src/config/workflows.ts
# - Getting Started: Update docs/en/getting-started/*.md based on installation flow
# - Advanced: Update docs/en/advanced/*.md based on configuration and templates
# - Development: Update docs/en/development/*.md based on architecture changes
# - Use translations from src/i18n/locales/en/*.json
# Update docs/zh-CN/ (Chinese Documentation)
# - Maintain same structure and sections as English version
# - Use proper Chinese translations from src/i18n/locales/zh-CN/*.json
# - Update all corresponding CLI, features, workflows, etc.
# - Ensure technical terms and examples are properly localized
# Update docs/ja-JP/ (Japanese Documentation)
# - Maintain same structure and sections as English version
# - Use proper Japanese translations (maintain consistency with project style)
# - Update all corresponding CLI, features, workflows, etc.
# - Ensure proper Japanese formatting and terminology
# Update CLAUDE.md (Root Development Documentation)
# - Update development commands if package.json scripts changed
# - Update architecture section if new modules added
# - Update testing section if test structure changed
# - Update workflow system if src/config/workflows.ts changed
# - Update module index if directory structure changed
# - Maintain English-only for development documentation
# Update SUMMARY.md for each language
# - Ensure table of contents matches actual file structure
# - Update links if files were added/removed/renamed
# - Maintain consistent ordering across all languages
echo "✅ Documentation files updated in docs/ directory"
else
echo "ℹ️ Check-only mode: No files were modified"
fi9. Validation
Perform final validation checks:
echo -e "\n🔍 Performing validation checks..."
# Check for broken internal links in all language versions
echo "Checking internal links in docs/en/, docs/zh-CN/, docs/ja-JP/..."
# Verify SUMMARY.md matches actual file structure
echo "Validating SUMMARY.md table of contents..."
# Ensure structure consistency across languages
echo "Checking structural consistency across en, zh-CN, ja-JP..."
# Verify code examples still work
echo "Verifying code examples and command syntax..."
# Validate markdown formatting
echo "Validating markdown format..."
# Check translation completeness
echo "Checking multilingual translation completeness..."
# Verify CLI command documentation matches implementation
echo "Verifying CLI command documentation accuracy..."
# Validate feature documentation completeness
echo "Checking feature documentation coverage..."
echo "✅ Validation complete"10. Summary Report
Generate final summary:
echo -e "\n📊 Documentation Update Summary"
echo "================================"
echo "Files analyzed: [count]"
echo "Documentation files updated: [list]"
echo "Sections modified: [count]"
echo ""
echo "Key updates:"
echo "- [List major updates]"
echo ""
if [ "$CHECK_ONLY" = true ]; then
echo "📋 This was a check-only run. To apply updates, run without --check-only"
else
echo "✅ Documentation has been synchronized with code"
echo "📝 Please review the changes before committing"
fiDocumentation Structure Reference
docs/{lang}/ Directory Structure (en, zh-CN, ja-JP)
Each language directory contains the following categories:
- getting-started/ - Installation and quick start
index.md- Quick start guideinstallation.md- Installation guide (Must matchsrc/commands/init.ts)
- cli/ - CLI command documentation
index.md- Commands overviewinit.md,update.md,menu.md, etc. (Must matchsrc/commands/*.ts)
- features/ - Feature descriptions
index.md- Features overviewclaude-code.md,codex.md,workflows.md, etc. (Must match implementations)
- workflows/ - Workflow guides
index.md- Workflow overview- Specific workflow documentation (Must match
src/config/workflows.ts)
- advanced/ - Advanced configuration
configuration.md,api-providers.md,templates.md, etc.
- best-practices/ - Best practices and tips
- Usage tips and optimization strategies
- development/ - Development documentation
architecture.md,contributing.md,testing.md
- SUMMARY.md - Table of contents for each language
CLAUDE.md Structure (Root Development Documentation)
- Project Overview
- Architecture Overview (Must match actual module structure)
- Module Index (Must match src/ directory structure)
- CLI Usage
- Running and Development (Must match
package.jsonscripts) - Development Guidelines
- Testing Strategy
- AI Team Configuration
Important Notes
⚠️ Critical Requirements:
- ALWAYS ensure CLI command documentation matches actual implementation in
src/commands/ - ALWAYS verify feature descriptions match actual code behavior
- ALWAYS maintain structural consistency across all language versions (en, zh-CN, ja-JP)
- ALWAYS update SUMMARY.md when file structure changes
- NEVER remove existing content without verification
- NEVER break markdown formatting or internal links
- NEVER create inconsistency between language versions
📌 Best Practices:
- Use actual i18n translations from
src/i18n/locales/{lang}/*.json - Preserve existing formatting and style conventions
- Update code examples to reflect current implementation
- Include new features and commands added since last tag
- Remove or mark deprecated features that no longer exist
- Maintain parallel structure across en, zh-CN, ja-JP directories
- Keep CLAUDE.md focused on development-specific information
🔍 Validation Checklist:
- CLI command docs match
src/commands/*.tsimplementation - Feature docs match actual feature implementations
- Workflow docs match
src/config/workflows.tsdefinitions - Installation guide matches
src/commands/init.tsflow - Configuration docs match types in
src/types/*.ts - MCP service docs match
src/config/mcp-services.ts - Structure consistency across en, zh-CN, ja-JP directories
- SUMMARY.md matches actual file structure for each language
- All internal links are valid and not broken
- Code examples and command syntax are correct
- Translations use proper i18n strings from codebase
- Markdown formatting is valid in all files
- Codex integration documentation is comprehensive
- CCR, Cometix, CCusage features are accurately documented
- API provider presets documentation is up-to-date
- CLAUDE.md reflects current architecture and development practices
Now starting documentation update process...
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

