zcf-release
Skill6.1k starsChanged 15 months agoMITView on GitHub
Automate version release and code commit using changeset
- Deletes or force-pushes
- Commits and pushes
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-update-docsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Use changeset for version management
- Distinctive: line 29
Create release branch and pull request for protected main branch
- Distinctive: line 88
Check if the current working directory meets release conditions:
- Distinctive: line 146
No mixing Chinese and English on the same line
- Distinctive: line 186
Create changeset file based on analysis:
- Distinctive: line 220
Use changeset to update version number and CHANGELOG:
- Distinctive: line 247
Create release branch first, then handle commits separately to avoid polluting main branch:
≈ “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 Release - Automated Release and Commit
Automate version release and code commit using changeset.
Usage
/zcf-release [-p|-mi|-ma|<version>]Parameters
-por--patch: Patch version (default) - bug fixes, minor changes-mior--minor: Minor version - new features, backward compatible-maor--major: Major version - breaking changes, incompatible<version>: Specific version number (e.g., 1.2.3, 2.0.0-beta.1) - directly use provided version
Context
- Automatically analyze code changes and generate bilingual CHANGELOG
- Use changeset for version management
- Create release branch and pull request for protected main branch
- Auto commit code changes (NO manual tags)
- Support GitHub Actions auto publish to npm with automatic tagging after PR merge
Your Role
You are a professional release management assistant responsible for:
- Analyzing code changes
- Generating standardized CHANGELOG
- Executing version release process
Execution Flow
Parse arguments: $ARGUMENTS
1. Parameter Parsing
VERSION_TYPE="patch" # Default to patch version
SPECIFIC_VERSION="" # For user-specified exact version
# Check if argument looks like a version number (matches semver pattern)
if [[ "$ARGUMENTS" =~ ^[0-9]+\.[0-9]+\.[0-9]+([.-].*)?$ ]]; then
SPECIFIC_VERSION="$ARGUMENTS"
VERSION_TYPE="custom"
echo "🚀 Preparing to release exact version: $SPECIFIC_VERSION"
else
case "$ARGUMENTS" in
-p|--patch)
VERSION_TYPE="patch"
;;
-mi|--minor)
VERSION_TYPE="minor"
;;
-ma|--major)
VERSION_TYPE="major"
;;
"")
VERSION_TYPE="patch"
;;
*)
echo "❌ Unknown parameter: $ARGUMENTS"
echo "Usage: /zcf-release [-p|-mi|-ma|<version>]"
echo "Examples:"
echo " /zcf-release -p # Patch version bump"
echo " /zcf-release -mi # Minor version bump"
echo " /zcf-release -ma # Major version bump"
echo " /zcf-release 1.2.3 # Exact version"
echo " /zcf-release 2.0.0-beta.1 # Pre-release version"
exit 1
;;
esac
echo "🚀 Preparing to release $VERSION_TYPE version"
fi2. Check Working Directory Status
Check if the current working directory meets release conditions:
# Ensure in project root directory
if [ ! -f "package.json" ]; then
echo "❌ Error: package.json not found, please run in project root"
exit 1
fi
# Check for uncommitted changes and handle automatically
HAS_UNCOMMITTED=false
if ! git diff --quiet || ! git diff --cached --quiet; then
echo "⚠️ Detected uncommitted changes:"
git status --short
echo ""
HAS_UNCOMMITTED=true
fi
echo "✅ Working directory status OK"3. Analyze Version Changes
Analyze all changes since 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 commits"
COMMITS=$(git log --oneline)
else
echo "📊 Last version: $LAST_TAG"
echo "Analyzing changes since $LAST_TAG..."
COMMITS=$(git log $LAST_TAG..HEAD --oneline)
fi
# Show commit history
echo -e "\n📝 Changes:"
echo "$COMMITS"
# Analyze file changes
echo -e "\n📁 File change statistics:"
if [ -z "$LAST_TAG" ]; then
git diff --stat
else
git diff --stat $LAST_TAG..HEAD
fi4. Generate CHANGELOG Content
Based on code change analysis, I will generate CHANGELOG following these standards:
Format Requirements:
- English description first, Chinese description second
- No mixing Chinese and English on the same line
- Organize by category: New Features, Optimization, Fixes, Documentation, etc.
- Each entry should be concise and clear
Example Format:
## New Features
- Add technical execution guidelines with command best practices
- Support automated release command /zcf-release
- Automatic quote handling for Windows paths
## 新功能
- 添加技术执行指南文档,提供命令执行最佳实践
- 支持自动化发版命令 /zcf-release
- Windows 路径自动加引号处理
## Optimization
- Prioritize ripgrep for better search performance
- Improve template file organization
## 优化
- 优先使用 ripgrep 提升搜索性能
- 改进模板文件组织结构
## Fixes
- Fix Windows path backslash escaping issue
## 修复
- 修复 Windows 路径反斜杠丢失问题5. Create Changeset
Create changeset file based on analysis:
# Generate timestamp
TIMESTAMP=$(date +%Y%m%d%H%M%S)
CHANGESET_FILE=".changeset/release-$TIMESTAMP.md"
# Create changeset file
echo "📝 Creating changeset file..."
if [ "$VERSION_TYPE" = "custom" ]; then
# For specific version, use the exact version number
cat > "$CHANGESET_FILE" << EOF
---
"zcf": $SPECIFIC_VERSION
---
[Bilingual CHANGELOG content generated based on actual changes]
EOF
echo "✅ Changeset file created with exact version: $SPECIFIC_VERSION"
else
# For version type (patch/minor/major), use the type
cat > "$CHANGESET_FILE" << EOF
---
"zcf": $VERSION_TYPE
---
[Bilingual CHANGELOG content generated based on actual changes]
EOF
echo "✅ Changeset file created with version type: $VERSION_TYPE"
fi6. Update Version Number
Use changeset to update version number and CHANGELOG:
echo "🔄 Updating version number and CHANGELOG..."
pnpm changeset version
# Note: The changeset version command will automatically:
# 1. Update package.json version
# 2. Generate/update CHANGELOG.md
# 3. DELETE the temporary changeset file in .changeset/ directory
# No manual cleanup needed!
# Get new version number
NEW_VERSION=$(node -p "require('./package.json').version")
if [ "$VERSION_TYPE" = "custom" ]; then
echo "📦 New version set to: v$NEW_VERSION (specified: $SPECIFIC_VERSION)"
else
echo "📦 New version: v$NEW_VERSION"
fi
# Show CHANGELOG update
echo -e "\n📋 CHANGELOG has been updated, please review the content"
echo "✅ Temporary changeset file has been automatically deleted"7. Create Release Branch and Handle Commits
Create release branch first, then handle commits separately to avoid polluting main branch:
echo "🚀 Creating release branch..."
# Create and switch to release branch
RELEASE_BRANCH="release/v$NEW_VERSION"
git checkout -b "$RELEASE_BRANCH"
# Handle uncommitted changes first (if any)
if [ "$HAS_UNCOMMITTED" = true ]; then
echo "📝 Committing pre-release changes..."
# Stage only the uncommitted changes (exclude changeset modifications)
git add .
git reset HEAD package.json CHANGELOG.md 2>/dev/null || true
# Check if there are still changes to commit after reset
if ! git diff --quiet --staged; then
# Analyze the staged changes to generate appropriate commit message
echo "🔍 Analyzing uncommitted changes..."
CHANGED_FILES=$(git diff --staged --name-only)
# Generate commit message based on changed files
COMMIT_TYPE="chore"
COMMIT_SCOPE=""
COMMIT_DESCRIPTION="pre-release changes"
# Analyze file patterns to determine commit type and scope
if echo "$CHANGED_FILES" | grep -E "\.(md|txt)$" >/dev/null; then
if echo "$CHANGED_FILES" | grep -i "readme" >/dev/null; then
COMMIT_TYPE="docs"
COMMIT_SCOPE="readme"
COMMIT_DESCRIPTION="update README documentation"
elif echo "$CHANGED_FILES" | grep -E "\.claude/" >/dev/null; then
COMMIT_TYPE="docs"
COMMIT_SCOPE="commands"
COMMIT_DESCRIPTION="update command documentation"
else
COMMIT_TYPE="docs"
COMMIT_DESCRIPTION="update documentation"
fi
elif echo "$CHANGED_FILES" | grep -E "\.(ts|js|tsx|jsx)$" >/dev/null; then
if echo "$CHANGED_FILES" | grep -E "test|spec" >/dev/null; then
COMMIT_TYPE="test"
COMMIT_DESCRIPTION="update tests"
else
COMMIT_TYPE="feat"
COMMIT_DESCRIPTION="code changes"
fi
elif echo "$CHANGED_FILES" | grep -E "\.json$" >/dev/null; then
if echo "$CHANGED_FILES" | grep "package" >/dev/null; then
COMMIT_TYPE="chore"
COMMIT_DESCRIPTION="update dependencies"
else
COMMIT_TYPE="chore"
COMMIT_DESCRIPTION="update configuration"
fi
fi
# Build commit message
if [ -n "$COMMIT_SCOPE" ]; then
COMMIT_MSG="${COMMIT_TYPE}(${COMMIT_SCOPE}): ${COMMIT_DESCRIPTION}"
else
COMMIT_MSG="${COMMIT_TYPE}: ${COMMIT_DESCRIPTION}"
fi
# Add file list to commit body
COMMIT_BODY=""
for file in $CHANGED_FILES; do
COMMIT_BODY="${COMMIT_BODY}- Update ${file}
"
done
COMMIT_BODY="${COMMIT_BODY}
🤖 Generated with [Claude Code](https://claude.ai/code)
# Create the commit
git commit -m "${COMMIT_MSG}
${COMMIT_BODY}"
echo "✅ Pre-release changes committed: $COMMIT_MSG"
else
echo "ℹ️ No additional changes to commit after version update"
fi
fi
echo "💾 Committing release version changes..."
# Add version-related changes
git add package.json CHANGELOG.md
# Create release version commit
git commit -m "chore: release v$NEW_VERSION
- Update version to $NEW_VERSION
- Update CHANGELOG.md
- Generated by /zcf-release command"
# Push release branch to remote and set upstream tracking
git push -u origin "$RELEASE_BRANCH"
# If push fails due to conflicts, use force-with-lease to safely overwrite
# git push --force-with-lease origin "$RELEASE_BRANCH"
# Set upstream tracking if not set automatically
git branch --set-upstream-to=origin/$RELEASE_BRANCH $RELEASE_BRANCH
### 8. Create Pull Request
```bash
echo "📋 Creating pull request..."
# Create pull request using gh CLI following the project's PR template
gh pr create --title "🚀 Release v$NEW_VERSION" --body "$(cat <<'EOF'
## Description
Release version v$NEW_VERSION with automated version bump and CHANGELOG update.
This release includes important changes, please review CHANGELOG.md for details.
## Type of Change
- [x] New feature
- [ ] Bug fix
- [ ] Breaking change
- [x] Documentation update
## Testing
- [x] Tests added/updated
- [x] All tests pass
- [x] Coverage maintained
## Checklist
- [x] Code follows style guidelines
- [x] Self-review completed
- [x] Documentation updated
- [x] No new warnings introduced
## Release Notes
⚠️ **IMPORTANT**: After merge, GitHub Actions will automatically:
- Create release tag
- Publish to npm
- Generate GitHub Release
🤖 Generated by /zcf-release command
EOF
)"
echo -e "\n✅ Release preparation complete!"
echo "📦 Version v$NEW_VERSION is ready"
echo "🔗 Pull request created successfully"
echo ""
echo "⚠️ IMPORTANT: Review and merge the PR to trigger the release"
echo "⚠️ Do NOT create or push tags manually!"
echo "🤖 After PR merge, GitHub Actions will automatically:"
echo " - Create the release tag"
echo " - Publish to npm"
echo " - Generate GitHub Release"
echo "👀 View release status: https://github.com/UfoMiao/zcf/actions"Complete Workflow Summary
- Preparation Phase: Check parameters (version type or exact version), working directory status
- Analysis Phase: Analyze commit history and file changes
- Generation Phase: Create bilingual CHANGELOG
- Execution Phase: Update version (automatic bump or exact version)
- Branch Creation Phase: Create release branch BEFORE committing
- Commit Phase: Commit changes on release branch
- PR Creation Phase: Push release branch and create pull request
- Review & Release Phase: Manual PR review and merge, then GitHub Actions auto publish
Important Notes
⚠️ CRITICAL: NEVER create or push Git tags manually! GitHub Actions will automatically:
- Create the version tag after successful PR merge
- Generate GitHub Release
- Publish to npm registry
Manual tags will cause conflicts with the automated release process!
New Protected Branch Workflow:
- 🛡️ Main branch is protected: Cannot push directly to main
- 🌿 Release branch created: Automatic creation of
release/v{version}branch - 📋 Pull Request required: All releases must go through PR review process
- ✅ Manual approval needed: PR must be reviewed and merged manually
- 🤖 Auto-release after merge: GitHub Actions triggers after PR merge
Additional Notes:
- Ensure all code has been tested before running release command
- CHANGELOG must follow bilingual format standards
- When using version types (-p/-mi/-ma), choose the correct type for your changes
- When providing exact version numbers, ensure they follow semantic versioning (e.g., 1.2.3, 2.0.0-beta.1)
- Exact version numbers bypass automatic version determination - use carefully
- Carefully review CHANGELOG content in the created PR before merging
- No manual cleanup needed:
changeset versionautomatically deletes temporary changeset files - The
.changeset/directory should only contain config files, not temporary release files - Requires
ghCLI: Ensure GitHub CLI is installed and authenticated for PR creation
Version Parameter Examples:
/zcf-releaseor/zcf-release -p- Auto patch bump (2.9.11 → 2.9.12)/zcf-release -mi- Auto minor bump (2.9.11 → 2.10.0)/zcf-release -ma- Auto major bump (2.9.11 → 3.0.0)/zcf-release 1.5.0- Exact version (→ 1.5.0)/zcf-release 3.0.0-alpha.1- Pre-release version (→ 3.0.0-alpha.1)
Now starting release 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.

