diff --git a/home/dot_claude/commands/commit-staged.md b/home/dot_claude/commands/commit-staged.md index aebdaeb..cae4d70 100644 --- a/home/dot_claude/commands/commit-staged.md +++ b/home/dot_claude/commands/commit-staged.md @@ -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 diff --git a/home/dot_config/opencode/opencode.jsonc.tmpl b/home/dot_config/opencode/opencode.jsonc.tmpl index 58731dd..6b81f73 100644 --- a/home/dot_config/opencode/opencode.jsonc.tmpl +++ b/home/dot_config/opencode/opencode.jsonc.tmpl @@ -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",