devtronic 1.2.2 → 1.2.4

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 (21) hide show
  1. package/dist/index.js +154 -149
  2. package/package.json +1 -1
  3. package/templates/addons/auto-devtronic/agents/failure-analyst.md +156 -0
  4. package/templates/addons/auto-devtronic/agents/issue-parser.md +145 -0
  5. package/templates/addons/auto-devtronic/agents/quality-runner.md +85 -0
  6. package/templates/addons/auto-devtronic/manifest.json +16 -0
  7. package/templates/addons/auto-devtronic/skills/auto-devtronic/SKILL.md +611 -0
  8. package/templates/addons/design-best-practices/manifest.json +28 -0
  9. package/templates/addons/design-best-practices/reference/color-and-contrast.md +146 -0
  10. package/templates/addons/design-best-practices/reference/interaction-design.md +208 -0
  11. package/templates/addons/design-best-practices/reference/motion-design.md +167 -0
  12. package/templates/addons/design-best-practices/reference/responsive-design.md +180 -0
  13. package/templates/addons/design-best-practices/reference/spatial-design.md +161 -0
  14. package/templates/addons/design-best-practices/reference/typography.md +136 -0
  15. package/templates/addons/design-best-practices/reference/ux-writing.md +190 -0
  16. package/templates/addons/design-best-practices/rules/design-quality.md +53 -0
  17. package/templates/addons/design-best-practices/skills/design-harden/SKILL.md +142 -0
  18. package/templates/addons/design-best-practices/skills/design-init/SKILL.md +95 -0
  19. package/templates/addons/design-best-practices/skills/design-refine/SKILL.md +124 -0
  20. package/templates/addons/design-best-practices/skills/design-review/SKILL.md +107 -0
  21. package/templates/addons/design-best-practices/skills/design-system/SKILL.md +125 -0
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: design-init
3
+ description: One-time project design context setup — gathers visual direction, constraints, and writes Design Context to CLAUDE.md
4
+ user-invokable: true
5
+ ---
6
+
7
+ # Design Init
8
+
9
+ Establish the design context for this project through a structured interview. Writes a **Design Context** section to CLAUDE.md so all future design work is grounded in project-specific decisions.
10
+
11
+ ## When to Use
12
+
13
+ - First time working on frontend/UI for a project
14
+ - After a major design direction change
15
+ - When onboarding a new AI agent to an existing design system
16
+
17
+ **Run once per project.** The output persists in CLAUDE.md.
18
+
19
+ ---
20
+
21
+ ## Process
22
+
23
+ ### 1. Codebase Scan
24
+
25
+ Before asking questions, scan the project for existing design signals:
26
+
27
+ - **CSS/Tailwind config** — existing color tokens, spacing scale, font stacks
28
+ - **Component library** — shadcn/ui, Radix, MUI, custom components
29
+ - **Design tokens** — CSS custom properties, Tailwind theme, Sass variables
30
+ - **Existing patterns** — card styles, button variants, layout grids
31
+
32
+ ### 2. Context Interview
33
+
34
+ Ask the user about:
35
+
36
+ **Visual Direction**
37
+ - What is the product? Who are the users?
38
+ - What mood should the design convey? (e.g., professional, playful, minimal, editorial)
39
+ - Any reference sites or design systems to draw from?
40
+
41
+ **Constraints**
42
+ - Existing design system or brand guidelines?
43
+ - Accessibility requirements (WCAG AA, AAA)?
44
+ - Device targets (mobile-first, desktop-first, responsive)?
45
+ - Internationalization needs (RTL, long text, CJK)?
46
+
47
+ **Typography**
48
+ - Preferred font families (or "use system fonts")?
49
+ - Type scale approach (modular, custom, Tailwind defaults)?
50
+
51
+ **Color**
52
+ - Brand colors (hex values)?
53
+ - Light mode, dark mode, or both?
54
+ - Color palette strategy (neutral-first, vibrant, muted)?
55
+
56
+ ### 3. Write Design Context
57
+
58
+ Append a `## Design Context` section to CLAUDE.md:
59
+
60
+ ```markdown
61
+ ## Design Context
62
+
63
+ ### Visual Direction
64
+ [mood, references, personality]
65
+
66
+ ### Typography
67
+ - Display: [font], [weights]
68
+ - Body: [font], [weights]
69
+ - Scale: [approach]
70
+
71
+ ### Color Palette
72
+ - Background: [hex]
73
+ - Surface: [hex]
74
+ - Text primary: [hex]
75
+ - Text secondary: [hex]
76
+ - Accent: [hex]
77
+ - Error/Warning/Success: [hex values]
78
+
79
+ ### Spacing
80
+ - Base unit: [4px/8px]
81
+ - Scale: [values]
82
+
83
+ ### Constraints
84
+ - Accessibility: [level]
85
+ - Responsive: [approach]
86
+ - i18n: [requirements]
87
+ ```
88
+
89
+ ---
90
+
91
+ ## Tips
92
+
93
+ - If the user says "just use defaults", write sensible defaults with system fonts, 4px grid, neutral palette
94
+ - Reference the project's existing tokens/config rather than inventing new ones
95
+ - Keep the output concise — this is a reference, not a design spec
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: design-refine
3
+ description: Directional design refinement — push the design bolder, quieter, more minimal, or more delightful
4
+ user-invokable: true
5
+ args:
6
+ - name: direction
7
+ description: "Refinement direction: bolder, quieter, minimal, delightful"
8
+ required: true
9
+ ---
10
+
11
+ # Design Refine
12
+
13
+ Apply a directional design transformation to existing UI. Each direction has a distinct set of moves that shift the design's personality without breaking functionality.
14
+
15
+ ## Usage
16
+
17
+ ```
18
+ /design-refine --direction bolder
19
+ /design-refine --direction quieter
20
+ /design-refine --direction minimal
21
+ /design-refine --direction delightful
22
+ ```
23
+
24
+ ---
25
+
26
+ ## Mandatory Pre-Check
27
+
28
+ Before refining:
29
+ 1. Read the Design Context from CLAUDE.md
30
+ 2. Identify the target files/components
31
+ 3. Run a quick design-review to understand current state
32
+ 4. Confirm direction with the user if ambiguous
33
+
34
+ ---
35
+
36
+ ## Directions
37
+
38
+ ### Bolder
39
+
40
+ Push the design toward more visual impact and confidence.
41
+
42
+ **Moves:**
43
+ - Increase type scale contrast (larger headlines, smaller labels)
44
+ - Strengthen the accent color or introduce a second accent
45
+ - Add asymmetric layout elements — break the grid intentionally
46
+ - Increase whitespace around hero elements
47
+ - Use heavier font weights for display text
48
+ - Add a single dramatic visual moment (oversized number, full-bleed image, bold divider)
49
+
50
+ **Anti-patterns to avoid:**
51
+ - Don't make everything bold — select 1-2 elements to amplify
52
+ - Don't add gradients/shadows for "boldness" — use scale and weight
53
+ - Don't sacrifice readability for impact
54
+
55
+ ### Quieter
56
+
57
+ Pull the design toward restraint, sophistication, and calm.
58
+
59
+ **Moves:**
60
+ - Reduce color saturation across the palette
61
+ - Increase whitespace between sections
62
+ - Soften type hierarchy — less extreme size jumps
63
+ - Use lighter font weights for headings
64
+ - Remove decorative elements that don't serve function
65
+ - Mute borders and dividers (lighter colors, thinner strokes)
66
+
67
+ **Anti-patterns to avoid:**
68
+ - Don't make text too light to read — quiet ≠ invisible
69
+ - Don't flatten all hierarchy — some contrast is still needed
70
+ - Don't remove interactive affordances
71
+
72
+ ### Minimal
73
+
74
+ Strip the design to its essential elements.
75
+
76
+ **Moves:**
77
+ - Remove cards/containers — let content sit on the surface
78
+ - Reduce to 2-3 colors maximum (background, text, one accent)
79
+ - Use a single font family with weight/size for hierarchy
80
+ - Replace icons with text labels where possible
81
+ - Remove borders — use spacing to define groups
82
+ - Eliminate decorative elements entirely
83
+
84
+ **Anti-patterns to avoid:**
85
+ - Don't remove navigation or wayfinding cues
86
+ - Don't make the UI ambiguous — clarity over minimalism
87
+ - Don't sacrifice accessibility for aesthetics
88
+
89
+ ### Delightful
90
+
91
+ Add warmth, personality, and small moments of joy.
92
+
93
+ **Moves:**
94
+ - Add subtle micro-interactions (button press, toggle switch, state transitions)
95
+ - Use a warmer color temperature in neutrals
96
+ - Add personality to empty states (friendly copy, simple illustration)
97
+ - Introduce slight border-radius variety (not everything the same)
98
+ - Add a subtle texture or pattern to one surface
99
+ - Use playful but readable microcopy
100
+
101
+ **Anti-patterns to avoid:**
102
+ - Don't add animation to everything — pick 2-3 moments
103
+ - Don't use clip-art style illustrations — keep quality high
104
+ - Don't sacrifice performance for delight (heavy animations)
105
+ - Don't make the UI feel childish when the product is serious
106
+
107
+ ---
108
+
109
+ ## Process
110
+
111
+ 1. **Confirm direction** with the user
112
+ 2. **Identify 3-5 specific moves** from the direction's list that apply to this UI
113
+ 3. **Apply changes** incrementally — one move at a time
114
+ 4. **Review after each move** — does it push the right direction without breaking anything?
115
+ 5. **Summarize** what was changed and why
116
+
117
+ ---
118
+
119
+ ## Tips
120
+
121
+ - Refinement is about shifting a slider, not flipping a switch
122
+ - Each direction should be noticeable but not jarring
123
+ - The best refinement feels like the design "was always supposed to be this way"
124
+ - Combine directions carefully: bolder + minimal can work; bolder + delightful often clashes
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: design-review
3
+ description: Design critique with AI slop detection — visual hierarchy, information architecture, emotional resonance, actionable report
4
+ user-invokable: true
5
+ ---
6
+
7
+ # Design Review
8
+
9
+ Perform a structured design critique on the current UI. Produces an actionable report covering visual quality, hierarchy, accessibility, and AI slop detection.
10
+
11
+ ## When to Use
12
+
13
+ - After implementing a new page or component
14
+ - Before shipping UI changes
15
+ - When UI "feels off" but you can't pinpoint why
16
+ - Periodic design quality audits
17
+
18
+ ---
19
+
20
+ ## Process
21
+
22
+ ### 1. Gather Context
23
+
24
+ - Read the Design Context from CLAUDE.md (if exists)
25
+ - Identify the files/components under review
26
+ - Understand the purpose of the UI being reviewed
27
+
28
+ ### 2. AI Slop Test
29
+
30
+ Check for common AI-generated design anti-patterns:
31
+
32
+ | Signal | What to Look For |
33
+ |--------|-----------------|
34
+ | Generic gradients | Blue/purple gradients with no design rationale |
35
+ | Border-radius abuse | Everything is a pill or has identical rounding |
36
+ | Shadow soup | Drop shadows on every element |
37
+ | Meaningless animation | Hover scales/glows on non-interactive elements |
38
+ | Placeholder copy | "Welcome to our platform", "Lorem ipsum" in production |
39
+ | Color overload | Rainbow dashboards, competing accents |
40
+ | Flat hierarchy | Everything has equal visual weight |
41
+ | Card-itis | Every piece of information boxed in a card |
42
+
43
+ **Severity**: Flag each as `slop` (definite AI pattern) or `risk` (borderline).
44
+
45
+ ### 3. Visual Hierarchy Audit
46
+
47
+ - Is there a clear focal point on each view?
48
+ - Does the type hierarchy communicate importance? (H1 > H2 > body > caption)
49
+ - Is whitespace used intentionally to group and separate?
50
+ - Are interactive elements visually distinct from static content?
51
+
52
+ ### 4. Information Architecture
53
+
54
+ - Is the content structure logical?
55
+ - Can users find what they need without thinking?
56
+ - Are labels clear and consistent?
57
+ - Do empty states guide users toward action?
58
+
59
+ ### 5. Emotional Resonance
60
+
61
+ - Does the design match the intended mood/brand?
62
+ - Is there a human touch (warmth, personality)?
63
+ - Would a real user trust this interface?
64
+
65
+ ### 6. Accessibility Quick Check
66
+
67
+ - Color contrast ratios (4.5:1 body text, 3:1 large text)
68
+ - Focus indicators visible?
69
+ - Touch targets adequate (44x44px minimum)?
70
+ - Screen reader landmarks present?
71
+
72
+ ---
73
+
74
+ ## Output Format
75
+
76
+ ```markdown
77
+ ## Design Review: [Component/Page Name]
78
+
79
+ ### AI Slop Score: [0-10] (0 = no slop, 10 = fully generic)
80
+
81
+ **Flagged patterns:**
82
+ - [pattern]: [severity] — [specific location and fix]
83
+
84
+ ### Visual Hierarchy: [Strong / Adequate / Weak]
85
+ - [finding 1]
86
+ - [finding 2]
87
+
88
+ ### Information Architecture: [Clear / Adequate / Confused]
89
+ - [finding 1]
90
+
91
+ ### Accessibility: [Pass / Needs Work / Fail]
92
+ - [finding 1]
93
+
94
+ ### Recommended Actions (priority order)
95
+ 1. [Most impactful fix]
96
+ 2. [Second fix]
97
+ 3. [Third fix]
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Tips
103
+
104
+ - Be specific: "The card shadow is too heavy at `shadow-lg`" not "shadows need work"
105
+ - Suggest concrete CSS/Tailwind changes
106
+ - Reference the Design Context for project-specific standards
107
+ - Praise what works — don't just list problems
@@ -0,0 +1,125 @@
1
+ ---
2
+ name: design-system
3
+ description: Design system extraction and normalization — find patterns or apply consistent tokens across the codebase
4
+ user-invokable: true
5
+ args:
6
+ - name: mode
7
+ description: "Mode: extract (find patterns and tokens) or normalize (apply system consistently)"
8
+ required: true
9
+ ---
10
+
11
+ # Design System
12
+
13
+ Two modes for working with design tokens and patterns:
14
+
15
+ - **Extract** — Scan the codebase, find recurring values, propose a token system
16
+ - **Normalize** — Apply an existing token system consistently across all files
17
+
18
+ ## Usage
19
+
20
+ ```
21
+ /design-system --mode extract
22
+ /design-system --mode normalize
23
+ ```
24
+
25
+ ---
26
+
27
+ ## Extract Mode
28
+
29
+ Scan the codebase for design patterns and propose a unified token system.
30
+
31
+ ### Process
32
+
33
+ 1. **Scan for values**
34
+ - Colors: hex, rgb, hsl, oklch values in CSS/Tailwind/JS
35
+ - Typography: font sizes, weights, line heights, font families
36
+ - Spacing: margin, padding, gap values
37
+ - Borders: radius values, border widths, colors
38
+ - Shadows: box-shadow definitions
39
+ - Breakpoints: media query values
40
+
41
+ 2. **Cluster similar values**
42
+ - Group colors within ΔE < 3 (perceptually identical)
43
+ - Group spacing within 2px tolerance
44
+ - Identify size scale patterns (linear, modular)
45
+
46
+ 3. **Propose token system**
47
+
48
+ ```
49
+ ## Extracted Design Tokens
50
+
51
+ ### Colors (N unique → M tokens)
52
+ --color-bg: #fafafa (used 23 times as #fafafa, #f9f9f9, #fafbfc)
53
+ --color-text: #1a1a1a (used 18 times as #1a1a1a, #171717, #1c1c1c)
54
+ ...
55
+
56
+ ### Typography (N declarations → M scale steps)
57
+ --text-xs: 12px (used 8 times)
58
+ --text-sm: 14px (used 15 times)
59
+ ...
60
+
61
+ ### Spacing (N values → M tokens)
62
+ --space-1: 4px
63
+ --space-2: 8px
64
+ ...
65
+ ```
66
+
67
+ 4. **Flag inconsistencies**
68
+ - Near-duplicate colors that should be unified
69
+ - Off-grid spacing values
70
+ - Typography values that don't fit a scale
71
+ - Hardcoded values that should reference tokens
72
+
73
+ ### Output
74
+
75
+ A report with:
76
+ - Proposed token definitions (CSS custom properties or Tailwind config)
77
+ - Migration checklist: which files need which replacements
78
+ - Inconsistency count and severity
79
+
80
+ ---
81
+
82
+ ## Normalize Mode
83
+
84
+ Apply an existing design system (from Design Context, Tailwind config, or CSS custom properties) consistently across the codebase.
85
+
86
+ ### Process
87
+
88
+ 1. **Load the canonical token system**
89
+ - Read Design Context from CLAUDE.md
90
+ - Read Tailwind config (`tailwind.config.*`)
91
+ - Read CSS custom properties (`:root` declarations)
92
+
93
+ 2. **Scan for deviations**
94
+ - Find hardcoded values that should use tokens
95
+ - Find near-matches (e.g., `#333` when `--text-primary` is `#2d2d2d`)
96
+ - Find inconsistent patterns (some buttons use tokens, others don't)
97
+
98
+ 3. **Apply corrections**
99
+ - Replace hardcoded values with token references
100
+ - Unify near-duplicate values to the canonical token
101
+ - Update component styles to use the design system
102
+
103
+ 4. **Generate migration report**
104
+
105
+ ```
106
+ ## Normalization Report
107
+
108
+ ### Files Modified: N
109
+ ### Replacements: M
110
+
111
+ | File | Change | Before → After |
112
+ |------|--------|---------------|
113
+ | Button.tsx | color | #333 → var(--text-primary) |
114
+ | Card.tsx | spacing | 18px → var(--space-5) |
115
+ ```
116
+
117
+ ---
118
+
119
+ ## Tips
120
+
121
+ - Run extract before normalize on projects without a formal design system
122
+ - Extract can reveal design debt — use it for audits
123
+ - Normalize is non-destructive: review the migration report before applying
124
+ - For Tailwind projects, prefer theme config tokens over CSS custom properties
125
+ - Consider running design-review after normalize to verify visual consistency