@kurokeita/add-skill 1.4.0 → 1.6.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.
Files changed (40) hide show
  1. package/README.md +56 -20
  2. package/dist/agents/backend-specialist.md +277 -0
  3. package/dist/agents/code-archaeologist.md +114 -0
  4. package/dist/agents/database-architect.md +238 -0
  5. package/dist/agents/debugger.md +231 -0
  6. package/dist/agents/devops-engineer.md +242 -0
  7. package/dist/agents/documentation-writer.md +104 -0
  8. package/dist/agents/explorer-agent.md +79 -0
  9. package/dist/agents/frontend-specialist.md +594 -0
  10. package/dist/agents/game-developer.md +162 -0
  11. package/dist/agents/mobile-developer.md +383 -0
  12. package/dist/agents/orchestrator.md +435 -0
  13. package/dist/agents/penetration-tester.md +188 -0
  14. package/dist/agents/performance-optimizer.md +191 -0
  15. package/dist/agents/product-manager.md +122 -0
  16. package/dist/agents/product-owner.md +106 -0
  17. package/dist/agents/project-planner.md +408 -0
  18. package/dist/agents/qa-automation-engineer.md +109 -0
  19. package/dist/agents/security-auditor.md +171 -0
  20. package/dist/agents/test-engineer.md +158 -0
  21. package/dist/bin/cli.js +29 -0
  22. package/dist/src/commands/add.js +115 -77
  23. package/dist/src/commands/import.js +73 -23
  24. package/dist/src/commands/list.js +84 -23
  25. package/dist/src/commands/remove.js +118 -0
  26. package/dist/src/utils/github.js +22 -11
  27. package/dist/src/utils/paths.js +45 -0
  28. package/dist/workflows/brainstorm.md +113 -0
  29. package/dist/workflows/create.md +60 -0
  30. package/dist/workflows/debug.md +107 -0
  31. package/dist/workflows/deploy.md +178 -0
  32. package/dist/workflows/enhance.md +64 -0
  33. package/dist/workflows/orchestrate.md +246 -0
  34. package/dist/workflows/plan.md +90 -0
  35. package/dist/workflows/preview.md +83 -0
  36. package/dist/workflows/status.md +87 -0
  37. package/dist/workflows/test.md +144 -0
  38. package/dist/workflows/ui-ux-pro-max.md +315 -0
  39. package/package.json +4 -4
  40. package/dist/bin/skills.js +0 -17
