22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
${intro}
|
|
|
|
Be aware: OS: ${os}, Shell: ${shell}
|
|
|
|
${workdirSection}
|
|
|
|
Use `${tmp}` for temporary work outside the workspace. This directory has already been created, already exists, and is pre-approved for external directory access.
|
|
|
|
IMPORTANT: This tool is for terminal operations like git, npm, docker, etc. DO NOT use it for file operations (reading, writing, editing, searching, finding files) - use the specialized tools for this instead.
|
|
|
|
${commandSection}
|
|
|
|
# Git and GitHub
|
|
- Only commit, amend, push, or create PRs when explicitly requested.
|
|
- Before committing, inspect `git status`, `git diff`, and `git log --oneline -10`; stage only intended files and never commit secrets.
|
|
- Write a concise commit message that matches the repo style.
|
|
- Do not update git config, skip hooks, use interactive `-i`, force-push, or create empty commits unless explicitly requested.
|
|
- If a commit fails or hooks reject it, fix the issue and create a new commit; do not amend the failed commit.
|
|
- Before creating a PR, inspect status, diff, remote tracking, recent commits, and the diff from the base branch.
|
|
- Review all commits included in the PR, not just the latest commit.
|
|
- Use `gh` for GitHub tasks, including PRs, issues, checks, and releases; return the PR URL when done.
|