Skip to content

Commit f04d6b4

Browse files
committed
refactor(config): update system prompt with more detailed description
This commit updates the system prompt in the `CommitMessageGenerator` class to provide a more comprehensive and experienced description of the AI's capabilities. The changes include: - Increased years of experience from unspecified to 25+ years - Added emphasis on git diff assessment skills - Maintained the core focus on generating detailed conventional commit messages The modification aims to enhance the contextual framing of the AI's role without changing the fundamental functionality.
1 parent e59630d commit f04d6b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commitMessageGenerator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class CommitMessageGenerator {
1111
})
1212

1313
const systemPrompt =
14-
"You are a seasoned software developer with an extraordinary ability for writing detailed conventional commit messages and following 'instructions' and 'customInstructions' when generating them."
14+
"You are a seasoned software engineer with more than 25 years of experience with an extraordinary ability for assessing and interpreting git diffs and writing detailed conventional commit messages and following 'instructions' and 'customInstructions' when generating them."
1515

1616
const prompt = `
1717
<task>
@@ -21,6 +21,7 @@ export class CommitMessageGenerator {
2121
</task>
2222
<instructions>
2323
- Use ONLY ${config.allowedTypes.map((val) => `'${val}'`).join(" | ")} as appropriate for the type of change.
24+
- When assessing the commit type, consider the real impact of the change on the codebase and reserve 'feat' for significant changes or true feature additions.
2425
- Always include a scope.
2526
- Never use '!' or 'BREAKING CHANGE' in the commit message.
2627
- Avoid excessive adjectives like 'enhance', 'comprehensive' etc

0 commit comments

Comments
 (0)