create-specfuse 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export function composeDesignMdSkill() {
|
|
2
2
|
return `---
|
|
3
3
|
name: design-md
|
|
4
|
-
description: Generate a DESIGN.md file for the current project via interactive questionnaire and archetype matching. Use for brownfield projects that need design tokens.
|
|
4
|
+
description: Generate a DESIGN-TOKENS.md file for the current project via interactive questionnaire and archetype matching. Use for brownfield projects that need design tokens.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# DESIGN.md Generation Skill
|
|
7
|
+
# DESIGN-TOKENS.md Generation Skill
|
|
8
8
|
|
|
9
|
-
Generate a comprehensive \`DESIGN.md\` design token document for the current project.
|
|
9
|
+
Generate a comprehensive \`DESIGN-TOKENS.md\` design token document for the current project.
|
|
10
10
|
|
|
11
11
|
**Trigger:** User invokes \`/design-md\` manually, or auto-triggered after \`specfuse init\` for frontend projects.
|
|
12
12
|
|
|
@@ -182,7 +182,7 @@ Cross-reference format: \`"{category.token}"\` where category is one of colors,
|
|
|
182
182
|
|
|
183
183
|
## §4 Output Format
|
|
184
184
|
|
|
185
|
-
Generate \`DESIGN.md\` with two parts:
|
|
185
|
+
Generate \`DESIGN-TOKENS.md\` with two parts:
|
|
186
186
|
|
|
187
187
|
### YAML Front Matter
|
|
188
188
|
|
|
@@ -228,16 +228,16 @@ The Markdown body follows this structure:
|
|
|
228
228
|
|
|
229
229
|
## §5 Backup & Overwrite Protection
|
|
230
230
|
|
|
231
|
-
Before writing \`DESIGN.md\`:
|
|
231
|
+
Before writing \`DESIGN-TOKENS.md\`:
|
|
232
232
|
|
|
233
|
-
1. Check if \`DESIGN.md\` already exists in the target directory
|
|
233
|
+
1. Check if \`DESIGN-TOKENS.md\` already exists in the target directory
|
|
234
234
|
2. If it exists:
|
|
235
|
-
- Ask for overwrite confirmation: "DESIGN.md already exists. Overwrite? (A .bak backup will be created)"
|
|
236
|
-
- On confirmation: copy existing file to \`DESIGN.md.bak\`
|
|
235
|
+
- Ask for overwrite confirmation: "DESIGN-TOKENS.md already exists. Overwrite? (A .bak backup will be created)"
|
|
236
|
+
- On confirmation: copy existing file to \`DESIGN-TOKENS.md.bak\`
|
|
237
237
|
- On rejection: abort without changes
|
|
238
238
|
3. If it does not exist: proceed directly
|
|
239
239
|
|
|
240
|
-
Never silently overwrite an existing DESIGN.md file.
|
|
240
|
+
Never silently overwrite an existing DESIGN-TOKENS.md file.
|
|
241
241
|
`;
|
|
242
242
|
}
|
|
243
243
|
//# sourceMappingURL=design-md-skill.js.map
|