Back to list
Sunalamye

release-manager

by Sunalamye

雀魂麻將 AI 助手 - 純 Swift + Core ML 實現

1🍴 0📅 Jan 1, 2026

SKILL.md


name: release-manager description: Build, package, tag, and release Naki app to GitHub. Use when the user asks to "release", "publish", "tag", "build DMG/ZIP", or "upgrade version". Handles the complete release workflow from build to GitHub release creation. allowed-tools: Read, Glob, Grep, Write, Edit, Bash

Release Manager Skill

Base directory: {baseDir}

Quick Release

# 完整發布腳本 (推薦)
bash {baseDir}/scripts/release.sh <version>
# Example: bash {baseDir}/scripts/release.sh 2.3.1

Release Workflow

1. Generate Release Notes → git log $PREV_TAG..HEAD
2. Build App             → xcodebuild -configuration Release
3. Create Packages       → DMG + ZIP in dist/
4. Update Version        → README.md, CLAUDE.md, project.pbxproj
5. Create Git Tag        → git tag -a "v$VERSION"
6. Push to Remote        → git push origin main && git push --tags
7. GitHub Release        → gh release create with assets

Step-by-Step Commands

1. Build Release App

xcodebuild clean build \
  -project Naki.xcodeproj \
  -scheme Naki \
  -configuration Release \
  -derivedDataPath ./build \
  CODE_SIGN_IDENTITY="-" \
  CODE_SIGNING_REQUIRED=NO

2. Create Packages

# Locate built app
APP_PATH=$(find ./build -name "Naki.app" -type d | head -1)

# Create dist directory
mkdir -p dist

# ZIP
cd "$(dirname "$APP_PATH")" && zip -r -y ../../../dist/Naki.zip Naki.app && cd -

# DMG
mkdir -p dmg_temp && cp -R "$APP_PATH" dmg_temp/
hdiutil create -volname "Naki" -srcfolder dmg_temp -ov -format UDZO dist/Naki.dmg
rm -rf dmg_temp

3. Update Version & Tag

VERSION="2.3.1"  # Set your version

# Update version in files
sed -i '' "s/Version-[0-9.]*-green/Version-$VERSION-green/" README.md
sed -i '' "s/| Version | [0-9.]* |/| Version | $VERSION |/" CLAUDE.md

# Commit and tag
git add README.md CLAUDE.md Naki.xcodeproj/project.pbxproj
git commit -m "chore: Release v$VERSION"
git tag -a "v$VERSION" -m "Release v$VERSION"
git push origin main && git push origin "v$VERSION"

4. GitHub Release

gh release create "v$VERSION" \
  --title "Naki v$VERSION" \
  --generate-notes \
  dist/Naki.dmg dist/Naki.zip

Version Guidelines (Semantic Versioning)

TypeWhenExample
PATCHBug 修復、小調整2.3.0 → 2.3.1
MINOR新功能、新工具2.3.0 → 2.4.0
MAJOR架構重構、不相容變更2.3.0 → 3.0.0

Pre-release Checklist

  • All changes committed: git status
  • Build succeeds without errors
  • On correct branch (usually main)
  • Previous tag exists: git describe --tags --abbrev=0

Resource Index

ResourcePurposeLoad When
{baseDir}/scripts/release.sh完整發布腳本執行完整發布
{baseDir}/references/reference.md版本位置、構建配置詳情需要詳細參數

Troubleshooting

IssueSolution
Build failsxcodebuild -project Naki.xcodeproj -list
DMG failsCheck disk space: df -h
gh not authorizedgh auth login
Tag existsgit tag -d "v$VERSION" then retry

Release Manager v1.1 - Streamlined Release Workflow

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon