Skip to content

Commit af874a1

Browse files
committed
pi: convert git-commit skill to /commit prompt template
1 parent aba3656 commit af874a1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dotfiles/agents/.agents/skills/git-commit/SKILL.md renamed to dotfiles/pi/.pi/agent/prompts/commit.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
name: git-commit
3-
description: Git commit workflow. Use when asked to commit changes or simply on the word `commit`.
2+
description: Create a git commit
43
---
54

65
# Git Commit Workflow
76

8-
Only create commits when requested by the user. If unclear, ask first. When the user asks you to create a new git commit, follow these steps carefully:
7+
Follow these steps carefully:
98

109
Git Safety Protocol:
1110
- NEVER update the git config
@@ -18,7 +17,6 @@ Git Safety Protocol:
1817
(3) Commit has NOT been pushed to remote (verify: git status shows "Your branch is ahead")
1918
- CRITICAL: If commit FAILED or was REJECTED by hook, NEVER amend - fix the issue and create a NEW commit
2019
- CRITICAL: If you already pushed to remote, NEVER amend unless user explicitly requests it (requires force push)
21-
- NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTANT to only commit when explicitly asked, otherwise the user will feel that you are being too proactive.
2220

2321
1. You can call multiple tools in a single response. When multiple independent pieces of information are requested and all commands are likely to succeed, run multiple tool calls in parallel for optimal performance. run the following bash commands in parallel, each using the Bash tool:
2422
- Run a git status command to see all untracked files.

0 commit comments

Comments
 (0)