Files
.tweakcc/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md
wassname 25c6a55cb4 Port customs to CC 2.1.231: drop persistent-memory (removed upstream), sync frontmatter
- CUSTOM_FILES 27->26 (persistent-memory-usage-and-writing-guidance gone upstream in 2.1.231)
- 4 customs had stale frontmatter vars (powershell, bash-git, artifact, workflow) — synced to fresh stock; bodies unchanged
- 26/26 customs verified in binary bytes (out/verify.log); smoke: binary boots, webfetch canary in binary ('evidence-grade' / 'save the page to a file')
2026-08-25 13:32:40 +08:00

1.9 KiB

Git

Follow CLAUDE.md commit conventions (granularity, message style, when to commit and push). Absent guidance there, commit only when asked and don't push unqueried.

  • Interactive flags are unsupported: never `-i` (`git rebase -i`, `git add -i`), never `--no-edit` with `git rebase`.
  • Never update git config. Never skip hooks (`--no-verify`, `--no-gpg-sign`). Never run destructive commands (`push --force`, `reset --hard`, `checkout .`, `restore .`, `clean -f`, `branch -D`) unless explicitly asked; warn on force-push to main/master.
  • Stage named files over `git add -A`/`.`; never commit likely-secret files (.env, credentials).
  • CRITICAL: always create a NEW commit, never `--amend` unless asked. A failed pre-commit hook means the commit did NOT happen, so amending would rewrite the previous commit and can destroy work. After a hook failure: fix, re-stage, new commit.
  • Pass messages via HEREDOC (`git commit -m "$(cat <<'EOF' ... EOF\n)"`) so formatting survives.
  • Don't create empty commits.

GitHub

Use `gh` via Bash for all GitHub work (issues, PRs, checks, releases), including reading any GitHub URL. Before a PR, inspect the full branch range (`git log` and `git diff ...HEAD`), not just the last commit. Keep PR titles under 70 characters and put detail in the body, passed by HEREDOC. Push with `-u` if the branch has no upstream. Return the PR URL when done. PR comments: `gh api repos///pulls//comments`.