create-claude-webapp 1.0.0 → 1.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 (79) hide show
  1. package/.claude/agents/acceptance-test-generator.md +256 -0
  2. package/.claude/agents/auth-flow-designer.md +93 -0
  3. package/.claude/agents/code-reviewer.md +193 -0
  4. package/.claude/agents/code-verifier.md +194 -0
  5. package/.claude/agents/deployment-executor.md +90 -0
  6. package/.claude/agents/design-sync.md +226 -0
  7. package/.claude/agents/document-reviewer.md +304 -0
  8. package/.claude/agents/environment-validator.md +100 -0
  9. package/.claude/agents/integration-test-reviewer.md +196 -0
  10. package/.claude/agents/investigator.md +162 -0
  11. package/.claude/agents/prd-creator.md +220 -0
  12. package/.claude/agents/quality-fixer-frontend.md +323 -0
  13. package/.claude/agents/quality-fixer.md +280 -0
  14. package/.claude/agents/requirement-analyzer.md +149 -0
  15. package/.claude/agents/rls-policy-designer.md +86 -0
  16. package/.claude/agents/rule-advisor.md +123 -0
  17. package/.claude/agents/scope-discoverer.md +231 -0
  18. package/.claude/agents/solver.md +173 -0
  19. package/.claude/agents/supabase-migration-generator.md +85 -0
  20. package/.claude/agents/task-decomposer.md +246 -0
  21. package/.claude/agents/task-executor-frontend.md +264 -0
  22. package/.claude/agents/task-executor.md +261 -0
  23. package/.claude/agents/technical-designer-frontend.md +444 -0
  24. package/.claude/agents/technical-designer.md +370 -0
  25. package/.claude/agents/verifier.md +193 -0
  26. package/.claude/agents/work-planner.md +211 -0
  27. package/.claude/commands/add-integration-tests.md +116 -0
  28. package/.claude/commands/build.md +77 -0
  29. package/.claude/commands/db-migrate.md +96 -0
  30. package/.claude/commands/deploy.md +95 -0
  31. package/.claude/commands/design.md +75 -0
  32. package/.claude/commands/diagnose.md +202 -0
  33. package/.claude/commands/front-build.md +116 -0
  34. package/.claude/commands/front-design.md +61 -0
  35. package/.claude/commands/front-plan.md +53 -0
  36. package/.claude/commands/front-reverse-design.md +183 -0
  37. package/.claude/commands/front-review.md +89 -0
  38. package/.claude/commands/implement.md +80 -0
  39. package/.claude/commands/local-dev.md +94 -0
  40. package/.claude/commands/plan.md +61 -0
  41. package/.claude/commands/project-inject.md +76 -0
  42. package/.claude/commands/refine-skill.md +207 -0
  43. package/.claude/commands/reverse-engineer.md +301 -0
  44. package/.claude/commands/review.md +88 -0
  45. package/.claude/commands/setup-auth.md +68 -0
  46. package/.claude/commands/setup-supabase.md +66 -0
  47. package/.claude/commands/setup-vercel.md +71 -0
  48. package/.claude/commands/sync-skills.md +116 -0
  49. package/.claude/commands/task.md +13 -0
  50. package/.claude/skills/coding-standards/SKILL.md +246 -0
  51. package/.claude/skills/documentation-criteria/SKILL.md +184 -0
  52. package/.claude/skills/documentation-criteria/references/adr-template.md +64 -0
  53. package/.claude/skills/documentation-criteria/references/design-template.md +263 -0
  54. package/.claude/skills/documentation-criteria/references/plan-template.md +130 -0
  55. package/.claude/skills/documentation-criteria/references/prd-template.md +109 -0
  56. package/.claude/skills/documentation-criteria/references/task-template.md +38 -0
  57. package/.claude/skills/frontend/technical-spec/SKILL.md +147 -0
  58. package/.claude/skills/frontend/typescript-rules/SKILL.md +136 -0
  59. package/.claude/skills/frontend/typescript-testing/SKILL.md +129 -0
  60. package/.claude/skills/fullstack-integration/SKILL.md +466 -0
  61. package/.claude/skills/implementation-approach/SKILL.md +141 -0
  62. package/.claude/skills/integration-e2e-testing/SKILL.md +146 -0
  63. package/.claude/skills/interview/SKILL.md +345 -0
  64. package/.claude/skills/project-context/SKILL.md +53 -0
  65. package/.claude/skills/stack-auth/SKILL.md +519 -0
  66. package/.claude/skills/subagents-orchestration-guide/SKILL.md +218 -0
  67. package/.claude/skills/supabase/SKILL.md +289 -0
  68. package/.claude/skills/supabase-edge-functions/SKILL.md +386 -0
  69. package/.claude/skills/supabase-local/SKILL.md +328 -0
  70. package/.claude/skills/supabase-testing/SKILL.md +513 -0
  71. package/.claude/skills/task-analyzer/SKILL.md +131 -0
  72. package/.claude/skills/task-analyzer/references/skills-index.yaml +375 -0
  73. package/.claude/skills/technical-spec/SKILL.md +86 -0
  74. package/.claude/skills/typescript-rules/SKILL.md +121 -0
  75. package/.claude/skills/typescript-testing/SKILL.md +155 -0
  76. package/.claude/skills/vercel-deployment/SKILL.md +355 -0
  77. package/.claude/skills/vercel-edge/SKILL.md +407 -0
  78. package/README.md +1 -1
  79. package/package.json +1 -1
