@ia-ccun/code-agent-cli 0.0.3 → 0.0.4-8.beta.1

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.
Files changed (189) hide show
  1. package/README.md +92 -11
  2. package/bin/cli.js +212 -59
  3. package/config/agent/APPEND_SYSTEM.md +46 -5
  4. package/config/agent/bin/fd +0 -0
  5. package/config/agent/bin/rg +0 -0
  6. package/config/agent/dangerous-patterns.json +106 -0
  7. package/config/agent/extensions/aicode-tips.ts +191 -0
  8. package/config/agent/extensions/bash-check.ts +227 -0
  9. package/config/agent/extensions/context-monitor.ts +275 -0
  10. package/config/agent/extensions/context.ts +1 -0
  11. package/config/agent/extensions/custom-footer.ts +33 -2
  12. package/config/agent/extensions/custom.ts +24 -91
  13. package/config/agent/extensions/error-monitor.ts +142 -0
  14. package/config/agent/extensions/msg-debug.ts +185 -0
  15. package/config/agent/extensions/review.ts +4 -0
  16. package/config/agent/extensions/working-msg.ts +39 -20
  17. package/config/agent/mcp.json +4 -0
  18. package/config/agent/models.json +16 -43
  19. package/config/agent/prompts/code-simplifier.md +51 -0
  20. package/config/agent/prompts/feat.md +2 -2
  21. package/config/agent/prompts/git-commit.md +9 -15
  22. package/config/agent/prompts/init-project.md +2 -1
  23. package/config/agent/prompts/workflow.md +3 -2
  24. package/config/agent/settings.json +17 -5
  25. package/config/agent/skills/brainstorming/SKILL.md +167 -0
  26. package/config/agent/skills/brainstorming/scripts/frame-template.html +214 -0
  27. package/config/agent/skills/brainstorming/scripts/helper.js +88 -0
  28. package/config/agent/skills/brainstorming/scripts/server.cjs +338 -0
  29. package/config/agent/skills/brainstorming/scripts/start-server.sh +153 -0
  30. package/config/agent/skills/brainstorming/scripts/stop-server.sh +55 -0
  31. package/config/agent/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  32. package/config/agent/skills/brainstorming/visual-companion.md +286 -0
  33. package/config/agent/skills/code-review/SKILL.md +4 -2
  34. package/config/agent/skills/commit/SKILL.md +10 -5
  35. package/config/agent/skills/csv-data-summarizer/SKILL.md +2 -1
  36. package/config/agent/skills/design-md/README.md +34 -0
  37. package/config/agent/skills/design-md/SKILL.md +172 -0
  38. package/config/agent/skills/design-md/examples/DESIGN.md +154 -0
  39. package/config/agent/skills/dispatching-parallel-agents/SKILL.md +185 -0
  40. package/config/agent/skills/executing-plans/SKILL.md +73 -0
  41. package/config/agent/skills/find-skills/SKILL.md +5 -1
  42. package/config/agent/skills/finishing-a-development-branch/SKILL.md +204 -0
  43. package/config/agent/skills/fireworks-tech-graph/LICENSE +21 -0
  44. package/config/agent/skills/fireworks-tech-graph/README.md +528 -0
  45. package/config/agent/skills/fireworks-tech-graph/README.zh.md +499 -0
  46. package/config/agent/skills/fireworks-tech-graph/SKILL.md +537 -0
  47. package/config/agent/skills/fireworks-tech-graph/agentloop-core.svg +101 -0
  48. package/config/agent/skills/fireworks-tech-graph/agents/openai.yaml +4 -0
  49. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style1-flat.png +0 -0
  50. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style2-dark.png +0 -0
  51. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style3-blueprint.png +0 -0
  52. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style4-notion.png +0 -0
  53. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style5-glass.png +0 -0
  54. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style6-claude.png +0 -0
  55. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style7-openai.png +0 -0
  56. package/config/agent/skills/fireworks-tech-graph/fixtures/agent-memory-types-style4.json +181 -0
  57. package/config/agent/skills/fireworks-tech-graph/fixtures/api-flow-style7.json +40 -0
  58. package/config/agent/skills/fireworks-tech-graph/fixtures/mem0-style1.json +297 -0
  59. package/config/agent/skills/fireworks-tech-graph/fixtures/microservices-style3.json +64 -0
  60. package/config/agent/skills/fireworks-tech-graph/fixtures/multi-agent-style5.json +45 -0
  61. package/config/agent/skills/fireworks-tech-graph/fixtures/system-architecture-style6.json +48 -0
  62. package/config/agent/skills/fireworks-tech-graph/fixtures/tool-call-style2.json +182 -0
  63. package/config/agent/skills/fireworks-tech-graph/package.json +42 -0
  64. package/config/agent/skills/fireworks-tech-graph/references/icons.md +406 -0
  65. package/config/agent/skills/fireworks-tech-graph/references/style-1-flat-icon.md +108 -0
  66. package/config/agent/skills/fireworks-tech-graph/references/style-2-dark-terminal.md +107 -0
  67. package/config/agent/skills/fireworks-tech-graph/references/style-3-blueprint.md +113 -0
  68. package/config/agent/skills/fireworks-tech-graph/references/style-4-notion-clean.md +94 -0
  69. package/config/agent/skills/fireworks-tech-graph/references/style-5-glassmorphism.md +125 -0
  70. package/config/agent/skills/fireworks-tech-graph/references/style-6-claude-official.md +209 -0
  71. package/config/agent/skills/fireworks-tech-graph/references/style-7-openai.md +215 -0
  72. package/config/agent/skills/fireworks-tech-graph/references/style-diagram-matrix.md +135 -0
  73. package/config/agent/skills/fireworks-tech-graph/references/svg-layout-best-practices.md +100 -0
  74. package/config/agent/skills/fireworks-tech-graph/scripts/README.md +244 -0
  75. package/config/agent/skills/fireworks-tech-graph/scripts/generate-diagram.sh +157 -0
  76. package/config/agent/skills/fireworks-tech-graph/scripts/generate-from-template.py +1556 -0
  77. package/config/agent/skills/fireworks-tech-graph/scripts/test-all-styles.sh +135 -0
  78. package/config/agent/skills/fireworks-tech-graph/scripts/validate-svg.sh +292 -0
  79. package/config/agent/skills/fireworks-tech-graph/templates/agent-architecture.svg +28 -0
  80. package/config/agent/skills/fireworks-tech-graph/templates/architecture.svg +23 -0
  81. package/config/agent/skills/fireworks-tech-graph/templates/comparison-matrix.svg +14 -0
  82. package/config/agent/skills/fireworks-tech-graph/templates/data-flow.svg +28 -0
  83. package/config/agent/skills/fireworks-tech-graph/templates/er-diagram.svg +21 -0
  84. package/config/agent/skills/fireworks-tech-graph/templates/flowchart.svg +21 -0
  85. package/config/agent/skills/fireworks-tech-graph/templates/sequence.svg +20 -0
  86. package/config/agent/skills/fireworks-tech-graph/templates/state-machine.svg +20 -0
  87. package/config/agent/skills/fireworks-tech-graph/templates/timeline.svg +19 -0
  88. package/config/agent/skills/fireworks-tech-graph/templates/use-case.svg +21 -0
  89. package/config/agent/skills/frontend-design/SKILL.md +4 -1
  90. package/config/agent/skills/hello/SKILL.md +5 -2
  91. package/config/agent/skills/impeccable/adapt/SKILL.md +204 -0
  92. package/config/agent/skills/impeccable/animate/SKILL.md +177 -0
  93. package/config/agent/skills/impeccable/arrange/SKILL.md +127 -0
  94. package/config/agent/skills/impeccable/audit/SKILL.md +128 -0
  95. package/config/agent/skills/impeccable/bolder/SKILL.md +119 -0
  96. package/config/agent/skills/impeccable/clarify/SKILL.md +185 -0
  97. package/config/agent/skills/impeccable/colorize/SKILL.md +145 -0
  98. package/config/agent/skills/impeccable/critique/SKILL.md +122 -0
  99. package/config/agent/skills/impeccable/delight/SKILL.md +306 -0
  100. package/config/agent/skills/impeccable/distill/SKILL.md +124 -0
  101. package/config/agent/skills/impeccable/extract/SKILL.md +94 -0
  102. package/config/agent/skills/impeccable/frontend-design/reference/color-and-contrast.md +132 -0
  103. package/config/agent/skills/impeccable/frontend-design/reference/interaction-design.md +123 -0
  104. package/config/agent/skills/impeccable/frontend-design/reference/motion-design.md +99 -0
  105. package/config/agent/skills/impeccable/frontend-design/reference/responsive-design.md +114 -0
  106. package/config/agent/skills/impeccable/frontend-design/reference/spatial-design.md +100 -0
  107. package/config/agent/skills/impeccable/frontend-design/reference/typography.md +133 -0
  108. package/config/agent/skills/impeccable/frontend-design/reference/ux-writing.md +107 -0
  109. package/config/agent/skills/impeccable/harden/SKILL.md +357 -0
  110. package/config/agent/skills/impeccable/normalize/SKILL.md +73 -0
  111. package/config/agent/skills/impeccable/onboard/SKILL.md +248 -0
  112. package/config/agent/skills/impeccable/optimize/SKILL.md +268 -0
  113. package/config/agent/skills/impeccable/overdrive/SKILL.md +144 -0
  114. package/config/agent/skills/impeccable/polish/SKILL.md +205 -0
  115. package/config/agent/skills/impeccable/quieter/SKILL.md +105 -0
  116. package/config/agent/skills/impeccable/teach-impeccable/SKILL.md +71 -0
  117. package/config/agent/skills/impeccable/typeset/SKILL.md +118 -0
  118. package/config/agent/skills/librarian/SKILL.md +5 -1
  119. package/config/agent/skills/markdown-to-html/SKILL.md +5 -2
  120. package/config/agent/skills/owasp-security/SKILL.md +539 -0
  121. package/config/agent/skills/pr/SKILL.md +5 -2
  122. package/config/agent/skills/receiving-code-review/SKILL.md +216 -0
  123. package/config/agent/skills/refactor/SKILL.md +5 -2
  124. package/config/agent/skills/requesting-code-review/SKILL.md +108 -0
  125. package/config/agent/skills/requesting-code-review/code-reviewer.md +146 -0
  126. package/config/agent/skills/session-learning/SKILL.md +185 -0
  127. package/config/agent/skills/skill-creator/SKILL.md +339 -213
  128. package/config/agent/skills/skill-creator/agents/analyzer.md +274 -0
  129. package/config/agent/skills/skill-creator/agents/comparator.md +202 -0
  130. package/config/agent/skills/skill-creator/agents/grader.md +223 -0
  131. package/config/agent/skills/skill-creator/assets/eval_review.html +146 -0
  132. package/config/agent/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  133. package/config/agent/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  134. package/config/agent/skills/skill-creator/references/schemas.md +430 -0
  135. package/config/agent/skills/skill-creator/scripts/__init__.py +0 -0
  136. package/config/agent/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  137. package/config/agent/skills/skill-creator/scripts/generate_report.py +326 -0
  138. package/config/agent/skills/skill-creator/scripts/improve_description.py +248 -0
  139. package/config/agent/skills/skill-creator/scripts/package_skill.py +33 -7
  140. package/config/agent/skills/skill-creator/scripts/quick_validate.py +11 -3
  141. package/config/agent/skills/skill-creator/scripts/run_eval.py +310 -0
  142. package/config/agent/skills/skill-creator/scripts/run_loop.py +332 -0
  143. package/config/agent/skills/skill-creator/scripts/utils.py +47 -0
  144. package/config/agent/skills/subagent-driven-development/SKILL.md +280 -0
  145. package/config/agent/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  146. package/config/agent/skills/subagent-driven-development/implementer-prompt.md +113 -0
  147. package/config/agent/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  148. package/config/agent/skills/systematic-debugging/CREATION-LOG.md +119 -0
  149. package/config/agent/skills/systematic-debugging/SKILL.md +300 -0
  150. package/config/agent/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  151. package/config/agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
  152. package/config/agent/skills/systematic-debugging/defense-in-depth.md +122 -0
  153. package/config/agent/skills/systematic-debugging/find-polluter.sh +63 -0
  154. package/config/agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
  155. package/config/agent/skills/systematic-debugging/test-academic.md +14 -0
  156. package/config/agent/skills/systematic-debugging/test-pressure-1.md +58 -0
  157. package/config/agent/skills/systematic-debugging/test-pressure-2.md +68 -0
  158. package/config/agent/skills/systematic-debugging/test-pressure-3.md +69 -0
  159. package/config/agent/skills/test-driven-development/SKILL.md +375 -0
  160. package/config/agent/skills/test-driven-development/testing-anti-patterns.md +299 -0
  161. package/config/agent/skills/ui-ux-pro-max/SKILL.md +4 -1
  162. package/config/agent/skills/unit-test/SKILL.md +4 -2
  163. package/config/agent/skills/using-git-worktrees/SKILL.md +222 -0
  164. package/config/agent/skills/using-superpowers/SKILL.md +118 -0
  165. package/config/agent/skills/using-superpowers/references/codex-tools.md +25 -0
  166. package/config/agent/skills/using-superpowers/references/gemini-tools.md +33 -0
  167. package/config/agent/skills/verification-before-completion/SKILL.md +142 -0
  168. package/config/agent/skills/writing-plans/SKILL.md +148 -0
  169. package/config/agent/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  170. package/config/agent/skills/writing-skills/SKILL.md +669 -0
  171. package/config/agent/skills/writing-skills/anthropic-best-practices.md +1150 -0
  172. package/config/agent/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  173. package/config/agent/skills/writing-skills/graphviz-conventions.dot +172 -0
  174. package/config/agent/skills/writing-skills/persuasion-principles.md +187 -0
  175. package/config/agent/skills/writing-skills/render-graphs.js +168 -0
  176. package/config/agent/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  177. package/config.json +23 -2
  178. package/dist/banner.js +3 -3
  179. package/dist/banner.js.map +1 -1
  180. package/package.json +21 -16
  181. package/scripts/banner.txt +4 -3
  182. package/scripts/postinstall.js +203 -11
  183. package/config/agent/prompts/git-rollback.md +0 -91
  184. package/config/agent/prompts/git-worktree.md +0 -277
  185. package/config/agent/prompts/help.md +0 -10
  186. package/config/agent/skills/github/SKILL.md +0 -47
  187. package/config/agent/skills/skill-creator/references/output-patterns.md +0 -82
  188. package/config/agent/skills/skill-creator/references/workflows.md +0 -28
  189. package/config/agent/skills/skill-creator/scripts/init_skill.py +0 -303
