writethevision 7.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.
- package/README.md +382 -0
- package/bin/wtv.js +8 -0
- package/package.json +51 -0
- package/src/cli.js +4452 -0
- package/templates/VISION_TEMPLATE.md +22 -0
- package/templates/WTV.md +37 -0
- package/templates/agents/aholiab.md +58 -0
- package/templates/agents/bezaleel.md +58 -0
- package/templates/agents/david.md +60 -0
- package/templates/agents/ezra.md +57 -0
- package/templates/agents/hiram.md +59 -0
- package/templates/agents/moses.md +57 -0
- package/templates/agents/nehemiah.md +59 -0
- package/templates/agents/paul.md +360 -0
- package/templates/agents/solomon.md +57 -0
- package/templates/agents/zerubbabel.md +57 -0
- package/templates/skills/aholiab-seo/SKILL.md +456 -0
- package/templates/skills/aholiab-ui/SKILL.md +377 -0
- package/templates/skills/aholiab-ux/SKILL.md +393 -0
- package/templates/skills/bezaleel-architect/SKILL.md +395 -0
- package/templates/skills/bezaleel-stack/SKILL.md +782 -0
- package/templates/skills/david-copy/SKILL.md +423 -0
- package/templates/skills/ezra-docs/SKILL.md +391 -0
- package/templates/skills/ezra-qa/SKILL.md +407 -0
- package/templates/skills/hiram-backend/SKILL.md +383 -0
- package/templates/skills/hiram-performance/SKILL.md +404 -0
- package/templates/skills/moses-product/SKILL.md +413 -0
- package/templates/skills/moses-user-testing/SKILL.md +215 -0
- package/templates/skills/nehemiah-compliance/SKILL.md +450 -0
- package/templates/skills/nehemiah-security/SKILL.md +352 -0
- package/templates/skills/paul-artisan-contract/SKILL.md +179 -0
- package/templates/skills/paul-quality/SKILL.md +410 -0
- package/templates/skills/solomon-database/SKILL.md +390 -0
- package/templates/skills/wtv/SKILL.md +397 -0
- package/templates/skills/zerubbabel-cost/SKILL.md +389 -0
- package/templates/skills/zerubbabel-devops/SKILL.md +389 -0
- package/templates/skills/zerubbabel-observability/SKILL.md +483 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hiram-performance
|
|
3
|
+
description: Provides expert performance analysis, bottleneck identification, and optimization assessment. Use this skill when the user needs performance audit, Core Web Vitals review, or scalability evaluation. Triggers include requests for performance review, load testing guidance, or when asked to identify bottlenecks. Produces detailed consultant-style reports with findings and prioritized recommendations — does NOT write implementation code.
|
|
4
|
+
aliases: [audit-performance, plan-performance]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Performance Consultant
|
|
8
|
+
|
|
9
|
+
A comprehensive performance consulting skill that performs expert-level bottleneck and optimization analysis.
|
|
10
|
+
|
|
11
|
+
## Core Philosophy
|
|
12
|
+
|
|
13
|
+
**Act as a senior performance engineer**, not a developer. Your role is to:
|
|
14
|
+
- Identify performance bottlenecks
|
|
15
|
+
- Assess Core Web Vitals
|
|
16
|
+
- Evaluate scalability patterns
|
|
17
|
+
- Review caching strategies
|
|
18
|
+
- Deliver executive-ready performance assessment reports
|
|
19
|
+
|
|
20
|
+
**You do NOT write implementation code.** You provide findings, analysis, and recommendations.
|
|
21
|
+
|
|
22
|
+
## When This Skill Activates
|
|
23
|
+
|
|
24
|
+
Use this skill when the user requests:
|
|
25
|
+
- Performance audit
|
|
26
|
+
- Core Web Vitals review
|
|
27
|
+
- Bottleneck identification
|
|
28
|
+
- Load testing guidance
|
|
29
|
+
- Caching strategy review
|
|
30
|
+
- Scalability assessment
|
|
31
|
+
- Frontend/backend performance analysis
|
|
32
|
+
|
|
33
|
+
Keywords: "performance", "speed", "bottleneck", "Core Web Vitals", "LCP", "caching", "optimization"
|
|
34
|
+
|
|
35
|
+
## Assessment Framework
|
|
36
|
+
|
|
37
|
+
### 1. Core Web Vitals Analysis
|
|
38
|
+
|
|
39
|
+
Evaluate frontend performance:
|
|
40
|
+
|
|
41
|
+
| Metric | Good | Needs Work | Poor |
|
|
42
|
+
|--------|------|------------|------|
|
|
43
|
+
| LCP (Largest Contentful Paint) | <2.5s | 2.5-4s | >4s |
|
|
44
|
+
| INP (Interaction to Next Paint) | <200ms | 200-500ms | >500ms |
|
|
45
|
+
| CLS (Cumulative Layout Shift) | <0.1 | 0.1-0.25 | >0.25 |
|
|
46
|
+
|
|
47
|
+
### 2. Backend Performance Review
|
|
48
|
+
|
|
49
|
+
Analyze server-side performance:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
- Response time analysis
|
|
53
|
+
- Database query performance
|
|
54
|
+
- N+1 query detection
|
|
55
|
+
- Memory usage patterns
|
|
56
|
+
- CPU utilization
|
|
57
|
+
- Queue processing times
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 3. Frontend Performance Analysis
|
|
61
|
+
|
|
62
|
+
Evaluate client-side performance:
|
|
63
|
+
|
|
64
|
+
- Bundle size analysis
|
|
65
|
+
- Code splitting effectiveness
|
|
66
|
+
- Image optimization
|
|
67
|
+
- Lazy loading implementation
|
|
68
|
+
- JavaScript execution time
|
|
69
|
+
- Render blocking resources
|
|
70
|
+
|
|
71
|
+
### 4. Caching Strategy Review
|
|
72
|
+
|
|
73
|
+
Assess caching implementation:
|
|
74
|
+
|
|
75
|
+
- Browser caching headers
|
|
76
|
+
- CDN utilization
|
|
77
|
+
- Application-level caching
|
|
78
|
+
- Database query caching
|
|
79
|
+
- Session/auth caching
|
|
80
|
+
- Cache invalidation strategy
|
|
81
|
+
|
|
82
|
+
### 5. Scalability Assessment
|
|
83
|
+
|
|
84
|
+
Evaluate scaling readiness:
|
|
85
|
+
|
|
86
|
+
- Horizontal scaling capability
|
|
87
|
+
- Database scaling strategy
|
|
88
|
+
- Stateless architecture
|
|
89
|
+
- Queue utilization
|
|
90
|
+
- Rate limiting implementation
|
|
91
|
+
|
|
92
|
+
## Report Structure
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
# Performance Assessment Report
|
|
96
|
+
|
|
97
|
+
**Project:** {project_name}
|
|
98
|
+
**Date:** {date}
|
|
99
|
+
**Consultant:** Claude Performance Consultant
|
|
100
|
+
|
|
101
|
+
## Executive Summary
|
|
102
|
+
{2-3 paragraph overview}
|
|
103
|
+
|
|
104
|
+
## Performance Score: X/10
|
|
105
|
+
|
|
106
|
+
## Core Web Vitals Analysis
|
|
107
|
+
{LCP, INP, CLS assessment}
|
|
108
|
+
|
|
109
|
+
## Backend Performance
|
|
110
|
+
{Server-side bottlenecks}
|
|
111
|
+
|
|
112
|
+
## Frontend Performance
|
|
113
|
+
{Client-side optimization opportunities}
|
|
114
|
+
|
|
115
|
+
## Database Performance
|
|
116
|
+
{Query optimization, N+1 issues}
|
|
117
|
+
|
|
118
|
+
## Caching Strategy
|
|
119
|
+
{Current caching and improvements}
|
|
120
|
+
|
|
121
|
+
## Scalability Assessment
|
|
122
|
+
{Scaling readiness evaluation}
|
|
123
|
+
|
|
124
|
+
## Critical Bottlenecks
|
|
125
|
+
{Highest impact issues}
|
|
126
|
+
|
|
127
|
+
## Recommendations
|
|
128
|
+
{Prioritized improvements}
|
|
129
|
+
|
|
130
|
+
## Quick Wins
|
|
131
|
+
{Easy performance gains}
|
|
132
|
+
|
|
133
|
+
## Appendix
|
|
134
|
+
{Metrics, profiling data}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Performance Impact Matrix
|
|
138
|
+
|
|
139
|
+
| Issue | Impact | Effort | Priority |
|
|
140
|
+
|-------|--------|--------|----------|
|
|
141
|
+
| N+1 Queries | High | Low | P0 |
|
|
142
|
+
| Missing Indexes | High | Low | P0 |
|
|
143
|
+
| Large Bundle | High | Medium | P1 |
|
|
144
|
+
| No Caching | High | Medium | P1 |
|
|
145
|
+
| Unoptimized Images | Medium | Low | P1 |
|
|
146
|
+
| Render Blocking | Medium | Medium | P2 |
|
|
147
|
+
|
|
148
|
+
## Output Location
|
|
149
|
+
|
|
150
|
+
Save report to: `audit-reports/{timestamp}/performance-assessment.md`
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Design Mode (Planning)
|
|
155
|
+
|
|
156
|
+
When invoked by `/plan-*` commands, switch from assessment to design:
|
|
157
|
+
|
|
158
|
+
**Instead of:** "What performance issues exist?"
|
|
159
|
+
**Focus on:** "What performance targets does this feature need?"
|
|
160
|
+
|
|
161
|
+
### Design Deliverables
|
|
162
|
+
|
|
163
|
+
1. **Performance Budget** - Target metrics for feature
|
|
164
|
+
2. **Load Requirements** - Expected traffic and concurrency
|
|
165
|
+
3. **Caching Strategy** - What to cache, TTLs, invalidation
|
|
166
|
+
4. **Optimization Approach** - Key techniques to employ
|
|
167
|
+
5. **Monitoring Points** - Performance metrics to track
|
|
168
|
+
6. **Scaling Considerations** - How feature scales under load
|
|
169
|
+
|
|
170
|
+
### Design Output Format
|
|
171
|
+
|
|
172
|
+
Save to: `planning-docs/{feature-slug}/17-performance-budget.md`
|
|
173
|
+
|
|
174
|
+
```markdown
|
|
175
|
+
# Performance Budget: {Feature Name}
|
|
176
|
+
|
|
177
|
+
## Performance Targets
|
|
178
|
+
| Metric | Target | Critical Threshold |
|
|
179
|
+
|--------|--------|-------------------|
|
|
180
|
+
| Response Time | <200ms | <500ms |
|
|
181
|
+
| LCP | <2.5s | <4s |
|
|
182
|
+
| Bundle Impact | <50KB | <100KB |
|
|
183
|
+
|
|
184
|
+
## Load Requirements
|
|
185
|
+
| Scenario | Expected Load | Peak Load |
|
|
186
|
+
|----------|---------------|-----------|
|
|
187
|
+
|
|
188
|
+
## Caching Strategy
|
|
189
|
+
| Data | Cache Type | TTL | Invalidation |
|
|
190
|
+
|------|------------|-----|--------------|
|
|
191
|
+
|
|
192
|
+
## Optimization Techniques
|
|
193
|
+
{Specific optimizations to implement}
|
|
194
|
+
|
|
195
|
+
## Monitoring Points
|
|
196
|
+
{Metrics to track for this feature}
|
|
197
|
+
|
|
198
|
+
## Scaling Considerations
|
|
199
|
+
{How this feature behaves under load}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Important Notes
|
|
205
|
+
|
|
206
|
+
1. **No code changes** - Provide recommendations, not implementations
|
|
207
|
+
2. **Evidence-based** - Include metrics and measurements
|
|
208
|
+
3. **User-focused** - Prioritize user-facing performance
|
|
209
|
+
4. **Quantified** - Estimate improvement potential
|
|
210
|
+
5. **Holistic** - Consider full stack, not just frontend
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Slash Command Invocation
|
|
215
|
+
|
|
216
|
+
This skill can be invoked via:
|
|
217
|
+
- `/performance-consultant` - Full skill with methodology
|
|
218
|
+
- `/audit-performance` - Quick assessment mode
|
|
219
|
+
- `/plan-performance` - Design/planning mode
|
|
220
|
+
|
|
221
|
+
### Assessment Mode (/audit-performance)
|
|
222
|
+
|
|
223
|
+
# ULTRATHINK: Performance Assessment
|
|
224
|
+
|
|
225
|
+
ultrathink - Invoke the **performance-consultant** subagent for comprehensive performance evaluation.
|
|
226
|
+
|
|
227
|
+
## Output Location
|
|
228
|
+
|
|
229
|
+
**Targeted Reviews:** When a specific page/feature is provided, save to:
|
|
230
|
+
`./audit-reports/{target-slug}/performance-assessment.md`
|
|
231
|
+
|
|
232
|
+
**Full Codebase Reviews:** When no target is specified, save to:
|
|
233
|
+
`./audit-reports/performance-assessment.md`
|
|
234
|
+
|
|
235
|
+
### Target Slug Generation
|
|
236
|
+
Convert the target argument to a URL-safe folder name:
|
|
237
|
+
- `Art Studio page` → `art-studio`
|
|
238
|
+
- `Cart and Checkout` → `cart-checkout`
|
|
239
|
+
- `Dashboard` → `dashboard`
|
|
240
|
+
|
|
241
|
+
Create the directory if it doesn't exist:
|
|
242
|
+
```bash
|
|
243
|
+
mkdir -p ./audit-reports/{target-slug}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## What Gets Evaluated
|
|
247
|
+
|
|
248
|
+
### Frontend Performance
|
|
249
|
+
- Bundle size analysis
|
|
250
|
+
- Code splitting opportunities
|
|
251
|
+
- Image optimization
|
|
252
|
+
- Lazy loading usage
|
|
253
|
+
- Core Web Vitals readiness
|
|
254
|
+
|
|
255
|
+
### Backend Performance
|
|
256
|
+
- Response time hotspots
|
|
257
|
+
- Memory usage patterns
|
|
258
|
+
- CPU-intensive operations
|
|
259
|
+
- Async processing opportunities
|
|
260
|
+
|
|
261
|
+
### Database Performance
|
|
262
|
+
- Slow query identification
|
|
263
|
+
- Index utilization
|
|
264
|
+
- Connection pooling
|
|
265
|
+
- Query caching
|
|
266
|
+
|
|
267
|
+
### Caching Strategy
|
|
268
|
+
- Cache hit rates (estimated)
|
|
269
|
+
- Cache invalidation patterns
|
|
270
|
+
- CDN utilization
|
|
271
|
+
- Application-level caching
|
|
272
|
+
|
|
273
|
+
### Resource Loading
|
|
274
|
+
- Critical rendering path
|
|
275
|
+
- Above-the-fold optimization
|
|
276
|
+
- Third-party script impact
|
|
277
|
+
- Font loading strategy
|
|
278
|
+
|
|
279
|
+
## Target
|
|
280
|
+
$ARGUMENTS
|
|
281
|
+
|
|
282
|
+
## Minimal Return Pattern (for batch audits)
|
|
283
|
+
|
|
284
|
+
When invoked as part of a batch audit (`/audit-full`, `/audit-quick`, `/audit-frontend`):
|
|
285
|
+
1. Write your full report to the designated file path
|
|
286
|
+
2. Return ONLY a brief status message to the parent:
|
|
287
|
+
|
|
288
|
+
```
|
|
289
|
+
✓ Performance Assessment Complete
|
|
290
|
+
Saved to: {filepath}
|
|
291
|
+
Critical: X | High: Y | Medium: Z
|
|
292
|
+
Key finding: {one-line summary of most important issue}
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
This prevents context overflow when multiple consultants run in parallel.
|
|
296
|
+
|
|
297
|
+
## Output Format
|
|
298
|
+
Deliver formal performance assessment to the appropriate path with:
|
|
299
|
+
- **Performance Score (estimated)**
|
|
300
|
+
- **Top 10 Bottlenecks**
|
|
301
|
+
- **Quick Wins** (easy optimizations)
|
|
302
|
+
- **Strategic Optimizations**
|
|
303
|
+
- **Bundle Analysis**
|
|
304
|
+
- **Database Query Hotspots**
|
|
305
|
+
- **Caching Recommendations**
|
|
306
|
+
- **Prioritized Action Plan**
|
|
307
|
+
|
|
308
|
+
**Be specific about performance bottlenecks. Reference exact files and slow operations.**
|
|
309
|
+
|
|
310
|
+
### Design Mode (/plan-performance)
|
|
311
|
+
|
|
312
|
+
---name: plan-performancedescription: ⚡ ULTRATHINK Performance Design - Budgets, targets, optimization strategy
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
# Performance Design
|
|
316
|
+
|
|
317
|
+
Invoke the **performance-consultant** in Design Mode for performance budget planning.
|
|
318
|
+
|
|
319
|
+
## Target Feature
|
|
320
|
+
|
|
321
|
+
$ARGUMENTS
|
|
322
|
+
|
|
323
|
+
## Output Location
|
|
324
|
+
|
|
325
|
+
Save to: `planning-docs/{feature-slug}/17-performance-budget.md`
|
|
326
|
+
|
|
327
|
+
## Design Considerations
|
|
328
|
+
|
|
329
|
+
### Frontend Performance
|
|
330
|
+
- Bundle size budget
|
|
331
|
+
- Code splitting approach
|
|
332
|
+
- Image optimization strategy
|
|
333
|
+
- Lazy loading requirements
|
|
334
|
+
- Core Web Vitals targets (LCP, INP, CLS)
|
|
335
|
+
|
|
336
|
+
### Backend Performance
|
|
337
|
+
- Response time targets (p50, p95, p99)
|
|
338
|
+
- Memory usage limits
|
|
339
|
+
- CPU-intensive operation handling
|
|
340
|
+
- Async processing approach
|
|
341
|
+
- Connection pooling
|
|
342
|
+
|
|
343
|
+
### Database Performance
|
|
344
|
+
- Query time targets
|
|
345
|
+
- Index planning
|
|
346
|
+
- N+1 prevention strategy
|
|
347
|
+
- Query caching approach
|
|
348
|
+
- Connection management
|
|
349
|
+
|
|
350
|
+
### Caching Strategy
|
|
351
|
+
- Cache layer selection (CDN, application, database)
|
|
352
|
+
- Cache-aside vs. read-through patterns
|
|
353
|
+
- Cache invalidation approach
|
|
354
|
+
- TTL strategy
|
|
355
|
+
- Cache warming needs
|
|
356
|
+
|
|
357
|
+
### Load Expectations
|
|
358
|
+
- Expected concurrent users
|
|
359
|
+
- Peak traffic patterns
|
|
360
|
+
- Data volume projections
|
|
361
|
+
- Growth trajectory
|
|
362
|
+
- Burst handling
|
|
363
|
+
|
|
364
|
+
### Resource Loading
|
|
365
|
+
- Critical rendering path optimization
|
|
366
|
+
- Above-the-fold prioritization
|
|
367
|
+
- Third-party script management
|
|
368
|
+
- Font loading strategy
|
|
369
|
+
- Preloading/prefetching approach
|
|
370
|
+
|
|
371
|
+
### Monitoring Setup
|
|
372
|
+
- Performance metrics to track
|
|
373
|
+
- Alerting thresholds
|
|
374
|
+
- Baseline establishment
|
|
375
|
+
- Regression detection
|
|
376
|
+
|
|
377
|
+
## Design Deliverables
|
|
378
|
+
|
|
379
|
+
1. **Performance Budget** - Target metrics for feature
|
|
380
|
+
2. **Load Requirements** - Expected traffic and concurrency
|
|
381
|
+
3. **Caching Strategy** - What to cache, TTLs, invalidation
|
|
382
|
+
4. **Optimization Approach** - Key techniques to employ
|
|
383
|
+
5. **Monitoring Points** - Performance metrics to track
|
|
384
|
+
6. **Scaling Considerations** - How feature scales under load
|
|
385
|
+
|
|
386
|
+
## Output Format
|
|
387
|
+
|
|
388
|
+
Deliver performance design document with:
|
|
389
|
+
- **Performance Budget Table** (metric, target, measurement)
|
|
390
|
+
- **Caching Architecture** (layer, content, TTL, invalidation)
|
|
391
|
+
- **Load Model** (users, requests/sec, data volume)
|
|
392
|
+
- **Optimization Checklist** (technique, impact, priority)
|
|
393
|
+
- **Monitoring Dashboard Spec**
|
|
394
|
+
- **Scaling Strategy** (triggers, actions)
|
|
395
|
+
|
|
396
|
+
**Be specific about performance targets. Provide concrete numbers where possible.**
|
|
397
|
+
|
|
398
|
+
## Minimal Return Pattern
|
|
399
|
+
|
|
400
|
+
Write full design to file, return only:
|
|
401
|
+
```
|
|
402
|
+
✓ Design complete. Saved to {filepath}
|
|
403
|
+
Key decisions: {1-2 sentence summary}
|
|
404
|
+
```
|