A custom OpenCode command that generates engaging press releases for OpenCode releases.
The opencode-release command automates the creation of developer-focused press releases by:
- Fetching release data from the OpenCode GitHub repository using the
ghCLI - Comparing releases to identify all commits between versions
- Analyzing diffs to understand the actual code changes (not just commit messages)
- Categorizing changes by impact: UI/UX, performance, security, bug fixes, new features
- Generating a press release with a witty, developer-to-developer tone
The output is a structured markdown press release that emphasizes why developers should care about each change, not just what changed.
OpenCode commands are markdown files placed in the ~/.config/opencode/commands/ directory.
# Create the commands directory if it doesn't exist
mkdir -p ~/.config/opencode/commands
# Copy the command file
cp opencode-release.md ~/.config/opencode/commands/Once installed, invoke the command in OpenCode:
/opencode-release
Or reference it with:
@opencode-release
- OpenCode installed and configured
- GitHub CLI (
gh) installed and authenticated
The generated press releases follow these principles:
- Funny and self-aware — developer humor, relatable analogies
- Accurate — only includes features verified in the actual code
- Benefit-focused — explains why changes matter, not just what changed
- Curated — highlights significant changes, skips trivial commits
MIT
