opencodekit 0.15.0 → 0.15.2

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 (52) hide show
  1. package/dist/index.js +367 -31
  2. package/dist/template/.opencode/README.md +1 -1
  3. package/dist/template/.opencode/agent/vision.md +4 -4
  4. package/dist/template/.opencode/command/agent-browser.md +21 -0
  5. package/dist/template/.opencode/command/complete-next-task.md +77 -0
  6. package/dist/template/.opencode/command/create.md +38 -3
  7. package/dist/template/.opencode/command/design-audit.md +1 -1
  8. package/dist/template/.opencode/command/design.md +1 -1
  9. package/dist/template/.opencode/command/finish.md +8 -0
  10. package/dist/template/.opencode/command/frontend-design.md +21 -0
  11. package/dist/template/.opencode/command/index-knowledge.md +25 -0
  12. package/dist/template/.opencode/command/init.md +6 -0
  13. package/dist/template/.opencode/command/opensrc.md +58 -0
  14. package/dist/template/.opencode/command/skill-create.md +3 -3
  15. package/dist/template/.opencode/command/skill-optimize.md +2 -2
  16. package/dist/template/.opencode/command/start.md +15 -6
  17. package/dist/template/.opencode/command/ui-review.md +1 -1
  18. package/dist/template/.opencode/memory/_templates/prd.md +50 -14
  19. package/dist/template/.opencode/opencode.json +143 -159
  20. package/dist/template/.opencode/package.json +1 -1
  21. package/dist/template/.opencode/skill/accessibility-audit/SKILL.md +1 -1
  22. package/dist/template/.opencode/skill/agent-browser/SKILL.md +376 -0
  23. package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
  24. package/dist/template/.opencode/skill/frontend-design/SKILL.md +155 -0
  25. package/dist/template/.opencode/skill/frontend-design/references/animation/motion-advanced.md +224 -0
  26. package/dist/template/.opencode/skill/frontend-design/references/animation/motion-core.md +171 -0
  27. package/dist/template/.opencode/skill/frontend-design/references/canvas/execution.md +90 -0
  28. package/dist/template/.opencode/skill/frontend-design/references/canvas/philosophy.md +94 -0
  29. package/dist/template/.opencode/skill/frontend-design/references/shadcn/accessibility.md +132 -0
  30. package/dist/template/.opencode/skill/frontend-design/references/shadcn/core-components.md +153 -0
  31. package/dist/template/.opencode/skill/frontend-design/references/shadcn/form-components.md +158 -0
  32. package/dist/template/.opencode/skill/frontend-design/references/shadcn/setup.md +69 -0
  33. package/dist/template/.opencode/skill/frontend-design/references/shadcn/theming.md +152 -0
  34. package/dist/template/.opencode/skill/frontend-design/references/tailwind/responsive.md +112 -0
  35. package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-layout.md +134 -0
  36. package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-styling.md +165 -0
  37. package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-config.md +147 -0
  38. package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-features.md +128 -0
  39. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +358 -0
  40. package/dist/template/.opencode/skill/mockup-to-code/SKILL.md +1 -1
  41. package/dist/template/.opencode/skill/opensrc/SKILL.md +115 -0
  42. package/dist/template/.opencode/skill/opensrc/references/architecture.md +176 -0
  43. package/dist/template/.opencode/skill/opensrc/references/cli-usage.md +176 -0
  44. package/dist/template/.opencode/skill/opensrc/references/registry-support.md +137 -0
  45. package/dist/template/.opencode/skill/prd/SKILL.md +212 -0
  46. package/dist/template/.opencode/skill/prd-task/SKILL.md +128 -0
  47. package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +28 -0
  48. package/dist/template/.opencode/skill/skill-creator/SKILL.md +155 -0
  49. package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +1 -1
  50. package/dist/template/.opencode/skill/visual-analysis/SKILL.md +1 -1
  51. package/package.json +1 -1
  52. package/dist/template/.opencode/skill/frontend-aesthetics/SKILL.md +0 -117
