skills/commit/SKILL.md
Use when the user asks to commit changes, create a commit, or save work to git
npx skillsauth add giladresisi/ai-dev-env commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new commit for all of our uncommitted changes
Before committing, identify WHY these changes were needed. The commit body MUST include a short reason.
Run: git status && git diff HEAD && git status --porcelain
This shows all uncommitted changes (modified, untracked, and staged files)
Before staging anything, scan the diff output from Step 1 for explicit secrets or credentials.
Two complementary checks — BOTH must pass:
Look for values that look like secrets regardless of what field they are in:
sk-..., AIza..., AKIA..., ghp_..., xoxb-...)-----BEGIN RSA PRIVATE KEY-----)postgresql://user:pass@host)org-agentic-kb)Scan for any non-placeholder value assigned to an authentication-related field name, regardless of the value's format or length. Flag any of these patterns:
"X-API-Key": "<anything that is not a placeholder>"
"Authorization": "..."
api_key: ...
apiKey: ...
token: ...
password: ...
secret: ...
credential: ...
In JSON, YAML, .env, config files, or any headers block (e.g., MCP mcp.json, CI configs).
A value is safe (not flagged) only if it is clearly a placeholder:
<your-key-here>PLACEHOLDER_, YOUR_, MY_, EXAMPLE_"""changeme", "test-key" (flag these too — they suggest a real value is expected)If any suspected secret is found:
org-ag...kb).Only continue to Step 2 if no secrets were found, or the user has confirmed the flagged values are safe.
CRITICAL: You MUST run git add . to stage ALL files including:
DO NOT selectively stage files with git add <specific-file> unless explicitly instructed.
The default behavior is to commit everything.
Run: git add .
Add an atomic commit message with conventional commit format:
Run: `git commit -m "$(cat <<'EOF' type(scope): description
Why: <short reason these changes were needed>
Co-Authored-By: Claude Sonnet 4.5 [email protected] EOF )"`
testing
Creates a new git worktree in the auto-co-trader project for any purpose — optimization, regression, backtesting, brainstorming, etc. Use this skill when the user wants to CREATE or SET UP a new worktree — phrases like "prepare a new worktree", "set up a worktree", "create a new worktree for <purpose>", "prep a new worktree", "new worktree for autoresearch", "prepare optimization from [strategy]", or "create a worktree using [strategy]". Do NOT use this skill when the user is already in a worktree and wants to start/run/begin a task — that is handled by the relevant program file in the worktree session.
development
Use when running comprehensive project validation including tests, type checking, linting, API connectivity checks, and server startup verification
research
Use when performing a meta-level analysis of plan adherence after implementation to identify process improvements and suggest CLAUDE.md updates
documentation
Use when investigating a GitHub issue to identify root cause, assess impact, and create a fix strategy document