Skip to content

Commit 97c1a33

Browse files
committed
Fix skill-creator-advanced issues for nested SKILL.md
1 parent ca4493b commit 97c1a33

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

skills/skill-creator-advanced/scripts/scaffold.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,46 +150,46 @@ EVALEOF
150150

151151
case "$BLUEPRINT" in
152152
api-wrapper)
153-
if [ -f "$TEMPLATES_DIR/api-wrapper/SKILL.md" ]; then
154-
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/api-wrapper/SKILL.md" > "$OUTPUT_DIR/SKILL.md"
153+
if [ -f "$TEMPLATES_DIR/api-wrapper/SKILL.template.md" ]; then
154+
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/api-wrapper/SKILL.template.md" > "$OUTPUT_DIR/SKILL.md"
155155
# Copy reference templates if they exist
156156
for ref in api.md patterns.md configuration.md gotchas.md; do
157157
if [ -f "$TEMPLATES_DIR/api-wrapper/references/$ref" ]; then
158158
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/api-wrapper/references/$ref" > "$OUTPUT_DIR/references/$ref"
159159
fi
160160
done
161161
else
162-
echo "Warning: api-wrapper template not found at $TEMPLATES_DIR/api-wrapper/SKILL.md"
162+
echo "Warning: api-wrapper template not found at $TEMPLATES_DIR/api-wrapper/SKILL.template.md"
163163
echo "Creating minimal SKILL.md instead."
164164
BLUEPRINT="minimal"
165165
fi
166166
;;
167167

168168
cli-tool)
169-
if [ -f "$TEMPLATES_DIR/cli-tool/SKILL.md" ]; then
170-
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/cli-tool/SKILL.md" > "$OUTPUT_DIR/SKILL.md"
169+
if [ -f "$TEMPLATES_DIR/cli-tool/SKILL.template.md" ]; then
170+
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/cli-tool/SKILL.template.md" > "$OUTPUT_DIR/SKILL.md"
171171
for ref in commands.md patterns.md configuration.md gotchas.md; do
172172
if [ -f "$TEMPLATES_DIR/cli-tool/references/$ref" ]; then
173173
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/cli-tool/references/$ref" > "$OUTPUT_DIR/references/$ref"
174174
fi
175175
done
176176
else
177-
echo "Warning: cli-tool template not found at $TEMPLATES_DIR/cli-tool/SKILL.md"
177+
echo "Warning: cli-tool template not found at $TEMPLATES_DIR/cli-tool/SKILL.template.md"
178178
echo "Creating minimal SKILL.md instead."
179179
BLUEPRINT="minimal"
180180
fi
181181
;;
182182

183183
progressive-docs)
184-
if [ -f "$TEMPLATES_DIR/progressive-docs/SKILL.md" ]; then
185-
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/progressive-docs/SKILL.md" > "$OUTPUT_DIR/SKILL.md"
184+
if [ -f "$TEMPLATES_DIR/progressive-docs/SKILL.template.md" ]; then
185+
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/progressive-docs/SKILL.template.md" > "$OUTPUT_DIR/SKILL.md"
186186
for ref in shared.md; do
187187
if [ -f "$TEMPLATES_DIR/progressive-docs/references/$ref" ]; then
188188
sed "s/{{SKILL_NAME}}/$SKILL_NAME/g" "$TEMPLATES_DIR/progressive-docs/references/$ref" > "$OUTPUT_DIR/references/$ref"
189189
fi
190190
done
191191
else
192-
echo "Warning: progressive-docs template not found at $TEMPLATES_DIR/progressive-docs/SKILL.md"
192+
echo "Warning: progressive-docs template not found at $TEMPLATES_DIR/progressive-docs/SKILL.template.md"
193193
echo "Creating minimal SKILL.md instead."
194194
BLUEPRINT="minimal"
195195
fi

skills/skill-creator-advanced/templates/api-wrapper/SKILL.md renamed to skills/skill-creator-advanced/templates/api-wrapper/SKILL.template.md

File renamed without changes.

skills/skill-creator-advanced/templates/cli-tool/SKILL.md renamed to skills/skill-creator-advanced/templates/cli-tool/SKILL.template.md

File renamed without changes.

skills/skill-creator-advanced/templates/progressive-docs/SKILL.md renamed to skills/skill-creator-advanced/templates/progressive-docs/SKILL.template.md

File renamed without changes.

0 commit comments

Comments
 (0)