docs: improve commit-staged command workflow and add model config

- Update command description for clarity
- Add plan mode handling instructions
- Add guidance on scaling commit message complexity
- Configure claude-sonnet-4-5 as default model in opencode config
This commit is contained in:
2025-12-20 01:09:31 -06:00
parent 22a6a85438
commit ec0d51e8d3
2 changed files with 12 additions and 2 deletions
+11 -2
View File
@@ -1,6 +1,6 @@
---
allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git commit:*)
description: Create a git commit (staged files only)
description: Commit currently staged changes with an appropriate message
---
## Context
@@ -14,4 +14,13 @@ description: Create a git commit (staged files only)
Based on the above staged changes, create a single git commit.
You have the capability to call multiple tools in a single response. Create the commit using a single message. Do not stage any additional files. Do not use any other tools or do anything else. Do not send any other text or messages besides these tool calls.
**Important notes:**
- If in plan mode, proceed with the commit anyway - command execution and file modification is implied
- Scale commit message complexity appropriately:
- Mechanical/wide commits (renames, formatting, etc.) deserve only a single sentence, even if they touch many files
- Complex feature additions or refactors deserve more detailed messages explaining the reasoning
- Do not stage any additional files
- Create the commit using a single message with parallel tool calls
- Do not use any other tools or do anything else
- Do not send any other text or messages besides these tool calls
- Include git status output in your response if not already available in the context