Skip to content

Commit 5186c2b

Browse files
mschristensenclaude
andcommitted
skills: remove disable-model-invocation from commit skill
Allow other skills (e.g. commit-many) to invoke /commit via the Skill tool. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 797ce86 commit 5186c2b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.claude/skills/commit/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: commit
33
description: Generate a commit message for the current staged changes and commit
4-
disable-model-invocation: true
54
allowed-tools: Bash(git diff *), Bash(git status), Bash(git commit *), Bash(git log *), Bash(curl *), AskUserQuestion
65
---
76

@@ -67,15 +66,16 @@ The component prefix is derived from the file paths in the diff. Examples:
6766
If changes span multiple unrelated components, pick the most significant
6867
one or use a broader prefix.
6968

70-
## Step 4: Present the message
69+
## Step 4: Present and confirm
7170

7271
Show the complete commit message to the user in a fenced code block.
7372

74-
Then ask: **"Do you want to commit with this message, edit it, or cancel?"**
73+
Then use **AskUserQuestion** to ask: "Do you want to commit with this
74+
message, edit it, or cancel?" with three options: Commit, Edit, Cancel.
7575

7676
## Step 5: Act on the response
7777

78-
- **Accept / looks good / yes**: Run the commit using a heredoc:
78+
- **Commit**: Run the commit using a heredoc:
7979
```
8080
git commit -m "$(cat <<'EOF'
8181
<the message>

0 commit comments

Comments
 (0)