Skip to content

Commit 5e8e42f

Browse files
committed
fix(command): improve /get-unpublished-changes output clarity
- Enforce immediate output without questions - Require actual diff analysis instead of commit message copying - Unify output format across all change types - Remove emojis from section headers 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent a633c4d commit 5e8e42f

File tree

1 file changed

+43
-13
lines changed

1 file changed

+43
-13
lines changed

.opencode/command/get-unpublished-changes.md

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,25 @@ model: anthropic/claude-haiku-4-5
44
---
55

66
<command-instruction>
7-
Analyze the unpublished changes since the last npm release and provide a structured summary.
7+
IMMEDIATELY output the analysis. NO questions. NO preamble.
88

9-
Your task:
10-
1. Review the context below (auto-injected via shell)
11-
2. Summarize changes grouped by type (feat, fix, refactor, docs, chore)
12-
3. Highlight breaking changes if any
13-
4. Suggest next version bump (major/minor/patch) based on conventional commits
9+
## CRITICAL: DO NOT just copy commit messages!
10+
11+
For each commit, you MUST:
12+
1. Read the actual diff to understand WHAT CHANGED
13+
2. Describe the REAL change in plain language
14+
3. Explain WHY it matters (if not obvious)
15+
16+
## Steps:
17+
1. Run `git diff v{published-version}..HEAD` to see actual changes
18+
2. Group by type (feat/fix/refactor/docs) with REAL descriptions
19+
3. Note breaking changes if any
20+
4. Recommend version bump (major/minor/patch)
21+
22+
## Output Format:
23+
- feat: "Added X that does Y" (not just "add X feature")
24+
- fix: "Fixed bug where X happened, now Y" (not just "fix X bug")
25+
- refactor: "Changed X from A to B, now supports C" (not just "rename X")
1426
</command-instruction>
1527

1628
<version-context>
@@ -40,15 +52,33 @@ Your task:
4052
<output-format>
4153
## Unpublished Changes (v{published} → HEAD)
4254

43-
### Commits ({count})
44-
| Type | Scope | Description |
45-
|------|-------|-------------|
46-
| ... | ... | ... |
55+
### feat
56+
| Scope | What Changed |
57+
|-------|--------------|
58+
| X | 실제 변경 내용 설명 |
59+
60+
### fix
61+
| Scope | What Changed |
62+
|-------|--------------|
63+
| X | 실제 변경 내용 설명 |
64+
65+
### refactor
66+
| Scope | What Changed |
67+
|-------|--------------|
68+
| X | 실제 변경 내용 설명 |
69+
70+
### docs
71+
| Scope | What Changed |
72+
|-------|--------------|
73+
| X | 실제 변경 내용 설명 |
74+
75+
### Breaking Changes
76+
None 또는 목록
4777

4878
### Files Changed
49-
{diff-stat summary}
79+
{diff-stat}
5080

5181
### Suggested Version Bump
52-
- **Recommendation**: {patch|minor|major}
53-
- **Reason**: {brief explanation}
82+
- **Recommendation**: patch|minor|major
83+
- **Reason**: 이유
5484
</output-format>

0 commit comments

Comments
 (0)