Skip to content

Commit 6cb6cac

Browse files
committed
Replace invalid hide-from-slash-command-tool with official frontmatter attrs
- Cancel commands: use disable-model-invocation to prevent agent self-cancel - Duplicate skills: add disable-model-invocation to hide from Claude Code - Remove non-functional hide-from-slash-command-tool from start/gen-plan commands - Rename strip function in install-skill.sh to strip all Claude-specific attrs
1 parent 4afc04a commit 6cb6cac

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
lines changed

commands/cancel-pr-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Cancel active PR loop"
33
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cancel-pr-loop.sh)", "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cancel-pr-loop.sh --force)"]
4-
hide-from-slash-command-tool: "true"
4+
disable-model-invocation: true
55
---
66

77
# Cancel PR Loop

commands/cancel-rlcr-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Cancel active RLCR loop"
33
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cancel-rlcr-loop.sh)", "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cancel-rlcr-loop.sh --force)", "AskUserQuestion"]
4-
hide-from-slash-command-tool: "true"
4+
disable-model-invocation: true
55
---
66

77
# Cancel RLCR Loop

commands/gen-plan.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ allowed-tools:
1111
- "Task"
1212
- "Write"
1313
- "AskUserQuestion"
14-
hide-from-slash-command-tool: "true"
1514
---
1615

1716
# Generate Plan from Draft

commands/start-pr-loop.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
description: "Start PR review loop with bot monitoring"
33
argument-hint: "--claude|--codex [--max N] [--codex-model MODEL:EFFORT] [--codex-timeout SECONDS]"
44
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-pr-loop.sh:*)"]
5-
hide-from-slash-command-tool: "true"
65
---
76

87
# Start PR Loop

commands/start-rlcr-loop.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ allowed-tools:
66
- "Read"
77
- "Task"
88
- "AskUserQuestion"
9-
hide-from-slash-command-tool: "true"
109
---
1110

1211
# Start RLCR Loop

scripts/install-skill.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ hydrate_skill_runtime_root() {
151151
done
152152
}
153153

154-
strip_user_invocable_for_runtime() {
154+
strip_claude_specific_frontmatter() {
155155
local target_dir="$1"
156156
local skill
157157
local skill_file
@@ -162,7 +162,7 @@ strip_user_invocable_for_runtime() {
162162
[[ -f "$skill_file" ]] || continue
163163

164164
if [[ "$DRY_RUN" == "true" ]]; then
165-
log "DRY-RUN strip user-invocable in $skill_file"
165+
log "DRY-RUN strip Claude-specific frontmatter in $skill_file"
166166
continue
167167
fi
168168

@@ -180,6 +180,8 @@ strip_user_invocable_for_runtime() {
180180
next
181181
}
182182
in_fm && $0 ~ /^user-invocable:[[:space:]]*/ { next }
183+
in_fm && $0 ~ /^disable-model-invocation:[[:space:]]*/ { next }
184+
in_fm && $0 ~ /^hide-from-slash-command-tool:[[:space:]]*/ { next }
183185
{ print }
184186
' "$skill_file" > "$tmp" \
185187
|| { rm -f "$tmp"; die "failed to update $skill_file"; }
@@ -204,7 +206,7 @@ sync_target() {
204206
done
205207
install_runtime_bundle "$target_dir"
206208
hydrate_skill_runtime_root "$target_dir"
207-
strip_user_invocable_for_runtime "$target_dir"
209+
strip_claude_specific_frontmatter "$target_dir"
208210
}
209211

210212
while [[ $# -gt 0 ]]; do

skills/humanize-gen-plan/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: humanize-gen-plan
33
description: Generate a structured implementation plan from a draft document. Validates input, checks relevance, analyzes for issues, and generates a complete plan.md with acceptance criteria.
44
type: flow
55
user-invocable: false
6+
disable-model-invocation: true
67
---
78

89
# Humanize Generate Plan

skills/humanize-rlcr/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: humanize-rlcr
33
description: Start RLCR (Ralph-Loop with Codex Review) with hook-equivalent enforcement from skill mode by reusing the existing stop-hook logic.
44
type: flow
55
user-invocable: false
6+
disable-model-invocation: true
67
---
78

89
# Humanize RLCR Loop (Hook-Equivalent)

skills/humanize/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: humanize
33
description: Iterative development with AI review. Provides RLCR (Ralph-Loop with Codex Review) for implementation planning and code review loops, plus PR review automation with bot monitoring.
44
user-invocable: false
5+
disable-model-invocation: true
56
---
67

78
# Humanize - Iterative Development with AI Review

0 commit comments

Comments
 (0)