diff --git a/.opencode/command/get-unpublished-changes.md b/.opencode/command/get-unpublished-changes.md new file mode 100644 index 0000000..5fd797b --- /dev/null +++ b/.opencode/command/get-unpublished-changes.md @@ -0,0 +1,54 @@ +--- +description: Compare HEAD with the latest published npm version and list all unpublished changes +model: anthropic/claude-haiku-4-5 +--- + + +Analyze the unpublished changes since the last npm release and provide a structured summary. + +Your task: +1. Review the context below (auto-injected via shell) +2. Summarize changes grouped by type (feat, fix, refactor, docs, chore) +3. Highlight breaking changes if any +4. Suggest next version bump (major/minor/patch) based on conventional commits + + + + +!`npm view oh-my-opencode version 2>/dev/null || echo "not published"` + + +!`node -p "require('./package.json').version" 2>/dev/null || echo "unknown"` + + +!`git tag --sort=-v:refname | head -1 2>/dev/null || echo "no tags"` + + + + + +!`npm view oh-my-opencode version 2>/dev/null | xargs -I{} git log "v{}"..HEAD --oneline 2>/dev/null || echo "no commits since release"` + + +!`npm view oh-my-opencode version 2>/dev/null | xargs -I{} git diff "v{}"..HEAD --stat 2>/dev/null || echo "no diff available"` + + +!`npm view oh-my-opencode version 2>/dev/null | xargs -I{} git diff "v{}"..HEAD --stat 2>/dev/null | tail -1 || echo ""` + + + + +## Unpublished Changes (v{published} → HEAD) + +### Commits ({count}) +| Type | Scope | Description | +|------|-------|-------------| +| ... | ... | ... | + +### Files Changed +{diff-stat summary} + +### Suggested Version Bump +- **Recommendation**: {patch|minor|major} +- **Reason**: {brief explanation} +