the-frame-ai 0.10.8 → 0.11.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.
- package/README.de.md +56 -21
- package/README.es.md +56 -21
- package/README.hi.md +58 -23
- package/README.ja.md +58 -23
- package/README.md +55 -20
- package/README.ru.md +59 -21
- package/README.zh.md +56 -21
- package/package.json +1 -1
- package/templates/agents/performance-auditor.md +418 -0
- package/templates/commands/frame:perf-audit.md +289 -0
- package/templates/commands/frame:perf-fix.md +128 -0
package/README.de.md
CHANGED
|
@@ -109,6 +109,30 @@ Führe `/frame:research <Thema>` aus — Claude erkundet die Codebasis, externe
|
|
|
109
109
|
/frame:ship
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
### UI-Verifizierung: Sicherstellen dass die Oberfläche funktioniert
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
/frame:build
|
|
116
|
+
# → Claude implementiert die Aufgabe, sagt "fertig"
|
|
117
|
+
|
|
118
|
+
/frame:verify-ui
|
|
119
|
+
# → öffnet Browser über Playwright MCP, macht Screenshot
|
|
120
|
+
# → vergleicht mit der Aufgabenbeschreibung
|
|
121
|
+
# → PASS: Oberfläche entspricht den Erwartungen
|
|
122
|
+
# → FAIL: beschreibt genau was nicht stimmt und wo nachzuschauen ist
|
|
123
|
+
|
|
124
|
+
# Wenn etwas nicht stimmt:
|
|
125
|
+
/frame:fast "fix: Button wird auf Mobile nicht angezeigt"
|
|
126
|
+
/frame:verify-ui
|
|
127
|
+
# → erneute Prüfung nach dem Fix
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Der Befehl **prüft** nur — er behebt nicht automatisch. Wenn er ein Problem findet, beschreibt er es präzise: welches Element, welches Verhalten, was erwartet wurde.
|
|
131
|
+
|
|
132
|
+
**Automatische Prüfung**: in `/frame:build`, `/frame:fast`, `/frame:wave` und `/frame:debug` — wenn die Aufgabe UI-Dateien berührt (`.tsx`, `.vue`, `.css`, `component`, `page`) — wird die Browser-Prüfung automatisch nach den Quality Gates ausgeführt.
|
|
133
|
+
|
|
134
|
+
**Erfordert Playwright MCP** — wird automatisch bei `npx the-frame init` oder `npx the-frame update` hinzugefügt, wenn die Frage zum Frontend-Projekt mit "y" beantwortet wird.
|
|
135
|
+
|
|
112
136
|
### Sicherheit: Audit vor dem Launch
|
|
113
137
|
|
|
114
138
|
```
|
|
@@ -163,27 +187,36 @@ Führe `/frame:research <Thema>` aus — Claude erkundet die Codebasis, externe
|
|
|
163
187
|
```
|
|
164
188
|
/frame:daily
|
|
165
189
|
|
|
166
|
-
/frame:
|
|
167
|
-
# →
|
|
168
|
-
#
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
# →
|
|
172
|
-
#
|
|
190
|
+
/frame:perf-audit
|
|
191
|
+
# → erkennt Stack (Next.js + PostgreSQL + Redis usw.)
|
|
192
|
+
# → sucht aktuelle bekannte Probleme für genau diesen Stack
|
|
193
|
+
# → Tiefenscan: N+1-Abfragen, Memory Leaks, blockierende Operationen,
|
|
194
|
+
# fehlende Cache-Header, Re-Render-Ursachen, Bundle-Größe
|
|
195
|
+
# → Bericht gespeichert in .planning/reports/performance/PERF_REPORT.md
|
|
196
|
+
# mit Critical/High/Medium/Low-Prioritäten und Aufwandsschätzungen
|
|
197
|
+
|
|
198
|
+
# Beispiel-Ausgabe:
|
|
199
|
+
# Critical: 2 | High: 4 | Medium: 3 | Low: 1
|
|
200
|
+
# [PERF-1] N+1-Abfrage in /api/users — 47 extra DB-Abfragen pro Request (S)
|
|
201
|
+
# [PERF-2] setInterval ohne Cleanup in Dashboard — Memory Leak (XS)
|
|
202
|
+
|
|
203
|
+
/frame:perf-fix
|
|
204
|
+
# → liest PERF_REPORT.md, beginnt mit Critical
|
|
205
|
+
# → zeigt für jedes Problem:
|
|
206
|
+
# --- BEFORE ---
|
|
207
|
+
# const users = await db.findMany()
|
|
208
|
+
# --- AFTER ---
|
|
209
|
+
# const users = await db.findMany({ select: { id, name, email } })
|
|
210
|
+
# → fragt: Apply this fix? [y/n/skip]
|
|
211
|
+
# → wendet an, führt Typecheck + Tests aus, macht Rollback bei Fehler
|
|
173
212
|
|
|
174
|
-
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
# 3. doppelte Anfragen beim Mount entfernen
|
|
179
|
-
|
|
180
|
-
/frame:build
|
|
181
|
-
# → sequenziell, jede Aufgabe mit einem Test
|
|
182
|
-
|
|
183
|
-
/frame:performance
|
|
184
|
-
# → mit Baseline vergleichen: echte Verbesserung sehen
|
|
213
|
+
# Gezielte Fixes:
|
|
214
|
+
/frame:perf-fix PERF-1 # ein Problem beheben
|
|
215
|
+
/frame:perf-fix high # alle High beheben
|
|
216
|
+
/frame:perf-fix all # Critical + High beheben
|
|
185
217
|
|
|
186
|
-
/frame:
|
|
218
|
+
/frame:perf-audit
|
|
219
|
+
# → erneut ausführen um Verbesserungen zu bestätigen
|
|
187
220
|
```
|
|
188
221
|
|
|
189
222
|
## Was drin ist
|
|
@@ -191,8 +224,8 @@ Führe `/frame:research <Thema>` aus — Claude erkundet die Codebasis, externe
|
|
|
191
224
|
FRAME bietet:
|
|
192
225
|
|
|
193
226
|
- **6-Phasen-Workflow**: Recherche → Plan → Build → Review → Ship → Reflect
|
|
194
|
-
- **
|
|
195
|
-
- **
|
|
227
|
+
- **37 Befehle**: von schnellen Aufgaben bis zum vollständigen Feature-Entwicklungszyklus
|
|
228
|
+
- **7 KI-Agenten**: Researcher, Planner, Builder, Reviewer, Devil's Advocate, Security, Performance Auditor
|
|
196
229
|
- **Safety-Hooks**: blockieren destruktive Operationen, erzwingen Quality-Gates
|
|
197
230
|
- **Git-Sicherheit**: Checkpoints, Rollback, Worktrees, Pause/Resume
|
|
198
231
|
- **Sicherheitsaudit**: OWASP Top 10, Secret-Erkennung, Infrastruktur-Checks, KI/LLM-Risiken
|
|
@@ -276,6 +309,8 @@ Diese 7 Befehle decken 90% der Solo-Dev-Arbeit ab:
|
|
|
276
309
|
| `/frame:review` | Vor dem Deployment — automatisierte Prüfungen + Checkliste |
|
|
277
310
|
| `/frame:security` | Tiefer Sicherheitsaudit: Secrets, OWASP, Infrastruktur, KI/LLM-Risiken |
|
|
278
311
|
| `/frame:security-fix` | Befunde aus dem letzten Sicherheitsbericht beheben (CRITICAL zuerst, dann HIGH) |
|
|
312
|
+
| `/frame:perf-audit` | Tiefer Performance-Audit: erkennt Stack, recherchiert aktuelle Probleme, schreibt PERF_REPORT.md |
|
|
313
|
+
| `/frame:perf-fix` | Probleme aus PERF_REPORT.md beheben — zeigt Before/After, fragt Bestätigung pro Fix |
|
|
279
314
|
| `/frame:health` | Vollständiger Projekt-Gesundheitscheck |
|
|
280
315
|
| `/frame:check-deps` | Sicherheitsaudit + veraltete Pakete |
|
|
281
316
|
| `/frame:performance` | Bundle-Größe und Lighthouse-Audit |
|
package/README.es.md
CHANGED
|
@@ -109,6 +109,30 @@ Ejecuta `/frame:research <tema>` — Claude explora la base de código, fuentes
|
|
|
109
109
|
/frame:ship
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
### Verificación de UI: confirmar que la interfaz funciona
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
/frame:build
|
|
116
|
+
# → Claude implementa la tarea, dice "listo"
|
|
117
|
+
|
|
118
|
+
/frame:verify-ui
|
|
119
|
+
# → abre el navegador a través de Playwright MCP, toma una captura de pantalla
|
|
120
|
+
# → compara con la descripción de la tarea
|
|
121
|
+
# → PASS: la interfaz coincide con las expectativas
|
|
122
|
+
# → FAIL: describe exactamente qué está mal y dónde buscar
|
|
123
|
+
|
|
124
|
+
# Si algo está mal:
|
|
125
|
+
/frame:fast "fix: el botón no se muestra en móvil"
|
|
126
|
+
/frame:verify-ui
|
|
127
|
+
# → nueva verificación después del fix
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
El comando solo **verifica** — no corrige automáticamente. Si encuentra un problema, lo describe con precisión: qué elemento, qué comportamiento, qué se esperaba.
|
|
131
|
+
|
|
132
|
+
**Verificación automática**: en `/frame:build`, `/frame:fast`, `/frame:wave` y `/frame:debug` — si la tarea toca archivos de UI (`.tsx`, `.vue`, `.css`, `component`, `page`) — la verificación del navegador se ejecuta automáticamente después de los quality gates.
|
|
133
|
+
|
|
134
|
+
**Requiere Playwright MCP** — se añade automáticamente en `npx the-frame init` o `npx the-frame update` si respondes "y" a la pregunta sobre proyecto frontend.
|
|
135
|
+
|
|
112
136
|
### Seguridad: auditoría antes del lanzamiento
|
|
113
137
|
|
|
114
138
|
```
|
|
@@ -163,27 +187,36 @@ Ejecuta `/frame:research <tema>` — Claude explora la base de código, fuentes
|
|
|
163
187
|
```
|
|
164
188
|
/frame:daily
|
|
165
189
|
|
|
166
|
-
/frame:
|
|
167
|
-
# →
|
|
168
|
-
#
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
# →
|
|
172
|
-
#
|
|
190
|
+
/frame:perf-audit
|
|
191
|
+
# → detecta el stack (Next.js + PostgreSQL + Redis, etc.)
|
|
192
|
+
# → busca problemas conocidos actuales para ese stack exacto
|
|
193
|
+
# → escaneo profundo: consultas N+1, fugas de memoria, operaciones bloqueantes,
|
|
194
|
+
# cabeceras de caché faltantes, causas de re-renders, tamaño del bundle
|
|
195
|
+
# → informe guardado en .planning/reports/performance/PERF_REPORT.md
|
|
196
|
+
# con prioridades Critical/High/Medium/Low y estimaciones de esfuerzo
|
|
197
|
+
|
|
198
|
+
# Ejemplo de salida:
|
|
199
|
+
# Critical: 2 | High: 4 | Medium: 3 | Low: 1
|
|
200
|
+
# [PERF-1] Consulta N+1 en /api/users — 47 consultas DB extra por request (S)
|
|
201
|
+
# [PERF-2] setInterval sin cleanup en Dashboard — fuga de memoria (XS)
|
|
202
|
+
|
|
203
|
+
/frame:perf-fix
|
|
204
|
+
# → lee PERF_REPORT.md, empieza con Critical
|
|
205
|
+
# → para cada problema muestra:
|
|
206
|
+
# --- BEFORE ---
|
|
207
|
+
# const users = await db.findMany()
|
|
208
|
+
# --- AFTER ---
|
|
209
|
+
# const users = await db.findMany({ select: { id, name, email } })
|
|
210
|
+
# → pregunta: Apply this fix? [y/n/skip]
|
|
211
|
+
# → aplica, ejecuta typecheck + tests, revierte si falla
|
|
173
212
|
|
|
174
|
-
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
# 3. eliminar solicitudes duplicadas al montar
|
|
179
|
-
|
|
180
|
-
/frame:build
|
|
181
|
-
# → secuencial, cada tarea con una prueba
|
|
182
|
-
|
|
183
|
-
/frame:performance
|
|
184
|
-
# → comparar con la línea base: ver la mejora real
|
|
213
|
+
# Correcciones específicas:
|
|
214
|
+
/frame:perf-fix PERF-1 # corregir un problema
|
|
215
|
+
/frame:perf-fix high # corregir todos los High
|
|
216
|
+
/frame:perf-fix all # corregir Critical + High
|
|
185
217
|
|
|
186
|
-
/frame:
|
|
218
|
+
/frame:perf-audit
|
|
219
|
+
# → volver a ejecutar para confirmar mejoras
|
|
187
220
|
```
|
|
188
221
|
|
|
189
222
|
## Qué incluye
|
|
@@ -191,8 +224,8 @@ Ejecuta `/frame:research <tema>` — Claude explora la base de código, fuentes
|
|
|
191
224
|
FRAME proporciona:
|
|
192
225
|
|
|
193
226
|
- **Flujo de trabajo de 6 fases**: Investigar → Planificar → Construir → Revisar → Publicar → Reflexionar
|
|
194
|
-
- **
|
|
195
|
-
- **
|
|
227
|
+
- **37 comandos**: desde tareas rápidas hasta el ciclo completo de desarrollo de funcionalidades
|
|
228
|
+
- **7 agentes de IA**: Investigador, Planificador, Constructor, Revisor, Abogado del Diablo, Seguridad, Auditor de Rendimiento
|
|
196
229
|
- **Safety Hooks**: bloquean operaciones destructivas, aplican quality gates
|
|
197
230
|
- **Git Safety**: checkpoints, rollback, worktrees, pausa/reanudación
|
|
198
231
|
- **Auditoría de seguridad**: OWASP Top 10, detección de secretos, verificaciones de infraestructura, riesgos de IA/LLM
|
|
@@ -276,6 +309,8 @@ Estos 7 comandos cubren el 90% del trabajo de desarrollo en solitario:
|
|
|
276
309
|
| `/frame:review` | Antes de desplegar — verificaciones automatizadas + lista de comprobación |
|
|
277
310
|
| `/frame:security` | Auditoría de seguridad profunda: secretos, OWASP, infraestructura, riesgos IA/LLM |
|
|
278
311
|
| `/frame:security-fix` | Corregir hallazgos del último informe de seguridad (CRITICAL primero, luego HIGH) |
|
|
312
|
+
| `/frame:perf-audit` | Auditoría de rendimiento profunda: detecta stack, investiga problemas actuales, escribe PERF_REPORT.md |
|
|
313
|
+
| `/frame:perf-fix` | Corregir problemas de PERF_REPORT.md — muestra antes/después, pide confirmación por fix |
|
|
279
314
|
| `/frame:health` | Verificación completa del estado del proyecto |
|
|
280
315
|
| `/frame:check-deps` | Auditoría de seguridad + paquetes desactualizados |
|
|
281
316
|
| `/frame:performance` | Auditoría de tamaño de bundle y Lighthouse |
|
package/README.hi.md
CHANGED
|
@@ -109,6 +109,30 @@ FRAME — AI-सहायता प्राप्त एकल विकास
|
|
|
109
109
|
/frame:ship
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
### UI सत्यापन: इंटरफ़ेस काम करता है यह सुनिश्चित करें
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
/frame:build
|
|
116
|
+
# → Claude कार्य लागू करता है, "तैयार" कहता है
|
|
117
|
+
|
|
118
|
+
/frame:verify-ui
|
|
119
|
+
# → Playwright MCP के माध्यम से ब्राउज़र खोलता है, स्क्रीनशॉट लेता है
|
|
120
|
+
# → कार्य विवरण से तुलना करता है
|
|
121
|
+
# → PASS: इंटरफ़ेस अपेक्षाओं से मेल खाता है
|
|
122
|
+
# → FAIL: बिल्कुल क्या गलत है और कहाँ देखना है यह बताता है
|
|
123
|
+
|
|
124
|
+
# अगर कुछ गलत है:
|
|
125
|
+
/frame:fast "fix: मोबाइल पर बटन नहीं दिख रहा"
|
|
126
|
+
/frame:verify-ui
|
|
127
|
+
# → फिक्स के बाद पुनः जांच
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
कमांड केवल **सत्यापित** करता है — स्वचालित रूप से ठीक नहीं करता। अगर कोई समस्या मिलती है — सटीक रूप से बताता है: कौन सा तत्व, कौन सा व्यवहार, क्या अपेक्षित था।
|
|
131
|
+
|
|
132
|
+
**स्वचालित जांच**: `/frame:build`, `/frame:fast`, `/frame:wave` और `/frame:debug` में — अगर कार्य UI फ़ाइलों (`.tsx`, `.vue`, `.css`, `component`, `page`) को छूता है — quality gates के बाद ब्राउज़र जांच स्वचालित रूप से चलती है।
|
|
133
|
+
|
|
134
|
+
**Playwright MCP आवश्यक है** — `npx the-frame init` या `npx the-frame update` पर frontend project प्रश्न का "y" उत्तर देने पर स्वचालित रूप से जोड़ा जाता है।
|
|
135
|
+
|
|
112
136
|
### सुरक्षा: लॉन्च से पहले ऑडिट
|
|
113
137
|
|
|
114
138
|
```
|
|
@@ -163,27 +187,36 @@ FRAME — AI-सहायता प्राप्त एकल विकास
|
|
|
163
187
|
```
|
|
164
188
|
/frame:daily
|
|
165
189
|
|
|
166
|
-
/frame:
|
|
167
|
-
# →
|
|
168
|
-
#
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
# →
|
|
172
|
-
#
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
# →
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
#
|
|
185
|
-
|
|
186
|
-
/
|
|
190
|
+
/frame:perf-audit
|
|
191
|
+
# → स्टैक डिटेक्ट करता है (Next.js + PostgreSQL + Redis आदि)
|
|
192
|
+
# → उस स्टैक के लिए वर्तमान ज्ञात समस्याएं खोजता है
|
|
193
|
+
# → गहरा स्कैन: N+1 क्वेरी, मेमोरी लीक, ब्लॉकिंग ऑपरेशन,
|
|
194
|
+
# कैश हेडर की कमी, re-render के कारण, bundle साइज
|
|
195
|
+
# → रिपोर्ट .planning/reports/performance/PERF_REPORT.md में सेव
|
|
196
|
+
# Critical/High/Medium/Low प्राथमिकताओं और effort अनुमान के साथ
|
|
197
|
+
|
|
198
|
+
# उदाहरण आउटपुट:
|
|
199
|
+
# Critical: 2 | High: 4 | Medium: 3 | Low: 1
|
|
200
|
+
# [PERF-1] /api/users में N+1 क्वेरी — प्रति request 47 अतिरिक्त DB क्वेरी (S)
|
|
201
|
+
# [PERF-2] Dashboard में setInterval बिना cleanup — मेमोरी लीक (XS)
|
|
202
|
+
|
|
203
|
+
/frame:perf-fix
|
|
204
|
+
# → PERF_REPORT.md पढ़ता है, Critical से शुरू करता है
|
|
205
|
+
# → प्रत्येक समस्या के लिए दिखाता है:
|
|
206
|
+
# --- BEFORE ---
|
|
207
|
+
# const users = await db.findMany()
|
|
208
|
+
# --- AFTER ---
|
|
209
|
+
# const users = await db.findMany({ select: { id, name, email } })
|
|
210
|
+
# → पूछता है: Apply this fix? [y/n/skip]
|
|
211
|
+
# → लागू करता है, typecheck + tests चलाता है, विफल होने पर revert करता है
|
|
212
|
+
|
|
213
|
+
# विशिष्ट fixes:
|
|
214
|
+
/frame:perf-fix PERF-1 # एक समस्या ठीक करें
|
|
215
|
+
/frame:perf-fix high # सभी High ठीक करें
|
|
216
|
+
/frame:perf-fix all # Critical + High ठीक करें
|
|
217
|
+
|
|
218
|
+
/frame:perf-audit
|
|
219
|
+
# → सुधार की पुष्टि के लिए फिर से चलाएं
|
|
187
220
|
```
|
|
188
221
|
|
|
189
222
|
## अंदर क्या है
|
|
@@ -191,8 +224,8 @@ FRAME — AI-सहायता प्राप्त एकल विकास
|
|
|
191
224
|
FRAME प्रदान करता है:
|
|
192
225
|
|
|
193
226
|
- **6-चरण वर्कफ़्लो**: अनुसंधान → योजना → निर्माण → समीक्षा → शिप → प्रतिबिंब
|
|
194
|
-
- **
|
|
195
|
-
- **
|
|
227
|
+
- **37 कमांड**: त्वरित कार्यों से लेकर पूर्ण सुविधा विकास चक्र तक
|
|
228
|
+
- **7 AI एजेंट**: शोधकर्ता, योजनाकार, निर्माता, समीक्षक, शैतान का वकील, सुरक्षा, प्रदर्शन ऑडिटर
|
|
196
229
|
- **सेफ्टी हुक्स**: विनाशकारी ऑपरेशन ब्लॉक करते हैं, गुणवत्ता गेट लागू करते हैं
|
|
197
230
|
- **Git सुरक्षा**: चेकपॉइंट, रोलबैक, वर्कट्री, पॉज/रिज्यूम
|
|
198
231
|
- **Security Auditing**: OWASP Top 10, secret detection, infrastructure checks, AI/LLM risks
|
|
@@ -276,6 +309,8 @@ npx the-frame-ai init
|
|
|
276
309
|
| `/frame:review` | डिप्लॉय करने से पहले — स्वचालित जांच + चेकलिस्ट |
|
|
277
310
|
| `/frame:security` | गहरा सुरक्षा ऑडिट: secrets, OWASP, infrastructure, AI/LLM risks |
|
|
278
311
|
| `/frame:security-fix` | नवीनतम रिपोर्ट से findings ठीक करें (पहले CRITICAL, फिर HIGH) |
|
|
312
|
+
| `/frame:perf-audit` | गहरा performance audit: स्टैक डिटेक्ट, वर्तमान समस्याएं खोजें, PERF_REPORT.md लिखें |
|
|
313
|
+
| `/frame:perf-fix` | PERF_REPORT.md की समस्याएं ठीक करें — before/after दिखाएं, प्रत्येक fix पर पुष्टि |
|
|
279
314
|
| `/frame:health` | पूर्ण प्रोजेक्ट स्वास्थ्य जांच |
|
|
280
315
|
| `/frame:check-deps` | सुरक्षा ऑडिट + पुराने पैकेज |
|
|
281
316
|
| `/frame:performance` | Bundle आकार और Lighthouse ऑडिट |
|
package/README.ja.md
CHANGED
|
@@ -109,6 +109,30 @@ Claude Codeで一人でプロダクトを作っていて、チームのように
|
|
|
109
109
|
/frame:ship
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
### UI検証:インターフェースが動作することを確認する
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
/frame:build
|
|
116
|
+
# → Claudeがタスクを実装し、「完了」と言う
|
|
117
|
+
|
|
118
|
+
/frame:verify-ui
|
|
119
|
+
# → Playwright MCPを通じてブラウザを開き、スクリーンショットを撮る
|
|
120
|
+
# → タスクの説明と比較する
|
|
121
|
+
# → PASS:インターフェースが期待通り
|
|
122
|
+
# → FAIL:何が問題でどこを見ればいいか正確に説明
|
|
123
|
+
|
|
124
|
+
# 何か問題がある場合:
|
|
125
|
+
/frame:fast "fix: モバイルでボタンが表示されない"
|
|
126
|
+
/frame:verify-ui
|
|
127
|
+
# → 修正後に再確認
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
このコマンドは**確認のみ** — 自動修正はしません。問題が見つかった場合、正確に説明します:どの要素、どの動作、何が期待されていたか。
|
|
131
|
+
|
|
132
|
+
**自動チェック**:`/frame:build`、`/frame:fast`、`/frame:wave`、`/frame:debug` で — タスクがUIファイル(`.tsx`、`.vue`、`.css`、`component`、`page`)に触れる場合 — ブラウザチェックがquality gatesの後に自動的に実行されます。
|
|
133
|
+
|
|
134
|
+
**Playwright MCPが必要** — `npx the-frame init` または `npx the-frame update` 時にフロントエンドプロジェクトの質問に"y"と答えると自動的に追加されます。
|
|
135
|
+
|
|
112
136
|
### セキュリティ:リリース前の監査
|
|
113
137
|
|
|
114
138
|
```
|
|
@@ -163,27 +187,36 @@ Claude Codeで一人でプロダクトを作っていて、チームのように
|
|
|
163
187
|
```
|
|
164
188
|
/frame:daily
|
|
165
189
|
|
|
166
|
-
/frame:
|
|
167
|
-
# →
|
|
168
|
-
#
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
# →
|
|
172
|
-
#
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
# →
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
#
|
|
185
|
-
|
|
186
|
-
/
|
|
190
|
+
/frame:perf-audit
|
|
191
|
+
# → スタックを検出(Next.js + PostgreSQL + Redis など)
|
|
192
|
+
# → そのスタック固有の現在の既知問題を調査
|
|
193
|
+
# → 深層スキャン:N+1クエリ、メモリリーク、ブロッキング操作、
|
|
194
|
+
# キャッシュヘッダーの欠如、再レンダリングの原因、バンドルサイズ
|
|
195
|
+
# → レポートを .planning/reports/performance/PERF_REPORT.md に保存
|
|
196
|
+
# Critical/High/Medium/Low の優先度と工数見積もり付き
|
|
197
|
+
|
|
198
|
+
# 出力例:
|
|
199
|
+
# Critical: 2 | High: 4 | Medium: 3 | Low: 1
|
|
200
|
+
# [PERF-1] /api/users の N+1クエリ — リクエストごとに47回の余分なDBクエリ (S)
|
|
201
|
+
# [PERF-2] Dashboard の setInterval にクリーンアップなし — メモリリーク (XS)
|
|
202
|
+
|
|
203
|
+
/frame:perf-fix
|
|
204
|
+
# → PERF_REPORT.md を読み、Critical から開始
|
|
205
|
+
# → 各問題について表示:
|
|
206
|
+
# --- BEFORE ---
|
|
207
|
+
# const users = await db.findMany()
|
|
208
|
+
# --- AFTER ---
|
|
209
|
+
# const users = await db.findMany({ select: { id, name, email } })
|
|
210
|
+
# → 確認:Apply this fix? [y/n/skip]
|
|
211
|
+
# → 適用、typecheck + テスト実行、失敗時はリバート
|
|
212
|
+
|
|
213
|
+
# 特定の修正:
|
|
214
|
+
/frame:perf-fix PERF-1 # 1つの問題を修正
|
|
215
|
+
/frame:perf-fix high # すべての High を修正
|
|
216
|
+
/frame:perf-fix all # Critical + High を修正
|
|
217
|
+
|
|
218
|
+
/frame:perf-audit
|
|
219
|
+
# → 改善を確認するために再実行
|
|
187
220
|
```
|
|
188
221
|
|
|
189
222
|
## 内容
|
|
@@ -191,8 +224,8 @@ Claude Codeで一人でプロダクトを作っていて、チームのように
|
|
|
191
224
|
FRAMEが提供するもの:
|
|
192
225
|
|
|
193
226
|
- **6フェーズワークフロー**:調査 → 計画 → 構築 → レビュー → リリース → 振り返り
|
|
194
|
-
- **
|
|
195
|
-
- **
|
|
227
|
+
- **37コマンド**:クイックタスクから完全な機能開発サイクルまで
|
|
228
|
+
- **7つのAIエージェント**:リサーチャー、プランナー、ビルダー、レビュアー、悪魔の代弁者、セキュリティ、パフォーマンス監査
|
|
196
229
|
- **セーフティフック**:破壊的操作をブロック、品質ゲートを強制
|
|
197
230
|
- **Git安全機能**:チェックポイント、ロールバック、ワークツリー、一時停止/再開
|
|
198
231
|
- **セキュリティ監査**:OWASP Top 10、シークレット検出、インフラチェック、AI/LLMリスク
|
|
@@ -276,6 +309,8 @@ npx the-frame-ai init
|
|
|
276
309
|
| `/frame:review` | デプロイ前 — 自動チェック + チェックリスト |
|
|
277
310
|
| `/frame:security` | 深度セキュリティ監査:シークレット、OWASP、インフラ、AI/LLMリスク |
|
|
278
311
|
| `/frame:security-fix` | 最新セキュリティレポートの発見を修正(CRITICAL 優先、次に HIGH) |
|
|
312
|
+
| `/frame:perf-audit` | 深層パフォーマンス監査:スタック検出、現在の問題を調査、PERF_REPORT.md を作成 |
|
|
313
|
+
| `/frame:perf-fix` | PERF_REPORT.md の問題を修正 — Before/After を表示、修正ごとに確認 |
|
|
279
314
|
| `/frame:health` | プロジェクト全体のヘルスチェック |
|
|
280
315
|
| `/frame:check-deps` | セキュリティ監査 + 古いパッケージ |
|
|
281
316
|
| `/frame:performance` | バンドルサイズとLighthouse監査 |
|
package/README.md
CHANGED
|
@@ -109,33 +109,66 @@ Run `/frame:research <topic>` — Claude explores the codebase, external sources
|
|
|
109
109
|
/frame:ship
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
###
|
|
112
|
+
### Performance: find and fix bottlenecks
|
|
113
113
|
|
|
114
114
|
```
|
|
115
115
|
/frame:daily
|
|
116
116
|
|
|
117
|
-
/frame:
|
|
118
|
-
# →
|
|
119
|
-
#
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
# →
|
|
123
|
-
#
|
|
117
|
+
/frame:perf-audit
|
|
118
|
+
# → detects stack (Next.js + PostgreSQL + Redis, etc.)
|
|
119
|
+
# → searches for current known issues for that exact stack
|
|
120
|
+
# → deep scan: N+1 queries, memory leaks, blocking ops,
|
|
121
|
+
# missing cache headers, re-render causes, bundle size
|
|
122
|
+
# → report saved to .planning/reports/performance/PERF_REPORT.md
|
|
123
|
+
# with Critical/High/Medium/Low priorities and effort estimates
|
|
124
|
+
|
|
125
|
+
# Example report output:
|
|
126
|
+
# Critical: 2 | High: 4 | Medium: 3 | Low: 1
|
|
127
|
+
# [PERF-1] N+1 query in /api/users — 47 extra DB queries per request (S)
|
|
128
|
+
# [PERF-2] setInterval without cleanup in Dashboard — memory leak (XS)
|
|
129
|
+
|
|
130
|
+
/frame:perf-fix
|
|
131
|
+
# → reads PERF_REPORT.md, starts with Critical issues
|
|
132
|
+
# → for each issue shows:
|
|
133
|
+
# --- BEFORE ---
|
|
134
|
+
# const users = await db.findMany()
|
|
135
|
+
# --- AFTER ---
|
|
136
|
+
# const users = await db.findMany({ select: { id, name, email } })
|
|
137
|
+
# → asks: Apply this fix? [y/n/skip]
|
|
138
|
+
# → applies, runs typecheck + tests, reverts if broken
|
|
139
|
+
|
|
140
|
+
# Fix specific issue or priority:
|
|
141
|
+
/frame:perf-fix PERF-1 # fix one issue
|
|
142
|
+
/frame:perf-fix high # fix all High priority
|
|
143
|
+
/frame:perf-fix all # fix Critical + High
|
|
144
|
+
|
|
145
|
+
/frame:perf-audit
|
|
146
|
+
# → re-run to confirm improvements
|
|
147
|
+
```
|
|
124
148
|
|
|
125
|
-
|
|
126
|
-
# → task list with impact estimates:
|
|
127
|
-
# 1. lazy load heavy charts
|
|
128
|
-
# 2. cache API requests
|
|
129
|
-
# 3. remove duplicate requests on mount
|
|
149
|
+
### UI verification: confirm the interface works
|
|
130
150
|
|
|
151
|
+
```
|
|
131
152
|
/frame:build
|
|
132
|
-
# →
|
|
153
|
+
# → Claude implements the task, says "done"
|
|
154
|
+
|
|
155
|
+
/frame:verify-ui
|
|
156
|
+
# → opens browser via Playwright MCP, takes a screenshot
|
|
157
|
+
# → compares with the task description
|
|
158
|
+
# → PASS: interface matches expectations
|
|
159
|
+
# → FAIL: describes exactly what's wrong and where to look
|
|
160
|
+
|
|
161
|
+
# If something is wrong:
|
|
162
|
+
/frame:fast "fix: button not showing on mobile"
|
|
163
|
+
/frame:verify-ui
|
|
164
|
+
# → re-check after the fix
|
|
165
|
+
```
|
|
133
166
|
|
|
134
|
-
|
|
135
|
-
# → compare with baseline: see the real improvement
|
|
167
|
+
The command only **verifies** — it doesn't auto-fix. If it finds a problem, it describes it precisely: which element, what behavior, what was expected.
|
|
136
168
|
|
|
137
|
-
|
|
138
|
-
|
|
169
|
+
**Automatic check**: in `/frame:build`, `/frame:fast`, `/frame:wave`, and `/frame:debug` — if the task touches UI files (`.tsx`, `.vue`, `.css`, `component`, `page`) — browser check runs automatically after quality gates.
|
|
170
|
+
|
|
171
|
+
**Requires Playwright MCP** — added automatically on `npx the-frame init` or `npx the-frame update` if you answer "y" to the frontend project question.
|
|
139
172
|
|
|
140
173
|
### Security: audit before launch
|
|
141
174
|
|
|
@@ -193,8 +226,8 @@ Run `/frame:research <topic>` — Claude explores the codebase, external sources
|
|
|
193
226
|
FRAME provides:
|
|
194
227
|
|
|
195
228
|
- **6-phase workflow**: Research → Plan → Build → Review → Ship → Reflect
|
|
196
|
-
- **
|
|
197
|
-
- **
|
|
229
|
+
- **37 commands**: from quick tasks to full feature development cycle
|
|
230
|
+
- **7 AI agents**: Researcher, Planner, Builder, Reviewer, Devil's Advocate, Security, Performance Auditor
|
|
198
231
|
- **Safety Hooks**: block destructive operations, enforce quality gates
|
|
199
232
|
- **Git Safety**: checkpoints, rollback, worktrees, pause/resume
|
|
200
233
|
- **Security Auditing**: OWASP Top 10, secret detection, infrastructure checks, AI/LLM risks
|
|
@@ -278,6 +311,8 @@ These 7 commands cover 90% of solo dev work:
|
|
|
278
311
|
| `/frame:review` | Before deploying — automated checks + checklist |
|
|
279
312
|
| `/frame:security` | Deep security audit: secrets, OWASP, infra, AI/LLM risks |
|
|
280
313
|
| `/frame:security-fix` | Fix findings from the latest security report (CRITICAL first, then HIGH) |
|
|
314
|
+
| `/frame:perf-audit` | Deep performance audit: detects stack, researches current issues, writes PERF_REPORT.md |
|
|
315
|
+
| `/frame:perf-fix` | Fix issues from PERF_REPORT.md — shows before/after, asks confirmation per fix |
|
|
281
316
|
| `/frame:health` | Full project health check |
|
|
282
317
|
| `/frame:check-deps` | Dependency vulnerabilities + outdated packages |
|
|
283
318
|
| `/frame:performance` | Bundle size and Lighthouse audit |
|