xonecas.io
56101
Df

dotfiles / commit 5ffe154

docs: clarify commit-all command to stage all changes

Add constraint to prevent selective staging of files unless there are
security concerns with credentials or secrets

xonecas2026-01-29 5ffe154eb1783bc87884a5d126bc9cc4aea28046 parent 028bf7e

1 file changed

opencode/commands/commit-all.md+3−0
@@ -5,8 +5,11 @@ description: Stage and commit all changes with a generated message
55
66 Run the following steps to stage and commit the code. If you want formatting and linting, run `/format-then-lint` first.
77
8+**IMPORTANT**: This command stages and commits ALL changes in the working directory. Do not cherry-pick or selectively stage files unless there are sensitive files (credentials, secrets) that should not be committed. Stage everything with `git add .` as instructed.
9+
810 1. **Stage Changes**:
911 - Run `git add .` to stage all modified and untracked files.
12+ - Do not selectively stage only some files - stage everything unless there are security concerns.
1013
1114 2. **Generate Commit**:
1215 - Analyze the staged changes (using `git diff --cached` if necessary to understand the context).