@@ -0,0 +1,155 @@
1
+ ---
2
+ name: skill-creator
3
+ description: Guide for creating effective skills. Use when creating a new skill or updating an existing skill that extends an agent's capabilities with specialized knowledge, workflows, or tool integrations.
4
+ ---
5
+
6
+ # Skill Creator
7
+
8
+ Guide for creating effective skills that extend agent capabilities.
9
+
10
+ > **CRITICAL: YAML FRONTMATTER REQUIRED**
11
+ > Every SKILL.md **MUST** begin with YAML frontmatter on line 1.
12
+ >
13
+ > ```yaml
14
+ > ---
15
+ > name: skill-name
16
+ > description: One-line description of what this skill does
17
+ > ---
18
+ > ```
19
+
20
+ ## What Skills Provide
21
+
22
+ 1. **Specialized workflows** - Multi-step procedures for specific domains
23
+ 2. **Tool integrations** - Instructions for working with specific file formats or APIs
24
+ 3. **Domain expertise** - Company-specific knowledge, schemas, business logic
25
+ 4. **Bundled resources** - Scripts, references, and assets for complex tasks
26
+
27
+ ## Skill Structure
28
+
29
+ ```
30
+ skill-name/
31
+ ├── SKILL.md (required)
32
+ │ ├── YAML frontmatter (name, description)
33
+ │ └── Markdown instructions
34
+ └── Bundled Resources (optional)
35
+ ├── scripts/ - Executable code (Python/Bash/etc.)
36
+ ├── references/ - Documentation loaded as needed
37
+ └── assets/ - Files used in output (templates, icons)
38
+ ```
39
+
40
+ ## Requirements
41
+
42
+ - `SKILL.md` should be **less than 200 lines**
43
+ - Use `references/` for detailed documentation
44
+ - Each script or reference file also **less than 200 lines**
45
+ - Descriptions must be specific about WHEN to use the skill
46
+
47
+ ## SKILL.md Format
48
+
49
+ **REQUIRED - DO NOT SKIP**
50
+
51
+ ```yaml
52
+ ---
53
+ name: skill-name
54
+ description: What this skill does and when to use it. Use third-person.
55
+ ---
56
+ ```
57
+
58
+ **Required fields:**
59
+
60
+ - `name` — hyphen-case identifier matching directory name
61
+ - `description` — activation trigger; be specific about WHEN to use
62
+
63
+ **Optional fields:**
64
+
65
+ ```yaml
66
+ ---
67
+ name: skill-name
68
+ description: What this skill does and when to use it.
69
+ references:
70
+ - references/guide.md
71
+ - references/api.md
72
+ license: Apache-2.0
73
+ ---
74
+ ```
75
+
76
+ **INVALID - Do NOT use:**
77
+
78
+ - XML-style tags (`<purpose>`, `<references>`)
79
+ - Missing `---` delimiters
80
+ - Frontmatter that doesn't start at line 1
81
+
82
+ ## Bundled Resources
83
+
84
+ ### Scripts (`scripts/`)
85
+
86
+ - When the same code is being rewritten repeatedly
87
+ - When deterministic reliability is needed
88
+ - Prefer Node.js or Python over Bash (Windows support)
89
+
90
+ ### References (`references/`)
91
+
92
+ - Documentation that agent should reference while working
93
+ - Database schemas, API docs, domain knowledge
94
+ - If files are large (>10k words), include grep patterns in SKILL.md
95
+
96
+ ### Assets (`assets/`)
97
+
98
+ - Files used in the final output (not loaded into context)
99
+ - Templates, images, icons, boilerplate code
100
+
101
+ ## Progressive Disclosure
102
+
103
+ Skills use three-level loading:
104
+
105
+ 1. **Metadata (name + description)** - Always in context (~100 words)
106
+ 2. **SKILL.md body** - When skill triggers (<5k words)
107
+ 3. **Bundled resources** - As needed by agent (Unlimited)
108
+
109
+ ## Skill Creation Process
110
+
111
+ ### Step 1: Understand with Examples
112
+
113
+ - "What functionality should the skill support?"
114
+ - "Can you give examples of how this would be used?"
115
+ - "What would a user say that should trigger this skill?"
116
+
117
+ ### Step 2: Plan Reusable Contents
118
+
119
+ For each example, identify:
120
+
121
+ - What scripts would be helpful to store?
122
+ - What references/documentation needed?
123
+ - What assets/templates needed?
124
+
125
+ ### Step 3: Create the Skill
126
+
127
+ ```bash
128
+ mkdir -p .opencode/skill/my-skill
129
+ touch .opencode/skill/my-skill/SKILL.md
130
+ ```
131
+
132
+ ### Step 4: Edit SKILL.md
133
+
134
+ Answer these questions:
135
+
136
+ 1. What is the purpose of the skill?
137
+ 2. When should it be used?
138
+ 3. How should the agent use it?
139
+
140
+ ### Step 5: Iterate
141
+
142
+ 1. Use the skill on real tasks
143
+ 2. Notice struggles or inefficiencies
144
+ 3. Update SKILL.md or bundled resources
145
+ 4. Test again
146
+
147
+ ## Pre-Submission Checklist
148
+
149
+ - [ ] **SKILL.md starts with `---`** (YAML frontmatter, line 1)
150
+ - [ ] **`name:` field present** and matches directory name
151
+ - [ ] **`description:` field present** with specific activation triggers
152
+ - [ ] **Closing `---`** after frontmatter
153
+ - [ ] **No XML-style tags**
154
+ - [ ] **SKILL.md under 200 lines**
155
+ - [ ] **All referenced files exist**
@@ -121,5 +121,5 @@ Save research findings to `.opencode/memory/design/research/`
121
121
  | After Research | Use Skill |
122
122
  | --------------------------- | --------------------- |
123
123
  | Need implementation | `mockup-to-code` |
124
- | Need aesthetic improvements | `frontend-aesthetics` |
124
+ | Need aesthetic improvements | `frontend-design` |
125
125
  | Need accessibility fixes | `accessibility-audit` |
