From 300d4b1f731021ee65d622cc393ba4b3ace8380b Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 30 Mar 2026 08:32:19 +0200 Subject: [PATCH] Convert /commit command to skill Adds disable-model-invocation and allowed-tools restrictions that structurally enforce commit safety. Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/{commands/commit.md => skills/commit/SKILL.md} | 3 +++ 1 file changed, 3 insertions(+) rename .claude/{commands/commit.md => skills/commit/SKILL.md} (95%) diff --git a/.claude/commands/commit.md b/.claude/skills/commit/SKILL.md similarity index 95% rename from .claude/commands/commit.md rename to .claude/skills/commit/SKILL.md index 450b711..e509b97 100644 --- a/.claude/commands/commit.md +++ b/.claude/skills/commit/SKILL.md @@ -1,5 +1,8 @@ --- +name: commit description: Create a git commit with pre-commit hooks (bypasses sandbox restrictions). +disable-model-invocation: true +allowed-tools: Bash(git *), Bash(pnpm *) --- ## Instructions