@@ -150,46 +150,46 @@ EVALEOF
150150
151151case " $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
0 commit comments