mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 08:24:11 -06:00
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:
@@ -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
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"model": "anthropic/claude-sonnet-4-5",
|
||||
"plugin": [
|
||||
"@tarquinen/opencode-dcp@latest",
|
||||
"@franlol/opencode-md-table-formatter@0.0.3",
|
||||
|
||||
Reference in New Issue
Block a user