@@ -132,4 +132,4 @@ Save findings to `.opencode/memory/design/analysis/`
132
132
  | Found accessibility issues | `accessibility-audit` |
133
133
  | Need to implement design | `mockup-to-code` |
134
134
  | Want design tokens | `design-system-audit` |
135
- | Need aesthetic improvements | `frontend-aesthetics` |
135
+ | Need aesthetic improvements | `frontend-design` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "keywords": ["agents", "cli", "mcp", "opencode", "opencodekit", "template"],
6
6
  "license": "MIT",
@@ -1,117 +0,0 @@
1
- ---
2
- name: frontend-aesthetics
3
- description: Use when building landing pages, dashboards, forms, or any frontend generation task where you need to prevent generic "AI slop" and create distinctive, intentional designs
4
- ---
5
-
6
- # Frontend Aesthetics Skill
7
-
8
- Prevent generic "AI slop" frontends. Create distinctive, intentional designs.
9
-
10
- ## When to Use
11
-
12
- - Building landing pages, dashboards, forms, components
13
- - Any frontend generation task
14
- - Reviewing UI for visual quality
15
-
16
- ## Decision Gate (Do First)
17
-
18
- Before writing code, state:
19
-
20
- 1. **Aesthetic direction** — Which style?
21
- 2. **Why** — How does it fit the context?
22
-
23
- ## Aesthetic Directions
24
-
25
- Pick ONE (or combine 2):
26
-
27
- | Direction | Character |
28
- | ---------------- | ----------------------------------------------- |
29
- | Neo-Brutalist | Raw textures, bold type, harsh contrasts |
30
- | Soft Minimalism | Muted palettes, generous whitespace |
31
- | Retro-Futuristic | CRT effects, scan lines, neon |
32
- | Editorial | Dynamic grids, mixed media, bold type |
33
- | Glass Morphism | Translucent layers, backdrop blur, depth |
34
- | Dark Academia | Rich textures, serif type, scholarly |
35
- | Swiss Design | Grid systems, sans-serif, functional |
36
- | Art Deco | Geometric patterns, gold accents, luxury |
37
- | Y2K Revival | Gradients, metallics, early-web nostalgia |
38
- | Organic/Natural | Flowing shapes, nature palettes, paper textures |
39
-
40
- ## Typography
41
-
42
- **Good choices:**
43
-
44
- - Code/Tech: JetBrains Mono, Fira Code, Space Mono
45
- - Editorial: Playfair Display, Crimson Pro, Instrument Serif
46
- - Display: Bebas Neue, Oswald, Archivo Black
47
- - Technical: IBM Plex, Source Sans 3, Work Sans
48
- - Distinctive: Bricolage Grotesque, Syne, Outfit
49
-
50
- **Avoid:** Inter, Roboto, Arial, system fonts without purpose
51
-
52
- **Pairing:** High contrast = interesting. Display + monospace, serif + geometric sans.
53
-
54
- **Weight:** Use extremes (100/200 vs 800/900), not middle (400 vs 600).
55
-
56
- ## Color Anti-Patterns
57
-
58
- **Avoid:**
59
-
60
- - Purple/blue gradient backgrounds
61
- - #6366F1 or #667eea as primary
62
- - Flat white backgrounds
63
-
64
- **Do:**
65
-
66
- - Commit to cohesive theme
67
- - Use CSS variables
68
- - Dominant colors with sharp accents
69
-
70
- ## Animation Pattern
71
-
72
- One orchestrated entrance beats scattered effects:
73
-
74
- ```css
75
- @keyframes revealUp {
76
- from {
77
- opacity: 0;
78
- transform: translateY(30px);
79
- }
80
- }
81
-
82
- .hero > * {
83
- animation: revealUp 800ms cubic-bezier(0.19, 1, 0.22, 1) both;
84
- }
85
- .hero > *:nth-child(1) {
86
- animation-delay: 0ms;
87
- }
88
- .hero > *:nth-child(2) {
89
- animation-delay: 80ms;
90
- }
91
- .hero > *:nth-child(3) {
92
- animation-delay: 160ms;
93
- }
94
- ```
95
-
96
- ## AI Slop Signature (Never Do ALL Together)
97
-
98
- - Purple/blue gradient backgrounds
99
- - Inter or system fonts
100
- - Centered hero with subheading
101
- - 3-column feature cards with icons
102
- - Rounded corners on everything (16px)
103
- - Drop shadows on all cards
104
- - "Modern, clean, simple" as only descriptors
105
-
106
- ## Quality Check
107
-
108
- Before delivery:
109
-
110
- - [ ] Clear aesthetic point of view?
111
- - [ ] Avoids ALL items in the AI slop list?
112
- - [ ] Would someone remember this tomorrow?
113
- - [ ] Responsive, accessible, performs well?
114
-
115
- ## Storage
116
-
117
- Save design decisions to `.opencode/memory/design/aesthetics/`