Skip to content

Commit 58d12dd

Browse files
committed
docs(prompt): clarify scope must not repeat commit type
1 parent 2813b9e commit 58d12dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/ai/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func BuildResponseFormat() map[string]any {
5555
},
5656
"scope": map[string]any{
5757
"type": "string",
58-
"description": "Exactly ONE word, no spaces. Good: auth, api, db, ui. Bad: 'auth system'.",
58+
"description": "Exactly ONE word, no spaces. MUST NOT repeat the commit type. Good: auth, api, db, ui. Bad: 'auth system', 'tests' when type is test, 'docs' when type is docs.",
5959
},
6060
"description": map[string]any{
6161
"type": "string",

internal/prompt/prompt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FORMAT RULES:
1313
- <specific change 2>
1414
1515
2. Type MUST be one of: feat, fix, refactor, docs, style, test, chore, perf, ci, build
16-
3. Scope is REQUIRED — short, generalizing word covering ALL changes
16+
3. Scope is REQUIRED — short, generalizing word covering ALL changes. Scope MUST NOT repeat the type (BAD: test(tests), ci(ci), docs(docs). GOOD: test(auth), ci(github), docs(readme)).
1717
4. Description: lowercase, imperative mood, no period, max 72 chars first line
1818
5. Bullet points when 3+ distinct changes. No bullet points for trivial changes.
1919
6. Output ONLY the commit message. No explanations, no formatting, no quotes.

0 commit comments

Comments
 (0)