Skip to content

armgit / chops

Public Imported from GitHub
0

Your AI agent skills, finally organized. A macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp.

feat: add changelog workflow, appcast history, and notarytool pre-check to release pipeline

Josh Pigford46a8f3f1cf8f
diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md
index 62daf63..53e6a8c 100644
--- a/.claude/skills/release/SKILL.md
+++ b/.claude/skills/release/SKILL.md
@@ -11,8 +11,16 @@ Cut a new release of Chops. Determines the version from git history, updates the
1. Confirm `.env` exists in the project root. If it does not, stop and tell the user:
"Missing `.env` file. Copy `.env.example` to `.env` and fill in APPLE_TEAM_ID, APPLE_ID, and SIGNING_IDENTITY_NAME."
-2. Confirm the working tree is clean (`git status --porcelain`). If there are uncommitted changes, stop and tell the user to commit or stash first.
-3. Confirm you are on the `main` branch. If not, stop and tell the user to switch to `main` first.
+2. Confirm the notarytool keychain profile `AC_PASSWORD` works:
+ ```bash
+ xcrun notarytool history --keychain-profile "AC_PASSWORD" >/dev/null 2>&1
+ ```
+ If it fails, stop and tell the user to run:
+ ```bash
+ xcrun notarytool store-credentials "AC_PASSWORD" --apple-id "<APPLE_ID>" --team-id "<TEAM_ID>" --password "<app-specific-password>"
+ ```
+3. Confirm the working tree is clean (`git status --porcelain`). If there are uncommitted changes, stop and tell the user to commit or stash first.
+4. Confirm you are on the `main` branch. If not, stop and tell the user to switch to `main` first.
### Step 2: Determine the next version
@@ -48,6 +56,18 @@ Always confirm the version before proceeding. Use `mcp__conductor__AskUserQuesti
If the user picks "Use a different version", ask them for the version number. If they pick "Cancel", stop.
+### Step 3.5: Update CHANGELOG.md
+
+1. Check if `CHANGELOG.md` has an `## [Unreleased]` section with content (bullet points).
+2. If the `## [Unreleased]` section is empty or missing, draft entries from commits since the last tag:
+ - **Rewrite each entry to be user-facing.** Don't echo commit messages. Describe what changed from the user's perspective — what it enables, fixes, or improves.
+ - Bad: "feat: add skills registry browser with multi-agent install"
+ - Good: "Browse and install community skills directly from the app"
+ - Keep entries succinct (one line each). No technical jargon, no commit prefixes.
+ - Confirm the drafted entries with the user using `mcp__conductor__AskUserQuestion`.
+3. Rename `## [Unreleased]` to `## [VERSION] - YYYY-MM-DD` (today's date).
+4. Add a new empty `## [Unreleased]` section above it.
+
### Step 4: Update the marketing site version
1. Edit `site/src/pages/index.astro`. Find the line containing `class="requires"` and replace it with:
@@ -55,10 +75,11 @@ If the user picks "Use a different version", ask them for the version number. If
<p class="requires">v<VERSION> &middot; Requires macOS Sequoia</p>
```
where `<VERSION>` is the confirmed version.
-2. Commit this change:
+2. Commit this change along with the changelog:
```bash
- git add site/src/pages/index.astro
+ git add site/src/pages/index.astro CHANGELOG.md
git commit -m "chore: update site version to v<VERSION>"
+ git push
```
### Step 5: Run the release script
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..1d68c41
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,27 @@
+# Changelog
+
+## [Unreleased]
+
+- Skills registry browser for discovering and installing community skills
+- `/release` skill for automated version management and release pipeline
+- `/setup` skill and expanded developer onboarding docs
+
+## [1.1.0] - 2026-03-18
+
+- Drag-to-Applications DMG installer with styled Finder window
+- macOS Sequoia (15) support
+- Credential management moved to `.env` file (no more hardcoded values)
+
+## [1.0.1] - 2026-03-16
+
+- About tab in settings with version info, update checks, and links
+- Apple logo in download button, version and system requirements on site
+- Download button links directly to DMG
+
+## [1.0.0] - 2026-03-15
+
+- Initial release — discover, organize, and edit AI agent skills
+- Three-column layout with sidebar, skill list, and markdown editor
+- Support for Claude Code, Cursor, Codex, Windsurf, Copilot, Aider, Amp
+- Sparkle auto-updates with EdDSA signing
+- Marketing site at chops.md
diff --git a/scripts/release.sh b/scripts/release.sh
index 3e6b4c9..49595b6 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -14,11 +14,70 @@ if [ -f "$SCRIPT_DIR/../.env" ]; then
fi
VERSION="${1:?Usage: ./scripts/release.sh <version>}"
+
+# Extract changelog entries for a version and convert to HTML <ul>
+extract_changelog() {
+ local version="$1"
+ local changelog="$2"
+ local in_section=false
+ local html="<ul>"
+
+ while IFS= read -r line; do
+ if [[ "$line" =~ ^##\ \[${version}\] ]]; then
+ in_section=true
+ continue
+ fi
+ if $in_section && [[ "$line" =~ ^##\ ]]; then
+ break
+ fi
+ if $in_section && [[ "$line" =~ ^-\ (.+) ]]; then
+ html+="<li>${BASH_REMATCH[1]}</li>"
+ fi
+ done < "$changelog"
+
+ html+="</ul>"
+ if [ "$html" = "<ul></ul>" ]; then
+ echo ""
+ else
+ echo "$html"
+ fi
+}
+
+# Extract raw markdown changelog entries for a version
+extract_changelog_markdown() {
+ local version="$1"
+ local changelog="$2"
+ local in_section=false
+ local md=""
+
+ while IFS= read -r line; do
+ if [[ "$line" =~ ^##\ \[${version}\] ]]; then
+ in_section=true
+ continue
+ fi
+ if $in_section && [[ "$line" =~ ^##\ ]]; then
+ break
+ fi
+ if $in_section && [[ "$line" =~ ^-\ (.+) ]]; then
+ md+="- ${BASH_REMATCH[1]}"$'\n'
+ fi
+ done < "$changelog"
+
+ echo "$md"
+}
+
TEAM_ID="${APPLE_TEAM_ID:?Set APPLE_TEAM_ID}"
SIGNING_IDENTITY="Developer ID Application: ${SIGNING_IDENTITY_NAME:?Set SIGNING_IDENTITY_NAME} ($TEAM_ID)"
APPLE_ID="${APPLE_ID:?Set APPLE_ID}"
BUNDLE_ID="com.joshpigford.Chops"
+if ! xcrun notarytool history --keychain-profile "AC_PASSWORD" >/dev/null 2>&1; then
+ echo "❌ Unable to use notarytool keychain profile \"AC_PASSWORD\"."
+ echo "Create or refresh it with:"
+ echo " xcrun notarytool store-credentials \"AC_PASSWORD\" --apple-id \"$APPLE_ID\" --team-id \"$TEAM_ID\" --password \"<app-specific-password>\""
+ exit 1
+fi
+
create_chops_dmg() {
hdiutil detach "/Volumes/Chops" 2>/dev/null || true
rm -f build/Chops.dmg build/Chops_rw.dmg
@@ -123,6 +182,31 @@ ED_SIG=$(echo "$SIGNATURE" | grep -o 'sparkle:edSignature="[^"]*"' | cut -d'"' -
LENGTH=$(echo "$SIGNATURE" | grep -o 'length="[^"]*"' | cut -d'"' -f2)
PUB_DATE=$(date -u +"%a, %d %b %Y %H:%M:%S +0000")
+# Extract release notes from CHANGELOG.md
+RELEASE_NOTES=$(extract_changelog "$VERSION" "CHANGELOG.md")
+if [ -z "$RELEASE_NOTES" ]; then
+ echo "⚠️ No changelog entry for v$VERSION in CHANGELOG.md. Appcast will have no release notes."
+fi
+
+# Preserve existing items from current appcast (exclude current version if re-releasing)
+EXISTING_ITEMS=""
+if [ -f site/public/appcast.xml ]; then
+ EXISTING_ITEMS=$(awk '
+ /<item>/ { buf=""; capture=1 }
+ capture { buf = buf $0 "\n" }
+ /<\/item>/ {
+ capture=0
+ if (buf !~ /<sparkle:version>'"$VERSION"'</) printf "%s", buf
+ }
+ ' site/public/appcast.xml)
+fi
+
+# Build description element if we have release notes
+DESC_ELEMENT=""
+if [ -n "$RELEASE_NOTES" ]; then
+ DESC_ELEMENT=" <description><![CDATA[$RELEASE_NOTES]]></description>"
+fi
+
cat > build/appcast.xml << APPCAST
<?xml version="1.0" standalone="yes"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
@@ -134,6 +218,7 @@ cat > build/appcast.xml << APPCAST
<sparkle:shortVersionString>$VERSION</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>26.0</sparkle:minimumSystemVersion>
<pubDate>$PUB_DATE</pubDate>
+$DESC_ELEMENT
<enclosure
url="https://github.com/Shpigford/chops/releases/download/v$VERSION/Chops.dmg"
sparkle:edSignature="$ED_SIG"
@@ -141,6 +226,7 @@ cat > build/appcast.xml << APPCAST
type="application/octet-stream"
/>
</item>
+$EXISTING_ITEMS
</channel>
</rss>
APPCAST
@@ -152,8 +238,15 @@ git commit -m "chore: update appcast for v$VERSION" || true
git push
echo "🚀 Creating GitHub Release..."
-gh release create "v$VERSION" build/Chops.dmg \
- --title "Chops v$VERSION" \
- --generate-notes
+CHANGELOG_MD=$(extract_changelog_markdown "$VERSION" "CHANGELOG.md")
+if [ -n "$CHANGELOG_MD" ]; then
+ gh release create "v$VERSION" build/Chops.dmg \
+ --title "Chops v$VERSION" \
+ --notes "$CHANGELOG_MD"
+else
+ gh release create "v$VERSION" build/Chops.dmg \
+ --title "Chops v$VERSION" \
+ --generate-notes
+fi
echo "✅ Done! Release: https://github.com/Shpigford/chops/releases/tag/v$VERSION"