@@ -0,0 +1,87 @@
1
+ ---
2
+ description: Display agent and project status. Progress tracking and status board.
3
+ ---
4
+
5
+ # /status - Show Status
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ Show current project and agent status.
14
+
15
+ ### What It Shows
16
+
17
+ 1. **Project Info**
18
+ - Project name and path
19
+ - Tech stack
20
+ - Current features
21
+
22
+ 2. **Agent Status Board**
23
+ - Which agents are running
24
+ - Which tasks are completed
25
+ - Pending work
26
+
27
+ 3. **File Statistics**
28
+ - Files created count
29
+ - Files modified count
30
+
31
+ 4. **Preview Status**
32
+ - Is server running
33
+ - URL
34
+ - Health check
35
+
36
+ ---
37
+
38
+ ## Example Output
39
+
40
+ ```
41
+ === Project Status ===
42
+
43
+ 📁 Project: my-ecommerce
44
+ 📂 Path: C:/projects/my-ecommerce
45
+ 🏷️ Type: nextjs-ecommerce
46
+ 📊 Status: active
47
+
48
+ 🔧 Tech Stack:
49
+ Framework: next.js
50
+ Database: postgresql
51
+ Auth: clerk
52
+ Payment: stripe
53
+
54
+ ✅ Features (5):
55
+ • product-listing
56
+ • cart
57
+ • checkout
58
+ • user-auth
59
+ • order-history
60
+
61
+ ⏳ Pending (2):
62
+ • admin-panel
63
+ • email-notifications
64
+
65
+ 📄 Files: 73 created, 12 modified
66
+
67
+ === Agent Status ===
68
+
69
+ ✅ database-architect → Completed
70
+ ✅ backend-specialist → Completed
71
+ 🔄 frontend-specialist → Dashboard components (60%)
72
+ ⏳ test-engineer → Waiting
73
+
74
+ === Preview ===
75
+
76
+ 🌐 URL: http://localhost:3000
77
+ 💚 Health: OK
78
+ ```
79
+
80
+ ---
81
+
82
+ ## Technical
83
+
84
+ Status uses these scripts:
85
+
86
+ - `python .agent/scripts/session_manager.py status`
87
+ - `python .agent/scripts/auto_preview.py status`
@@ -0,0 +1,144 @@
1
+ ---
2
+ description: Test generation and test running command. Creates and executes tests for code.
3
+ ---
4
+
5
+ # /test - Test Generation and Execution
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ This command generates tests, runs existing tests, or checks test coverage.
14
+
15
+ ---
16
+
17
+ ## Sub-commands
18
+
19
+ ```
20
+ /test - Run all tests
21
+ /test [file/feature] - Generate tests for specific target
22
+ /test coverage - Show test coverage report
23
+ /test watch - Run tests in watch mode
24
+ ```
25
+
26
+ ---
27
+
28
+ ## Behavior
29
+
30
+ ### Generate Tests
31
+
32
+ When asked to test a file or feature:
33
+
34
+ 1. **Analyze the code**
35
+ - Identify functions and methods
36
+ - Find edge cases
37
+ - Detect dependencies to mock
38
+
39
+ 2. **Generate test cases**
40
+ - Happy path tests
41
+ - Error cases
42
+ - Edge cases
43
+ - Integration tests (if needed)
44
+
45
+ 3. **Write tests**
46
+ - Use project's test framework (Jest, Vitest, etc.)
47
+ - Follow existing test patterns
48
+ - Mock external dependencies
49
+
50
+ ---
51
+
52
+ ## Output Format
53
+
54
+ ### For Test Generation
55
+
56
+ ```markdown
57
+ ## 🧪 Tests: [Target]
58
+
59
+ ### Test Plan
60
+ | Test Case | Type | Coverage |
61
+ |-----------|------|----------|
62
+ | Should create user | Unit | Happy path |
63
+ | Should reject invalid email | Unit | Validation |
64
+ | Should handle db error | Unit | Error case |
65
+
66
+ ### Generated Tests
67
+
68
+ `tests/[file].test.ts`
69
+
70
+ [Code block with tests]
71
+
72
+ ---
73
+
74
+ Run with: `npm test`
75
+ ```
76
+
77
+ ### For Test Execution
78
+
79
+ ```
80
+ 🧪 Running tests...
81
+
82
+ ✅ auth.test.ts (5 passed)
83
+ ✅ user.test.ts (8 passed)
84
+ ❌ order.test.ts (2 passed, 1 failed)
85
+
86
+ Failed:
87
+ ✗ should calculate total with discount
88
+ Expected: 90
89
+ Received: 100
90
+
91
+ Total: 15 tests (14 passed, 1 failed)
92
+ ```
93
+
94
+ ---
95
+
96
+ ## Examples
97
+
98
+ ```
99
+ /test src/services/auth.service.ts
100
+ /test user registration flow
101
+ /test coverage
102
+ /test fix failed tests
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Test Patterns
108
+
109
+ ### Unit Test Structure
110
+
111
+ ```typescript
112
+ describe('AuthService', () => {
113
+ describe('login', () => {
114
+ it('should return token for valid credentials', async () => {
115
+ // Arrange
116
+ const credentials = { email: 'test@test.com', password: 'pass123' };
117
+
118
+ // Act
119
+ const result = await authService.login(credentials);
120
+
121
+ // Assert
122
+ expect(result.token).toBeDefined();
123
+ });
124
+
125
+ it('should throw for invalid password', async () => {
126
+ // Arrange
127
+ const credentials = { email: 'test@test.com', password: 'wrong' };
128
+
129
+ // Act & Assert
130
+ await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
131
+ });
132
+ });
133
+ });
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Key Principles
139
+
140
+ - **Test behavior not implementation**
141
+ - **One assertion per test** (when practical)
142
+ - **Descriptive test names**
143
+ - **Arrange-Act-Assert pattern**
144
+ - **Mock external dependencies**
@@ -0,0 +1,315 @@
1
+ ---
2
+ description: Plan and implement UI
3
+ ---
4
+
5
+ ---
6
+
7
+ description: AI-powered design intelligence with 50+ styles, 95+ color palettes, and automated design system generation
8
+
9
+ ---
10
+
11
+ # ui-ux-pro-max
12
+
13
+ Comprehensive design guide for web and mobile applications. Contains 50+ styles, 97 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 9 technology stacks. Searchable database with priority-based recommendations.
14
+
15
+ ## Prerequisites
16
+
17
+ Check if Python is installed:
18
+
19
+ ```bash
20
+ python3 --version || python --version
21
+ ```
22
+
23
+ If Python is not installed, install it based on user's OS:
24
+
25
+ **macOS:**
26
+
27
+ ```bash
28
+ brew install python3
29
+ ```
30
+
31
+ **Ubuntu/Debian:**
32
+
33
+ ```bash
34
+ sudo apt update && sudo apt install python3
35
+ ```
36
+
37
+ **Windows:**
38
+
39
+ ```powershell
40
+ winget install Python.Python.3.12
41
+ ```
42
+
43
+ ---
44
+
45
+ ## How to Use This Workflow
46
+
47
+ When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
48
+
49
+ ### Step 1: Analyze User Requirements
50
+
51
+ Extract key information from user request:
52
+
53
+ - **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
54
+ - **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
55
+ - **Industry**: healthcare, fintech, gaming, education, etc.
56
+ - **Stack**: React, Vue, Next.js, or default to `html-tailwind`
57
+
58
+ ### Step 2: Generate Design System (REQUIRED)
59
+
60
+ **Always start with `--design-system`** to get comprehensive recommendations with reasoning:
61
+
62
+ ```bash
63
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
64
+ ```
65
+
66
+ This command:
67
+
68
+ 1. Searches 5 domains in parallel (product, style, color, landing, typography)
69
+ 2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
70
+ 3. Returns complete design system: pattern, style, colors, typography, effects
71
+ 4. Includes anti-patterns to avoid
72
+
73
+ **Example:**
74
+
75
+ ```bash
76
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
77
+ ```
78
+
79
+ ### Step 2b: Persist Design System (Master + Overrides Pattern)
80
+
81
+ To save the design system for hierarchical retrieval across sessions, add `--persist`:
82
+
83
+ ```bash
84
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
85
+ ```
86
+
87
+ This creates:
88
+
89
+ - `design-system/MASTER.md` — Global Source of Truth with all design rules
90
+ - `design-system/pages/` — Folder for page-specific overrides
91
+
92
+ **With page-specific override:**
93
+
94
+ ```bash
95
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
96
+ ```
97
+
98
+ This also creates:
99
+
100
+ - `design-system/pages/dashboard.md` — Page-specific deviations from Master
101
+
102
+ **How hierarchical retrieval works:**
103
+
104
+ 1. When building a specific page (e.g., "Checkout"), first check `design-system/pages/checkout.md`
105
+ 2. If the page file exists, its rules **override** the Master file
106
+ 3. If not, use `design-system/MASTER.md` exclusively
107
+
108
+ ### Step 3: Supplement with Detailed Searches (as needed)
109
+
110
+ After getting the design system, use domain searches to get additional details:
111
+
112
+ ```bash
113
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
114
+ ```
115
+
116
+ **When to use detailed searches:**
117
+
118
+ | Need | Domain | Example |
119
+ |------|--------|---------|
120
+ | More style options | `style` | `--domain style "glassmorphism dark"` |
121
+ | Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
122
+ | UX best practices | `ux` | `--domain ux "animation accessibility"` |
123
+ | Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
124
+ | Landing structure | `landing` | `--domain landing "hero social-proof"` |
125
+
126
+ ### Step 4: Stack Guidelines (Default: html-tailwind)
127
+
128
+ Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
129
+
130
+ ```bash
131
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
132
+ ```
133
+
134
+ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`, `jetpack-compose`
135
+ , `jetpack-compose`
136
+
137
+ ---
138
+
139
+ ## Search Reference
140
+
141
+ ### Available Domains
142
+
143
+ | Domain | Use For | Example Keywords |
144
+ |--------|---------|------------------|
145
+ | `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
146
+ | `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
147
+ | `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
148
+ | `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
149
+ | `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
150
+ | `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
151
+ | `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
152
+ | `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
153
+ | `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
154
+ | `prompt` | AI prompts, CSS keywords | (style name) |
155
+
156
+ ### Available Stacks
157
+
158
+ | Stack | Focus |
159
+ |-------|-------|
160
+ | `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
161
+ | `react` | State, hooks, performance, patterns |
162
+ | `nextjs` | SSR, routing, images, API routes |
163
+ | `vue` | Composition API, Pinia, Vue Router |
164
+ | `svelte` | Runes, stores, SvelteKit |
165
+ | `swiftui` | Views, State, Navigation, Animation |
166
+ | `react-native` | Components, Navigation, Lists |
167
+ | `flutter` | Widgets, State, Layout, Theming |
168
+ | `shadcn` | shadcn/ui components, theming, forms, patterns |
169
+ | `jetpack-compose` | Composables, Modifiers, State Hoisting, Recomposition |
170
+
171
+ ---
172
+
173
+ ## Example Workflow
174
+
175
+ **User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
176
+
177
+ ### Step 1: Analyze Requirements
178
+
179
+ - Product type: Beauty/Spa service
180
+ - Style keywords: elegant, professional, soft
181
+ - Industry: Beauty/Wellness
182
+ - Stack: html-tailwind (default)
183
+
184
+ ### Step 2: Generate Design System (REQUIRED)
185
+
186
+ ```bash
187
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
188
+ ```
189
+
190
+ **Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
191
+
192
+ ### Step 3: Supplement with Detailed Searches (as needed)
193
+
194
+ ```bash
195
+ # Get UX guidelines for animation and accessibility
196
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
197
+
198
+ # Get alternative typography options if needed
199
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
200
+ ```
201
+
202
+ ### Step 4: Stack Guidelines
203
+
204
+ ```bash
205
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
206
+ ```
207
+
208
+ **Then:** Synthesize design system + detailed searches and implement the design.
209
+
210
+ ---
211
+
212
+ ## Output Formats
213
+
214
+ The `--design-system` flag supports two output formats:
215
+
216
+ ```bash
217
+ # ASCII box (default) - best for terminal display
218
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
219
+
220
+ # Markdown - best for documentation
221
+ python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
222
+ ```
223
+
224
+ ---
225
+
226
+ ## Tips for Better Results
227
+
228
+ 1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
229
+ 2. **Search multiple times** - Different keywords reveal different insights
230
+ 3. **Combine domains** - Style + Typography + Color = Complete design system
231
+ 4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
232
+ 5. **Use stack flag** - Get implementation-specific best practices
233
+ 6. **Iterate** - If first search doesn't match, try different keywords
234
+
235
+ ---
236
+
237
+ ## Common Rules for Professional UI
238
+
239
+ These are frequently overlooked issues that make UI look unprofessional:
240
+
241
+ ### Icons & Visual Elements
242
+
243
+ | Rule | Do | Don't |
244
+ |------|----|----- |
245
+ | **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
246
+ | **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
247
+ | **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
248
+ | **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
249
+
250
+ ### Interaction & Cursor
251
+
252
+ | Rule | Do | Don't |
253
+ |------|----|----- |
254
+ | **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
255
+ | **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
256
+ | **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
257
+
258
+ ### Light/Dark Mode Contrast
259
+
260
+ | Rule | Do | Don't |
261
+ |------|----|----- |
262
+ | **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
263
+ | **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
264
+ | **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
265
+ | **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
266
+
267
+ ### Layout & Spacing
268
+
269
+ | Rule | Do | Don't |
270
+ |------|----|----- |
271
+ | **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
272
+ | **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
273
+ | **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
274
+
275
+ ---
276
+
277
+ ## Pre-Delivery Checklist
278
+
279
+ Before delivering UI code, verify these items:
280
+
281
+ ### Visual Quality
282
+
283
+ - [ ] No emojis used as icons (use SVG instead)
284
+ - [ ] All icons from consistent icon set (Heroicons/Lucide)
285
+ - [ ] Brand logos are correct (verified from Simple Icons)
286
+ - [ ] Hover states don't cause layout shift
287
+ - [ ] Use theme colors directly (bg-primary) not var() wrapper
288
+
289
+ ### Interaction
290
+
291
+ - [ ] All clickable elements have `cursor-pointer`
292
+ - [ ] Hover states provide clear visual feedback
293
+ - [ ] Transitions are smooth (150-300ms)
294
+ - [ ] Focus states visible for keyboard navigation
295
+
296
+ ### Light/Dark Mode
297
+
298
+ - [ ] Light mode text has sufficient contrast (4.5:1 minimum)
299
+ - [ ] Glass/transparent elements visible in light mode
300
+ - [ ] Borders visible in both modes
301
+ - [ ] Test both modes before delivery
302
+
303
+ ### Layout
304
+
305
+ - [ ] Floating elements have proper spacing from edges
306
+ - [ ] No content hidden behind fixed navbars
307
+ - [ ] Responsive at 375px, 768px, 1024px, 1440px
308
+ - [ ] No horizontal scroll on mobile
309
+
310
+ ### Accessibility
311
+
312
+ - [ ] All images have alt text
313
+ - [ ] Form inputs have labels
314
+ - [ ] Color is not the only indicator
315
+ - [ ] `prefers-reduced-motion` respected
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@kurokeita/add-skill",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "CLI to install AI agent skills to various platforms",
5
5
  "type": "module",
6
6
  "bin": {
7
- "add-skill": "./dist/bin/skills.js"
7
+ "ai-agent": "./dist/bin/cli.js"
8
8
  },
9
- "main": "dist/bin/skills.js",
9
+ "main": "dist/bin/cli.js",
10
10
  "files": [
11
11
  "dist"
12
12
  ],
13
13
  "scripts": {
14
- "dev": "tsx bin/skills.ts",
14
+ "dev": "tsx bin/cli.ts",
15
15
  "update:readme": "tsx scripts/update-readme.ts",
16
16
  "build": "tsc && tsx scripts/copy-assets.ts",
17
17
  "prepublishOnly": "pnpm run build",
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- import { Command } from "commander";
3
- import { addSkill } from "../src/commands/add.js";
4
- import { importSkill } from "../src/commands/import.js";
5
- import { listSkills } from "../src/commands/list.js";
6
- const program = new Command();
7
- program.name("skills").description("CLI to manage AI skills").version("1.0.0");
8
- program.command("list").description("List available skills").action(listSkills);
9
- program
10
- .command("add [url]")
11
- .description("Add skills to platforms (Interactive or from GitHub URL)")
12
- .action(addSkill);
13
- program
14
- .command("import <url>")
15
- .description("Import a skill from GitHub to the repo")
16
- .action(importSkill);
17
- program.parse();