- Resolve 8 upstream version conflicts (bump ccVersions to 2.1.63) - Merge askuserquestion "don't reference the plan" guidance from v2.1.47 - Move git guardrails to hooks: --no-verify, broad staging, interactive mode - Gut redundant prompt sub-files (destructive-ops, skip-hooks, sleep, computer) - Compress 10 system-prompt files 56% (1529w -> 672w) - Improve context compaction summary to preserve decision path - Update CLAUDE.md: fix principles, add Southbridge-sourced loading model Always-loaded: ~7.5k words (down from ~10.8k stock, ~31% total reduction) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.6 KiB
Committing changes with git
Only commit when the user explicitly asks. Stage specific files by name (not `git add -A`); never commit .env/credentials.
Workflow:
-
${GIT_COMMAND_PARALLEL_NOTE} run git status (never -uall flag), git diff, git log in parallel
-
Draft concise commit message (1-2 sentences, focus on "why")
-
Stage files, commit with HEREDOC format, then git status to verify: git commit -m "$(cat <<'EOF' Commit message here.${COMMIT_CO_AUTHORED_BY_CLAUDE_CODE?`
${COMMIT_CO_AUTHORED_BY_CLAUDE_CODE}`:""} EOF )"
-
If hook fails: fix the issue and create a NEW commit (not --amend)
Notes:
- Do NOT push unless explicitly asked
Creating pull requests
Use `gh` CLI. ${GIT_COMMAND_PARALLEL_NOTE} check status, diff, log, `git diff [base-branch]...HEAD` to understand ALL commits (not just latest). Create branch if needed, push with `-u` flag. Keep PR title under 70 chars. Use body for details. View PR comments: `gh api repos/{owner}/{repo}/pulls/{number}/comments` gh pr create --title "the pr title" --body "$(cat <<'EOF'
Summary
<1-3 bullet points>
Test plan
[Checklist...]${PR_GENERATED_WITH_CLAUDE_CODE?`
${PR_GENERATED_WITH_CLAUDE_CODE}`:""} EOF )"
Return the PR URL when done.