@kurokeita/add-skill 2.6.1 → 3.0.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 (140) hide show
  1. package/README.md +43 -64
  2. package/dist/bin/cli.js +270 -478
  3. package/dist/skills/statusline-setup/.claude-plugin/plugin.json +1 -1
  4. package/dist/skills/statusline-setup/SKILL.md +48 -448
  5. package/dist/skills/statusline-setup/mod/hooks/register.tsx +93 -103
  6. package/dist/skills/statusline-setup/mod/tests/work.test.ts +28 -10
  7. package/dist/skills/statusline-setup/mod/types/index.d.ts +2 -1
  8. package/dist/skills/universalize-agents/reference/mapping.md +3 -2
  9. package/package.json +3 -3
  10. package/dist/agents/backend-specialist.md +0 -277
  11. package/dist/agents/code-archaeologist.md +0 -114
  12. package/dist/agents/database-architect.md +0 -238
  13. package/dist/agents/debugger.md +0 -231
  14. package/dist/agents/devops-engineer.md +0 -242
  15. package/dist/agents/documentation-writer.md +0 -104
  16. package/dist/agents/explorer-agent.md +0 -79
  17. package/dist/agents/frontend-specialist.md +0 -594
  18. package/dist/agents/game-developer.md +0 -162
  19. package/dist/agents/mobile-developer.md +0 -383
  20. package/dist/agents/orchestrator.md +0 -435
  21. package/dist/agents/penetration-tester.md +0 -188
  22. package/dist/agents/performance-optimizer.md +0 -191
  23. package/dist/agents/product-manager.md +0 -122
  24. package/dist/agents/product-owner.md +0 -106
  25. package/dist/agents/project-planner.md +0 -408
  26. package/dist/agents/qa-automation-engineer.md +0 -109
  27. package/dist/agents/security-auditor.md +0 -171
  28. package/dist/agents/test-engineer.md +0 -158
  29. package/dist/skills/agent-identifier/SKILL.md +0 -431
  30. package/dist/skills/agent-identifier/examples/agent-creation-prompt.md +0 -247
  31. package/dist/skills/agent-identifier/examples/complete-agent-examples.md +0 -432
  32. package/dist/skills/agent-identifier/references/agent-creation-system-prompt.md +0 -215
  33. package/dist/skills/agent-identifier/references/system-prompt-design.md +0 -419
  34. package/dist/skills/agent-identifier/references/triggering-examples.md +0 -508
  35. package/dist/skills/agent-identifier/scripts/validate-agent.sh +0 -217
  36. package/dist/skills/code-review-excellence/SKILL.md +0 -525
  37. package/dist/skills/component-refactoring/SKILL.md +0 -492
  38. package/dist/skills/component-refactoring/references/complexity-patterns.md +0 -493
  39. package/dist/skills/component-refactoring/references/component-splitting.md +0 -477
  40. package/dist/skills/component-refactoring/references/hook-extraction.md +0 -317
  41. package/dist/skills/context7-guidelines/SKILL.md +0 -31
  42. package/dist/skills/feature-design-assistant/SKILL.md +0 -371
  43. package/dist/skills/find-bugs/SKILL.md +0 -75
  44. package/dist/skills/frontend-design/SKILL.md +0 -45
  45. package/dist/skills/go-concurrency-patterns/SKILL.md +0 -657
  46. package/dist/skills/grill-me/SKILL.md +0 -9
  47. package/dist/skills/handoff/SKILL.md +0 -16
  48. package/dist/skills/koreader-plugin-development/SKILL.md +0 -141
  49. package/dist/skills/koreader-plugin-development/examples/2-example-patch.lua +0 -17
  50. package/dist/skills/koreader-plugin-development/examples/_meta.lua +0 -6
  51. package/dist/skills/koreader-plugin-development/examples/helloworld.lua +0 -36
  52. package/dist/skills/koreader-plugin-development/references/debugging.md +0 -92
  53. package/dist/skills/koreader-plugin-development/references/events-and-widgets.md +0 -102
  54. package/dist/skills/koreader-plugin-development/references/patches.md +0 -118
  55. package/dist/skills/koreader-plugin-development/references/plugin-anatomy.md +0 -97
  56. package/dist/skills/make-instruction/SKILL.md +0 -68
  57. package/dist/skills/make-prompt/SKILL.md +0 -70
  58. package/dist/skills/make-skill/SKILL.md +0 -147
  59. package/dist/skills/prd-to-tasks/SKILL.md +0 -164
  60. package/dist/skills/react-native-async-patterns/SKILL.md +0 -256
  61. package/dist/skills/react-native-performance/SKILL.md +0 -425
  62. package/dist/skills/react-native-testing/SKILL.md +0 -458
  63. package/dist/skills/react-native-zustand-patterns/SKILL.md +0 -343
  64. package/dist/skills/skill-creator/SKILL.md +0 -385
  65. package/dist/skills/skill-creator/scripts/init_skill.cjs +0 -235
  66. package/dist/skills/skill-creator/scripts/package_skill.cjs +0 -84
  67. package/dist/skills/skill-creator/scripts/validate_skill.cjs +0 -127
  68. package/dist/skills/skill-development/SKILL.md +0 -676
  69. package/dist/skills/skill-development/references/skill-creator-original.md +0 -210
  70. package/dist/skills/sql-optimization-patterns/SKILL.md +0 -509
  71. package/dist/skills/test-driven-development/SKILL.md +0 -114
  72. package/dist/skills/test-driven-development/deep-modules.md +0 -33
  73. package/dist/skills/test-driven-development/interface-design.md +0 -35
  74. package/dist/skills/test-driven-development/mocking.md +0 -68
  75. package/dist/skills/test-driven-development/refactoring.md +0 -10
  76. package/dist/skills/test-driven-development/tests.md +0 -61
  77. package/dist/skills/vercel-react-best-practices/AGENTS.md +0 -2410
  78. package/dist/skills/vercel-react-best-practices/SKILL.md +0 -127
  79. package/dist/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
  80. package/dist/skills/vercel-react-best-practices/rules/advanced-use-latest.md +0 -49
  81. package/dist/skills/vercel-react-best-practices/rules/async-api-routes.md +0 -38
  82. package/dist/skills/vercel-react-best-practices/rules/async-defer-await.md +0 -80
  83. package/dist/skills/vercel-react-best-practices/rules/async-dependencies.md +0 -36
  84. package/dist/skills/vercel-react-best-practices/rules/async-parallel.md +0 -28
  85. package/dist/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
  86. package/dist/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -59
  87. package/dist/skills/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
  88. package/dist/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
  89. package/dist/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
  90. package/dist/skills/vercel-react-best-practices/rules/bundle-preload.md +0 -50
  91. package/dist/skills/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
  92. package/dist/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
  93. package/dist/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
  94. package/dist/skills/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
  95. package/dist/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -82
  96. package/dist/skills/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
  97. package/dist/skills/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
  98. package/dist/skills/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
  99. package/dist/skills/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
  100. package/dist/skills/vercel-react-best-practices/rules/js-early-exit.md +0 -50
  101. package/dist/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
  102. package/dist/skills/vercel-react-best-practices/rules/js-index-maps.md +0 -37
  103. package/dist/skills/vercel-react-best-practices/rules/js-length-check-first.md +0 -50
  104. package/dist/skills/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
  105. package/dist/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
  106. package/dist/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
  107. package/dist/skills/vercel-react-best-practices/rules/rendering-activity.md +0 -26
  108. package/dist/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
  109. package/dist/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
  110. package/dist/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
  111. package/dist/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
  112. package/dist/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
  113. package/dist/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
  114. package/dist/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
  115. package/dist/skills/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
  116. package/dist/skills/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
  117. package/dist/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
  118. package/dist/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
  119. package/dist/skills/vercel-react-best-practices/rules/rerender-memo.md +0 -44
  120. package/dist/skills/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
  121. package/dist/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
  122. package/dist/skills/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
  123. package/dist/skills/vercel-react-best-practices/rules/server-cache-react.md +0 -76
  124. package/dist/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
  125. package/dist/skills/vercel-react-best-practices/rules/server-serialization.md +0 -38
  126. package/dist/skills/web-design-guidelines/SKILL.md +0 -40
  127. package/dist/skills/workflow-patterns/SKILL.md +0 -623
  128. package/dist/skills/write-prd/SKILL.md +0 -162
  129. package/dist/workflows/brainstorm.md +0 -113
  130. package/dist/workflows/create.md +0 -60
  131. package/dist/workflows/debug.md +0 -107
  132. package/dist/workflows/deploy.md +0 -178
  133. package/dist/workflows/enhance.md +0 -64
  134. package/dist/workflows/github-pull-request-create.md +0 -134
  135. package/dist/workflows/orchestrate.md +0 -246
  136. package/dist/workflows/plan.md +0 -90
  137. package/dist/workflows/preview.md +0 -83
  138. package/dist/workflows/status.md +0 -87
  139. package/dist/workflows/test.md +0 -144
  140. package/dist/workflows/ui-ux-pro-max.md +0 -315