@@ -0,0 +1,301 @@
1
+ ---
2
+ name: reverse-engineer
3
+ description: Generate PRD and Design Docs from existing codebase through discovery, generation, verification, and review workflow
4
+ ---
5
+
6
+ **Command Context**: Reverse engineering workflow to create documentation from existing code
7
+
8
+ Target: $ARGUMENTS
9
+
10
+ **TodoWrite**: Register phases first, then steps within each phase as you enter it.
11
+
12
+ ## Step 0: Initial Configuration
13
+
14
+ ### 0.1 Scope Confirmation
15
+
16
+ Use AskUserQuestion to confirm:
17
+ 1. **Target path**: Which directory/module to document
18
+ 2. **Depth**: PRD only, or PRD + Design Docs
19
+ 3. **Reference Architecture**: layered / mvc / clean / hexagonal / none
20
+ 4. **Human review**: Yes (recommended) / No (fully autonomous)
21
+
22
+ ### 0.2 Output Configuration
23
+
24
+ - PRD output: `docs/prd/` or existing PRD directory
25
+ - Design Doc output: `docs/design/` or existing design directory
26
+ - Verify directories exist, create if needed
27
+
28
+ ## Workflow Overview
29
+
30
+ ```
31
+ Phase 1: PRD Generation
32
+ Step 1: Scope Discovery (all units)
33
+ Step 2-5: Per-unit loop (Generation → Verification → Review → Revision)
34
+
35
+ Phase 2: Design Doc Generation (if requested)
36
+ Step 6: Scope Discovery (all components per PRD)
37
+ Step 7-10: Per-component loop (Generation → Verification → Review → Revision)
38
+ ```
39
+
40
+ **Context Passing**: Pass structured JSON output between steps. Use `$STEP_N_OUTPUT` placeholder notation.
41
+
42
+ ## Phase 1: PRD Generation
43
+
44
+ **Register in TodoWrite**:
45
+ - Step 1: PRD Scope Discovery
46
+ - Per-unit processing (Steps 2-5 for each unit)
47
+
48
+ ### Step 1: PRD Scope Discovery
49
+
50
+ **Task invocation**:
51
+ ```
52
+ subagent_type: scope-discoverer
53
+ prompt: |
54
+ Discover PRD targets in the codebase.
55
+
56
+ scope_type: prd
57
+ target_path: $USER_TARGET_PATH
58
+ reference_architecture: $USER_RA_CHOICE
59
+ focus_area: $USER_FOCUS_AREA (if specified)
60
+ ```
61
+
62
+ **Store output as**: `$STEP_1_OUTPUT`
63
+
64
+ **Quality Gate**:
65
+ - At least one PRD unit discovered → proceed
66
+ - No units discovered → ask user for hints
67
+
68
+ **Human Review Point** (if enabled): Present discovered units for confirmation.
69
+
70
+ ### Step 2-5: Per-Unit Processing
71
+
72
+ **Complete Steps 2→3→4→5 for each unit before proceeding to the next unit.**
73
+
74
+ #### Step 2: PRD Generation
75
+
76
+ **Task invocation**:
77
+ ```
78
+ subagent_type: prd-creator
79
+ prompt: |
80
+ Create reverse-engineered PRD for the following feature.
81
+
82
+ Operation Mode: reverse-engineer
83
+ External Scope Provided: true
84
+
85
+ Feature: $UNIT_NAME (from $STEP_1_OUTPUT)
86
+ Description: $UNIT_DESCRIPTION
87
+ Related Files: $UNIT_RELATED_FILES
88
+ Entry Points: $UNIT_ENTRY_POINTS
89
+
90
+ Skip independent scope discovery. Use provided scope data.
91
+ Create final version PRD based on code investigation within specified scope.
92
+ ```
93
+
94
+ **Store output as**: `$STEP_2_OUTPUT` (PRD path)
95
+
96
+ #### Step 3: Code Verification
97
+
98
+ **Task invocation**:
99
+ ```
100
+ subagent_type: code-verifier
101
+ prompt: |
102
+ Verify consistency between PRD and code implementation.
103
+
104
+ doc_type: prd
105
+ document_path: $STEP_2_OUTPUT
106
+ code_paths: $UNIT_RELATED_FILES (from $STEP_1_OUTPUT)
107
+ verbose: false
108
+ ```
109
+
110
+ **Store output as**: `$STEP_3_OUTPUT`
111
+
112
+ **Quality Gate**:
113
+ - consistencyScore >= 70 → proceed to review
114
+ - consistencyScore < 70 → flag for detailed review
115
+
116
+ #### Step 4: Review
117
+
118
+ **Required Input**: $STEP_3_OUTPUT (verification JSON from Step 3)
119
+
120
+ **Task invocation**:
121
+ ```
122
+ subagent_type: document-reviewer
123
+ prompt: |
124
+ Review the following PRD considering code verification findings.
125
+
126
+ doc_type: PRD
127
+ target: $STEP_2_OUTPUT
128
+ mode: composite
129
+
130
+ ## Code Verification Results
131
+ $STEP_3_OUTPUT
132
+
133
+ ## Additional Review Focus
134
+ - Alignment between PRD claims and verification evidence
135
+ - Resolution recommendations for each discrepancy
136
+ - Completeness of undocumented feature coverage
137
+ ```
138
+
139
+ **Store output as**: `$STEP_4_OUTPUT`
140
+
141
+ #### Step 5: Revision (conditional)
142
+
143
+ **Trigger Conditions** (any one of the following):
144
+ - Review status is "Needs Revision" or "Rejected"
145
+ - Critical discrepancies exist in `$STEP_3_OUTPUT`
146
+ - consistencyScore < 70
147
+
148
+ **Task invocation**:
149
+ ```
150
+ subagent_type: prd-creator
151
+ prompt: |
152
+ Update PRD based on review feedback.
153
+
154
+ Operation Mode: update
155
+ Existing PRD: $STEP_2_OUTPUT
156
+
157
+ ## Review Feedback
158
+ $STEP_4_OUTPUT
159
+
160
+ ## Discrepancies to Address
161
+ (Extract critical and major discrepancies from $STEP_3_OUTPUT)
162
+
163
+ Apply corrections and improvements.
164
+ ```
165
+
166
+ **Loop Control**: Maximum 2 revision cycles. After 2 cycles, flag for human review regardless of status.
167
+
168
+ #### Unit Completion
169
+
170
+ - [ ] Review status is "Approved" or "Approved with Conditions"
171
+ - [ ] Human review passed (if enabled in Step 0)
172
+
173
+ **Next**: Proceed to next unit. After all units → Phase 2.
174
+
175
+ ## Phase 2: Design Doc Generation
176
+
177
+ *Execute only if Design Docs were requested in Step 0*
178
+
179
+ **Register in TodoWrite**:
180
+ - Step 6: Design Doc Scope Discovery
181
+ - Per-component processing (Steps 7-10 for each component)
182
+
183
+ ### Step 6: Design Doc Scope Discovery
184
+
185
+ For each approved PRD:
186
+
187
+ **Task invocation**:
188
+ ```
189
+ subagent_type: scope-discoverer
190
+ prompt: |
191
+ Discover Design Doc targets within PRD scope.
192
+
193
+ scope_type: design-doc
194
+ existing_prd: $APPROVED_PRD_PATH
195
+ target_path: $PRD_RELATED_PATHS
196
+ reference_architecture: $USER_RA_CHOICE
197
+ ```
198
+
199
+ **Store output as**: `$STEP_6_OUTPUT`
200
+
201
+ **Quality Gate**:
202
+ - At least one component discovered → proceed
203
+ - No components → ask user for hints
204
+
205
+ ### Step 7-10: Per-Component Processing
206
+
207
+ **Complete Steps 7→8→9→10 for each component before proceeding to the next component.**
208
+
209
+ #### Step 7: Design Doc Generation
210
+
211
+ **Task invocation**:
212
+ ```
213
+ subagent_type: technical-designer
214
+ prompt: |
215
+ Create Design Doc for the following component based on existing code.
216
+
217
+ Operation Mode: create
218
+
219
+ Component: $COMPONENT_NAME (from $STEP_6_OUTPUT)
220
+ Responsibility: $COMPONENT_RESPONSIBILITY
221
+ Primary Files: $COMPONENT_PRIMARY_FILES
222
+ Public Interfaces: $COMPONENT_PUBLIC_INTERFACES
223
+ Dependencies: $COMPONENT_DEPENDENCIES
224
+
225
+ Parent PRD: $APPROVED_PRD_PATH
226
+
227
+ Document current architecture. Do not propose changes.
228
+ ```
229
+
230
+ **Store output as**: `$STEP_7_OUTPUT`
231
+
232
+ #### Step 8: Code Verification
233
+
234
+ **Task invocation**:
235
+ ```
236
+ subagent_type: code-verifier
237
+ prompt: |
238
+ Verify consistency between Design Doc and code implementation.
239
+
240
+ doc_type: design-doc
241
+ document_path: $STEP_7_OUTPUT
242
+ code_paths: $COMPONENT_PRIMARY_FILES
243
+ verbose: false
244
+ ```
245
+
246
+ **Store output as**: `$STEP_8_OUTPUT`
247
+
248
+ #### Step 9: Review
249
+
250
+ **Required Input**: $STEP_8_OUTPUT (verification JSON from Step 8)
251
+
252
+ **Task invocation**:
253
+ ```
254
+ subagent_type: document-reviewer
255
+ prompt: |
256
+ Review the following Design Doc considering code verification findings.
257
+
258
+ doc_type: DesignDoc
259
+ target: $STEP_7_OUTPUT
260
+ mode: composite
261
+
262
+ ## Code Verification Results
263
+ $STEP_8_OUTPUT
264
+
265
+ ## Parent PRD
266
+ $APPROVED_PRD_PATH
267
+
268
+ ## Additional Review Focus
269
+ - Technical accuracy of documented interfaces
270
+ - Consistency with parent PRD scope
271
+ - Completeness of component boundary definitions
272
+ ```
273
+
274
+ **Store output as**: `$STEP_9_OUTPUT`
275
+
276
+ #### Step 10: Revision (conditional)
277
+
278
+ Same logic as Step 5, using technical-designer with update mode.
279
+
280
+ #### Component Completion
281
+
282
+ - [ ] Review status is "Approved" or "Approved with Conditions"
283
+ - [ ] Human review passed (if enabled in Step 0)
284
+
285
+ **Next**: Proceed to next component. After all components → Final Report.
286
+
287
+ ## Final Report
288
+
289
+ Output summary including:
290
+ - Generated documents table (Type, Name, Consistency Score, Review Status)
291
+ - Action items (critical discrepancies, undocumented features, flagged items)
292
+ - Next steps checklist
293
+
294
+ ## Error Handling
295
+
296
+ | Error | Action |
297
+ |-------|--------|
298
+ | Discovery finds nothing | Ask user for project structure hints |
299
+ | Generation fails | Log failure, continue with other units, report in summary |
300
+ | consistencyScore < 50 | Flag for mandatory human review, do not auto-approve |
301
+ | Review rejects after 2 revisions | Stop loop, flag for human intervention |
@@ -0,0 +1,88 @@
1
+ ---
2
+ description: Design Doc compliance validation with optional auto-fixes
3
+ ---
4
+
5
+ **Command Context**: Post-implementation quality assurance command
6
+
7
+ ## Execution Method
8
+
9
+ - Compliance validation → performed by code-reviewer
10
+ - Rule analysis → performed by rule-advisor
11
+ - Fix implementation → performed by task-executor
12
+ - Quality checks → performed by quality-fixer
13
+ - Re-validation → performed by code-reviewer
14
+
15
+ Orchestrator invokes sub-agents and passes structured JSON between them.
16
+
17
+ Design Doc (uses most recent if omitted): $ARGUMENTS
18
+
19
+ **Think deeply** Understand the essence of compliance validation and execute:
20
+
21
+ ## Execution Flow
22
+
23
+ ### 1. Prerequisite Check
24
+ ```bash
25
+ # Identify Design Doc
26
+ ls docs/design/*.md | grep -v template | tail -1
27
+
28
+ # Check implementation files
29
+ git diff --name-only main...HEAD
30
+ ```
31
+
32
+ ### 2. Execute code-reviewer
33
+ Validate Design Doc compliance:
34
+ - Acceptance criteria fulfillment
35
+ - Code quality check
36
+ - Implementation completeness assessment
37
+
38
+ ### 3. Verdict and Response
39
+
40
+ **Criteria (considering project stage)**:
41
+ - Prototype: Pass at 70%+
42
+ - Production: 90%+ recommended
43
+ - Critical items (security, etc.): Required regardless of rate
44
+
45
+ **Compliance-based response**:
46
+
47
+ For low compliance (production <90%):
48
+ ```
49
+ Validation Result: [X]% compliance
50
+ Unfulfilled items:
51
+ - [item list]
52
+
53
+ Execute fixes? (y/n):
54
+ ```
55
+
56
+ If user selects `y`:
57
+
58
+ ## Pre-fix Metacognition
59
+ **Required**: `rule-advisor → TodoWrite → task-executor → quality-fixer`
60
+
61
+ 1. **Execute rule-advisor**: Understand fix essence (symptomatic treatment vs root solution)
62
+ 2. **Update TodoWrite**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Create task file following task template (see documentation-criteria skill) -> `docs/plans/tasks/review-fixes-YYYYMMDD.md`
63
+ 3. **Execute task-executor**: Staged auto-fixes (stops at 5 files)
64
+ 4. **Execute quality-fixer**: Confirm quality gate passage
65
+ 5. **Re-validate**: Measure improvement with code-reviewer
66
+
67
+ ### 4. Final Report
68
+ ```
69
+ Initial compliance: [X]%
70
+ Final compliance: [Y]% (if fixes executed)
71
+ Improvement: [Y-X]%
72
+
73
+ Remaining issues:
74
+ - [items requiring manual intervention]
75
+ ```
76
+
77
+ ## Auto-fixable Items
78
+ - Simple unimplemented acceptance criteria
79
+ - Error handling additions
80
+ - Type definition fixes
81
+ - Function splitting (length/complexity improvements)
82
+
83
+ ## Non-fixable Items
84
+ - Fundamental business logic changes
85
+ - Architecture-level modifications
86
+ - Design Doc deficiencies
87
+
88
+ **Scope**: Design Doc compliance validation and auto-fixes.
@@ -0,0 +1,68 @@
1
+ ---
2
+ description: Initialize Stack-auth integration
3
+ ---
4
+
5
+ Initialize Stack-auth for authentication following the stack-auth skill.
6
+
7
+ ## Prerequisites Check
8
+
9
+ ```bash
10
+ # Check if @stackframe/stack is installed
11
+ ! grep "@stackframe/stack" package.json || echo "⚠️ Stack-auth not installed"
12
+ ```
13
+
14
+ ## Initialization Steps
15
+
16
+ ### 1. Install Dependencies
17
+ ```bash
18
+ npm install @stackframe/stack
19
+ ```
20
+
21
+ ### 2. Create Stack-auth Configuration
22
+ Create `lib/stack.ts` with:
23
+ - StackServerApp configuration
24
+ - Environment variable references
25
+
26
+ ### 3. Configure Provider
27
+ Update `app/layout.tsx`:
28
+ - Add StackProvider
29
+ - Add StackTheme wrapper
30
+
31
+ ### 4. Set Environment Variables
32
+ Add to `.env.local`:
33
+ ```env
34
+ NEXT_PUBLIC_STACK_PROJECT_ID=
35
+ NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=
36
+ STACK_SECRET_SERVER_KEY=
37
+ ```
38
+
39
+ Guide user to get credentials from Stack-auth dashboard.
40
+
41
+ ### 5. Create Auth Components
42
+ Generate basic components:
43
+ - Sign-in form
44
+ - Sign-up form
45
+ - OAuth buttons
46
+ - Sign-out button
47
+
48
+ ### 6. Create Auth Routes
49
+ Set up auth pages:
50
+ - `/sign-in`
51
+ - `/sign-up`
52
+ - `/sign-out`
53
+
54
+ ### 7. Configure Middleware
55
+ Create/update `middleware.ts` for route protection.
56
+
57
+ ## Verification
58
+ - [ ] Dependencies installed
59
+ - [ ] Provider configured
60
+ - [ ] Environment variables set
61
+ - [ ] Auth routes accessible
62
+ - [ ] Can sign in/out
63
+
64
+ ## Output
65
+ Report setup status with:
66
+ - Configured components
67
+ - Auth routes
68
+ - Next steps for OAuth providers
@@ -0,0 +1,66 @@
1
+ ---
2
+ description: Initialize Supabase in project
3
+ ---
4
+
5
+ Initialize Supabase for the project following the supabase and supabase-local skills.
6
+
7
+ ## Prerequisites Check
8
+
9
+ ```bash
10
+ # Check if Supabase CLI is installed
11
+ ! which supabase || echo "⚠️ Supabase CLI not installed. Install: brew install supabase/tap/supabase"
12
+
13
+ # Check if Docker is running
14
+ ! docker info > /dev/null 2>&1 || echo "⚠️ Docker is not running"
15
+ ```
16
+
17
+ ## Initialization Steps
18
+
19
+ ### 1. Initialize Supabase
20
+ ```bash
21
+ # Initialize Supabase in project root
22
+ supabase init
23
+ ```
24
+
25
+ ### 2. Configure Local Settings
26
+ Review and customize `supabase/config.toml`:
27
+ - Set appropriate ports
28
+ - Configure auth settings
29
+ - Enable/disable services as needed
30
+
31
+ ### 3. Create Initial Migration
32
+ ```bash
33
+ # Create users table migration
34
+ supabase migration new create_users_table
35
+ ```
36
+
37
+ Provide migration template following supabase skill:
38
+ - UUID primary key
39
+ - created_at, updated_at timestamps
40
+ - RLS enabled
41
+ - Appropriate policies
42
+
43
+ ### 4. Start Local Supabase
44
+ ```bash
45
+ supabase start
46
+ ```
47
+
48
+ ### 5. Generate Types
49
+ ```bash
50
+ supabase gen types typescript --local > src/types/database.types.ts
51
+ ```
52
+
53
+ ### 6. Environment Setup
54
+ Create `.env.local` with output from `supabase start`:
55
+ - NEXT_PUBLIC_SUPABASE_URL
56
+ - NEXT_PUBLIC_SUPABASE_ANON_KEY
57
+ - SUPABASE_SERVICE_ROLE_KEY
58
+
59
+ ## Verification
60
+ - [ ] `supabase status` shows all services running
61
+ - [ ] Can access Studio at http://127.0.0.1:54323
62
+ - [ ] Types generated successfully
63
+ - [ ] Environment variables set
64
+
65
+ ## Output
66
+ Report initialization status and next steps for connecting to the application.
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: Initialize Vercel configuration
3
+ ---
4
+
5
+ Initialize Vercel for deployment following the vercel-deployment skill.
6
+
7
+ ## Prerequisites Check
8
+
9
+ ```bash
10
+ # Check if Vercel CLI is installed
11
+ ! which vercel || echo "⚠️ Vercel CLI not installed. Install: npm i -g vercel"
12
+
13
+ # Check if logged in
14
+ ! vercel whoami || echo "⚠️ Not logged in. Run: vercel login"
15
+ ```
16
+
17
+ ## Initialization Steps
18
+
19
+ ### 1. Link Project
20
+ ```bash
21
+ vercel link
22
+ ```
23
+
24
+ Follow prompts to:
25
+ - Select or create project
26
+ - Confirm settings
27
+
28
+ ### 2. Create vercel.json
29
+ Create configuration file with appropriate settings:
30
+ - Framework detection
31
+ - Build commands
32
+ - Function configuration
33
+ - Headers and redirects
34
+
35
+ ### 3. Set Environment Variables
36
+ ```bash
37
+ # Pull existing env vars (if any)
38
+ vercel env pull .env.local
39
+
40
+ # Add required variables
41
+ vercel env add NEXT_PUBLIC_SUPABASE_URL
42
+ vercel env add NEXT_PUBLIC_SUPABASE_ANON_KEY
43
+ vercel env add SUPABASE_SERVICE_ROLE_KEY
44
+ ```
45
+
46
+ ### 4. Configure Build Settings
47
+ Verify in Vercel dashboard or vercel.json:
48
+ - Build command: `npm run build`
49
+ - Output directory: `.next`
50
+ - Install command: `npm ci`
51
+
52
+ ### 5. Test Deployment
53
+ ```bash
54
+ # Deploy preview
55
+ vercel
56
+
57
+ # Verify deployment
58
+ vercel inspect [deployment-url]
59
+ ```
60
+
61
+ ## Verification
62
+ - [ ] Project linked successfully
63
+ - [ ] vercel.json created
64
+ - [ ] Environment variables configured
65
+ - [ ] Preview deployment successful
66
+
67
+ ## Output
68
+ Report setup status with:
69
+ - Project URL
70
+ - Dashboard link
71
+ - Next steps for production deployment
@@ -0,0 +1,116 @@
1
+ ---
2
+ description: Synchronize skill metadata and optimize rule-advisor precision after skill edits
3
+ ---
4
+
5
+ **Command Context**: Post-editing maintenance workflow for skill files
6
+
7
+ **Think deeply** Maximize rule-advisor execution precision through systematic synchronization:
8
+
9
+ ## Execution Flow
10
+
11
+ ### 1. Scan Skill Files
12
+ ```bash
13
+ # Runtime skills directory
14
+ SKILLS_DIR=".claude/skills"
15
+ INDEX_FILE=".claude/skills/task-analyzer/references/skills-index.yaml"
16
+
17
+ # Analyze all skill files
18
+ find "${SKILLS_DIR}" -name "SKILL.md" -type f | sort
19
+ ```
20
+
21
+ ### 2. Synchronize and Optimize Metadata
22
+
23
+ #### Automatic Section Synchronization
24
+ - Extract `## ` sections from each SKILL.md
25
+ - Update sections in skills-index.yaml automatically
26
+
27
+ #### Tag Optimization
28
+ - Analyze file content for relevant keywords
29
+ - Propose addition of missing tags
30
+ - Suggest removal of obsolete tags
31
+
32
+ #### Typical-Use Enhancement
33
+ - Infer usage scenarios from file changes
34
+ - Propose more specific and actionable descriptions
35
+
36
+ #### Key-References Completion
37
+ - Detect newly introduced concepts or methodologies
38
+ - Suggest relevant reference additions
39
+
40
+ ### 3. Rule-Advisor Precision Optimization
41
+
42
+ Enhance metadata quality to enable accurate skill selection by rule-advisor:
43
+
44
+ ```
45
+ === Skill Metadata Synchronization ===
46
+ Target: .claude/skills
47
+
48
+ Updates executed:
49
+ ✅ Sections synchronized
50
+ - typescript-testing: 2 sections added
51
+ - coding-standards: 1 section updated
52
+
53
+ ✅ Tags optimized
54
+ - typescript-rules: Suggest adding [functional-programming]
55
+ - technical-spec: Suggest removing [deprecated]
56
+
57
+ ✅ Typical-use improved
58
+ - 3 skills updated with more specific descriptions
59
+
60
+ Final result: Rule-advisor precision optimization complete
61
+ ```
62
+
63
+ ## 🧠 Metacognitive Points
64
+
65
+ **Essential Purpose**:
66
+ - Not mere consistency maintenance, but rule-advisor selection accuracy enhancement
67
+ - Metadata optimization as the final step of skill editing workflow
68
+
69
+ **Quality Criteria**:
70
+ - Sections must achieve 100% synchronization
71
+ - Tags must accurately reflect content
72
+ - Typical-use must specify concrete usage scenarios
73
+ - Key-references must cover current methodologies
74
+
75
+ ## Change Necessity Evaluation
76
+
77
+ **EVALUATION SEQUENCE**:
78
+ - IF sections achieve 100% synchronization → OUTPUT "Synchronization verified. No updates required." THEN TERMINATE
79
+ - IF content-to-tag mapping shows zero mismatches → DETERMINE no_changes_needed = true THEN TERMINATE
80
+ - IF AND ONLY IF measurable improvements exist → GENERATE specific modification proposals WITH exact before/after values
81
+
82
+ **NOTE**: You MUST NOT force changes. When no improvements are detected, you SHALL report "No modifications necessary" and STOP execution.
83
+
84
+ ## Execution Timing
85
+
86
+ - After skill file edits (mandatory)
87
+ - When adding new skill files
88
+ - After major skill revisions
89
+ - When rule-advisor selection accuracy appears degraded
90
+
91
+ ## Example Output
92
+
93
+ ```
94
+ === Skill Metadata Synchronization Started ===
95
+ Target: .claude/skills (13 skills)
96
+
97
+ [1/13] typescript-rules
98
+ ✅ sections: 7 synchronized
99
+ 💡 tags proposed: +[functional-programming, dependency-injection]
100
+ 💡 typical-use: "General TypeScript implementation" → "Type-safe implementation with modern TypeScript features"
101
+
102
+ [2/13] typescript-testing
103
+ ✅ sections: 2 added (Test Granularity Principles, Mock Type Safety Enforcement)
104
+ ✅ tags: No changes needed
105
+ ✅ typical-use: Maintained
106
+
107
+ ...
108
+
109
+ === Synchronization Complete ===
110
+ Updated: 3 skills
111
+ Proposals: 5 items (approval required)
112
+
113
+ Rule-advisor precision improvement: Estimated 15% enhancement
114
+ ```
115
+
116
+ **Scope**: Post-edit skill metadata synchronization and rule-advisor precision optimization.