Skip to content

Commit 274915f

Browse files
author
Rubiczhang
committed
fix: hide runtime skills from Claude (keep codex/kimi visible)
1 parent bc99890 commit 274915f

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

scripts/install-skill.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,42 @@ hydrate_skill_runtime_root() {
147147
done
148148
}
149149

150+
strip_user_invocable_for_runtime() {
151+
local target_dir="$1"
152+
local skill
153+
local skill_file
154+
local tmp
155+
156+
for skill in "${SKILL_NAMES[@]}"; do
157+
skill_file="$target_dir/$skill/SKILL.md"
158+
[[ -f "$skill_file" ]] || continue
159+
160+
if [[ "$DRY_RUN" == "true" ]]; then
161+
log "DRY-RUN strip user-invocable in $skill_file"
162+
continue
163+
fi
164+
165+
tmp="$(mktemp)"
166+
awk '
167+
BEGIN { in_fm = 0; fm_done = 0 }
168+
/^---[[:space:]]*$/ {
169+
if (fm_done == 0) {
170+
in_fm = !in_fm
171+
if (in_fm == 0) {
172+
fm_done = 1
173+
}
174+
}
175+
print
176+
next
177+
}
178+
in_fm && $0 ~ /^user-invocable:[[:space:]]*/ { next }
179+
{ print }
180+
' "$skill_file" > "$tmp" \
181+
|| { rm -f "$tmp"; die "failed to update $skill_file"; }
182+
mv "$tmp" "$skill_file"
183+
done
184+
}
185+
150186
sync_target() {
151187
local label="$1"
152188
local target_dir="$2"
@@ -164,6 +200,7 @@ sync_target() {
164200
done
165201
install_runtime_bundle "$target_dir"
166202
hydrate_skill_runtime_root "$target_dir"
203+
strip_user_invocable_for_runtime "$target_dir"
167204
}
168205

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

skills/humanize-gen-plan/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
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
5+
user-invocable: false
56
---
67

78
# Humanize Generate Plan

skills/humanize-rlcr/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
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
5+
user-invocable: false
56
---
67

78
# Humanize RLCR Loop (Hook-Equivalent)

skills/humanize/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
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.
4+
user-invocable: false
45
---
56

67
# Humanize - Iterative Development with AI Review

0 commit comments

Comments
 (0)