@@ -1,7 +1,10 @@
1
1
  ---
2
2
  name: hello
3
- description: "这是一个自定义 Skill 示例"
4
- author: xujianjiang
3
+ description: "Custom skill example. Use when testing skill functionality or as a template for creating new skills."
4
+ disable-model-invocation: true
5
+ metadata:
6
+ version: "1.0.0"
7
+ author: "xujianjiang"
5
8
  ---
6
9
 
7
10
  # My Custom Skill
@@ -0,0 +1,204 @@
1
+ ---
2
+ name: adapt
3
+ description: Adapt designs to work across different screen sizes, devices, contexts, or platforms. Ensures consistent experience across varied environments.
4
+ user-invocable: true
5
+ args:
6
+ - name: target
7
+ description: The feature or component to adapt (optional)
8
+ required: false
9
+ - name: context
10
+ description: What to adapt for (mobile, tablet, desktop, print, email, etc.)
11
+ required: false
12
+ ---
13
+
14
+ Adapt existing designs to work effectively across different contexts - different screen sizes, devices, platforms, or use cases.
15
+
16
+ ## MANDATORY PREPARATION
17
+
18
+ Use the frontend-design skill — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run teach-impeccable first. Additionally gather: target platforms/devices and usage contexts.
19
+
20
+ ---
21
+
22
+ ## Assess Adaptation Challenge
23
+
24
+ Understand what needs adaptation and why:
25
+
26
+ 1. **Identify the source context**:
27
+ - What was it designed for originally? (Desktop web? Mobile app?)
28
+ - What assumptions were made? (Large screen? Mouse input? Fast connection?)
29
+ - What works well in current context?
30
+
31
+ 2. **Understand target context**:
32
+ - **Device**: Mobile, tablet, desktop, TV, watch, print?
33
+ - **Input method**: Touch, mouse, keyboard, voice, gamepad?
34
+ - **Screen constraints**: Size, resolution, orientation?
35
+ - **Connection**: Fast wifi, slow 3G, offline?
36
+ - **Usage context**: On-the-go vs desk, quick glance vs focused reading?
37
+ - **User expectations**: What do users expect on this platform?
38
+
39
+ 3. **Identify adaptation challenges**:
40
+ - What won't fit? (Content, navigation, features)
41
+ - What won't work? (Hover states on touch, tiny touch targets)
42
+ - What's inappropriate? (Desktop patterns on mobile, mobile patterns on desktop)
43
+
44
+ **CRITICAL**: Adaptation is not just scaling - it's rethinking the experience for the new context.
45
+
46
+ ## Plan Adaptation Strategy
47
+
48
+ Create context-appropriate strategy:
49
+
50
+ ### Mobile Adaptation (Desktop → Mobile)
51
+
52
+ **Layout Strategy**:
53
+ - Single column instead of multi-column
54
+ - Vertical stacking instead of side-by-side
55
+ - Full-width components instead of fixed widths
56
+ - Bottom navigation instead of top/side navigation
57
+
58
+ **Interaction Strategy**:
59
+ - Touch targets 44x44px minimum (not hover-dependent)
60
+ - Swipe gestures where appropriate (lists, carousels)
61
+ - Bottom sheets instead of dropdowns
62
+ - Thumbs-first design (controls within thumb reach)
63
+ - Larger tap areas with more spacing
64
+
65
+ **Content Strategy**:
66
+ - Progressive disclosure (don't show everything at once)
67
+ - Prioritize primary content (secondary content in tabs/accordions)
68
+ - Shorter text (more concise)
69
+ - Larger text (16px minimum)
70
+
71
+ **Navigation Strategy**:
72
+ - Hamburger menu or bottom navigation
73
+ - Reduce navigation complexity
74
+ - Sticky headers for context
75
+ - Back button in navigation flow
76
+
77
+ ### Tablet Adaptation (Hybrid Approach)
78
+
79
+ **Layout Strategy**:
80
+ - Two-column layouts (not single or three-column)
81
+ - Side panels for secondary content
82
+ - Master-detail views (list + detail)
83
+ - Adaptive based on orientation (portrait vs landscape)
84
+
85
+ **Interaction Strategy**:
86
+ - Support both touch and pointer
87
+ - Touch targets 44x44px but allow denser layouts than phone
88
+ - Side navigation drawers
89
+ - Multi-column forms where appropriate
90
+
91
+ ### Desktop Adaptation (Mobile → Desktop)
92
+
93
+ **Layout Strategy**:
94
+ - Multi-column layouts (use horizontal space)
95
+ - Side navigation always visible
96
+ - Multiple information panels simultaneously
97
+ - Fixed widths with max-width constraints (don't stretch to 4K)
98
+
99
+ **Interaction Strategy**:
100
+ - Hover states for additional information
101
+ - Keyboard shortcuts
102
+ - Right-click context menus
103
+ - Drag and drop where helpful
104
+ - Multi-select with Shift/Cmd
105
+
106
+ **Content Strategy**:
107
+ - Show more information upfront (less progressive disclosure)
108
+ - Data tables with many columns
109
+ - Richer visualizations
110
+ - More detailed descriptions
111
+
112
+ ### Print Adaptation (Screen → Print)
113
+
114
+ **Layout Strategy**:
115
+ - Page breaks at logical points
116
+ - Remove navigation, footer, interactive elements
117
+ - Black and white (or limited color)
118
+ - Proper margins for binding
119
+
120
+ **Content Strategy**:
121
+ - Expand shortened content (show full URLs, hidden sections)
122
+ - Add page numbers, headers, footers
123
+ - Include metadata (print date, page title)
124
+ - Convert charts to print-friendly versions
125
+
126
+ ### Email Adaptation (Web → Email)
127
+
128
+ **Layout Strategy**:
129
+ - Narrow width (600px max)
130
+ - Single column only
131
+ - Inline CSS (no external stylesheets)
132
+ - Table-based layouts (for email client compatibility)
133
+
134
+ **Interaction Strategy**:
135
+ - Large, obvious CTAs (buttons not text links)
136
+ - No hover states (not reliable)
137
+ - Deep links to web app for complex interactions
138
+
139
+ ## Implement Adaptations
140
+
141
+ Apply changes systematically:
142
+
143
+ ### Responsive Breakpoints
144
+
145
+ Choose appropriate breakpoints:
146
+ - Mobile: 320px-767px
147
+ - Tablet: 768px-1023px
148
+ - Desktop: 1024px+
149
+ - Or content-driven breakpoints (where design breaks)
150
+
151
+ ### Layout Adaptation Techniques
152
+
153
+ - **CSS Grid/Flexbox**: Reflow layouts automatically
154
+ - **Container Queries**: Adapt based on container, not viewport
155
+ - **`clamp()`**: Fluid sizing between min and max
156
+ - **Media queries**: Different styles for different contexts
157
+ - **Display properties**: Show/hide elements per context
158
+
159
+ ### Touch Adaptation
160
+
161
+ - Increase touch target sizes (44x44px minimum)
162
+ - Add more spacing between interactive elements
163
+ - Remove hover-dependent interactions
164
+ - Add touch feedback (ripples, highlights)
165
+ - Consider thumb zones (easier to reach bottom than top)
166
+
167
+ ### Content Adaptation
168
+
169
+ - Use `display: none` sparingly (still downloads)
170
+ - Progressive enhancement (core content first, enhancements on larger screens)
171
+ - Lazy loading for off-screen content
172
+ - Responsive images (`srcset`, `picture` element)
173
+
174
+ ### Navigation Adaptation
175
+
176
+ - Transform complex nav to hamburger/drawer on mobile
177
+ - Bottom nav bar for mobile apps
178
+ - Persistent side navigation on desktop
179
+ - Breadcrumbs on smaller screens for context
180
+
181
+ **IMPORTANT**: Test on real devices, not just browser DevTools. Device emulation is helpful but not perfect.
182
+
183
+ **NEVER**:
184
+ - Hide core functionality on mobile (if it matters, make it work)
185
+ - Assume desktop = powerful device (consider accessibility, older machines)
186
+ - Use different information architecture across contexts (confusing)
187
+ - Break user expectations for platform (mobile users expect mobile patterns)
188
+ - Forget landscape orientation on mobile/tablet
189
+ - Use generic breakpoints blindly (use content-driven breakpoints)
190
+ - Ignore touch on desktop (many desktop devices have touch)
191
+
192
+ ## Verify Adaptations
193
+
194
+ Test thoroughly across contexts:
195
+
196
+ - **Real devices**: Test on actual phones, tablets, desktops
197
+ - **Different orientations**: Portrait and landscape
198
+ - **Different browsers**: Safari, Chrome, Firefox, Edge
199
+ - **Different OS**: iOS, Android, Windows, macOS
200
+ - **Different input methods**: Touch, mouse, keyboard
201
+ - **Edge cases**: Very small screens (320px), very large screens (4K)
202
+ - **Slow connections**: Test on throttled network
203
+
204
+ Remember: You're a cross-platform design expert. Make experiences that feel native to each context while maintaining brand and functionality consistency. Adapt intentionally, test thoroughly.
@@ -0,0 +1,177 @@
1
+ ---
2
+ name: animate
3
+ description: Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight.
4
+ user-invocable: true
5
+ args:
6
+ - name: target
7
+ description: The feature or component to animate (optional)
8
+ required: false
9
+ ---
10
+
11
+ Analyze a feature and strategically add animations and micro-interactions that enhance understanding, provide feedback, and create delight.
12
+
13
+ ## MANDATORY PREPARATION
14
+
15
+ Use the frontend-design skill — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run teach-impeccable first. Additionally gather: performance constraints.
16
+
17
+ ---
18
+
19
+ ## Assess Animation Opportunities
20
+
21
+ Analyze where motion would improve the experience:
22
+
23
+ 1. **Identify static areas**:
24
+ - **Missing feedback**: Actions without visual acknowledgment (button clicks, form submission, etc.)
25
+ - **Jarring transitions**: Instant state changes that feel abrupt (show/hide, page loads, route changes)
26
+ - **Unclear relationships**: Spatial or hierarchical relationships that aren't obvious
27
+ - **Lack of delight**: Functional but joyless interactions
28
+ - **Missed guidance**: Opportunities to direct attention or explain behavior
29
+
30
+ 2. **Understand the context**:
31
+ - What's the personality? (Playful vs serious, energetic vs calm)
32
+ - What's the performance budget? (Mobile-first? Complex page?)
33
+ - Who's the audience? (Motion-sensitive users? Power users who want speed?)
34
+ - What matters most? (One hero animation vs many micro-interactions?)
35
+
36
+ If any of these are unclear from the codebase, STOP and call the AskUserQuestion tool to clarify.
37
+
38
+ **CRITICAL**: Respect `prefers-reduced-motion`. Always provide non-animated alternatives for users who need them.
39
+
40
+ ## Plan Animation Strategy
41
+
42
+ Create a purposeful animation plan:
43
+
44
+ - **Hero moment**: What's the ONE signature animation? (Page load? Hero section? Key interaction?)
45
+ - **Feedback layer**: Which interactions need acknowledgment?
46
+ - **Transition layer**: Which state changes need smoothing?
47
+ - **Delight layer**: Where can we surprise and delight?
48
+
49
+ **IMPORTANT**: One well-orchestrated experience beats scattered animations everywhere. Focus on high-impact moments.
50
+
51
+ ## Implement Animations
52
+
53
+ Add motion systematically across these categories:
54
+
55
+ ### Entrance Animations
56
+ - **Page load choreography**: Stagger element reveals (100-150ms delays), fade + slide combinations
57
+ - **Hero section**: Dramatic entrance for primary content (scale, parallax, or creative effects)
58
+ - **Content reveals**: Scroll-triggered animations using intersection observer
59
+ - **Modal/drawer entry**: Smooth slide + fade, backdrop fade, focus management
60
+
61
+ ### Micro-interactions
62
+ - **Button feedback**:
63
+ - Hover: Subtle scale (1.02-1.05), color shift, shadow increase
64
+ - Click: Quick scale down then up (0.95 → 1), ripple effect
65
+ - Loading: Spinner or pulse state
66
+ - **Form interactions**:
67
+ - Input focus: Border color transition, slight scale or glow
68
+ - Validation: Shake on error, check mark on success, smooth color transitions
69
+ - **Toggle switches**: Smooth slide + color transition (200-300ms)
70
+ - **Checkboxes/radio**: Check mark animation, ripple effect
71
+ - **Like/favorite**: Scale + rotation, particle effects, color transition
72
+
73
+ ### State Transitions
74
+ - **Show/hide**: Fade + slide (not instant), appropriate timing (200-300ms)
75
+ - **Expand/collapse**: Height transition with overflow handling, icon rotation
76
+ - **Loading states**: Skeleton screen fades, spinner animations, progress bars
77
+ - **Success/error**: Color transitions, icon animations, gentle scale pulse
78
+ - **Enable/disable**: Opacity transitions, cursor changes
79
+
80
+ ### Navigation & Flow
81
+ - **Page transitions**: Crossfade between routes, shared element transitions
82
+ - **Tab switching**: Slide indicator, content fade/slide
83
+ - **Carousel/slider**: Smooth transforms, snap points, momentum
84
+ - **Scroll effects**: Parallax layers, sticky headers with state changes, scroll progress indicators
85
+
86
+ ### Feedback & Guidance
87
+ - **Hover hints**: Tooltip fade-ins, cursor changes, element highlights
88
+ - **Drag & drop**: Lift effect (shadow + scale), drop zone highlights, smooth repositioning
89
+ - **Copy/paste**: Brief highlight flash on paste, "copied" confirmation
90
+ - **Focus flow**: Highlight path through form or workflow
91
+
92
+ ### Delight Moments
93
+ - **Empty states**: Subtle floating animations on illustrations
94
+ - **Completed actions**: Confetti, check mark flourish, success celebrations
95
+ - **Easter eggs**: Hidden interactions for discovery
96
+ - **Contextual animation**: Weather effects, time-of-day themes, seasonal touches
97
+
98
+ ## Technical Implementation
99
+
100
+ Use appropriate techniques for each animation:
101
+
102
+ ### Timing & Easing
103
+
104
+ **Durations by purpose:**
105
+ - **100-150ms**: Instant feedback (button press, toggle)
106
+ - **200-300ms**: State changes (hover, menu open)
107
+ - **300-500ms**: Layout changes (accordion, modal)
108
+ - **500-800ms**: Entrance animations (page load)
109
+
110
+ **Easing curves (use these, not CSS defaults):**
111
+ ```css
112
+ /* Recommended - natural deceleration */
113
+ --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); /* Smooth, refined */
114
+ --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1); /* Slightly snappier */
115
+ --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* Confident, decisive */
116
+
117
+ /* AVOID - feel dated and tacky */
118
+ /* bounce: cubic-bezier(0.34, 1.56, 0.64, 1); */
119
+ /* elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6); */
120
+ ```
121
+
122
+ **Exit animations are faster than entrances.** Use ~75% of enter duration.
123
+
124
+ ### CSS Animations
125
+ ```css
126
+ /* Prefer for simple, declarative animations */
127
+ - transitions for state changes
128
+ - @keyframes for complex sequences
129
+ - transform + opacity only (GPU-accelerated)
130
+ ```
131
+
132
+ ### JavaScript Animation
133
+ ```javascript
134
+ /* Use for complex, interactive animations */
135
+ - Web Animations API for programmatic control
136
+ - Framer Motion for React
137
+ - GSAP for complex sequences
138
+ ```
139
+
140
+ ### Performance
141
+ - **GPU acceleration**: Use `transform` and `opacity`, avoid layout properties
142
+ - **will-change**: Add sparingly for known expensive animations
143
+ - **Reduce paint**: Minimize repaints, use `contain` where appropriate
144
+ - **Monitor FPS**: Ensure 60fps on target devices
145
+
146
+ ### Accessibility
147
+ ```css
148
+ @media (prefers-reduced-motion: reduce) {
149
+ * {
150
+ animation-duration: 0.01ms !important;
151
+ animation-iteration-count: 1 !important;
152
+ transition-duration: 0.01ms !important;
153
+ }
154
+ }
155
+ ```
156
+
157
+ **NEVER**:
158
+ - Use bounce or elastic easing curves—they feel dated and draw attention to the animation itself
159
+ - Animate layout properties (width, height, top, left)—use transform instead
160
+ - Use durations over 500ms for feedback—it feels laggy
161
+ - Animate without purpose—every animation needs a reason
162
+ - Ignore `prefers-reduced-motion`—this is an accessibility violation
163
+ - Animate everything—animation fatigue makes interfaces feel exhausting
164
+ - Block interaction during animations unless intentional
165
+
166
+ ## Verify Quality
167
+
168
+ Test animations thoroughly:
169
+
170
+ - **Smooth at 60fps**: No jank on target devices
171
+ - **Feels natural**: Easing curves feel organic, not robotic
172
+ - **Appropriate timing**: Not too fast (jarring) or too slow (laggy)
173
+ - **Reduced motion works**: Animations disabled or simplified appropriately
174
+ - **Doesn't block**: Users can interact during/after animations
175
+ - **Adds value**: Makes interface clearer or more delightful
176
+
177
+ Remember: Motion should enhance understanding and provide feedback, not just add decoration. Animate with purpose, respect performance constraints, and always consider accessibility. Great animation is invisible - it just makes everything feel right.
@@ -0,0 +1,127 @@
1
+ ---
2
+ name: arrange
3
+ description: Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.
4
+ user-invocable: true
5
+ args:
6
+ - name: target
7
+ description: The feature or component to improve layout for (optional)
8
+ required: false
9
+ ---
10
+
11
+ Assess and improve layout and spacing that feels monotonous, crowded, or structurally weak — turning generic arrangements into intentional, rhythmic compositions.
12
+
13
+ ## MANDATORY PREPARATION
14
+
15
+ Use the frontend-design skill — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run teach-impeccable first.
16
+
17
+ ---
18
+
19
+ ## Assess Current Layout
20
+
21
+ Analyze what's weak about the current spatial design:
22
+
23
+ 1. **Spacing**:
24
+ - Is spacing consistent or arbitrary? (Random padding/margin values)
25
+ - Is all spacing the same? (Equal padding everywhere = no rhythm)
26
+ - Are related elements grouped tightly, with generous space between groups?
27
+
28
+ 2. **Visual hierarchy**:
29
+ - Apply the squint test: blur your (metaphorical) eyes — can you still identify the most important element, second most important, and clear groupings?
30
+ - Is hierarchy achieved effectively? (Space and weight alone can be enough — but is the current approach working?)
31
+ - Does whitespace guide the eye to what matters?
32
+
33
+ 3. **Grid & structure**:
34
+ - Is there a clear underlying structure, or does the layout feel random?
35
+ - Are identical card grids used everywhere? (Icon + heading + text, repeated endlessly)
36
+ - Is everything centered? (Left-aligned with asymmetric layouts feels more designed, but not a hard and fast rule)
37
+
38
+ 4. **Rhythm & variety**:
39
+ - Does the layout have visual rhythm? (Alternating tight/generous spacing)
40
+ - Is every section structured the same way? (Monotonous repetition)
41
+ - Are there intentional moments of surprise or emphasis?
42
+
43
+ 5. **Density**:
44
+ - Is the layout too cramped? (Not enough breathing room)
45
+ - Is the layout too sparse? (Excessive whitespace without purpose)
46
+ - Does density match the content type? (Data-dense UIs need tighter spacing; marketing pages need more air)
47
+
48
+ **CRITICAL**: Layout problems are often the root cause of interfaces feeling "off" even when colors and fonts are fine. Space is a design material — use it with intention.
49
+
50
+ ## Plan Layout Improvements
51
+
52
+ Consult the [spatial design reference](reference/spatial-design.md) from the frontend-design skill for detailed guidance on grids, rhythm, and container queries.
53
+
54
+ Create a systematic plan:
55
+
56
+ - **Spacing system**: Use a consistent scale — whether that's a framework's built-in scale (e.g., Tailwind), rem-based tokens, or a custom system. The specific values matter less than consistency.
57
+ - **Hierarchy strategy**: How will space communicate importance?
58
+ - **Layout approach**: What structure fits the content? Flex for 1D, Grid for 2D, named areas for complex page layouts.
59
+ - **Rhythm**: Where should spacing be tight vs generous?
60
+
61
+ ## Improve Layout Systematically
62
+
63
+ ### Establish a Spacing System
64
+
65
+ - Use a consistent spacing scale — framework scales (Tailwind, etc.), rem-based tokens, or a custom scale all work. What matters is that values come from a defined set, not arbitrary numbers.
66
+ - Name tokens semantically if using custom properties: `--space-xs` through `--space-xl`, not `--spacing-8`
67
+ - Use `gap` for sibling spacing instead of margins — eliminates margin collapse hacks
68
+ - Apply `clamp()` for fluid spacing that breathes on larger screens
69
+
70
+ ### Create Visual Rhythm
71
+
72
+ - **Tight grouping** for related elements (8-12px between siblings)
73
+ - **Generous separation** between distinct sections (48-96px)
74
+ - **Varied spacing** within sections — not every row needs the same gap
75
+ - **Asymmetric compositions** — break the predictable centered-content pattern when it makes sense
76
+
77
+ ### Choose the Right Layout Tool
78
+
79
+ - **Use Flexbox for 1D layouts**: Rows of items, nav bars, button groups, card contents, most component internals. Flex is simpler and more appropriate for the majority of layout tasks.
80
+ - **Use Grid for 2D layouts**: Page-level structure, dashboards, data-dense interfaces, anything where rows AND columns need coordinated control.
81
+ - **Don't default to Grid** when Flexbox with `flex-wrap` would be simpler and more flexible.
82
+ - Use `repeat(auto-fit, minmax(280px, 1fr))` for responsive grids without breakpoints.
83
+ - Use named grid areas (`grid-template-areas`) for complex page layouts — redefine at breakpoints.
84
+
85
+ ### Break Card Grid Monotony
86
+
87
+ - Don't default to card grids for everything — spacing and alignment create visual grouping naturally
88
+ - Use cards only when content is truly distinct and actionable — never nest cards inside cards
89
+ - Vary card sizes, span columns, or mix cards with non-card content to break repetition
90
+
91
+ ### Strengthen Visual Hierarchy
92
+
93
+ - Use the fewest dimensions needed for clear hierarchy. Space alone can be enough — generous whitespace around an element draws the eye. Some of the most sophisticated designs achieve rhythm with just space and weight. Add color or size contrast only when simpler means aren't sufficient.
94
+ - Be aware of reading flow — in LTR languages, the eye naturally scans top-left to bottom-right, but primary action placement depends on context (e.g., bottom-right in dialogs, top in navigation).
95
+ - Create clear content groupings through proximity and separation.
96
+
97
+ ### Manage Depth & Elevation
98
+
99
+ - Create a semantic z-index scale (dropdown → sticky → modal-backdrop → modal → toast → tooltip)
100
+ - Build a consistent shadow scale (sm → md → lg → xl) — shadows should be subtle
101
+ - Use elevation to reinforce hierarchy, not as decoration
102
+
103
+ ### Optical Adjustments
104
+
105
+ - If an icon looks visually off-center despite being geometrically centered, nudge it — but only if you're confident it actually looks wrong. Don't adjust speculatively.
106
+
107
+ **NEVER**:
108
+ - Use arbitrary spacing values outside your scale
109
+ - Make all spacing equal — variety creates hierarchy
110
+ - Wrap everything in cards — not everything needs a container
111
+ - Nest cards inside cards — use spacing and dividers for hierarchy within
112
+ - Use identical card grids everywhere (icon + heading + text, repeated)
113
+ - Center everything — left-aligned with asymmetry feels more designed
114
+ - Default to the hero metric layout (big number, small label, stats, gradient) as a template. If showing real user data, a prominent metric can work — but it should display actual data, not decorative numbers.
115
+ - Default to CSS Grid when Flexbox would be simpler — use the simplest tool for the job
116
+ - Use arbitrary z-index values (999, 9999) — build a semantic scale
117
+
118
+ ## Verify Layout Improvements
119
+
120
+ - **Squint test**: Can you identify primary, secondary, and groupings with blurred vision?
121
+ - **Rhythm**: Does the page have a satisfying beat of tight and generous spacing?
122
+ - **Hierarchy**: Is the most important content obvious within 2 seconds?
123
+ - **Breathing room**: Does the layout feel comfortable, not cramped or wasteful?
124
+ - **Consistency**: Is the spacing system applied uniformly?
125
+ - **Responsiveness**: Does the layout adapt gracefully across screen sizes?
126
+
127
+ Remember: Space is the most underused design tool. A layout with the right rhythm and hierarchy can make even simple content feel polished and intentional.
@@ -0,0 +1,128 @@
1
+ ---
2
+ name: audit
3
+ description: Perform comprehensive audit of interface quality across accessibility, performance, theming, and responsive design. Generates detailed report of issues with severity ratings and recommendations.
4
+ user-invocable: true
5
+ args:
6
+ - name: area
7
+ description: The feature or area to audit (optional)
8
+ required: false
9
+ ---
10
+
11
+ Run systematic quality checks and generate a comprehensive audit report with prioritized issues and actionable recommendations. Don't fix issues - document them for other commands to address.
12
+
13
+ **First**: Use the frontend-design skill for design principles and anti-patterns.
14
+
15
+ ## Diagnostic Scan
16
+
17
+ Run comprehensive checks across multiple dimensions:
18
+
19
+ 1. **Accessibility (A11y)** - Check for:
20
+ - **Contrast issues**: Text contrast ratios < 4.5:1 (or 7:1 for AAA)
21
+ - **Missing ARIA**: Interactive elements without proper roles, labels, or states
22
+ - **Keyboard navigation**: Missing focus indicators, illogical tab order, keyboard traps
23
+ - **Semantic HTML**: Improper heading hierarchy, missing landmarks, divs instead of buttons
24
+ - **Alt text**: Missing or poor image descriptions
25
+ - **Form issues**: Inputs without labels, poor error messaging, missing required indicators
26
+
27
+ 2. **Performance** - Check for:
28
+ - **Layout thrashing**: Reading/writing layout properties in loops
29
+ - **Expensive animations**: Animating layout properties (width, height, top, left) instead of transform/opacity
30
+ - **Missing optimization**: Images without lazy loading, unoptimized assets, missing will-change
31
+ - **Bundle size**: Unnecessary imports, unused dependencies
32
+ - **Render performance**: Unnecessary re-renders, missing memoization
33
+
34
+ 3. **Theming** - Check for:
35
+ - **Hard-coded colors**: Colors not using design tokens
36
+ - **Broken dark mode**: Missing dark mode variants, poor contrast in dark theme
37
+ - **Inconsistent tokens**: Using wrong tokens, mixing token types
38
+ - **Theme switching issues**: Values that don't update on theme change
39
+
40
+ 4. **Responsive Design** - Check for:
41
+ - **Fixed widths**: Hard-coded widths that break on mobile
42
+ - **Touch targets**: Interactive elements < 44x44px
43
+ - **Horizontal scroll**: Content overflow on narrow viewports
44
+ - **Text scaling**: Layouts that break when text size increases
45
+ - **Missing breakpoints**: No mobile/tablet variants
46
+
47
+ 5. **Anti-Patterns (CRITICAL)** - Check against ALL the **DON'T** guidelines in the frontend-design skill. Look for AI slop tells (AI color palette, gradient text, glassmorphism, hero metrics, card grids, generic fonts) and general design anti-patterns (gray on color, nested cards, bounce easing, redundant copy).
48
+
49
+ **CRITICAL**: This is an audit, not a fix. Document issues thoroughly with clear explanations of impact. Use other commands (normalize, optimize, harden, etc.) to fix issues after audit.
50
+
51
+ ## Generate Comprehensive Report
52
+
53
+ Create a detailed audit report with the following structure:
54
+
55
+ ### Anti-Patterns Verdict
56
+ **Start here.** Pass/fail: Does this look AI-generated? List specific tells from the skill's Anti-Patterns section. Be brutally honest.
57
+
58
+ ### Executive Summary
59
+ - Total issues found (count by severity)
60
+ - Most critical issues (top 3-5)
61
+ - Overall quality score (if applicable)
62
+ - Recommended next steps
63
+
64
+ ### Detailed Findings by Severity
65
+
66
+ For each issue, document:
67
+ - **Location**: Where the issue occurs (component, file, line)
68
+ - **Severity**: Critical / High / Medium / Low
69
+ - **Category**: Accessibility / Performance / Theming / Responsive
70
+ - **Description**: What the issue is
71
+ - **Impact**: How it affects users
72
+ - **WCAG/Standard**: Which standard it violates (if applicable)
73
+ - **Recommendation**: How to fix it
74
+ - **Suggested command**: Which command to use (prefer: /animate, /quieter, /optimize, /adapt, /clarify, /distill, /delight, /onboard, /normalize, /audit, /harden, /polish, /extract, /bolder, /arrange, /typeset, /critique, /colorize, /overdrive — or other installed skills you're sure exist)
75
+
76
+ #### Critical Issues
77
+ [Issues that block core functionality or violate WCAG A]
78
+
79
+ #### High-Severity Issues
80
+ [Significant usability/accessibility impact, WCAG AA violations]
81
+
82
+ #### Medium-Severity Issues
83
+ [Quality issues, WCAG AAA violations, performance concerns]
84
+
85
+ #### Low-Severity Issues
86
+ [Minor inconsistencies, optimization opportunities]
87
+
88
+ ### Patterns & Systemic Issues
89
+
90
+ Identify recurring problems:
91
+ - "Hard-coded colors appear in 15+ components, should use design tokens"
92
+ - "Touch targets consistently too small (<44px) throughout mobile experience"
93
+ - "Missing focus indicators on all custom interactive components"
94
+
95
+ ### Positive Findings
96
+
97
+ Note what's working well:
98
+ - Good practices to maintain
99
+ - Exemplary implementations to replicate elsewhere
100
+
101
+ ### Recommendations by Priority
102
+
103
+ Create actionable plan:
104
+ 1. **Immediate**: Critical blockers to fix first
105
+ 2. **Short-term**: High-severity issues (this sprint)
106
+ 3. **Medium-term**: Quality improvements (next sprint)
107
+ 4. **Long-term**: Nice-to-haves and optimizations
108
+
109
+ ### Suggested Commands for Fixes
110
+
111
+ Map issues to available commands. Prefer these: /animate, /quieter, /optimize, /adapt, /clarify, /distill, /delight, /onboard, /normalize, /audit, /harden, /polish, /extract, /bolder, /arrange, /typeset, /critique, /colorize, /overdrive. You may also suggest other installed skills you're sure exist, but never invent commands.
112
+
113
+ Examples:
114
+ - "Use `/normalize` to align with design system (addresses N theming issues)"
115
+ - "Use `/optimize` to improve performance (addresses N performance issues)"
116
+ - "Use `/harden` to improve resilience (addresses N edge cases)"
117
+
118
+ **IMPORTANT**: Be thorough but actionable. Too many low-priority issues creates noise. Focus on what actually matters.
119
+
120
+ **NEVER**:
121
+ - Report issues without explaining impact (why does this matter?)
122
+ - Mix severity levels inconsistently
123
+ - Skip positive findings (celebrate what works)
124
+ - Provide generic recommendations (be specific and actionable)
125
+ - Forget to prioritize (everything can't be critical)
126
+ - Report false positives without verification
127
+
128
+ Remember: You're a quality auditor with exceptional attention to detail. Document systematically, prioritize ruthlessly, and provide clear paths to improvement. A good audit makes fixing easy.