@bovinphang/frontend-craft 2.8.0 → 2.9.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.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +378 -339
- package/CHANGELOG.zh-CN.md +377 -338
- package/CONTRIBUTING.md +371 -361
- package/CONTRIBUTING.zh-CN.md +371 -361
- package/README.md +545 -493
- package/README.openclaw.md +359 -320
- package/README.openclaw.zh-CN.md +359 -320
- package/README.zh-CN.md +545 -493
- package/agents/fec-code-reviewer.md +24 -3
- package/agents/fec-debugger.md +1 -1
- package/agents/fec-doc-updater.md +1 -1
- package/agents/fec-e2e-runner.md +1 -1
- package/agents/fec-figma-implementer.md +1 -1
- package/agents/fec-performance-optimizer.md +1 -1
- package/agents/fec-refactor-cleaner.md +4 -1
- package/agents/fec-refactoring-expert.md +81 -0
- package/agents/fec-security-reviewer.md +17 -1
- package/agents/fec-test-planner.md +1 -1
- package/agents/fec-typescript-reviewer.md +24 -8
- package/agents/fec-ui-checker.md +11 -11
- package/commands/fec-debug.md +1 -1
- package/commands/fec-refactor-plan.md +17 -0
- package/commands/fec-refactor.md +18 -0
- package/commands/fec-review.md +40 -10
- package/commands/fec-scaffold.md +1 -1
- package/commands/fec-smell.md +17 -0
- package/commands/fec-tdd.md +6 -2
- package/dist/bin/frontend-craft.js +190 -38
- package/dist/hooks/fec-run-tests.js +5 -1
- package/dist/hooks/fec-session-start.js +1 -1
- package/docs/example-prompts.md +157 -140
- package/docs/ja-JP/README.md +534 -493
- package/docs/ko-KR/README.md +534 -493
- package/docs/project-structure.md +151 -131
- package/docs/refactoring/README.md +50 -0
- package/docs/refactoring/catalog.md +105 -0
- package/docs/refactoring/smell-refactoring-matrix.md +41 -0
- package/docs/review-and-diagram-workflows.md +39 -0
- package/docs/runtimes/antigravity.md +18 -10
- package/docs/runtimes/augment.md +18 -10
- package/docs/runtimes/claude.md +191 -177
- package/docs/runtimes/claude.zh-CN.md +189 -175
- package/docs/runtimes/cline.md +18 -10
- package/docs/runtimes/codebuddy.md +18 -10
- package/docs/runtimes/codex.md +18 -10
- package/docs/runtimes/compatibility.md +27 -0
- package/docs/runtimes/copilot.md +18 -10
- package/docs/runtimes/cursor.md +18 -10
- package/docs/runtimes/gemini.md +18 -10
- package/docs/runtimes/kilo.md +18 -10
- package/docs/runtimes/openclaw.md +18 -10
- package/docs/runtimes/opencode.md +18 -10
- package/docs/runtimes/qoder.md +18 -19
- package/docs/runtimes/trae.md +18 -10
- package/docs/runtimes/windsurf.md +18 -10
- package/docs/superpowers/plans/2026-09-26-content-integrity.md +145 -0
- package/docs/superpowers/plans/2026-09-26-diagram-quality.md +170 -0
- package/docs/superpowers/specs/2026-09-26-diagram-quality-design.md +77 -0
- package/docs/superpowers/specs/2026-09-26-project-optimization-design.md +95 -0
- package/docs/zh-CN/example-prompts.md +157 -140
- package/docs/zh-CN/project-structure.md +148 -128
- package/docs/zh-CN/review-and-diagram-workflows.md +39 -0
- package/docs/zh-TW/README.md +534 -493
- package/localized/zh-CN/agents/fec-code-reviewer.md +22 -3
- package/localized/zh-CN/agents/fec-refactor-cleaner.md +3 -0
- package/localized/zh-CN/agents/fec-refactoring-expert.md +53 -0
- package/localized/zh-CN/agents/fec-security-reviewer.md +16 -0
- package/localized/zh-CN/agents/fec-typescript-reviewer.md +23 -7
- package/localized/zh-CN/commands/fec-refactor-plan.md +15 -0
- package/localized/zh-CN/commands/fec-refactor.md +14 -0
- package/localized/zh-CN/commands/fec-review.md +40 -9
- package/localized/zh-CN/commands/fec-smell.md +13 -0
- package/localized/zh-CN/commands/fec-tdd.md +4 -0
- package/localized/zh-CN/skills/eval_queries.json +244 -0
- package/localized/zh-CN/skills/fec-code-review/SKILL.md +20 -1
- package/localized/zh-CN/skills/fec-code-review/references/report-template.md +11 -1
- package/localized/zh-CN/skills/fec-code-smells/SKILL.md +33 -0
- package/localized/zh-CN/skills/fec-code-smells/references/detection-guide.md +25 -0
- package/localized/zh-CN/skills/fec-code-smells/references/smell-catalog.md +817 -0
- package/localized/zh-CN/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
- package/localized/zh-CN/skills/fec-image-generation/SKILL.md +31 -1
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
- package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +10 -3
- package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +8 -1
- package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +9 -2
- package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +48 -80
- package/localized/zh-CN/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +35 -4
- package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +193 -53
- package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +3 -0
- package/localized/zh-CN/skills/fec-refactoring/SKILL.md +83 -0
- package/localized/zh-CN/skills/fec-refactoring/references/principles.md +43 -0
- package/localized/zh-CN/skills/fec-refactoring/references/refactoring-vs-feature-change.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring/references/when-to-refactor.md +17 -0
- package/localized/zh-CN/skills/fec-refactoring/references/workflow.md +59 -0
- package/localized/zh-CN/skills/fec-refactoring-api/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/SKILL.md +21 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/references/selection-guide.md +41 -0
- package/localized/zh-CN/skills/fec-refactoring-control/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
- package/localized/zh-CN/skills/fec-refactoring-data/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
- package/localized/zh-CN/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
- package/localized/zh-CN/skills/fec-refactoring-functions/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
- package/localized/zh-CN/skills/fec-refactoring-inheritance/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
- package/localized/zh-CN/skills/fec-refactoring-move-features/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
- package/localized/zh-CN/skills/fec-refactoring-validation/SKILL.md +52 -0
- package/localized/zh-CN/skills/fec-refactoring-validation/references/behavior-preservation.md +15 -0
- package/localized/zh-CN/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +25 -0
- package/localized/zh-CN/skills/fec-security-review/SKILL.md +16 -0
- package/localized/zh-CN/skills/fec-security-review/references/report-template.md +10 -0
- package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +3 -0
- package/localized/zh-CN/skills/metadata.json +408 -50
- package/localized/zh-CN/skills/relations.json +271 -3
- package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +1 -0
- package/openclaw.plugin.json +2 -3
- package/package.json +27 -17
- package/skills/eval_queries.json +244 -0
- package/skills/fec-code-review/SKILL.md +20 -1
- package/skills/fec-code-review/references/report-template.md +11 -1
- package/skills/fec-code-smells/SKILL.md +33 -0
- package/skills/fec-code-smells/references/detection-guide.md +25 -0
- package/skills/fec-code-smells/references/smell-catalog.md +861 -0
- package/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
- package/skills/fec-data-fetching/SKILL.md +1 -1
- package/skills/fec-image-generation/SKILL.md +31 -1
- package/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
- package/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
- package/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
- package/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
- package/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
- package/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
- package/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
- package/skills/fec-image-generation/references/diagram-workflows.md +10 -3
- package/skills/fec-image-generation/references/html-technical-diagrams.md +8 -1
- package/skills/fec-image-generation/references/png-qa-autofix.md +9 -2
- package/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
- package/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
- package/skills/fec-image-generation/scripts/export-diagram.mjs +48 -80
- package/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
- package/skills/fec-image-generation/scripts/png-qa.mjs +35 -4
- package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +193 -53
- package/skills/fec-legacy-web-standard/SKILL.md +1 -1
- package/skills/fec-refactor-clean/SKILL.md +3 -0
- package/skills/fec-refactoring/SKILL.md +83 -0
- package/skills/fec-refactoring/references/principles.md +60 -0
- package/skills/fec-refactoring/references/refactoring-vs-feature-change.md +27 -0
- package/skills/fec-refactoring/references/when-to-refactor.md +31 -0
- package/skills/fec-refactoring/references/workflow.md +90 -0
- package/skills/fec-refactoring-api/SKILL.md +25 -0
- package/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
- package/skills/fec-refactoring-catalog/SKILL.md +28 -0
- package/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
- package/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
- package/skills/fec-refactoring-catalog/references/selection-guide.md +47 -0
- package/skills/fec-refactoring-control/SKILL.md +25 -0
- package/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
- package/skills/fec-refactoring-data/SKILL.md +25 -0
- package/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
- package/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
- package/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
- package/skills/fec-refactoring-functions/SKILL.md +25 -0
- package/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
- package/skills/fec-refactoring-inheritance/SKILL.md +25 -0
- package/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
- package/skills/fec-refactoring-move-features/SKILL.md +25 -0
- package/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
- package/skills/fec-refactoring-validation/SKILL.md +59 -0
- package/skills/fec-refactoring-validation/references/behavior-preservation.md +53 -0
- package/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +42 -0
- package/skills/fec-security-review/SKILL.md +16 -0
- package/skills/fec-security-review/references/report-template.md +10 -0
- package/skills/fec-tdd-workflow/SKILL.md +5 -1
- package/skills/metadata.json +434 -71
- package/skills/relations.json +264 -0
- package/templates/shared/rules/fec-agent-workflow.md +1 -0
- package/docs/superpowers/plans/2026-05-29-fec-debug.md +0 -491
- package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +0 -340
|
@@ -1 +1,5 @@
|
|
|
1
|
-
import{existsSync as
|
|
1
|
+
import{existsSync as f,readFileSync as k}from"node:fs";import{execSync as y}from"node:child_process";import{existsSync as d}from"node:fs";function g(n){let e=n?.match(/^(npm|pnpm|yarn|bun)@/i)?.[1]?.toLowerCase();if(e==="npm"||e==="pnpm"||e==="yarn"||e==="bun")return e;let a=[["pnpm-lock.yaml","pnpm"],["yarn.lock","yarn"],["bun.lock","bun"],["bun.lockb","bun"],["package-lock.json","npm"]],t=new Set(a.filter(([c])=>d(c)).map(([,c])=>c));return t.size===1?[...t][0]:"npm"}process.stdin.resume();process.stdin.on("data",()=>{});f("package.json")||process.exit(0);var l=process.env.FRONTEND_CRAFT_VALIDATION_MODE==="blocking",o=!1;try{let n=JSON.parse(k("package.json","utf8")),e=n.scripts??{},a=g(n.packageManager),t=["lint",e["type-check"]?"type-check":"typecheck","test","build"],c=t.filter(s=>e[s]&&!t.some(r=>r!==s&&u(e,r,s)));for(let s of c)try{y(`${a} run ${s}`,{stdio:["ignore","pipe","pipe"],timeout:12e4})}catch(r){o=!0;let i=r,p=[i.stderr,i.stdout,i.message].map(m=>String(m??"").trim()).find(Boolean);process.stderr.write(`[frontend-craft] ${s} failed${p?`:
|
|
2
|
+
${p.slice(-2e3)}`:"."}
|
|
3
|
+
`)}o&&process.stderr.write(`[frontend-craft] Validation failed (${l?"blocking":"advisory"} mode).
|
|
4
|
+
`)}catch(n){o=!0,process.stderr.write(`[frontend-craft] Validation could not run: ${n instanceof Error?n.message:String(n)}
|
|
5
|
+
`)}process.exit(l&&o?1:0);function u(n,e,a,t=new Set){return!n[e]||t.has(e)?!1:(t.add(e),[...n[e].replace(/"(?:\\.|[^"\\])*"|'[^']*'/g," ").matchAll(/(?:^|&&|;|\|\|)\s*(?:npm|pnpm|yarn|bun)\s+(?:run\s+)?([a-z][\w:-]*)\b/gi)].map(r=>r[1]).some(r=>r===a||u(n,r,a,t)))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync as
|
|
1
|
+
import{existsSync as i,readFileSync as u}from"node:fs";import{existsSync as p}from"node:fs";function o(a){let n=a?.match(/^(npm|pnpm|yarn|bun)@/i)?.[1]?.toLowerCase();if(n==="npm"||n==="pnpm"||n==="yarn"||n==="bun")return n;let e=[["pnpm-lock.yaml","pnpm"],["yarn.lock","yarn"],["bun.lock","bun"],["bun.lockb","bun"],["package-lock.json","npm"]],c=new Set(e.filter(([r])=>p(r)).map(([,r])=>r));return c.size===1?[...c][0]:"npm"}process.stdin.resume();process.stdin.on("data",()=>{});i("package.json")||process.exit(0);var t="unknown",s;try{let a=JSON.parse(u("package.json","utf-8"));s=a.packageManager;let n={...a.dependencies,...a.devDependencies},e=[];(n.vue||n.nuxt)&&e.push("Vue "+(n.vue||n.nuxt)),(n.react||n.next)&&e.push("React "+(n.react||n.next)),n["@angular/core"]&&e.push("Angular "+n["@angular/core"]),t=e.join(", ")||"unknown"}catch{}var g=o(s);t!=="unknown"&&process.stdout.write(`[frontend-craft] Framework: ${t} | Package manager: ${g}`);process.exit(0);
|
package/docs/example-prompts.md
CHANGED
|
@@ -1,140 +1,157 @@
|
|
|
1
|
-
# Example Prompts
|
|
2
|
-
|
|
3
|
-
Use these prompts after installing `frontend-craft` in any supported runtime. You do not need to memorize internal skill, command, or agent names; describe the outcome you want and include useful context such as file paths, framework, failing commands, design links, or acceptance criteria.
|
|
4
|
-
|
|
5
|
-
Each example follows the same shape:
|
|
6
|
-
|
|
7
|
-
- **Scenario**: when to use it.
|
|
8
|
-
- **Prompt**: text you can paste or adapt.
|
|
9
|
-
- **Best for**: the `frontend-craft` capability most likely to help.
|
|
10
|
-
- **Expected output**: what the assistant should produce.
|
|
11
|
-
- **Notes**: extra context that improves the result.
|
|
12
|
-
|
|
13
|
-
## Getting Started
|
|
14
|
-
|
|
15
|
-
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
16
|
-
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------- |
|
|
17
|
-
| Initialize project rules | "Initialize this repository with the frontend-craft project templates for my current runtime. Ask before overwriting existing files." | cmd: `/fec-init` | Runtime config, rules, and project guidance installed or a clear overwrite plan. | Works best from the target project root. |
|
|
18
|
-
| Pick a runtime install path | "I want to use frontend-craft with Codex and Claude Code on this machine. Explain whether I should install locally or globally, then show the exact commands." | runtime docs | A short recommendation and install commands. | Mention team/shared vs personal use. |
|
|
19
|
-
| Learn how to ask | "Show me five frontend-craft prompts for reviewing, building, testing, debugging, and design-to-code work in this repo." | docs guidance | A short prompt set tailored to the detected project. | Good first prompt after install. |
|
|
20
|
-
| Confirm available capabilities | "Inspect this repo and summarize which frontend-craft commands, skills, agents, hooks, and MCP templates are available." | runtime docs | Capability summary grounded in installed files. | Useful after upgrades. |
|
|
21
|
-
|
|
22
|
-
## Review And Quality
|
|
23
|
-
|
|
24
|
-
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
25
|
-
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
# Example Prompts
|
|
2
|
+
|
|
3
|
+
Use these prompts after installing `frontend-craft` in any supported runtime. You do not need to memorize internal skill, command, or agent names; describe the outcome you want and include useful context such as file paths, framework, failing commands, design links, or acceptance criteria.
|
|
4
|
+
|
|
5
|
+
Each example follows the same shape:
|
|
6
|
+
|
|
7
|
+
- **Scenario**: when to use it.
|
|
8
|
+
- **Prompt**: text you can paste or adapt.
|
|
9
|
+
- **Best for**: the `frontend-craft` capability most likely to help.
|
|
10
|
+
- **Expected output**: what the assistant should produce.
|
|
11
|
+
- **Notes**: extra context that improves the result.
|
|
12
|
+
|
|
13
|
+
## Getting Started
|
|
14
|
+
|
|
15
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
16
|
+
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------- |
|
|
17
|
+
| Initialize project rules | "Initialize this repository with the frontend-craft project templates for my current runtime. Ask before overwriting existing files." | cmd: `/fec-init` | Runtime config, rules, and project guidance installed or a clear overwrite plan. | Works best from the target project root. |
|
|
18
|
+
| Pick a runtime install path | "I want to use frontend-craft with Codex and Claude Code on this machine. Explain whether I should install locally or globally, then show the exact commands." | runtime docs | A short recommendation and install commands. | Mention team/shared vs personal use. |
|
|
19
|
+
| Learn how to ask | "Show me five frontend-craft prompts for reviewing, building, testing, debugging, and design-to-code work in this repo." | docs guidance | A short prompt set tailored to the detected project. | Good first prompt after install. |
|
|
20
|
+
| Confirm available capabilities | "Inspect this repo and summarize which frontend-craft commands, skills, agents, hooks, and MCP templates are available." | runtime docs | Capability summary grounded in installed files. | Useful after upgrades. |
|
|
21
|
+
|
|
22
|
+
## Review And Quality
|
|
23
|
+
|
|
24
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
25
|
+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
26
|
+
| Default project review | "`/fec-review`" | cmd: `/fec-review` | Project risk assessment with coverage, exclusions and remaining modules. | Defaults to full project review even when Git changes exist. |
|
|
27
|
+
| Review recent changes | "Review my recent changes before merge. Focus on architecture, type safety, rendering behavior, styles, accessibility, and missing tests. Put findings first." | skill: `fec-code-review` · agent: `fec-code-reviewer` · cmd: `/fec-review` | Severity-ordered review with file references and test gaps. | Add branch or diff range if needed. |
|
|
28
|
+
| PR readiness review | "Review the changes in this PR. Call out blockers, risky assumptions, and what must be tested before merge." | agent: `fec-code-reviewer` | Merge readiness assessment and structured report. | Provide the PR link or explicit diff range. |
|
|
29
|
+
| Review a specified file | "Review `src/components/Button.tsx`, including unchanged code. Report only; do not fix." | cmd: `/fec-review` · skill: `fec-code-review` | File risk assessment and coverage. | No Git diff required. |
|
|
30
|
+
| Review a directory | "Review all existing frontend code in `src/features/checkout/`, including unchanged code." | agent: `fec-code-reviewer` | Directory risk assessment and unreviewed inventory. | Explicit scope overrides the default project mode. |
|
|
31
|
+
| Review the entire project | "Review all project-owned frontend code, related tests, configuration and dependency declarations. Inventory first, review by module, record exclusions and unreviewed scope, and mark incomplete coverage partial. Report only; do not fix." | skill: `fec-code-review` · cmd: `/fec-review` | Project risk assessment and coverage inventory. | Works without changes; does not replace backend audit. |
|
|
32
|
+
| TypeScript专项 review | "Audit the changed `.ts` and `.tsx` files for unsafe types, async bugs, over-wide interfaces, stale derived state, and non-idiomatic React/TypeScript." | agent: `fec-typescript-reviewer` | TypeScript-focused findings, usually report-only. | Best when JS/TS changes dominate. |
|
|
33
|
+
| Type contract review | "Review the API DTOs, component props, generic helpers, and type guards in `src/features/billing/` for unsound assertions, over-wide types, and missing runtime narrowing." | skill: `fec-typescript-project-standard` · agent: `fec-typescript-reviewer` | Type-boundary findings with safer models and type-test suggestions. | Good for SDK, design-system, or API-heavy changes. |
|
|
34
|
+
| Security review | "Audit `src/lib/auth.ts`, API clients, and any user HTML rendering for XSS, token leakage, unsafe storage, CSRF assumptions, and dangerous DOM APIs." | skill: `fec-security-review` · agent: `fec-security-reviewer` | Security findings ranked by severity with concrete fixes. | Include auth model and storage constraints. |
|
|
35
|
+
| Accessibility review | "Check `src/components/ConfirmDialog.tsx` for focus trapping, keyboard flow, labels, ARIA usage, screen-reader behavior, touch targets, and WCAG 2.2 AA issues." | skill: `fec-accessibility-check` | A11y findings and implementation guidance. | Provide screenshots for visual focus issues. |
|
|
36
|
+
| Performance review | "Analyze dashboard performance with evidence: Core Web Vitals, bundle size, render hotspots, data waterfalls, memory leaks, and a realistic performance budget." | skill: `fec-performance-optimization` · agent: `fec-performance-optimizer` | Performance report with baseline evidence, priorities, verification commands, and targeted fixes. | Include profiles, Lighthouse output, traces, or the slow user flow if available. |
|
|
37
|
+
| UI fidelity review | "Compare the implemented settings page against the supplied screenshot/design link and list layout, spacing, typography, state, and responsive mismatches." | agent: `fec-ui-checker` | UI fidelity report with actionable fixes. | Attach screenshot or design source. |
|
|
38
|
+
|
|
39
|
+
## Planning And Architecture
|
|
40
|
+
|
|
41
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
42
|
+
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------- |
|
|
43
|
+
| Plan a feature | "Before coding, plan the account billing feature: route structure, component boundaries, data flow, state ownership, validation flow, and rollout risks." | cmd: `/fec-plan` · agent: `fec-architect` | Architecture proposal and implementation plan. | Give acceptance criteria and constraints. |
|
|
44
|
+
| Split a complex page | "Refactor `src/pages/Dashboard.tsx` on paper first. Propose component boundaries, hooks, state ownership, and a safe step-by-step migration." | agent: `fec-architect` · skill: `fec-refactor-clean` | Refactor plan with risk controls. | Ask for no code changes if you only want planning. |
|
|
45
|
+
| Test strategy | "For the checkout rewrite, map risks to static checks, unit tests, component tests, E2E, visual checks, accessibility, and security coverage." | cmd: `/fec-plan` · skill: `fec-testing-strategy` · agent: `fec-test-planner` | Testing matrix and priority order. | Useful before a large implementation. |
|
|
46
|
+
| Source-driven decision | "Before changing our Next.js caching approach, verify the current project code and official docs. Summarize the version assumptions, recommended pattern, migration impact, and tests needed." | skill: `fec-source-driven-development` | Source-backed decision summary with project facts, official references, assumptions, and verification steps. | Best for framework/library behavior that may have changed. |
|
|
47
|
+
| Legacy migration | "We have a jQuery multi-page app in `public/js/legacy/`. Create a phased plan to migrate to React + TypeScript without stopping feature work." | skill: `fec-legacy-to-modern-migration` | Migration plan, risks, milestones, compatibility strategy. | Include release cadence and legacy constraints. |
|
|
48
|
+
|
|
49
|
+
## Implementation
|
|
50
|
+
|
|
51
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
52
|
+
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
|
|
53
|
+
| React feature | "Build a React + TypeScript user detail page that follows this repo's component, hook, route, state, and API patterns." | skill: `fec-react-project-standard` | Code aligned with local React conventions. | Include target route and API shape. |
|
|
54
|
+
| Vue 3 feature | "Implement `Settings.vue` using Vue 3 + TypeScript conventions, Composition API, Pinia where appropriate, and existing composables." | skill: `fec-vue3-project-standard` | Vue code matching project patterns. | Mention SSR/client-only constraints if relevant. |
|
|
55
|
+
| Next.js App Router | "Review and improve `app/(dashboard)/reports/page.tsx` for App Router data fetching, metadata, loading/error states, server/client boundaries, and actions." | skill: `fec-nextjs-project-standard` | Next.js-specific findings or code changes. | Include route segment behavior. |
|
|
56
|
+
| Nuxt 3 page | "Build the admin reports page in Nuxt 3 with correct SSR behavior, `useFetch`/composables, middleware, and typed server routes." | skill: `fec-nuxt-project-standard` | Nuxt implementation following conventions. | State whether route is SSR, SSG, or SPA. |
|
|
57
|
+
| Vite config | "Audit `vite.config.ts` for HMR, env variable exposure, dev proxy, build output, dependency pre-bundling, and plugin ordering." | skill: `fec-vite-project-standard` | Vite config findings and safe edits. | Include build or dev-server symptoms. |
|
|
58
|
+
| Official-docs check | "Check whether our Vite dependency pre-bundling workaround is still needed in the installed version. Use project config and official docs before recommending removal." | skill: `fec-source-driven-development` · skill: `fec-vite-project-standard` | Version-aware recommendation with source notes and rollback/verification plan. | Useful before removing compatibility code. |
|
|
59
|
+
| Monorepo boundaries | "Check `apps/web` and `packages/ui` for package boundaries, workspace dependencies, build scripts, and Turborepo/Nx task graph issues." | skill: `fec-monorepo-project-standard` | Boundary and task orchestration review. | Include package manager and workspace files. |
|
|
60
|
+
| Dependency upgrade | "Plan the Vite and Storybook upgrade in this repo: read release notes, identify breaking changes, review lockfile and peer dependency risks, and propose the validation matrix." | skill: `fec-dependency-upgrade` · skill: `fec-source-driven-development` | Upgrade batches, source-backed risks, affected areas, verification commands, and rollback notes. | Keep major upgrades separate from unrelated refactors. |
|
|
61
|
+
| Server-state data | "Review `src/queries/useReports.ts`: query keys, cache lifetime, invalidation, optimistic updates, error states, and suspense/loading behavior." | skill: `fec-data-fetching` | TanStack Query/server-state guidance or implementation. | Include API volatility and UX expectations. |
|
|
62
|
+
| State ownership | "Audit dashboard state ownership: decide what belongs in URL params, TanStack Query, local component state, browser persistence, or a global store, then propose a safe migration." | skill: `fec-state-management` | State inventory, ownership decisions, store boundaries, and verification steps. | Useful before store refactors or removing duplicated state. |
|
|
63
|
+
| Backend handoff | "Write a frontend-to-backend requirements handoff for the order detail page: data to display, user actions, UI states, permission rules, uncertainties, and questions for backend." | skill: `fec-backend-requirements-handoff` | Backend-facing requirements document focused on UI needs and open questions. | Use before API contract design when backend owns implementation. |
|
|
64
|
+
| API integration | "Design a typed API integration layer for checkout: client boundaries, error mapping, auth refresh, upload strategy, and whether order updates should use polling, SSE, or WebSocket." | skill: `fec-api-integration` | API client strategy or implementation with failure states and integration checks. | Include backend ownership, auth model, and endpoint contracts. |
|
|
65
|
+
| Complex form | "Build a multi-step registration form with React Hook Form + Zod, file upload, conditional fields, async validation, and accessible errors." | skill: `fec-form-handling` | Typed form implementation and tests if requested. | Include final payload contract. |
|
|
66
|
+
| Route protection | "Add role-based protection for `/admin`: redirect anonymous users, deny unauthorized roles, preserve return URL, and avoid flashing protected content." | skill: `fec-route-protection` | Auth guard/middleware implementation. | Explain auth source and roles. |
|
|
67
|
+
| Browser storage | "Choose and implement safe client persistence for draft checkout data. Compare localStorage, sessionStorage, IndexedDB, and cookies for this use case." | skill: `fec-browser-storage` | Storage recommendation and implementation. | Mention sensitive fields and retention rules. |
|
|
68
|
+
| Large list | "`ProductList` renders 20,000 rows and scrolls poorly. Add virtualization and keep keyboard navigation and dynamic row heights working." | skill: `fec-list-virtualization` | Virtualized list implementation and performance notes. | Provide UI library constraints. |
|
|
69
|
+
| PWA | "Turn this app into an installable PWA with manifest, icons, service worker, offline fallback, cache strategy, and update prompt." | skill: `fec-pwa-implementation` | PWA implementation and validation steps. | State whether auth/payment routes must be network-only. |
|
|
70
|
+
| Web Worker | "Move image processing off the main thread using a Web Worker and Comlink, with progress updates and cancellation." | skill: `fec-web-workers` | Worker integration and typed messaging. | Mention browser support and file size limits. |
|
|
71
|
+
| Canvas/Three.js | "Add a WebGL shader background or Three.js product viewer with responsive sizing, WebGL2/shader error checks, accessible fallback, performance safeguards, and verification that the canvas renders." | skill: `fec-canvas-threejs` | 3D/canvas/shader implementation and visual verification. | Include assets, shader requirements, and interaction constraints. |
|
|
72
|
+
| SVG animation | "Add reduced-motion-aware SVG micro-interactions to the hero illustration using the animation library already used in the app." | skill: `fec-svg-animation` | SVG animation with fallback behavior. | Include motion constraints and target browsers. |
|
|
73
|
+
| Cross-skill absorption | "Absorb the testing strategy from this reference repository into our project: keep what fits, redesign in our conventions, and write a 1-page plan that names reusable patterns and a migration path." | skill: `fec-alchemy` | Reusable pattern inventory, redesign proposal, and migration path. | Provide the reference repo URL or local path; note stack and project constraints. |
|
|
74
|
+
| Editable tech diagram | "Generate an editable draw.io architecture diagram for the auth flow: emit a `.drawio` source, run the lint, produce a viewer URL, and export a PNG. Use existing shape and brand symbol lookups." | skill: `fec-drawio-studio` | `.drawio` source, lint report, viewer/editor URL, and PNG export. | If the data is data-residency sensitive, use a self-hosted base URL or local CLI export. |
|
|
75
|
+
|
|
76
|
+
## UI And Design
|
|
77
|
+
|
|
78
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
79
|
+
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
|
80
|
+
| Design-to-code | "Implement the UI from Figma node `123:456`. Use existing design tokens and components, match spacing and responsive states, and document assumptions." | skill: `fec-implement-from-design` · agent: `fec-figma-implementer` | UI code plus design implementation notes/report. | Works best with MCP credentials configured. |
|
|
81
|
+
| Screenshot-to-polish | "Polish this dashboard UI so it feels like a production SaaS tool: density, hierarchy, empty/loading/error states, responsive layout, and interaction states." | skill: `fec-ui-design` | UI improvements and visual QA notes. | Provide screenshot or local URL if possible. |
|
|
82
|
+
| Image and diagram generation | "Generate an editable architecture diagram and PNG, then run PNG QA for overlap, clipped labels, and stacked connectors; repair the source for up to two rounds." | skill: `fec-image-generation` · skill: `fec-ui-design` | Editable source, exported PNG, QA report, and repair notes. | Use manifest coordinates when the renderer can expose layout boxes. |
|
|
83
|
+
| System blueprint diagram | "Create a presentation-ready system blueprint for our checkout platform. Keep the JSON and generated HTML as source, then export SVG and PNG delivery artifacts." | skill: `fec-image-generation` | JSON/HTML source, exported SVG/PNG, and source/asset handoff notes. | Best for architecture, deployment topology, agent runtime, memory, and before/after system maps. |
|
|
84
|
+
| Process workflow diagram | "Turn this approval and automation flow into a readable process workflow diagram with lanes, ordered steps, decisions, exception paths, loop-backs, and waypoint-routed edges." | skill: `fec-image-generation` | Workflow JSON/HTML source, exported image, and notes about lanes, nodes, edges, and waypoints. | Use when ownership and branching matter more than exact infrastructure topology. |
|
|
85
|
+
| Interactive live diagram | "Start a local interactive diagram session for the onboarding flow. Add nodes and edges incrementally, let me drag, relabel, remove, zoom, and then export the final deliverables." | skill: `fec-image-generation` | Live browser preview plus saved JSON/SVG/PNG or a handoff to HTML/draw.io source. | Good for collaborative sketching; switch to HTML technical diagrams or draw.io for long-term source ownership. |
|
|
86
|
+
| Web video presentation | "Turn this article into a recordable 16:9 web video presentation: create script and outline, scaffold a Vite/React stage, and define chapter steps for screen recording." | skill: `fec-web-video-presentation` · skill: `fec-ui-design` | Script/outline, step-driven presentation scaffold, theme notes, and recording checklist. | Best for talks, lessons, product demos, and narrated explainers. |
|
|
87
|
+
| Responsive layout | "Fix this admin table for 375px, 768px, and 1440px: decide mobile column priority, container-query behavior, touch targets, safe-area handling, and overflow rules." | skill: `fec-responsive-layout` · agent: `fec-ui-checker` | Responsive strategy, layout changes, viewport checks, and remaining risks. | Include screenshots or a local route when possible. |
|
|
88
|
+
| Tailwind design system | "Refactor these Tailwind components into semantic tokens and variants: theme extension, dark mode, class composition, dynamic class safety, and Storybook state coverage." | skill: `fec-tailwind-design-system` · skill: `fec-ui-design` | Token/variant plan or implementation with class governance and dark-mode checks. | Useful before a shared UI package grows too large. |
|
|
89
|
+
| Product-specific direction | "Create a product-specific design direction for a healthcare analytics dashboard: primary user tasks, visual anchor, information density, chart language, color roles, typography mood, and anti-patterns to avoid." | skill: `fec-ui-design` · agent: `fec-performance-optimizer` | Design direction, dashboard structure, chart UX guidance, and QA focus. | Include audience, data types, and whether data is real-time. |
|
|
90
|
+
| Design system generation | "Generate a design system direction for a premium booking app. Define semantic color roles, type scale, spacing/radius rules, component tone, motion principles, and what should be intentionally avoided." | skill: `fec-ui-design` · agent: `fec-design-token-mapper` | Product-aware design system proposal and token guidance. | Mention product category, brand tone, and target stack. |
|
|
91
|
+
| Master/Page overrides | "Before polishing checkout, read `design-system/Acme/MASTER.md` and check for `design-system/Acme/pages/checkout.md`. Apply page overrides only where they differ from the master system." | skill: `fec-ui-design` | Page-level polish aligned to persistent design-system rules. | Use when a project keeps design decisions in repo docs. |
|
|
92
|
+
| Landing page direction | "Design a landing page direction for a B2B developer tool: first-screen hierarchy, proof points, product evidence, CTA placement, responsive sections, and a distinctive visual anchor that is not a generic gradient hero." | skill: `fec-ui-design` | Landing structure, visual hierarchy, conversion flow, and anti-generic guidance. | Include offer, audience, and conversion goal. |
|
|
93
|
+
| Analytics dashboard UX | "Improve this operations dashboard for scanning under pressure: table/chart balance, real-time status, alert priority, drill-down paths, empty/error states, and responsive density." | skill: `fec-ui-design` · skill: `fec-accessibility-check` | Dashboard UX recommendations or UI changes with state coverage. | Include screenshots, sample data, or the local route. |
|
|
94
|
+
| Mobile commerce UI | "Design a mobile e-commerce product browsing flow with touch-safe controls, bottom navigation, filter/sort ergonomics, product media, loading/empty states, and checkout entry points." | skill: `fec-ui-design` · skill: `fec-accessibility-check` | Mobile UI direction, interaction states, and responsive constraints. | State whether this is mobile web or native-like web UI. |
|
|
95
|
+
| Fintech interface polish | "Polish this banking interface so it feels trustworthy and calm: balance visibility, transaction hierarchy, risk states, contrast, focus behavior, and restrained motion." | skill: `fec-ui-design` · skill: `fec-security-review` | Fintech-appropriate UI polish and risk-state guidance. | Include compliance or masking requirements if any. |
|
|
96
|
+
| Portfolio visual identity | "Create a distinctive portfolio direction for a designer/developer: project storytelling, navigation rhythm, case-study layout, media treatment, typography personality, and reduced-motion fallback." | skill: `fec-ui-design` · skill: `fec-svg-animation` | Portfolio UI direction and interaction guidance. | Provide personal brand tone and example projects. |
|
|
97
|
+
| Interaction motion | "Plan the motion system for this product page: Framer Motion vs GSAP choices, page transitions, scroll animation, reduced-motion fallback, lazy loading, and performance budgets." | skill: `fec-motion-interaction` · skill: `fec-ui-design` | Motion direction, tool choices, accessibility fallback, and verification checklist. | Include brand tone, device constraints, and whether motion is decorative or functional. |
|
|
98
|
+
| Anti-generic UI review | "Review this page for generic AI-app patterns: overused purple gradients, stacked cards, vague hero copy, weak product evidence, one-note color, and missing interaction states." | skill: `fec-ui-design` | Anti-pattern findings and concrete replacement direction. | Works well with a screenshot or local URL. |
|
|
99
|
+
| Pre-delivery UI QA | "Run a pre-delivery UI QA pass across 375px, 768px, and 1440px: text overflow, focus rings, hover/active/disabled states, reduced motion, loading/empty/error states, and visual consistency." | skill: `fec-ui-design` · skill: `fec-accessibility-check` | UI QA checklist, findings, and fix recommendations. | Best near the end of implementation. |
|
|
100
|
+
| Design token mapping | "Map Figma variables for color, type, spacing, radius, and shadow into this repo's design token structure without breaking existing components." | agent: `fec-design-token-mapper` | Token mapping proposal or code changes. | Include token naming rules. |
|
|
101
|
+
| Storybook docs | "Set up Storybook docs for `packages/ui/Button` and `Dialog`: MDX, states, accessibility addon, interaction tests, and visual baselines." | skill: `fec-storybook-component-doc` | Storybook stories/docs and test guidance. | Include current Storybook status. |
|
|
102
|
+
|
|
103
|
+
## Testing
|
|
104
|
+
|
|
105
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
106
|
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | ----------------------------------------------- | --------------------------------------------------- |
|
|
107
|
+
| TDD implementation | "Use TDD to add coupon validation to checkout: write failing tests first, implement the minimum code, refactor, and keep the test list visible." | cmd: `/fec-tdd` · skill: `fec-tdd-workflow` | Red-green-refactor loop with tests and code. | Best for contained behavior changes. |
|
|
108
|
+
| Component tests | "Write React Testing Library tests for `UserCard`: rendering, loading/error states, user-event interactions, accessibility assertions, and regression cases." | skill: `fec-component-testing` | Component tests following local conventions. | Vue projects should ask for Vue Test Utils instead. |
|
|
109
|
+
| E2E smoke test | "Add Playwright smoke tests for login and checkout. Use Page Objects, stable selectors, CI-friendly retries, and trace artifacts on failure." | skill: `fec-e2e-testing` · agent: `fec-e2e-runner` | E2E tests, runner guidance, and summary report. | Include test account or mock strategy. |
|
|
110
|
+
| Flaky E2E diagnosis | "The checkout E2E test is flaky in CI. Analyze likely timing, network, storage, and selector issues, then stabilize it without hiding failures." | skill: `fec-e2e-testing` · agent: `fec-e2e-runner` | Root-cause analysis and targeted fix. | Include CI logs or traces. |
|
|
111
|
+
|
|
112
|
+
## Refactoring
|
|
113
|
+
|
|
114
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
115
|
+
| --- | --- | --- | --- | --- |
|
|
116
|
+
| Smell diagnosis only | "Use `/fec-smell` on `src/features/compose/`. Show evidence, confidence, false-positive checks, and candidate techniques; do not edit business code." | cmd: `/fec-smell` · skill: `fec-code-smells` | Prioritized smell report. | Use when you want diagnosis before committing to a change. |
|
|
117
|
+
| Refactoring plan only | "Use `/fec-refactor-plan` to turn the current compose-module smells into ordered, small, behavior-preserving steps with risk, diff budget, validation, and rollback boundaries." | cmd: `/fec-refactor-plan` · skill: `fec-refactoring` | Refactoring plan. | Plan-only; no source edits. |
|
|
118
|
+
| Behavior-preserving execution | "Use `/fec-refactor` on this validation/request/state function. Keep observable behavior unchanged, apply one main transformation at a time, verify each step, and revert before repairing a regression." | cmd: `/fec-refactor` · agent: `fec-refactoring-expert` | Validated refactoring plus report. | Pure refactoring uses GREEN → REFACTOR → GREEN. |
|
|
119
|
+
|
|
120
|
+
## Debugging
|
|
121
|
+
|
|
122
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
123
|
+
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
|
124
|
+
| Triage a white screen | "Use the unified frontend debug framework to triage this white screen in `src/app/router.tsx`. Classify the failure type, run the matching diagnostic step, then propose the smallest fix and regression test." | skill: `fec-debug-framework` | Classification, diagnostic output, minimal patch, and regression test. | Paste failing logs, repro path, and recent changes; mention runtime/build/network context. |
|
|
125
|
+
| Triage a build error | "`pnpm test` is failing in CI with module resolution errors. Walk through the debug framework's build-failure branch and propose the smallest fix." | skill: `fec-debug-framework` · cmd: `/fec-debug` | Failure type, diagnostic steps, and minimal patch. | Paste the exact failing command and stack trace. |
|
|
126
|
+
|
|
127
|
+
## Maintenance
|
|
128
|
+
|
|
129
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
130
|
+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------- |
|
|
131
|
+
| Build failure repair | "`pnpm lint`, `pnpm typecheck`, and `pnpm test` are failing. Fix them incrementally without weakening rules or skipping tests." | cmd: `/fec-debug` · skill: `fec-validation-fix` · agent: `fec-debugger` | Minimal fixes and validation report. | Paste exact failing commands. |
|
|
132
|
+
| Dead-code cleanup | "Find and safely remove unused exports, dead routes, stale styles, and unused dependencies. Preserve public API and write a report." | cmd: `/fec-refactor-clean` · skill: `fec-refactor-clean` · agent: `fec-refactor-cleaner` | Cleanup plan/changes and report. | Good before releases. |
|
|
133
|
+
| Documentation sync | "Update the README and docs so setup, scripts, environment variables, API routes, UI routes, and deployment notes match the current frontend code and config." | cmd: `/fec-doc-sync` · skill: `fec-doc-sync` · agent: `fec-doc-updater` | Synchronized docs and verification notes. | Avoid copying temporary reports into docs. |
|
|
134
|
+
| Capability docs sync | "This repo publishes skills and commands. Sync the capability tables, metadata, runtime docs, and package files with the installed contents." | cmd: `/fec-doc-sync` · skill: `fec-doc-sync` · agent: `fec-doc-updater` | Distribution docs grounded in installed files. | Use for skill/agent/command repos. |
|
|
135
|
+
| Source-backed upgrade | "Plan a safe upgrade for React Router/TanStack Query/Vite. Check official migration notes, compare current project usage, list breaking changes, and propose verification steps." | skill: `fec-dependency-upgrade` · skill: `fec-source-driven-development` · cmd: `/fec-doc-sync` | Upgrade decision notes, affected files, migration risks, and validation checklist. | Pair with docs sync if public guidance changes. |
|
|
136
|
+
| Legacy maintenance | "Improve `public/js/legacy/cart.js` while keeping the current jQuery/MPA stack. Reduce risk, improve structure, and do not rewrite it to React yet." | skill: `fec-legacy-web-standard` | Safe legacy maintenance changes or recommendations. | Mention browser support constraints. |
|
|
137
|
+
|
|
138
|
+
## Power-User Prompts
|
|
139
|
+
|
|
140
|
+
Use these when you know the internal entry point you want.
|
|
141
|
+
|
|
142
|
+
| Scenario | Prompt | Best for | Expected output | Notes |
|
|
143
|
+
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------------------------------- | ----------------------------------------------------- |
|
|
144
|
+
| Slash command review | "`/fec-review` Review the last commit and write `reports/code-review-*.md` with severity, evidence, and merge recommendation." | cmd: `/fec-review` | Structured code-review report. | Claude-style runtimes expose slash commands directly. |
|
|
145
|
+
| Slash command plan | "`/fec-plan` Plan the dashboard analytics feature before implementation. Include component boundaries, data flow, state ownership, rollout steps, and implementation risks." | cmd: `/fec-plan` | Architecture proposal. | Use before complex work. |
|
|
146
|
+
| Slash command scaffold | "`/fec-scaffold page UserDetail` Create the standard page structure for a user detail view following this repo's conventions." | cmd: `/fec-scaffold` | Page/feature/component scaffold. | Confirm overwrite behavior if files exist. |
|
|
147
|
+
| Slash command test plan | "`/fec-plan` Build a risk-based test plan for the billing refactor." | cmd: `/fec-plan` | Test matrix and priority order. | Can be report-only. |
|
|
148
|
+
| Slash command TDD | "`/fec-tdd` Add password strength validation with failing tests first, then implementation." | cmd: `/fec-tdd` | TDD loop and validated change. | Keep scope small. |
|
|
149
|
+
| Slash command build fix | "`/fec-debug` Fix the failing validation commands from this log: <paste log>." | cmd: `/fec-debug` | Incremental validation fixes. | Paste exact logs. |
|
|
150
|
+
| Slash command cleanup | "`/fec-refactor-clean` Safely remove unused exports and dependencies from this package." | cmd: `/fec-refactor-clean` | Cleanup report and safe edits. | Run tests after. |
|
|
151
|
+
| Slash command docs | "`/fec-doc-sync` Sync README, docs, env examples, scripts, API/route notes, and deploy docs with the current project." | cmd: `/fec-doc-sync` | Docs updates and verification. | Use before releases. |
|
|
152
|
+
| Explicit agent | "Delegate to `fec-code-reviewer` to review existing code in `src/features/payments/`, including unchanged code, then summarize blockers first." | agent: `fec-code-reviewer` | Targeted risk assessment and specialist report. | No Git diff required. |
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
Technical diagram quality: `fec-image-generation` prefers local Mermaid for standard sequence/workflow diagrams and the draw.io workflow for editable architecture, with JSON/HTML fallback when tools are unavailable. Export a browser-measured manifest scaled to the PNG, run QA and inspect the final image. Preserve complete text, explicit layout and relationships; repair the source for at most two automatic rounds and report unresolved issues. Reproducible fixtures are in `skills/fec-image-generation/assets/quality-examples/`.
|
|
156
|
+
|
|
157
|
+
[Review scope and technical diagram delivery](review-and-diagram-workflows.md) — scope, tool prerequisites, export commands, and QA limits.
|