@@ -1,162 +0,0 @@
1
- ---
2
- name: write-prd
3
- description: >
4
- Create a developer-focused PRD through user interview, codebase exploration, and module design, then save it
5
- under .prd/{prd-name}/ in the current workspace. Use when the user wants to write a PRD, create a product
6
- requirements document, plan a new feature, spec out work, or define requirements for implementation. Also
7
- trigger when the user says things like "let's plan this feature", "I need a spec for...", "write requirements
8
- for...", or "create a PRD for...". Do NOT trigger for: reviewing existing PRDs, creating child tasks from a PRD,
9
- or general project management outside the local PRD directory.
10
- argument-hint: "[prd-name]"
11
- ---
12
-
13
- # Write a PRD
14
-
15
- Create a developer-focused Product Requirements Document and save it to the local workspace instead of a remote tracker.
16
- The PRD captures the *what* and *why* of a feature, not line-level implementation details.
17
-
18
- During the interview phase, explicitly use the `grill-me` skill if it is available in the current workspace. Treat
19
- that skill as the driver for the questioning loop, while this skill remains responsible for codebase exploration,
20
- module design, PRD drafting, and filesystem output.
21
-
22
- Output location:
23
-
24
- - Directory: `.prd/{prd-name}/`
25
- - Primary document: `.prd/{prd-name}/prd.md`
26
- - Optional notes captured during planning: `.prd/{prd-name}/notes.md`
27
-
28
- `{prd-name}` should be a filesystem-safe kebab-case slug. If the user provides a title with spaces or punctuation,
29
- normalize it to kebab-case and tell the user which slug you used.
30
-
31
- You may skip steps if they are clearly unnecessary, but do not rush. The value of this skill is in forcing clarity.
32
-
33
- ## Step 1: Establish the PRD target
34
-
35
- If the user provided `$ARGUMENTS`, treat that as the intended PRD name and normalize it to a slug.
36
-
37
- If not, ask for the PRD name before writing files.
38
-
39
- Before creating files:
40
-
41
- - Check whether `.prd/{prd-name}/` already exists
42
- - If it exists, read `prd.md` if present and summarize the current state
43
- - Ask whether the user wants to overwrite the PRD, revise it in place, or create a new slug
44
-
45
- ## Step 2: Get the problem description
46
-
47
- Ask the user for a long, detailed description of the problem they want to solve and any candidate solutions they already
48
- have in mind.
49
-
50
- If an existing `.prd/{prd-name}/prd.md` exists, summarize it first so the user can correct or extend it instead of repeating
51
- context.
52
-
53
- ## Step 3: Explore the codebase
54
-
55
- Before interviewing, ground yourself in the actual codebase:
56
-
57
- 1. Read the top-level `README.md`, `AGENTS.md`, or other architectural guidance if present
58
- 2. Search broadly for relevant terms, domain concepts, and adjacent implementations
59
- 3. Read area-specific guidance files when relevant
60
- 4. Look for similar features, patterns, and existing terminology
61
-
62
- Do not try to read everything. Use search-driven exploration to understand the current state well enough to ask informed
63
- questions and write an accurate PRD.
64
-
65
- ## Step 4: Interview relentlessly
66
-
67
- Invoke the `grill-me` skill for this phase if available, then interview the user until you reach shared understanding.
68
- Walk down each branch of the design tree and resolve dependencies one by one.
69
-
70
- Ask one question at a time. Keep going until ambiguity is removed.
71
-
72
- Ask about:
73
-
74
- - Edge cases and failure scenarios
75
- - Existing behavior that must be preserved
76
- - What success looks like from the user's perspective
77
- - Who the end users are
78
- - Constraints from architecture, rollout, compatibility, or operations
79
-
80
- Continue exploring the codebase while interviewing. If a question can be answered by inspecting code, inspect code instead
81
- of asking the user.
82
-
83
- ### Scope check
84
-
85
- If it becomes clear the work is too large for one PRD, tell the user and ask whether to narrow the scope or continue with
86
- a larger document that will later be split into multiple execution tracks.
87
-
88
- ## Step 5: Sketch module design
89
-
90
- Sketch the major conceptual modules to build or modify. Look for opportunities to define **deep modules**:
91
-
92
- - Interfaces simpler than the implementation they hide
93
- - Testable in isolation
94
- - Internals can change without rippling outward
95
-
96
- Check that these modules match the user's expectations and ask which ones need stronger test coverage.
97
-
98
- ## Step 6: Draft the PRD and get approval
99
-
100
- Write the PRD and show it to the user for approval before saving or overwriting `prd.md`.
101
-
102
- The PRD should be durable:
103
-
104
- - Do describe conceptual modules, responsibilities, interfaces, and data flow
105
- - Do describe architectural patterns and decisions
106
- - Do not reference specific file paths, class names, or step-by-step implementation procedures
107
- - Do not include code snippets unless the user explicitly asks for them
108
-
109
- Use this structure:
110
-
111
- ```md
112
- # {Human-readable PRD title}
113
-
114
- ## Problem Statement
115
-
116
- ## Solution
117
-
118
- ## User Stories
119
- 1. As a ...
120
-
121
- ## Module Design
122
- ### {Module name}
123
- - Responsibility:
124
- - Interface:
125
- - Status: new | existing
126
- - Depth: deep | shallow
127
-
128
- ## Implementation Decisions
129
-
130
- ## Testing Decisions
131
-
132
- ## Out of Scope
133
-
134
- ## Open Questions
135
- ```
136
-
137
- Omit `Open Questions` if none remain.
138
-
139
- ## Step 7: Save to the filesystem
140
-
141
- Only save after the user approves the PRD.
142
-
143
- Create `.prd/{prd-name}/` if it does not exist.
144
-
145
- Write:
146
-
147
- - `.prd/{prd-name}/prd.md`: the approved PRD
148
-
149
- Optionally write:
150
-
151
- - `.prd/{prd-name}/notes.md`: short working notes, unresolved investigation points, or source references gathered during
152
- discovery. Keep this concise and operational, not user-facing.
153
-
154
- Do not create extra files unless they add real value.
155
-
156
- ## After saving
157
-
158
- Tell the user:
159
-
160
- - The slug used
161
- - The files created or updated
162
- - Whether this was a new PRD or a revision of an existing directory
@@ -1,113 +0,0 @@
1
- ---
2
- description: Structured brainstorming for projects and features. Explores multiple options before implementation.
3
- ---
4
-
5
- # /brainstorm - Structured Idea Exploration
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Purpose
12
-
13
- This command activates BRAINSTORM mode for structured idea exploration. Use when you need to explore options before committing to an implementation.
14
-
15
- ---
16
-
17
- ## Behavior
18
-
19
- When `/brainstorm` is triggered:
20
-
21
- 1. **Understand the goal**
22
- - What problem are we solving?
23
- - Who is the user?
24
- - What constraints exist?
25
-
26
- 2. **Generate options**
27
- - Provide at least 3 different approaches
28
- - Each with pros and cons
29
- - Consider unconventional solutions
30
-
31
- 3. **Compare and recommend**
32
- - Summarize tradeoffs
33
- - Give a recommendation with reasoning
34
-
35
- ---
36
-
37
- ## Output Format
38
-
39
- ```markdown
40
- ## 🧠 Brainstorm: [Topic]
41
-
42
- ### Context
43
- [Brief problem statement]
44
-
45
- ---
46
-
47
- ### Option A: [Name]
48
- [Description]
49
-
50
- ✅ **Pros:**
51
- - [benefit 1]
52
- - [benefit 2]
53
-
54
- ❌ **Cons:**
55
- - [drawback 1]
56
-
57
- 📊 **Effort:** Low | Medium | High
58
-
59
- ---
60
-
61
- ### Option B: [Name]
62
- [Description]
63
-
64
- ✅ **Pros:**
65
- - [benefit 1]
66
-
67
- ❌ **Cons:**
68
- - [drawback 1]
69
- - [drawback 2]
70
-
71
- 📊 **Effort:** Low | Medium | High
72
-
73
- ---
74
-
75
- ### Option C: [Name]
76
- [Description]
77
-
78
- ✅ **Pros:**
79
- - [benefit 1]
80
-
81
- ❌ **Cons:**
82
- - [drawback 1]
83
-
84
- 📊 **Effort:** Low | Medium | High
85
-
86
- ---
87
-
88
- ## 💡 Recommendation
89
-
90
- **Option [X]** because [reasoning].
91
-
92
- What direction would you like to explore?
93
- ```
94
-
95
- ---
96
-
97
- ## Examples
98
-
99
- ```
100
- /brainstorm authentication system
101
- /brainstorm state management for complex form
102
- /brainstorm database schema for social app
103
- /brainstorm caching strategy
104
- ```
105
-
106
- ---
107
-
108
- ## Key Principles
109
-
110
- - **No code** - this is about ideas, not implementation
111
- - **Visual when helpful** - use diagrams for architecture
112
- - **Honest tradeoffs** - don't hide complexity
113
- - **Defer to user** - present options, let them decide
@@ -1,60 +0,0 @@
1
- ---
2
- description: Create new application command. Triggers App Builder skill and starts interactive dialogue with user.
3
- ---
4
-
5
- # /create - Create Application
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Task
12
-
13
- This command starts a new application creation process.
14
-
15
- ### Steps
16
-
17
- 1. **Request Analysis**
18
- - Understand what the user wants
19
- - If information is missing, use `conversation-manager` skill to ask
20
-
21
- 2. **Project Planning**
22
- - Use `project-planner` agent for task breakdown
23
- - Determine tech stack
24
- - Plan file structure
25
- - Create plan file and proceed to building
26
-
27
- 3. **Application Building (After Approval)**
28
- - Orchestrate with `app-builder` skill
29
- - Coordinate expert agents:
30
- - `database-architect` → Schema
31
- - `backend-specialist` → API
32
- - `frontend-specialist` → UI
33
-
34
- 4. **Preview**
35
- - Start with `auto_preview.py` when complete
36
- - Present URL to user
37
-
38
- ---
39
-
40
- ## Usage Examples
41
-
42
- ```
43
- /create blog site
44
- /create e-commerce app with product listing and cart
45
- /create todo app
46
- /create Instagram clone
47
- /create crm system with customer management
48
- ```
49
-
50
- ---
51
-
52
- ## Before Starting
53
-
54
- If request is unclear, ask these questions:
55
-
56
- - What type of application?
57
- - What are the basic features?
58
- - Who will use it?
59
-
60
- Use defaults, add details later.
@@ -1,107 +0,0 @@
1
- ---
2
- description: Debugging command. Activates DEBUG mode for systematic problem investigation.
3
- ---
4
-
5
- # /debug - Systematic Problem Investigation
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Purpose
12
-
13
- This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
14
-
15
- ---
16
-
17
- ## Behavior
18
-
19
- When `/debug` is triggered:
20
-
21
- 1. **Gather information**
22
- - Error message
23
- - Reproduction steps
24
- - Expected vs actual behavior
25
- - Recent changes
26
-
27
- 2. **Form hypotheses**
28
- - List possible causes
29
- - Order by likelihood
30
-
31
- 3. **Investigate systematically**
32
- - Test each hypothesis
33
- - Check logs, data flow
34
- - Use elimination method
35
-
36
- 4. **Fix and prevent**
37
- - Apply fix
38
- - Explain root cause
39
- - Add prevention measures
40
-
41
- ---
42
-
43
- ## Output Format
44
-
45
- ```markdown
46
- ## 🔍 Debug: [Issue]
47
-
48
- ### 1. Symptom
49
- [What's happening]
50
-
51
- ### 2. Information Gathered
52
- - Error: `[error message]`
53
- - File: `[filepath]`
54
- - Line: [line number]
55
-
56
- ### 3. Hypotheses
57
- 1. ❓ [Most likely cause]
58
- 2. ❓ [Second possibility]
59
- 3. ❓ [Less likely cause]
60
-
61
- ### 4. Investigation
62
-
63
- **Testing hypothesis 1:**
64
- [What I checked] → [Result]
65
-
66
- **Testing hypothesis 2:**
67
- [What I checked] → [Result]
68
-
69
- ### 5. Root Cause
70
- 🎯 **[Explanation of why this happened]**
71
-
72
- ### 6. Fix
73
- ```[language]
74
- // Before
75
- [broken code]
76
-
77
- // After
78
- [fixed code]
79
- ```
80
-
81
- ### 7. Prevention
82
-
83
- 🛡️ [How to prevent this in the future]
84
-
85
- ```
86
-
87
- ---
88
-
89
- ## Examples
90
-
91
- ```
92
-
93
- /debug login not working
94
- /debug API returns 500
95
- /debug form doesn't submit
96
- /debug data not saving
97
-
98
- ```
99
-
100
- ---
101
-
102
- ## Key Principles
103
-
104
- - **Ask before assuming** - get full error context
105
- - **Test hypotheses** - don't guess randomly
106
- - **Explain why** - not just what to fix
107
- - **Prevent recurrence** - add tests, validation
@@ -1,178 +0,0 @@
1
- ---
2
- description: Deployment command for production releases. Pre-flight checks and deployment execution.
3
- ---
4
-
5
- # /deploy - Production Deployment
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Purpose
12
-
13
- This command handles production deployment with pre-flight checks, deployment execution, and verification.
14
-
15
- ---
16
-
17
- ## Sub-commands
18
-
19
- ```
20
- /deploy - Interactive deployment wizard
21
- /deploy check - Run pre-deployment checks only
22
- /deploy preview - Deploy to preview/staging
23
- /deploy production - Deploy to production
24
- /deploy rollback - Rollback to previous version
25
- ```
26
-
27
- ---
28
-
29
- ## Pre-Deployment Checklist
30
-
31
- Before any deployment:
32
-
33
- ```markdown
34
- ## 🚀 Pre-Deploy Checklist
35
-
36
- ### Code Quality
37
- - [ ] No TypeScript errors (`npx tsc --noEmit`)
38
- - [ ] ESLint passing (`npx eslint .`)
39
- - [ ] All tests passing (`npm test`)
40
-
41
- ### Security
42
- - [ ] No hardcoded secrets
43
- - [ ] Environment variables documented
44
- - [ ] Dependencies audited (`npm audit`)
45
-
46
- ### Performance
47
- - [ ] Bundle size acceptable
48
- - [ ] No console.log statements
49
- - [ ] Images optimized
50
-
51
- ### Documentation
52
- - [ ] README updated
53
- - [ ] CHANGELOG updated
54
- - [ ] API docs current
55
-
56
- ### Ready to deploy? (y/n)
57
- ```
58
-
59
- ---
60
-
61
- ## Deployment Flow
62
-
63
- ```
64
- ┌─────────────────┐
65
- │ /deploy │
66
- └────────┬────────┘
67
- │
68
- ▼
69
- ┌─────────────────┐
70
- │ Pre-flight │
71
- │ checks │
72
- └────────┬────────┘
73
- │
74
- Pass? ──No──► Fix issues
75
- │
76
- Yes
77
- │
78
- ▼
79
- ┌─────────────────┐
80
- │ Build │
81
- │ application │
82
- └────────┬────────┘
83
- │
84
- ▼
85
- ┌─────────────────┐
86
- │ Deploy to │
87
- │ platform │
88
- └────────┬────────┘
89
- │
90
- ▼
91
- ┌─────────────────┐
92
- │ Health check │
93
- │ & verify │
94
- └────────┬────────┘
95
- │
96
- ▼
97
- ┌─────────────────┐
98
- │ ✅ Complete │
99
- └─────────────────┘
100
- ```
101
-
102
- ---
103
-
104
- ## Output Format
105
-
106
- ### Successful Deploy
107
-
108
- ```markdown
109
- ## 🚀 Deployment Complete
110
-
111
- ### Summary
112
- - **Version:** v1.2.3
113
- - **Environment:** production
114
- - **Duration:** 47 seconds
115
- - **Platform:** Vercel
116
-
117
- ### URLs
118
- - 🌐 Production: https://app.example.com
119
- - 📊 Dashboard: https://vercel.com/project
120
-
121
- ### What Changed
122
- - Added user profile feature
123
- - Fixed login bug
124
- - Updated dependencies
125
-
126
- ### Health Check
127
- ✅ API responding (200 OK)
128
- ✅ Database connected
129
- ✅ All services healthy
130
- ```
131
-
132
- ### Failed Deploy
133
-
134
- ```markdown
135
- ## ❌ Deployment Failed
136
-
137
- ### Error
138
- Build failed at step: TypeScript compilation
139
-
140
- ### Details
141
- ```
142
-
143
- error TS2345: Argument of type 'string' is not assignable...
144
-
145
- ```
146
-
147
- ### Resolution
148
- 1. Fix TypeScript error in `src/services/user.ts:45`
149
- 2. Run `npm run build` locally to verify
150
- 3. Try `/deploy` again
151
-
152
- ### Rollback Available
153
- Previous version (v1.2.2) is still active.
154
- Run `/deploy rollback` if needed.
155
- ```
156
-
157
- ---
158
-
159
- ## Platform Support
160
-
161
- | Platform | Command | Notes |
162
- |----------|---------|-------|
163
- | Vercel | `vercel --prod` | Auto-detected for Next.js |
164
- | Railway | `railway up` | Needs Railway CLI |
165
- | Fly.io | `fly deploy` | Needs flyctl |
166
- | Docker | `docker compose up -d` | For self-hosted |
167
-
168
- ---
169
-
170
- ## Examples
171
-
172
- ```
173
- /deploy
174
- /deploy check
175
- /deploy preview
176
- /deploy production --skip-tests
177
- /deploy rollback
178
- ```
@@ -1,64 +0,0 @@
1
- ---
2
- description: Add or update features in existing application. Used for iterative development.
3
- ---
4
-
5
- # /enhance - Update Application
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Task
12
-
13
- This command adds features or makes updates to existing application.
14
-
15
- ### Steps
16
-
17
- 1. **Understand Current State**
18
- - Load project state with `python .agent/scripts/session_manager.py info`
19
- - Understand existing features, tech stack
20
-
21
- 2. **Plan Changes**
22
- - Determine what will be added/changed
23
- - Detect affected files
24
- - Check dependencies
25
-
26
- 3. **Present Plan to User** (for major changes)
27
-
28
- ```
29
- "To add admin panel:
30
- - I'll create 15 new files
31
- - Update 8 files
32
- - Takes ~10 minutes
33
-
34
- Should I start?"
35
- ```
36
-
37
- 4. **Apply**
38
- - Call relevant agents
39
- - Make changes
40
- - Test
41
-
42
- 5. **Update Preview**
43
- - Hot reload or restart
44
-
45
- ---
46
-
47
- ## Usage Examples
48
-
49
- ```
50
- /enhance add dark mode
51
- /enhance build admin panel
52
- /enhance integrate payment system
53
- /enhance add search feature
54
- /enhance edit profile page
55
- /enhance make responsive
56
- ```
57
-
58
- ---
59
-
60
- ## Caution
61
-
62
- - Get approval for major changes
63
- - Warn on conflicting requests (e.g., "use Firebase" when project uses PostgreSQL)
64
- - Commit each change with git