From 65887ab30bf6d49ca5640e624d50de29af324192 Mon Sep 17 00:00:00 2001
From: wassname <1103714+wassname@users.noreply.github.com>
Date: Mon, 2 Mar 2026 17:13:08 +0800
Subject: [PATCH] mv to skill
---
skills/cc-commit.md | 37 +++++++++++++++++
...git-commit-and-pr-creation-instructions.md | 41 +------------------
2 files changed, 38 insertions(+), 40 deletions(-)
create mode 100644 skills/cc-commit.md
diff --git a/skills/cc-commit.md b/skills/cc-commit.md
new file mode 100644
index 0000000..7ec8f9f
--- /dev/null
+++ b/skills/cc-commit.md
@@ -0,0 +1,37 @@
+# Git Commit and PR Creation (cc-commit)
+
+## Committing
+
+Only commit when explicitly asked. Stage by name (not `git add -A`); never commit .env/credentials.
+
+1. Run git status (no -uall), git diff, git log in parallel
+2. Draft concise commit message (1-2 sentences, focus on "why")
+3. Stage files, commit with HEREDOC, verify with git status:
+
+```sh
+git commit -m "$(cat <<'EOF'
+Commit message here.
+EOF
+)"
+```
+
+4. If hook fails: fix root cause, create a NEW commit (not --amend). Do NOT push unless explicitly asked.
+
+## Creating pull requests
+
+Use `gh` CLI. Check status, diff, log, and `git diff [base-branch]...HEAD` in parallel first.
+Create branch if needed, push with `-u`. PR title under 70 chars.
+View PR comments: `gh api repos/{owner}/{repo}/pulls/{number}/comments`
+
+```sh
+gh pr create --title "the pr title" --body "$(cat <<'EOF'
+## Summary
+- bullet points
+
+## Test plan
+- [ ] ...
+EOF
+)"
+```
+
+Return the PR URL when done.
diff --git a/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md b/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md
index 894c001..c58210a 100644
--- a/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md
+++ b/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md
@@ -10,43 +10,4 @@ variables:
- TASK_TOOL_NAME
- PR_GENERATED_WITH_CLAUDE_CODE
-->
-# 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:
-1. ${GIT_COMMAND_PARALLEL_NOTE} run git status (never -uall flag), git diff, git log in parallel
-2. Draft concise commit message (1-2 sentences, focus on "why")
-3. 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
- )"
-
-4. 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.
+For git commits and PR creation, invoke the \`cc-commit\` skill.