specialist-agent 2.13.0 → 3.2.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/LICENSE +1 -1
- package/README.md +33 -207
- package/dist/catalog.json +15529 -0
- package/dist/hw-worker.mjs +254 -0
- package/dist/icones/icone.ico +0 -0
- package/dist/icones/icone.png +0 -0
- package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
- package/dist/interface/assets/index-BIyqZkro.css +1 -0
- package/dist/interface/assets/index-zAegy908.js +13 -0
- package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
- package/dist/interface/icones/apple-touch-icon.png +0 -0
- package/dist/interface/icones/favicon-32.png +0 -0
- package/dist/interface/icones/icone-192.png +0 -0
- package/dist/interface/icones/icone-512.png +0 -0
- package/dist/interface/icones/icone-mascara-512.png +0 -0
- package/dist/interface/index.html +19 -0
- package/dist/interface/manifest.webmanifest +19 -0
- package/dist/interface/sw.js +63 -0
- package/dist/specialist-agent.mjs +6919 -0
- package/dist/usage-worker.mjs +174 -0
- package/package.json +32 -57
- package/.claude-plugin/marketplace.json +0 -52
- package/.claude-plugin/plugin.json +0 -37
- package/.codex/INSTALL.md +0 -145
- package/.cursor-plugin/marketplace.json +0 -52
- package/.cursor-plugin/plugin.json +0 -37
- package/.opencode/INSTALL.md +0 -127
- package/.opencode/opencode.json +0 -186
- package/agents/analyst-lite.md +0 -48
- package/agents/analyst.md +0 -396
- package/agents/api-lite.md +0 -43
- package/agents/api.md +0 -427
- package/agents/architect-lite.md +0 -104
- package/agents/architect.md +0 -571
- package/agents/autopilot-lite.md +0 -46
- package/agents/autopilot.md +0 -196
- package/agents/cloud-lite.md +0 -75
- package/agents/cloud.md +0 -213
- package/agents/data-lite.md +0 -67
- package/agents/data.md +0 -306
- package/agents/debugger-lite.md +0 -46
- package/agents/debugger.md +0 -410
- package/agents/deps-lite.md +0 -41
- package/agents/deps.md +0 -363
- package/agents/designer-lite.md +0 -67
- package/agents/designer.md +0 -195
- package/agents/devops-lite.md +0 -67
- package/agents/devops.md +0 -205
- package/agents/docs-lite.md +0 -42
- package/agents/docs.md +0 -454
- package/agents/executor-lite.md +0 -61
- package/agents/executor.md +0 -695
- package/agents/explorer-lite.md +0 -55
- package/agents/explorer.md +0 -152
- package/agents/finance-lite.md +0 -66
- package/agents/finance.md +0 -255
- package/agents/i18n-lite.md +0 -44
- package/agents/i18n.md +0 -594
- package/agents/legal-lite.md +0 -113
- package/agents/legal.md +0 -302
- package/agents/marketing-lite.md +0 -25
- package/agents/marketing.md +0 -188
- package/agents/memory.md +0 -166
- package/agents/orchestrator-lite.md +0 -40
- package/agents/orchestrator.md +0 -512
- package/agents/pair-lite.md +0 -38
- package/agents/pair.md +0 -310
- package/agents/perf-lite.md +0 -42
- package/agents/perf.md +0 -320
- package/agents/planner-lite.md +0 -59
- package/agents/planner.md +0 -272
- package/agents/product-lite.md +0 -25
- package/agents/product.md +0 -195
- package/agents/refactor-lite.md +0 -42
- package/agents/refactor.md +0 -467
- package/agents/ripple-lite.md +0 -106
- package/agents/ripple.md +0 -166
- package/agents/scout-lite.md +0 -37
- package/agents/scout.md +0 -224
- package/agents/security-lite.md +0 -66
- package/agents/security.md +0 -252
- package/agents/sentry-triage-lite.md +0 -54
- package/agents/sentry-triage.md +0 -217
- package/agents/starter-lite.md +0 -80
- package/agents/starter.md +0 -300
- package/agents/support-lite.md +0 -24
- package/agents/support.md +0 -191
- package/agents/tdd-lite.md +0 -43
- package/agents/tdd.md +0 -329
- package/agents/tester-lite.md +0 -71
- package/agents/tester.md +0 -237
- package/cli/architectures.mjs +0 -713
- package/cli/detect-architecture.mjs +0 -752
- package/cli/generate-architecture.mjs +0 -1096
- package/cli/index.mjs +0 -1217
- package/cli/recommend-architecture.mjs +0 -870
- package/hooks/after-review.mjs +0 -130
- package/hooks/after-task.mjs +0 -117
- package/hooks/before-plan.mjs +0 -155
- package/hooks/before-review.mjs +0 -139
- package/hooks/hooks.json +0 -66
- package/hooks/lifecycle.json +0 -91
- package/hooks/native/auto-dispatch.mjs +0 -207
- package/hooks/native/auto-format.mjs +0 -176
- package/hooks/native/mcp-discovery.mjs +0 -168
- package/hooks/native/security-config.json +0 -38
- package/hooks/native/security-guard.mjs +0 -323
- package/hooks/native/session-context.mjs +0 -179
- package/hooks/native/session-end.mjs +0 -42
- package/hooks/native/utils.mjs +0 -62
- package/hooks/on-error.mjs +0 -129
- package/hooks/session-end.mjs +0 -185
- package/hooks/session-start.mjs +0 -154
- package/packs/angular/ARCHITECTURE.md +0 -814
- package/packs/angular/CLAUDE.md +0 -105
- package/packs/angular/agents/builder.md +0 -113
- package/packs/angular/agents/doctor.md +0 -187
- package/packs/angular/agents/migrator.md +0 -101
- package/packs/angular/agents/reviewer.md +0 -252
- package/packs/angular/agents-lite/builder.md +0 -65
- package/packs/angular/agents-lite/doctor.md +0 -64
- package/packs/angular/agents-lite/migrator.md +0 -75
- package/packs/angular/agents-lite/reviewer.md +0 -69
- package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
- package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
- package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
- package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
- package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
- package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
- package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/angular/skills/review-review/SKILL.md +0 -43
- package/packs/astro/ARCHITECTURE.md +0 -718
- package/packs/astro/CLAUDE.md +0 -106
- package/packs/astro/agents/builder.md +0 -123
- package/packs/astro/agents/doctor.md +0 -200
- package/packs/astro/agents/migrator.md +0 -105
- package/packs/astro/agents/reviewer.md +0 -253
- package/packs/astro/agents-lite/builder.md +0 -71
- package/packs/astro/agents-lite/doctor.md +0 -66
- package/packs/astro/agents-lite/migrator.md +0 -71
- package/packs/astro/agents-lite/reviewer.md +0 -70
- package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
- package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
- package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
- package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
- package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
- package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
- package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
- package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/astro/skills/review-review/SKILL.md +0 -45
- package/packs/nextjs/ARCHITECTURE.md +0 -1033
- package/packs/nextjs/CLAUDE.md +0 -106
- package/packs/nextjs/agents/builder.md +0 -132
- package/packs/nextjs/agents/doctor.md +0 -226
- package/packs/nextjs/agents/migrator.md +0 -101
- package/packs/nextjs/agents/reviewer.md +0 -243
- package/packs/nextjs/agents-lite/builder.md +0 -74
- package/packs/nextjs/agents-lite/doctor.md +0 -74
- package/packs/nextjs/agents-lite/migrator.md +0 -75
- package/packs/nextjs/agents-lite/reviewer.md +0 -73
- package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
- package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
- package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
- package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
- package/packs/nextjs/skills/review-review/SKILL.md +0 -47
- package/packs/nuxt/ARCHITECTURE.md +0 -831
- package/packs/nuxt/CLAUDE.md +0 -111
- package/packs/nuxt/agents/builder.md +0 -120
- package/packs/nuxt/agents/doctor.md +0 -198
- package/packs/nuxt/agents/migrator.md +0 -101
- package/packs/nuxt/agents/reviewer.md +0 -255
- package/packs/nuxt/agents-lite/builder.md +0 -67
- package/packs/nuxt/agents-lite/doctor.md +0 -67
- package/packs/nuxt/agents-lite/migrator.md +0 -80
- package/packs/nuxt/agents-lite/reviewer.md +0 -71
- package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
- package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
- package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
- package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
- package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
- package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
- package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
- package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/nuxt/skills/review-review/SKILL.md +0 -45
- package/packs/react/ARCHITECTURE.md +0 -991
- package/packs/react/CLAUDE.md +0 -102
- package/packs/react/agents/builder.md +0 -113
- package/packs/react/agents/doctor.md +0 -203
- package/packs/react/agents/migrator.md +0 -101
- package/packs/react/agents/reviewer.md +0 -252
- package/packs/react/agents-lite/builder.md +0 -65
- package/packs/react/agents-lite/doctor.md +0 -64
- package/packs/react/agents-lite/migrator.md +0 -74
- package/packs/react/agents-lite/reviewer.md +0 -69
- package/packs/react/skills/dev-create-component/SKILL.md +0 -53
- package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
- package/packs/react/skills/dev-create-module/SKILL.md +0 -51
- package/packs/react/skills/dev-create-service/SKILL.md +0 -34
- package/packs/react/skills/dev-create-test/SKILL.md +0 -92
- package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/react/skills/docs-onboard/SKILL.md +0 -42
- package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
- package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
- package/packs/react/skills/review-review/SKILL.md +0 -44
- package/packs/svelte/ARCHITECTURE.md +0 -975
- package/packs/svelte/CLAUDE.md +0 -102
- package/packs/svelte/agents/builder.md +0 -114
- package/packs/svelte/agents/doctor.md +0 -174
- package/packs/svelte/agents/migrator.md +0 -101
- package/packs/svelte/agents/reviewer.md +0 -238
- package/packs/svelte/agents-lite/builder.md +0 -66
- package/packs/svelte/agents-lite/doctor.md +0 -67
- package/packs/svelte/agents-lite/migrator.md +0 -82
- package/packs/svelte/agents-lite/reviewer.md +0 -70
- package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
- package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
- package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
- package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
- package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
- package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
- package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
- package/packs/svelte/skills/review-review/SKILL.md +0 -45
- package/packs/vue/ARCHITECTURE.md +0 -798
- package/packs/vue/CLAUDE.md +0 -102
- package/packs/vue/agents/builder.md +0 -112
- package/packs/vue/agents/doctor.md +0 -185
- package/packs/vue/agents/migrator.md +0 -101
- package/packs/vue/agents/reviewer.md +0 -249
- package/packs/vue/agents-lite/builder.md +0 -65
- package/packs/vue/agents-lite/doctor.md +0 -63
- package/packs/vue/agents-lite/migrator.md +0 -73
- package/packs/vue/agents-lite/reviewer.md +0 -68
- package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
- package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
- package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
- package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
- package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
- package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
- package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
- package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
- package/packs/vue/skills/review-review/SKILL.md +0 -43
- package/skills/audit/SKILL.md +0 -231
- package/skills/autofix/SKILL.md +0 -166
- package/skills/autopilot/SKILL.md +0 -286
- package/skills/brainstorm/SKILL.md +0 -298
- package/skills/checkpoint/SKILL.md +0 -217
- package/skills/codereview/SKILL.md +0 -268
- package/skills/commit/SKILL.md +0 -150
- package/skills/copywriting/SKILL.md +0 -218
- package/skills/cro/SKILL.md +0 -234
- package/skills/debug/SKILL.md +0 -210
- package/skills/design-review/SKILL.md +0 -217
- package/skills/discovery/SKILL.md +0 -218
- package/skills/estimate/SKILL.md +0 -154
- package/skills/finish/SKILL.md +0 -220
- package/skills/grill/SKILL.md +0 -270
- package/skills/health/SKILL.md +0 -251
- package/skills/improve-architecture/SKILL.md +0 -205
- package/skills/learn/SKILL.md +0 -260
- package/skills/lint/SKILL.md +0 -126
- package/skills/migrate-architecture/SKILL.md +0 -242
- package/skills/migrate-framework/SKILL.md +0 -172
- package/skills/onboard/SKILL.md +0 -168
- package/skills/plan/SKILL.md +0 -141
- package/skills/prd/SKILL.md +0 -241
- package/skills/recall/SKILL.md +0 -112
- package/skills/remember/SKILL.md +0 -108
- package/skills/seo-audit/SKILL.md +0 -240
- package/skills/tdd/SKILL.md +0 -201
- package/skills/tutorial/SKILL.md +0 -346
- package/skills/verify/SKILL.md +0 -168
- package/skills/worktree/SKILL.md +0 -168
- package/skills/write-skill/SKILL.md +0 -225
- package/templates/autopilot/PROMPT.md +0 -39
- package/templates/autopilot/README.md +0 -122
- package/templates/autopilot/devcontainer.json +0 -21
- package/templates/industry/ecommerce.md +0 -127
- package/templates/industry/fintech.md +0 -161
- package/templates/industry/saas.md +0 -134
- package/templates/session-memory.json +0 -48
- package/templates/skill-template/SKILL.md +0 -90
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: codereview
|
|
3
|
-
description: "Use when you need a comprehensive code review combining architecture, security, and test perspectives - especially before merging, releasing, or after major changes."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[path, module, or PR]"
|
|
6
|
-
allowed-tools: Read, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /codereview - Multi-Reviewer Parallel Code Review
|
|
10
|
-
|
|
11
|
-
Run a comprehensive code review that dispatches 3 specialized perspectives concurrently - architecture, security, and testing - then consolidates into a single actionable verdict.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## Why 3 Perspectives, Not 6
|
|
16
|
-
|
|
17
|
-
Most multi-reviewer systems use 5-7 overlapping perspectives that waste tokens and produce redundant findings. `/codereview` uses exactly 3 orthogonal perspectives - each covers a distinct failure mode with zero overlap:
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
┌──────────────────────────────────────────────────────────────┐
|
|
21
|
-
│ PARALLEL REVIEW DISPATCH │
|
|
22
|
-
│ │
|
|
23
|
-
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
|
|
24
|
-
│ │ @reviewer │ │ @security │ │ @tester │ │
|
|
25
|
-
│ │ Architecture│ │ OWASP/Auth │ │ Coverage │ │
|
|
26
|
-
│ │ + Quality │ │ + Data │ │ + Edge Cases│ │
|
|
27
|
-
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
|
|
28
|
-
│ │ │ │ │
|
|
29
|
-
│ └────────────────┼────────────────┘ │
|
|
30
|
-
│ ▼ │
|
|
31
|
-
│ ┌──────────────┐ │
|
|
32
|
-
│ │ CONSOLIDATE │ │
|
|
33
|
-
│ │ Deduplicate │ │
|
|
34
|
-
│ │ Assign Sev. │ │
|
|
35
|
-
│ │ Verdict │ │
|
|
36
|
-
│ └──────────────┘ │
|
|
37
|
-
└──────────────────────────────────────────────────────────────┘
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## When to Use
|
|
41
|
-
|
|
42
|
-
- Before merging a pull request
|
|
43
|
-
- Before a production release
|
|
44
|
-
- After major refactors that touch multiple modules
|
|
45
|
-
- After new contributor PRs (unfamiliar with codebase conventions)
|
|
46
|
-
- When a change touches auth, payments, or data handling
|
|
47
|
-
- NOT for: quick single-file fixes (use `@reviewer` directly)
|
|
48
|
-
- NOT for: security-only audit (use `@security` directly)
|
|
49
|
-
- NOT for: test strategy design (use `@tester` directly)
|
|
50
|
-
|
|
51
|
-
## Workflow
|
|
52
|
-
|
|
53
|
-
### Step 1: Scope Detection
|
|
54
|
-
|
|
55
|
-
Determine the review target:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
IF $ARGUMENTS is a file/directory path → review that path
|
|
59
|
-
IF $ARGUMENTS is a module name → find and review the module
|
|
60
|
-
IF $ARGUMENTS is a PR number/URL → extract changed files from PR diff
|
|
61
|
-
IF $ARGUMENTS is empty → review staged/uncommitted changes
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Gather scope metrics:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
# Count files and lines in scope
|
|
68
|
-
find $TARGET -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.vue" -o -name "*.svelte" \) | head -200 | xargs wc -l 2>/dev/null || true
|
|
69
|
-
|
|
70
|
-
# If PR, get the diff
|
|
71
|
-
gh pr diff $PR_NUMBER 2>/dev/null || git diff main...HEAD 2>/dev/null || true
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Read the project's `docs/ARCHITECTURE.md` if it exists - this is the source of truth for architecture review.
|
|
75
|
-
|
|
76
|
-
### Step 2: Parallel Review Dispatch
|
|
77
|
-
|
|
78
|
-
Dispatch 3 concurrent review perspectives. Each reviewer gets the full file context but applies a different lens.
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
**Perspective 1: Architecture Review** (`@reviewer` focus)
|
|
83
|
-
|
|
84
|
-
Review the code for structural integrity and quality:
|
|
85
|
-
|
|
86
|
-
| Check | What to Look For |
|
|
87
|
-
|-------|------------------|
|
|
88
|
-
| Layer separation | Services don't import from components, no cross-module imports |
|
|
89
|
-
| Naming conventions | Files, functions, variables follow project conventions |
|
|
90
|
-
| Design patterns | DRY, SOLID, composition over inheritance |
|
|
91
|
-
| API contracts | DTOs/schemas at boundaries, typed inputs and outputs |
|
|
92
|
-
| Dependency direction | Layers depend inward, not outward |
|
|
93
|
-
| Code smells | Long methods (>40 lines), deep nesting (>3 levels), god objects |
|
|
94
|
-
| Type safety | No `any` abuse, strict mode, proper generics |
|
|
95
|
-
| Error handling | Try/catch at boundaries, custom error types, no swallowed errors |
|
|
96
|
-
| Import hygiene | No circular dependencies, barrel file discipline |
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
# Architecture checks
|
|
100
|
-
grep -rn ": any\|as any" $TARGET --include="*.ts" --include="*.tsx" 2>/dev/null | head -20
|
|
101
|
-
grep -rn "console\.\|debugger" $TARGET --include="*.ts" --include="*.tsx" --include="*.vue" 2>/dev/null | head -20
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
**Perspective 2: Security Review** (`@security` focus)
|
|
107
|
-
|
|
108
|
-
Review the code for vulnerabilities and data safety:
|
|
109
|
-
|
|
110
|
-
| Check | What to Look For |
|
|
111
|
-
|-------|------------------|
|
|
112
|
-
| Injection | SQL/NoSQL injection, command injection, template injection |
|
|
113
|
-
| XSS | Unsanitized output, `dangerouslySetInnerHTML`, `v-html`, raw HTML |
|
|
114
|
-
| Auth/AuthZ | Missing auth checks, broken access control, IDOR vulnerabilities |
|
|
115
|
-
| Input validation | Missing or insufficient validation, type coercion issues |
|
|
116
|
-
| Secrets | Hardcoded API keys, tokens, passwords, connection strings |
|
|
117
|
-
| Data exposure | Sensitive data in logs, error messages, API responses, URLs |
|
|
118
|
-
| CSRF | Missing CSRF tokens on state-changing operations |
|
|
119
|
-
| Cryptography | Weak algorithms, predictable tokens, missing encryption |
|
|
120
|
-
| Headers | Missing security headers (CSP, HSTS, X-Frame-Options) |
|
|
121
|
-
| Dependencies | Known CVEs in packages |
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
# Security checks
|
|
125
|
-
npm audit --json 2>/dev/null | head -50 || true
|
|
126
|
-
grep -rn "password\|secret\|token\|api_key\|apikey" $TARGET --include="*.ts" --include="*.tsx" --include="*.env*" 2>/dev/null | head -20
|
|
127
|
-
grep -rn "v-html\|dangerouslySetInnerHTML\|innerHTML" $TARGET --include="*.ts" --include="*.tsx" --include="*.vue" 2>/dev/null | head -20
|
|
128
|
-
grep -rn "eval(\|new Function(" $TARGET --include="*.ts" --include="*.tsx" --include="*.js" 2>/dev/null | head -20
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
**Perspective 3: Test Review** (`@tester` focus)
|
|
134
|
-
|
|
135
|
-
Review the code for test quality and coverage:
|
|
136
|
-
|
|
137
|
-
| Check | What to Look For |
|
|
138
|
-
|-------|------------------|
|
|
139
|
-
| Coverage gaps | Business logic without corresponding tests |
|
|
140
|
-
| Missing edge cases | Null, empty, boundary values, error paths not tested |
|
|
141
|
-
| Test quality | Tests that test implementation vs behavior |
|
|
142
|
-
| Mocking correctness | Over-mocking, mocking what you own, leaking mocks |
|
|
143
|
-
| Assertion strength | Weak assertions (`toBeTruthy` vs `toEqual`), missing assertions |
|
|
144
|
-
| Test isolation | Shared mutable state, order-dependent tests |
|
|
145
|
-
| Naming clarity | Descriptive `it('should...')` vs vague test names |
|
|
146
|
-
| Test types | Right balance of unit/integration/e2e for the change |
|
|
147
|
-
| Regression risk | Changed code without updated tests |
|
|
148
|
-
| Flakiness signals | Timing dependencies, network calls in unit tests |
|
|
149
|
-
|
|
150
|
-
```bash
|
|
151
|
-
# Test checks
|
|
152
|
-
find $TARGET -name "*.spec.ts" -o -name "*.test.ts" -o -name "*.spec.tsx" -o -name "*.test.tsx" 2>/dev/null | wc -l
|
|
153
|
-
npx vitest run --passWithNoTests --reporter=json 2>/dev/null || npx jest --json --passWithNoTests 2>/dev/null || true
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### Step 3: Consolidation
|
|
157
|
-
|
|
158
|
-
Merge findings from all 3 perspectives:
|
|
159
|
-
|
|
160
|
-
1. **Deduplicate** - Remove findings flagged by multiple perspectives (keep highest severity)
|
|
161
|
-
2. **Cross-reference** - A security finding that also lacks tests is escalated one severity level
|
|
162
|
-
3. **YAGNI Check** - For every new abstraction, interface, or utility introduced in the change:
|
|
163
|
-
- Is it used in more than one place RIGHT NOW? (not "will be useful later")
|
|
164
|
-
- Does it add configurability that isn't required by the current spec?
|
|
165
|
-
- Does it introduce a layer of indirection without clear benefit?
|
|
166
|
-
- Flag unnecessary abstractions as MEDIUM (over-engineering)
|
|
167
|
-
4. **Observability Check** - For code touching critical paths (auth, payments, data, API):
|
|
168
|
-
- Structured logging present? (not just `console.log`)
|
|
169
|
-
- Error tracking with context? (user, request, stack trace)
|
|
170
|
-
- Health check endpoint if it's a new service?
|
|
171
|
-
- Correlation IDs propagated across boundaries?
|
|
172
|
-
- Flag missing observability as MEDIUM (or HIGH for auth/payments)
|
|
173
|
-
5. **Assign severity** - Every finding gets a severity level (see table below)
|
|
174
|
-
6. **Sort** - CRITICAL first, then HIGH, MEDIUM, LOW
|
|
175
|
-
7. **Group** - By file, then by severity within each file
|
|
176
|
-
|
|
177
|
-
### Step 4: Verdict
|
|
178
|
-
|
|
179
|
-
Apply verdict rules based on the consolidated findings. The verdict is final and non-negotiable - it follows the rules mechanically.
|
|
180
|
-
|
|
181
|
-
## Severity Levels
|
|
182
|
-
|
|
183
|
-
| Level | Description | Action |
|
|
184
|
-
|-------|-------------|--------|
|
|
185
|
-
| CRITICAL | Security vulnerability, data loss risk, auth bypass | Block merge. Fix immediately. |
|
|
186
|
-
| HIGH | Architecture violation, missing validation, untested critical path | Request changes. Fix before merge. |
|
|
187
|
-
| MEDIUM | Code quality issue, weak test, minor vulnerability | Approve with notes. Fix in next sprint. |
|
|
188
|
-
| LOW | Style issue, minor improvement, optional optimization | Approve. Fix when convenient. |
|
|
189
|
-
|
|
190
|
-
## Verdict Rules
|
|
191
|
-
|
|
192
|
-
| Condition | Verdict | Meaning |
|
|
193
|
-
|-----------|---------|---------|
|
|
194
|
-
| Any CRITICAL finding | **BLOCK** | Do not merge under any circumstances |
|
|
195
|
-
| Any HIGH finding (no CRITICAL) | **REQUEST_CHANGES** | Fix HIGH findings, then re-review |
|
|
196
|
-
| MEDIUM findings only | **APPROVE WITH NOTES** | Safe to merge, but address MEDIUM items soon |
|
|
197
|
-
| LOW findings only (or none) | **APPROVE** | Clean to merge |
|
|
198
|
-
|
|
199
|
-
**Escalation rules:**
|
|
200
|
-
- A security finding without a corresponding test → severity +1 level
|
|
201
|
-
- A finding that recurs from a previous review → severity +1 level
|
|
202
|
-
- A finding in auth, payments, or PII handling → minimum severity HIGH
|
|
203
|
-
- A change touching observability/monitoring code without corresponding tests → severity +1 level
|
|
204
|
-
- A new abstraction used in only one place → flag as YAGNI (MEDIUM)
|
|
205
|
-
|
|
206
|
-
## Verification Protocol
|
|
207
|
-
|
|
208
|
-
**Before claiming the review is complete:**
|
|
209
|
-
|
|
210
|
-
1. All 3 perspectives were executed (architecture, security, tests)
|
|
211
|
-
2. Every finding has a severity level assigned
|
|
212
|
-
3. Every CRITICAL or HIGH finding includes a specific file:line reference
|
|
213
|
-
4. Every CRITICAL or HIGH finding includes a concrete remediation suggestion
|
|
214
|
-
5. Automated checks were run where available (`npm audit`, `tsc`, linting, test suite)
|
|
215
|
-
6. The verdict follows the Verdict Rules mechanically - no exceptions
|
|
216
|
-
7. Cross-referencing was performed (security findings checked for test coverage)
|
|
217
|
-
|
|
218
|
-
## Anti-Rationalization
|
|
219
|
-
|
|
220
|
-
| Excuse | Reality |
|
|
221
|
-
|--------|---------|
|
|
222
|
-
| "No security issues found" | Did you check all OWASP categories? Absence of evidence is not evidence of absence. |
|
|
223
|
-
| "Tests look fine" | Did you check edge cases, error paths, and assertion strength? Or just that tests exist? |
|
|
224
|
-
| "Architecture is clean" | Did you trace actual imports and dependency direction? Or just scan filenames? |
|
|
225
|
-
| "It's just a small change" | Small changes cause production outages. Review scope does not reduce rigor. |
|
|
226
|
-
| "The CI passed" | CI checks syntax, not logic. A green build is not a security audit. |
|
|
227
|
-
| "Previous review approved this pattern" | Patterns can be wrong. Evaluate independently every time. |
|
|
228
|
-
| "Too many files to review thoroughly" | Scope down to critical paths (auth, data, business logic). Never skip security. |
|
|
229
|
-
| "The author is senior, they know what they're doing" | Seniority does not prevent bugs. Review the code, not the author. |
|
|
230
|
-
|
|
231
|
-
## Rules
|
|
232
|
-
|
|
233
|
-
1. **All 3 perspectives are mandatory** - Skipping one defeats the purpose of multi-reviewer review
|
|
234
|
-
2. **Read-only** - Never modify files during a review
|
|
235
|
-
3. **Evidence required** - Every finding needs a file:line reference and explanation
|
|
236
|
-
4. **Remediation required** - Findings without fix suggestions are useless
|
|
237
|
-
5. **Verdict is mechanical** - Follow the Verdict Rules table, no subjective overrides
|
|
238
|
-
6. **No sycophancy** - Never say "LGTM", "looks good", or "great job" without evidence
|
|
239
|
-
7. **Cross-reference findings** - A security issue without tests is worse than either alone
|
|
240
|
-
8. **Severity must be justified** - Every rating needs a specific technical reason
|
|
241
|
-
9. **Run automated tools** - Never skip `npm audit`, linting, or type checking if available
|
|
242
|
-
10. **Fresh context per perspective** - Each reviewer perspective starts from the code, not from another reviewer's output
|
|
243
|
-
|
|
244
|
-
## Output
|
|
245
|
-
|
|
246
|
-
```
|
|
247
|
-
──── /codereview ────
|
|
248
|
-
Target: [path or PR]
|
|
249
|
-
Scope: [X files, Y lines]
|
|
250
|
-
|
|
251
|
-
Architecture: [N findings] - @reviewer
|
|
252
|
-
Security: [N findings] - @security
|
|
253
|
-
Tests: [N findings] - @tester
|
|
254
|
-
|
|
255
|
-
Severity:
|
|
256
|
-
CRITICAL: N
|
|
257
|
-
HIGH: N
|
|
258
|
-
MEDIUM: N
|
|
259
|
-
LOW: N
|
|
260
|
-
|
|
261
|
-
Top Findings:
|
|
262
|
-
1. [CRITICAL] [description] - [file:line]
|
|
263
|
-
2. [HIGH] [description] - [file:line]
|
|
264
|
-
3. [HIGH] [description] - [file:line]
|
|
265
|
-
|
|
266
|
-
Verdict: [APPROVE | APPROVE WITH NOTES | REQUEST_CHANGES | BLOCK]
|
|
267
|
-
Reason: [1-line justification]
|
|
268
|
-
```
|
package/skills/commit/SKILL.md
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: commit
|
|
3
|
-
description: "Use when changes are ready to commit - generates conventional commit messages with scope detection and validation."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[optional message override]"
|
|
6
|
-
allowed-tools: Read, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /commit - Smart Commit
|
|
10
|
-
|
|
11
|
-
Generate and execute conventional commits with automatic scope detection and pre-commit validation.
|
|
12
|
-
|
|
13
|
-
**Override:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
- After completing a feature, fix, or refactor
|
|
17
|
-
- When you want a well-formatted conventional commit
|
|
18
|
-
- To validate changes before committing
|
|
19
|
-
- NOT for: empty working tree (nothing to commit)
|
|
20
|
-
|
|
21
|
-
## Workflow
|
|
22
|
-
|
|
23
|
-
### Step 1: Analyze Changes
|
|
24
|
-
```bash
|
|
25
|
-
git status --porcelain
|
|
26
|
-
git diff --stat
|
|
27
|
-
git diff --cached --stat
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Determine:
|
|
31
|
-
- Which files changed
|
|
32
|
-
- Are changes staged or unstaged?
|
|
33
|
-
- How many files and lines affected
|
|
34
|
-
|
|
35
|
-
### Step 2: Auto-Detect Type and Scope
|
|
36
|
-
|
|
37
|
-
**Type detection from file patterns:**
|
|
38
|
-
|
|
39
|
-
| Changed Files | Type |
|
|
40
|
-
|---------------|------|
|
|
41
|
-
| `src/components/*`, `src/pages/*` | feat or fix |
|
|
42
|
-
| `tests/*`, `*.test.*`, `*.spec.*` | test |
|
|
43
|
-
| `docs/*`, `*.md` | docs |
|
|
44
|
-
| `.github/*`, `docker*`, `*.yml` | ci or chore |
|
|
45
|
-
| `*.config.*`, `tsconfig*`, `package.json` | chore |
|
|
46
|
-
| Rename/move only | refactor |
|
|
47
|
-
| Delete only | chore |
|
|
48
|
-
|
|
49
|
-
**Scope detection from paths:**
|
|
50
|
-
- `src/modules/auth/*` -> scope: `auth`
|
|
51
|
-
- `src/components/Button/*` -> scope: `button`
|
|
52
|
-
- `src/services/*` -> scope: `services`
|
|
53
|
-
- Multiple directories -> no scope (too broad)
|
|
54
|
-
|
|
55
|
-
**Type from diff content:**
|
|
56
|
-
- New file created -> `feat`
|
|
57
|
-
- Existing file modified (bug context) -> `fix`
|
|
58
|
-
- Restructuring without behavior change -> `refactor`
|
|
59
|
-
- Performance improvement -> `perf`
|
|
60
|
-
|
|
61
|
-
### Step 3: Generate Commit Message
|
|
62
|
-
|
|
63
|
-
Format: `type(scope): description`
|
|
64
|
-
|
|
65
|
-
Rules:
|
|
66
|
-
- Type: lowercase (`feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `perf`, `ci`, `style`)
|
|
67
|
-
- Scope: optional, lowercase, max 15 chars
|
|
68
|
-
- Description: imperative mood, lowercase start, no period, max 72 chars
|
|
69
|
-
- Body: optional, for complex changes - wrap at 72 chars
|
|
70
|
-
|
|
71
|
-
If $ARGUMENTS provided, use it as description override but still validate format.
|
|
72
|
-
|
|
73
|
-
### Step 4: Pre-Commit Validation
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
# Check for secrets/sensitive files
|
|
77
|
-
git diff --cached --name-only | grep -E '\.(env|pem|key)$'
|
|
78
|
-
|
|
79
|
-
# Check for debug artifacts
|
|
80
|
-
git diff --cached | grep -E '(console\.log|debugger|TODO.*HACK)'
|
|
81
|
-
|
|
82
|
-
# Check for large files
|
|
83
|
-
git diff --cached --stat | awk '{print $NF}' | head -5
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Warn if:
|
|
87
|
-
- `.env` or credential files staged
|
|
88
|
-
- `console.log` / `debugger` statements in diff
|
|
89
|
-
- Files > 1MB staged
|
|
90
|
-
|
|
91
|
-
### Step 5: Execute Commit
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
# Stage if not staged
|
|
95
|
-
git add [relevant files]
|
|
96
|
-
|
|
97
|
-
# Commit
|
|
98
|
-
git commit -m "type(scope): description"
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
If commit message needs body:
|
|
102
|
-
```bash
|
|
103
|
-
git commit -m "type(scope): description" -m "body with more details"
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Output
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
──── /commit ────
|
|
110
|
-
Type: feat
|
|
111
|
-
Scope: auth
|
|
112
|
-
Message: feat(auth): add JWT refresh token rotation
|
|
113
|
-
|
|
114
|
-
Files: 4 changed (+120 / -15)
|
|
115
|
-
Warnings: none
|
|
116
|
-
|
|
117
|
-
✓ Committed: abc1234
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
## Validation Warnings Output
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
──── /commit ────
|
|
124
|
-
⚠ WARNINGS:
|
|
125
|
-
- console.log found in src/service.ts:42
|
|
126
|
-
- .env.local is staged (contains secrets?)
|
|
127
|
-
|
|
128
|
-
Proceed anyway? Showing commit preview:
|
|
129
|
-
fix(api): handle timeout in payment service
|
|
130
|
-
|
|
131
|
-
Files: 2 changed (+8 / -3)
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## Anti-Rationalization
|
|
135
|
-
|
|
136
|
-
| Excuse | Reality |
|
|
137
|
-
|--------|---------|
|
|
138
|
-
| "I'll write a proper message later" | You won't. The context is fresh NOW. A bad commit message is permanent. |
|
|
139
|
-
| "It's just a small fix, message doesn't matter" | `git log` is the project's history book. Every entry matters. |
|
|
140
|
-
| "I'll squash before merging anyway" | Squash doesn't fix the habit. Good messages help during review too. |
|
|
141
|
-
| "Validation slows me down" | A leaked secret or committed console.log slows the whole team down. |
|
|
142
|
-
|
|
143
|
-
## Rules
|
|
144
|
-
|
|
145
|
-
1. **Always validate before committing** - Check for secrets and debug code
|
|
146
|
-
2. **Follow conventional commits** - type(scope): description
|
|
147
|
-
3. **Imperative mood** - "add feature" not "added feature"
|
|
148
|
-
4. **Never commit .env files** - Block and warn
|
|
149
|
-
5. **Max 72 chars** - Subject line must fit in git log
|
|
150
|
-
6. **One logical change per commit** - Don't mix features
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: copywriting
|
|
3
|
-
description: "Use when creating marketing copy for landing pages, email campaigns, product descriptions, or social media - with A/B variants and conversion-focused frameworks."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[product/feature and target audience]"
|
|
6
|
-
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /copywriting - Conversion-Focused Marketing Copy
|
|
10
|
-
|
|
11
|
-
Generate marketing copy using proven copywriting frameworks, with A/B variants and compliance checks - bridging the gap between product features and user motivation.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
|
|
17
|
-
- Writing landing page copy (hero, features, CTA, testimonials)
|
|
18
|
-
- Creating email marketing sequences (welcome, onboarding, re-engagement)
|
|
19
|
-
- Writing product descriptions for e-commerce or SaaS
|
|
20
|
-
- Generating social media content (posts, threads, ads)
|
|
21
|
-
- Crafting ad creative copy (Google Ads, Meta Ads)
|
|
22
|
-
- When `@marketing` Copy mode needs a structured output
|
|
23
|
-
- NOT for: SEO technical optimization (use `/seo-audit`)
|
|
24
|
-
- NOT for: content strategy or keyword research (use `@marketing` SEO mode)
|
|
25
|
-
- NOT for: copyediting existing content (use a proofreading tool)
|
|
26
|
-
|
|
27
|
-
## Workflow
|
|
28
|
-
|
|
29
|
-
### Step 1: Brief Capture
|
|
30
|
-
|
|
31
|
-
1. **Identify the product/feature** from $ARGUMENTS
|
|
32
|
-
2. **Scan existing copy** in the codebase:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# Find existing marketing copy, landing pages, meta descriptions
|
|
36
|
-
grep -rl "hero\|landing\|cta\|pricing\|testimonial" $TARGET --include="*.tsx" --include="*.vue" --include="*.astro" --include="*.mdx" 2>/dev/null | head -10
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
3. **Define the brief:**
|
|
40
|
-
|
|
41
|
-
```markdown
|
|
42
|
-
## Brief
|
|
43
|
-
|
|
44
|
-
**Product/Feature:** [what we're writing about]
|
|
45
|
-
**Target Audience:** [who reads this copy]
|
|
46
|
-
**Channel:** [landing page | email | social | ad | product description]
|
|
47
|
-
**Tone of Voice:** [professional | casual | bold | friendly | authoritative]
|
|
48
|
-
**Key Differentiators:** [what makes this unique]
|
|
49
|
-
**CTA Goal:** [signup | purchase | download | contact | share]
|
|
50
|
-
**Constraints:** [character limits, brand guidelines, compliance needs]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**BLOCKED** until brief is complete. Ask the user for missing fields.
|
|
54
|
-
|
|
55
|
-
### Step 2: Framework Selection
|
|
56
|
-
|
|
57
|
-
Select the copywriting framework based on channel:
|
|
58
|
-
|
|
59
|
-
| Channel | Primary Framework | Alternative |
|
|
60
|
-
|---------|------------------|-------------|
|
|
61
|
-
| Landing page (hero) | PAS (Problem-Agitate-Solution) | AIDA (Attention-Interest-Desire-Action) |
|
|
62
|
-
| Landing page (features) | FAB (Features-Advantages-Benefits) | Before/After/Bridge |
|
|
63
|
-
| Email sequence | BAB (Before-After-Bridge) | 4Ps (Promise-Picture-Proof-Push) |
|
|
64
|
-
| Social media | Hook-Story-Offer | PAS (condensed) |
|
|
65
|
-
| Ad creative | Headline formulas | AIDA (condensed) |
|
|
66
|
-
| Product description | FAB | Problem-Solution |
|
|
67
|
-
|
|
68
|
-
**Framework Definitions:**
|
|
69
|
-
|
|
70
|
-
- **PAS:** Identify the Problem → Agitate the pain → Present the Solution
|
|
71
|
-
- **AIDA:** Grab Attention → Build Interest → Create Desire → Call to Action
|
|
72
|
-
- **BAB:** Paint the Before (current pain) → Show the After (desired state) → Bridge (your product)
|
|
73
|
-
- **FAB:** Feature (what it does) → Advantage (why it matters) → Benefit (what user gains)
|
|
74
|
-
- **4Ps:** Promise (hook) → Picture (visualize success) → Proof (evidence) → Push (CTA)
|
|
75
|
-
- **Hook-Story-Offer:** Hook (stop scrolling) → Story (relatable narrative) → Offer (clear CTA)
|
|
76
|
-
|
|
77
|
-
### Step 3: Copy Generation
|
|
78
|
-
|
|
79
|
-
1. **Apply the selected framework** to write primary copy
|
|
80
|
-
2. **Include all required elements** for the channel:
|
|
81
|
-
|
|
82
|
-
**Landing Page Elements:**
|
|
83
|
-
- Headline (max 10 words, clear value proposition)
|
|
84
|
-
- Subheadline (expand on headline, 15-25 words)
|
|
85
|
-
- Hero body (2-3 sentences, pain → solution → benefit)
|
|
86
|
-
- Feature blocks (3-5 features with FAB format)
|
|
87
|
-
- Social proof placement (testimonials, logos, stats)
|
|
88
|
-
- CTA button text (action verb + benefit, max 5 words)
|
|
89
|
-
- Objection handlers (FAQ or trust signals)
|
|
90
|
-
|
|
91
|
-
**Email Elements:**
|
|
92
|
-
- Subject line (max 50 chars, curiosity or benefit)
|
|
93
|
-
- Preview text (max 90 chars, complement subject)
|
|
94
|
-
- Body (framework-structured, single CTA)
|
|
95
|
-
- PS line (urgency or bonus)
|
|
96
|
-
|
|
97
|
-
**Social Media Elements:**
|
|
98
|
-
- Hook (first line that stops scrolling)
|
|
99
|
-
- Body (value or story, framework-structured)
|
|
100
|
-
- CTA (clear next step)
|
|
101
|
-
- Hashtags (3-5 relevant)
|
|
102
|
-
|
|
103
|
-
### Step 4: A/B Variant Generation
|
|
104
|
-
|
|
105
|
-
For each key element, generate 2-3 variants with rationale:
|
|
106
|
-
|
|
107
|
-
```markdown
|
|
108
|
-
## A/B Variants
|
|
109
|
-
|
|
110
|
-
### Headlines
|
|
111
|
-
| Variant | Copy | Strategy |
|
|
112
|
-
|---------|------|----------|
|
|
113
|
-
| A (control) | "[headline]" | Benefit-focused, direct |
|
|
114
|
-
| B | "[headline]" | Curiosity-driven, question |
|
|
115
|
-
| C | "[headline]" | Social proof, authority |
|
|
116
|
-
|
|
117
|
-
### CTAs
|
|
118
|
-
| Variant | Copy | Strategy |
|
|
119
|
-
|---------|------|----------|
|
|
120
|
-
| A (control) | "[CTA text]" | Action + benefit |
|
|
121
|
-
| B | "[CTA text]" | Urgency + action |
|
|
122
|
-
|
|
123
|
-
### Subject Lines (if email)
|
|
124
|
-
| Variant | Copy | Strategy |
|
|
125
|
-
|---------|------|----------|
|
|
126
|
-
| A | "[subject]" | Benefit-focused |
|
|
127
|
-
| B | "[subject]" | Curiosity gap |
|
|
128
|
-
| C | "[subject]" | Personalized |
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### Step 5: Compliance Check
|
|
132
|
-
|
|
133
|
-
| Check | Description |
|
|
134
|
-
|-------|-------------|
|
|
135
|
-
| No unsubstantiated claims | Avoid "best", "#1", "guaranteed" without proof |
|
|
136
|
-
| CAN-SPAM compliance | Email includes unsubscribe, physical address (note to implement) |
|
|
137
|
-
| FTC testimonial guidelines | Testimonials must be genuine, disclose material connections |
|
|
138
|
-
| Accessibility | Alt text for images, readable font sizes, color contrast |
|
|
139
|
-
| Brand consistency | Tone matches existing copy in codebase |
|
|
140
|
-
| Legal disclaimers | Financial, health claims need disclaimers |
|
|
141
|
-
|
|
142
|
-
### Step 6: Output Document
|
|
143
|
-
|
|
144
|
-
Write the final copy document:
|
|
145
|
-
|
|
146
|
-
```markdown
|
|
147
|
-
## Copy Deck: [Product/Feature]
|
|
148
|
-
|
|
149
|
-
### Channel: [landing page | email | social | ad]
|
|
150
|
-
### Framework: [PAS | AIDA | BAB | FAB | 4Ps | Hook-Story-Offer]
|
|
151
|
-
|
|
152
|
-
[Structured copy with all elements]
|
|
153
|
-
|
|
154
|
-
### A/B Variants
|
|
155
|
-
[Variant tables]
|
|
156
|
-
|
|
157
|
-
### Implementation Notes
|
|
158
|
-
- [File paths where copy should be placed]
|
|
159
|
-
- [Component names to update]
|
|
160
|
-
- [i18n keys if applicable]
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
## Verification Protocol
|
|
164
|
-
|
|
165
|
-
**Before claiming the copy is complete:**
|
|
166
|
-
|
|
167
|
-
1. Brief was completed with all required fields
|
|
168
|
-
2. Appropriate framework was selected for the channel
|
|
169
|
-
3. All required elements for the channel are present
|
|
170
|
-
4. At least 2 A/B variants exist for headline and CTA
|
|
171
|
-
5. Compliance check was performed
|
|
172
|
-
6. Existing copy in codebase was read for tone consistency
|
|
173
|
-
7. Copy is implementation-ready with file paths or component references
|
|
174
|
-
8. No unsubstantiated superlative claims
|
|
175
|
-
|
|
176
|
-
## Anti-Rationalization
|
|
177
|
-
|
|
178
|
-
| Excuse | Reality |
|
|
179
|
-
|--------|---------|
|
|
180
|
-
| "Good copy writes itself" | Good copy follows frameworks refined over decades. Intuition produces mediocre copy. |
|
|
181
|
-
| "We don't need A/B variants" | You can't predict what converts. Testing headlines alone can improve conversion 20-50%. |
|
|
182
|
-
| "The product sells itself" | No product sells itself. Users need to understand value before they buy. That's copy's job. |
|
|
183
|
-
| "Long copy doesn't convert" | Long copy outsells short copy when the reader is problem-aware. Match length to awareness level. |
|
|
184
|
-
| "We'll optimize copy later" | Launch copy sets the baseline. Bad copy means bad data. Start with framework-driven copy. |
|
|
185
|
-
| "Compliance doesn't apply to us" | FTC and CAN-SPAM apply to everyone. One "guaranteed" claim without proof is a legal risk. |
|
|
186
|
-
| "Just use what competitors write" | Competitor copy might not convert either. Use proven frameworks, test your own message. |
|
|
187
|
-
|
|
188
|
-
## Rules
|
|
189
|
-
|
|
190
|
-
1. **Framework first** - Never write copy without selecting a framework
|
|
191
|
-
2. **Brief before writing** - No copy without a complete brief
|
|
192
|
-
3. **Benefits over features** - Users care about outcomes, not specifications
|
|
193
|
-
4. **One CTA per context** - Each page section or email has ONE clear call to action
|
|
194
|
-
5. **Scan existing copy** - Read the codebase for tone, terminology, and brand voice before writing
|
|
195
|
-
6. **Variants are mandatory** - At least 2 headline variants and 2 CTA variants
|
|
196
|
-
7. **Implementation-ready** - Include file paths or component references, not just raw text
|
|
197
|
-
8. **No fluff** - Every sentence must earn its place. Cut filler words ruthlessly.
|
|
198
|
-
|
|
199
|
-
## Output
|
|
200
|
-
|
|
201
|
-
```
|
|
202
|
-
──── /copywriting ────
|
|
203
|
-
Product: [product/feature]
|
|
204
|
-
Channel: [landing page | email | social | ad]
|
|
205
|
-
Framework: [PAS | AIDA | BAB | FAB | 4Ps | Hook-Story-Offer]
|
|
206
|
-
Audience: [target audience]
|
|
207
|
-
|
|
208
|
-
Copy Elements:
|
|
209
|
-
Headlines: [N] variants
|
|
210
|
-
CTAs: [N] variants
|
|
211
|
-
Body sections: [N]
|
|
212
|
-
Subject lines: [N] (if email)
|
|
213
|
-
|
|
214
|
-
Compliance: ✓ checked
|
|
215
|
-
Tone match: ✓ consistent with existing copy
|
|
216
|
-
|
|
217
|
-
──── Copy deck ready for implementation ────
|
|
218
|
-
```
|