specialist-agent 2.12.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,225 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: write-skill
|
|
3
|
-
description: "Use when creating a new skill, editing an existing skill, or verifying a skill works before deployment."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[skill-name]"
|
|
6
|
-
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /write-skill - Create or Improve Skills with TDD
|
|
10
|
-
|
|
11
|
-
Writing skills IS Test-Driven Development applied to process documentation.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## The Iron Law
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
NO SKILL WITHOUT A FAILING TEST FIRST
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
If you didn't verify an agent fails without the skill, you don't know if the skill teaches the right thing.
|
|
22
|
-
|
|
23
|
-
**Violating the letter of this rule is violating the spirit of this rule.**
|
|
24
|
-
|
|
25
|
-
## Skill Structure
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
skills/
|
|
29
|
-
my-skill/
|
|
30
|
-
SKILL.md # Main skill file (required)
|
|
31
|
-
supporting-file.* # Only if needed (heavy reference, tools)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### SKILL.md Template
|
|
35
|
-
|
|
36
|
-
```markdown
|
|
37
|
-
---
|
|
38
|
-
name: my-skill
|
|
39
|
-
description: "Use when [specific triggering conditions and symptoms]"
|
|
40
|
-
user-invocable: true
|
|
41
|
-
argument-hint: "[arguments]"
|
|
42
|
-
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
# /my-skill - Title
|
|
46
|
-
|
|
47
|
-
[Core principle in 1-2 sentences.]
|
|
48
|
-
|
|
49
|
-
**Target:** $ARGUMENTS
|
|
50
|
-
|
|
51
|
-
## When to Use
|
|
52
|
-
|
|
53
|
-
- [Symptom or situation 1]
|
|
54
|
-
- [Symptom or situation 2]
|
|
55
|
-
- NOT for: [when not to use]
|
|
56
|
-
|
|
57
|
-
## Workflow
|
|
58
|
-
|
|
59
|
-
### Step 1: [Action]
|
|
60
|
-
[Instructions]
|
|
61
|
-
|
|
62
|
-
### Step 2: [Action]
|
|
63
|
-
[Instructions]
|
|
64
|
-
|
|
65
|
-
## Verification Protocol
|
|
66
|
-
|
|
67
|
-
**Before claiming skill execution is complete:**
|
|
68
|
-
[What commands to run as proof]
|
|
69
|
-
|
|
70
|
-
## Anti-Rationalization
|
|
71
|
-
|
|
72
|
-
| Excuse | Reality |
|
|
73
|
-
|--------|---------|
|
|
74
|
-
| "[common excuse]" | [why it's wrong] |
|
|
75
|
-
|
|
76
|
-
## Rules
|
|
77
|
-
|
|
78
|
-
1. [Rule 1]
|
|
79
|
-
2. [Rule 2]
|
|
80
|
-
|
|
81
|
-
## Output
|
|
82
|
-
|
|
83
|
-
[Expected output format]
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## CSO (Claude Search Optimization)
|
|
87
|
-
|
|
88
|
-
**Critical for discovery.** Future Claude reads the description to decide if it should load the skill.
|
|
89
|
-
|
|
90
|
-
### Description Rules
|
|
91
|
-
|
|
92
|
-
1. **Start with "Use when..."** - Focus on triggering conditions
|
|
93
|
-
2. **NEVER summarize the workflow** - Claude will follow the summary and skip the content
|
|
94
|
-
3. **Include symptoms** - Error messages, situations, contexts
|
|
95
|
-
4. **Third person** - Descriptions are injected into system prompts
|
|
96
|
-
5. **Under 500 characters** - Be concise
|
|
97
|
-
|
|
98
|
-
```yaml
|
|
99
|
-
# BAD: Summarizes workflow - Claude may follow this instead of reading skill
|
|
100
|
-
description: "Debug issues using 4-phase methodology: gather, analyze, hypothesize, fix"
|
|
101
|
-
|
|
102
|
-
# GOOD: Just triggering conditions
|
|
103
|
-
description: "Use when encountering any bug, test failure, or unexpected behavior - before proposing fixes"
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Name Rules
|
|
107
|
-
|
|
108
|
-
- Use only lowercase letters, numbers, and hyphens
|
|
109
|
-
- Use verb-first, active voice: `write-skill` not `skill-writing`
|
|
110
|
-
- Be descriptive: `condition-based-waiting` not `async-helpers`
|
|
111
|
-
|
|
112
|
-
## TDD Cycle for Skills
|
|
113
|
-
|
|
114
|
-
### RED: Write Failing Test (Baseline)
|
|
115
|
-
|
|
116
|
-
Before writing the skill, test what happens WITHOUT it:
|
|
117
|
-
|
|
118
|
-
```markdown
|
|
119
|
-
1. Create a scenario that the skill should handle
|
|
120
|
-
2. Ask an agent to handle it WITHOUT the skill loaded
|
|
121
|
-
3. Document EXACTLY what the agent does wrong:
|
|
122
|
-
- What choices did it make?
|
|
123
|
-
- What rationalizations did it use?
|
|
124
|
-
- Where did it deviate from best practice?
|
|
125
|
-
4. This is your "failing test" - the baseline behavior
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### GREEN: Write Minimal Skill
|
|
129
|
-
|
|
130
|
-
Write a skill that addresses the specific failures from RED:
|
|
131
|
-
|
|
132
|
-
```markdown
|
|
133
|
-
1. Check for duplicate skills BEFORE creating:
|
|
134
|
-
- Search existing skills by name: find skills/ -name "SKILL.md" | head -30
|
|
135
|
-
- Search by keywords in descriptions: grep -l "[keyword]" skills/*/SKILL.md
|
|
136
|
-
- If a similar skill exists, EXTEND it instead of creating a new one
|
|
137
|
-
2. Create skills/[name]/SKILL.md
|
|
138
|
-
3. Address ONLY the failures observed in baseline
|
|
139
|
-
4. Don't add hypothetical cases
|
|
140
|
-
5. Test again WITH the skill loaded
|
|
141
|
-
6. Verify the agent now behaves correctly
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### REFACTOR: Close Loopholes
|
|
145
|
-
|
|
146
|
-
```markdown
|
|
147
|
-
1. Look for NEW rationalizations the agent uses
|
|
148
|
-
2. Add explicit counters for each rationalization
|
|
149
|
-
3. Build the Anti-Rationalization table
|
|
150
|
-
4. Add Red Flags list
|
|
151
|
-
5. Re-test until the skill is bulletproof
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## Validation Checklist
|
|
155
|
-
|
|
156
|
-
Before deploying the skill:
|
|
157
|
-
|
|
158
|
-
```markdown
|
|
159
|
-
### Structure
|
|
160
|
-
- [ ] YAML frontmatter with name and description
|
|
161
|
-
- [ ] Description starts with "Use when..."
|
|
162
|
-
- [ ] Description does NOT summarize workflow
|
|
163
|
-
- [ ] Name uses only lowercase, numbers, hyphens
|
|
164
|
-
- [ ] No duplicate skill exists with same name or overlapping purpose
|
|
165
|
-
|
|
166
|
-
### Content
|
|
167
|
-
- [ ] Clear overview with core principle
|
|
168
|
-
- [ ] Workflow with numbered steps
|
|
169
|
-
- [ ] Verification Protocol section
|
|
170
|
-
- [ ] Anti-Rationalization table (5+ entries)
|
|
171
|
-
- [ ] Rules section
|
|
172
|
-
- [ ] Output format section
|
|
173
|
-
|
|
174
|
-
### Quality
|
|
175
|
-
- [ ] One excellent example (not multi-language)
|
|
176
|
-
- [ ] No narrative storytelling
|
|
177
|
-
- [ ] Concise (< 500 words for frequently-loaded skills)
|
|
178
|
-
- [ ] Keywords for search throughout
|
|
179
|
-
|
|
180
|
-
### Pack Awareness (if writing for a framework pack)
|
|
181
|
-
- [ ] Skill placed in packs/[framework]/skills/[name]/SKILL.md
|
|
182
|
-
- [ ] Examples use framework-specific patterns (not generic)
|
|
183
|
-
- [ ] Test commands match framework tooling (Vitest for Vue/React, Jest for Angular, etc.)
|
|
184
|
-
- [ ] References pack's ARCHITECTURE.md for conventions
|
|
185
|
-
|
|
186
|
-
### Testing
|
|
187
|
-
- [ ] Baseline tested WITHOUT skill (RED)
|
|
188
|
-
- [ ] Agent complies WITH skill (GREEN)
|
|
189
|
-
- [ ] Rationalizations addressed (REFACTOR)
|
|
190
|
-
- [ ] Passes validation: node tests/validate-agents.mjs --strict
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
## Anti-Rationalization
|
|
194
|
-
|
|
195
|
-
| Excuse | Reality |
|
|
196
|
-
|--------|---------|
|
|
197
|
-
| "Skill is obviously clear" | Clear to you is not clear to other agents. Test it. |
|
|
198
|
-
| "It's just a reference" | References can have gaps. Test retrieval. |
|
|
199
|
-
| "Testing is overkill" | Untested skills always have issues. 15 min testing saves hours. |
|
|
200
|
-
| "I'll test if problems emerge" | Test BEFORE deploying, not after. |
|
|
201
|
-
| "Too tedious to test" | Testing is less tedious than debugging a bad skill in production. |
|
|
202
|
-
| "No time to test" | Deploying untested skill wastes more time fixing it later. |
|
|
203
|
-
|
|
204
|
-
## Output
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
──── /write-skill ────
|
|
208
|
-
Skill: [name]
|
|
209
|
-
Status: [created | updated]
|
|
210
|
-
|
|
211
|
-
Structure: ✓ Valid
|
|
212
|
-
CSO: ✓ Description starts with "Use when..."
|
|
213
|
-
Testing: [RED ✓ | GREEN ✓ | REFACTOR ✓]
|
|
214
|
-
|
|
215
|
-
File: skills/[name]/SKILL.md
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
## Rules
|
|
219
|
-
|
|
220
|
-
1. **No skill without failing test first** - TDD applies to documentation too
|
|
221
|
-
2. **CSO-optimize descriptions** - "Use when..." not "What it does"
|
|
222
|
-
3. **Never summarize workflow in description** - Claude will skip the content
|
|
223
|
-
4. **Address every rationalization** - Build the table from real test failures
|
|
224
|
-
5. **One excellent example** - Beats five mediocre ones
|
|
225
|
-
6. **Verify before deploying** - Run the validation checklist
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Autopilot - Iteration {{ITERATION}} of {{MAX_ITERATIONS}}
|
|
2
|
-
|
|
3
|
-
## Source of Truth (PRD)
|
|
4
|
-
|
|
5
|
-
{{PRD_CONTENT}}
|
|
6
|
-
|
|
7
|
-
## Current Progress
|
|
8
|
-
|
|
9
|
-
{{PROGRESS_CONTENT}}
|
|
10
|
-
|
|
11
|
-
## Instructions
|
|
12
|
-
|
|
13
|
-
1. Read the PRD above carefully - it is your source of truth
|
|
14
|
-
2. Read the progress above to understand what has been completed
|
|
15
|
-
3. If the Tasks table is empty, extract all implementable tasks from the PRD and update the Tasks table in `{{PROGRESS_FILE}}` with proper entries (Status: PENDING)
|
|
16
|
-
4. Find the NEXT task with Status = PENDING
|
|
17
|
-
5. If no PENDING tasks remain, update Status to COMPLETE and add `{{COMPLETION_SIGNAL}}` as the last line of `{{PROGRESS_FILE}}`, then exit
|
|
18
|
-
6. Execute that ONE task completely:
|
|
19
|
-
- Follow existing codebase patterns and conventions
|
|
20
|
-
- Write clean, tested code following SOLID principles
|
|
21
|
-
- Run tests if a test command exists
|
|
22
|
-
- Run type checking if applicable
|
|
23
|
-
7. Update `{{PROGRESS_FILE}}`:
|
|
24
|
-
- Mark the task as DONE (or BLOCKED if it failed after your best effort)
|
|
25
|
-
- Increment "Current iteration" to {{ITERATION}}
|
|
26
|
-
- Add an entry to the Iteration Log with: task number, result, files changed, notes
|
|
27
|
-
8. Git commit your work:
|
|
28
|
-
```bash
|
|
29
|
-
git add -A && git commit -m "autopilot: iteration {{ITERATION}} - [brief task description]"
|
|
30
|
-
```
|
|
31
|
-
9. Exit when done with this ONE task
|
|
32
|
-
|
|
33
|
-
## Constraints
|
|
34
|
-
|
|
35
|
-
- Work on exactly ONE task per iteration
|
|
36
|
-
- Do NOT skip ahead or combine tasks
|
|
37
|
-
- If a task fails after 2 attempts, mark it BLOCKED with error notes and move to the next PENDING task
|
|
38
|
-
- Do NOT modify the PRD file
|
|
39
|
-
- Always update `{{PROGRESS_FILE}}` before exiting
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# Autopilot - DevContainer Setup
|
|
2
|
-
|
|
3
|
-
Run Autopilot safely inside a container with full autonomy.
|
|
4
|
-
|
|
5
|
-
## Why DevContainer?
|
|
6
|
-
|
|
7
|
-
Running `claude --dangerously-skip-permissions` gives Claude
|
|
8
|
-
unrestricted access to your system. A DevContainer isolates
|
|
9
|
-
execution so Claude cannot affect your host machine.
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
### 1. Copy DevContainer Config
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
mkdir -p .devcontainer
|
|
17
|
-
cp templates/autopilot/devcontainer.json .devcontainer/devcontainer.json
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
### 2. Set API Key
|
|
21
|
-
|
|
22
|
-
Ensure `ANTHROPIC_API_KEY` is set in your host environment:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Linux/macOS
|
|
26
|
-
export ANTHROPIC_API_KEY="your-key-here"
|
|
27
|
-
|
|
28
|
-
# Windows (PowerShell)
|
|
29
|
-
$env:ANTHROPIC_API_KEY = "your-key-here"
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The DevContainer automatically forwards this env var.
|
|
33
|
-
|
|
34
|
-
### 3. Open in Container
|
|
35
|
-
|
|
36
|
-
In VS Code:
|
|
37
|
-
1. Install the **Dev Containers** extension (ms-vscode-remote)
|
|
38
|
-
2. Open the project folder
|
|
39
|
-
3. Click the bottom-left corner → **Reopen in Container**
|
|
40
|
-
4. Wait for container build to complete
|
|
41
|
-
|
|
42
|
-
### 4. Create a PRD
|
|
43
|
-
|
|
44
|
-
Inside the container terminal:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
claude
|
|
48
|
-
# Then: /prd "Your feature description"
|
|
49
|
-
# Exit claude after PRD is generated
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### 5. Run Autopilot
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
./scripts/autopilot.sh docs/PRD-your-feature.md \
|
|
56
|
-
--max-iterations=10 \
|
|
57
|
-
--model=claude-opus-4-6 \
|
|
58
|
-
--dangerously-skip-permissions
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Leave it running. Come back later to check results.
|
|
62
|
-
|
|
63
|
-
## Options Reference
|
|
64
|
-
|
|
65
|
-
| Option | Default | Description |
|
|
66
|
-
|--------|---------|-------------|
|
|
67
|
-
| `--max-iterations=N` | 10 | Safety limit |
|
|
68
|
-
| `--model=MODEL` | claude-sonnet-4-6 | Claude model |
|
|
69
|
-
| `--completion-signal=STR` | AUTOPILOT_COMPLETE | Stop signal |
|
|
70
|
-
| `--progress-file=PATH` | .claude/autopilot/progress.md | State file |
|
|
71
|
-
| `--dangerously-skip-permissions` | off | Auto-approve |
|
|
72
|
-
|
|
73
|
-
## Checking Progress
|
|
74
|
-
|
|
75
|
-
From another terminal (or after the loop finishes):
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
cat .claude/autopilot/progress.md
|
|
79
|
-
git log --oneline
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Resuming After Interruption
|
|
83
|
-
|
|
84
|
-
Just run the same command again. The script reads
|
|
85
|
-
`progress.md` and continues from where it stopped.
|
|
86
|
-
|
|
87
|
-
## Rollback
|
|
88
|
-
|
|
89
|
-
If something went wrong:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# List restore points
|
|
93
|
-
git tag -l "restore-point/ralf-*"
|
|
94
|
-
|
|
95
|
-
# Rollback to the start
|
|
96
|
-
git reset --hard restore-point/ralf-[timestamp]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Security Notes
|
|
100
|
-
|
|
101
|
-
- The container is isolated from your host filesystem
|
|
102
|
-
- `--dangerously-skip-permissions` only affects the container
|
|
103
|
-
- Claude cannot access host files, network, or processes
|
|
104
|
-
- Always review generated code before merging to main
|
|
105
|
-
- Use a feature branch for Autopilot work
|
|
106
|
-
|
|
107
|
-
## Troubleshooting
|
|
108
|
-
|
|
109
|
-
**Claude CLI not found:**
|
|
110
|
-
The container runs `npm install` on creation.
|
|
111
|
-
If Claude is missing, run `npm install -g @anthropic-ai/claude-code`.
|
|
112
|
-
|
|
113
|
-
**API key not forwarded:**
|
|
114
|
-
Check that `ANTHROPIC_API_KEY` is set on your host
|
|
115
|
-
before opening the container.
|
|
116
|
-
|
|
117
|
-
**Permission denied on script:**
|
|
118
|
-
Run `chmod +x scripts/autopilot.sh`.
|
|
119
|
-
|
|
120
|
-
**Container build fails:**
|
|
121
|
-
Ensure Docker Desktop is running and has enough resources
|
|
122
|
-
(at least 4GB RAM allocated).
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Autopilot - Specialist Agent",
|
|
3
|
-
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
|
|
4
|
-
"features": {
|
|
5
|
-
"ghcr.io/devcontainers/features/git:1": {},
|
|
6
|
-
"ghcr.io/devcontainers/features/github-cli:1": {}
|
|
7
|
-
},
|
|
8
|
-
"postCreateCommand": "npm install && chmod +x scripts/autopilot.sh",
|
|
9
|
-
"customizations": {
|
|
10
|
-
"vscode": {
|
|
11
|
-
"extensions": [
|
|
12
|
-
"anthropics.claude-code"
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"remoteEnv": {
|
|
17
|
-
"ANTHROPIC_API_KEY": "${localEnv:ANTHROPIC_API_KEY}"
|
|
18
|
-
},
|
|
19
|
-
"mounts": [],
|
|
20
|
-
"runArgs": ["--init"]
|
|
21
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
# E-Commerce Template
|
|
2
|
-
|
|
3
|
-
Quick start template for e-commerce applications.
|
|
4
|
-
|
|
5
|
-
## Recommended Agents
|
|
6
|
-
|
|
7
|
-
| Agent | Purpose |
|
|
8
|
-
|-------|---------|
|
|
9
|
-
| `@starter` | Scaffold the project |
|
|
10
|
-
| `@builder` | Create modules |
|
|
11
|
-
| `@finance` | Payment integration |
|
|
12
|
-
| `@security` | Auth & checkout security |
|
|
13
|
-
| `@data` | Product catalog & orders DB |
|
|
14
|
-
| `@perf` | Optimize for conversion |
|
|
15
|
-
|
|
16
|
-
## Core Modules
|
|
17
|
-
|
|
18
|
-
```text
|
|
19
|
-
src/
|
|
20
|
-
├── modules/
|
|
21
|
-
│ ├── products/ # Product catalog
|
|
22
|
-
│ │ ├── types.ts
|
|
23
|
-
│ │ ├── service.ts
|
|
24
|
-
│ │ ├── adapter.ts
|
|
25
|
-
│ │ └── components/
|
|
26
|
-
│ │ ├── ProductCard.tsx
|
|
27
|
-
│ │ ├── ProductGrid.tsx
|
|
28
|
-
│ │ └── ProductDetail.tsx
|
|
29
|
-
│ │
|
|
30
|
-
│ ├── cart/ # Shopping cart
|
|
31
|
-
│ │ ├── types.ts
|
|
32
|
-
│ │ ├── store.ts # Cart state (Zustand/Pinia)
|
|
33
|
-
│ │ └── components/
|
|
34
|
-
│ │ ├── CartDrawer.tsx
|
|
35
|
-
│ │ ├── CartItem.tsx
|
|
36
|
-
│ │ └── CartSummary.tsx
|
|
37
|
-
│ │
|
|
38
|
-
│ ├── checkout/ # Checkout flow
|
|
39
|
-
│ │ ├── types.ts
|
|
40
|
-
│ │ ├── service.ts
|
|
41
|
-
│ │ └── components/
|
|
42
|
-
│ │ ├── CheckoutForm.tsx
|
|
43
|
-
│ │ ├── AddressForm.tsx
|
|
44
|
-
│ │ ├── PaymentForm.tsx
|
|
45
|
-
│ │ └── OrderConfirmation.tsx
|
|
46
|
-
│ │
|
|
47
|
-
│ ├── orders/ # Order management
|
|
48
|
-
│ │ ├── types.ts
|
|
49
|
-
│ │ ├── service.ts
|
|
50
|
-
│ │ └── components/
|
|
51
|
-
│ │ ├── OrderList.tsx
|
|
52
|
-
│ │ └── OrderDetail.tsx
|
|
53
|
-
│ │
|
|
54
|
-
│ └── auth/ # User authentication
|
|
55
|
-
│ ├── types.ts
|
|
56
|
-
│ ├── service.ts
|
|
57
|
-
│ └── components/
|
|
58
|
-
│ ├── LoginForm.tsx
|
|
59
|
-
│ └── RegisterForm.tsx
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Key Features
|
|
63
|
-
|
|
64
|
-
### Product Catalog
|
|
65
|
-
- Category navigation
|
|
66
|
-
- Search with filters
|
|
67
|
-
- Product variants (size, color)
|
|
68
|
-
- Inventory tracking
|
|
69
|
-
- Image galleries
|
|
70
|
-
|
|
71
|
-
### Shopping Cart
|
|
72
|
-
- Persistent cart (localStorage + server sync)
|
|
73
|
-
- Quantity updates
|
|
74
|
-
- Promo code support
|
|
75
|
-
- Shipping calculator
|
|
76
|
-
|
|
77
|
-
### Checkout
|
|
78
|
-
- Guest checkout option
|
|
79
|
-
- Address validation
|
|
80
|
-
- Multiple payment methods
|
|
81
|
-
- Order confirmation email
|
|
82
|
-
|
|
83
|
-
### User Account
|
|
84
|
-
- Order history
|
|
85
|
-
- Saved addresses
|
|
86
|
-
- Wishlist
|
|
87
|
-
- Profile management
|
|
88
|
-
|
|
89
|
-
## Database Schema
|
|
90
|
-
|
|
91
|
-
```sql
|
|
92
|
-
-- Products
|
|
93
|
-
products (id, name, slug, description, price, compare_price, images, category_id)
|
|
94
|
-
product_variants (id, product_id, sku, price, inventory, attributes)
|
|
95
|
-
categories (id, name, slug, parent_id)
|
|
96
|
-
|
|
97
|
-
-- Orders
|
|
98
|
-
orders (id, user_id, status, subtotal, tax, shipping, total, shipping_address)
|
|
99
|
-
order_items (id, order_id, product_id, variant_id, quantity, price)
|
|
100
|
-
|
|
101
|
-
-- Users
|
|
102
|
-
users (id, email, password_hash, name, created_at)
|
|
103
|
-
addresses (id, user_id, type, street, city, state, zip, country)
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Quick Start
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
# Create project
|
|
110
|
-
"Use @starter to create an e-commerce app with Next.js + PostgreSQL"
|
|
111
|
-
|
|
112
|
-
# Build product catalog
|
|
113
|
-
"Use @builder to create products module with CRUD"
|
|
114
|
-
|
|
115
|
-
# Add payment
|
|
116
|
-
"Use @finance to integrate Stripe checkout"
|
|
117
|
-
|
|
118
|
-
# Security review
|
|
119
|
-
"Use @security to review checkout flow"
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## Performance Targets
|
|
123
|
-
|
|
124
|
-
- Product page: < 1.5s LCP
|
|
125
|
-
- Add to cart: < 200ms response
|
|
126
|
-
- Checkout: < 3s total flow
|
|
127
|
-
- Search: < 500ms results
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
# Fintech Template
|
|
2
|
-
|
|
3
|
-
Quick start template for financial technology applications.
|
|
4
|
-
|
|
5
|
-
## Recommended Agents
|
|
6
|
-
|
|
7
|
-
| Agent | Purpose |
|
|
8
|
-
|-------|---------|
|
|
9
|
-
| `@starter` | Scaffold the project |
|
|
10
|
-
| `@security` | Compliance & encryption |
|
|
11
|
-
| `@finance` | Financial operations |
|
|
12
|
-
| `@legal` | Regulatory compliance |
|
|
13
|
-
| `@data` | Transaction database |
|
|
14
|
-
| `@tester` | Financial accuracy tests |
|
|
15
|
-
|
|
16
|
-
## Core Modules
|
|
17
|
-
|
|
18
|
-
```text
|
|
19
|
-
src/
|
|
20
|
-
├── modules/
|
|
21
|
-
│ ├── accounts/ # Account management
|
|
22
|
-
│ │ ├── types.ts
|
|
23
|
-
│ │ ├── service.ts
|
|
24
|
-
│ │ └── components/
|
|
25
|
-
│ │ ├── AccountList.tsx
|
|
26
|
-
│ │ ├── AccountDetail.tsx
|
|
27
|
-
│ │ └── AccountSettings.tsx
|
|
28
|
-
│ │
|
|
29
|
-
│ ├── transactions/ # Transaction processing
|
|
30
|
-
│ │ ├── types.ts
|
|
31
|
-
│ │ ├── service.ts
|
|
32
|
-
│ │ ├── validator.ts
|
|
33
|
-
│ │ └── components/
|
|
34
|
-
│ │ ├── TransactionList.tsx
|
|
35
|
-
│ │ ├── TransactionDetail.tsx
|
|
36
|
-
│ │ └── TransactionFilters.tsx
|
|
37
|
-
│ │
|
|
38
|
-
│ ├── transfers/ # Money transfers
|
|
39
|
-
│ │ ├── types.ts
|
|
40
|
-
│ │ ├── service.ts
|
|
41
|
-
│ │ └── components/
|
|
42
|
-
│ │ ├── TransferForm.tsx
|
|
43
|
-
│ │ ├── RecipientSelector.tsx
|
|
44
|
-
│ │ └── TransferConfirmation.tsx
|
|
45
|
-
│ │
|
|
46
|
-
│ ├── cards/ # Card management
|
|
47
|
-
│ │ ├── types.ts
|
|
48
|
-
│ │ ├── service.ts
|
|
49
|
-
│ │ └── components/
|
|
50
|
-
│ │ ├── CardList.tsx
|
|
51
|
-
│ │ ├── VirtualCard.tsx
|
|
52
|
-
│ │ └── CardControls.tsx
|
|
53
|
-
│ │
|
|
54
|
-
│ ├── compliance/ # KYC/AML
|
|
55
|
-
│ │ ├── types.ts
|
|
56
|
-
│ │ ├── service.ts
|
|
57
|
-
│ │ └── components/
|
|
58
|
-
│ │ ├── KYCForm.tsx
|
|
59
|
-
│ │ ├── DocumentUpload.tsx
|
|
60
|
-
│ │ └── VerificationStatus.tsx
|
|
61
|
-
│ │
|
|
62
|
-
│ └── reports/ # Financial reports
|
|
63
|
-
│ ├── types.ts
|
|
64
|
-
│ ├── service.ts
|
|
65
|
-
│ └── components/
|
|
66
|
-
│ ├── StatementGenerator.tsx
|
|
67
|
-
│ ├── TaxReport.tsx
|
|
68
|
-
│ └── SpendingAnalytics.tsx
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Key Features
|
|
72
|
-
|
|
73
|
-
### Account Management
|
|
74
|
-
- Multi-currency support
|
|
75
|
-
- Account types (checking, savings, investment)
|
|
76
|
-
- Balance tracking
|
|
77
|
-
- Interest calculation
|
|
78
|
-
|
|
79
|
-
### Transaction Processing
|
|
80
|
-
- Real-time transactions
|
|
81
|
-
- Double-entry bookkeeping
|
|
82
|
-
- Transaction categorization
|
|
83
|
-
- Fraud detection triggers
|
|
84
|
-
|
|
85
|
-
### Compliance
|
|
86
|
-
- KYC verification
|
|
87
|
-
- AML screening
|
|
88
|
-
- Transaction limits
|
|
89
|
-
- Audit logging
|
|
90
|
-
|
|
91
|
-
### Security
|
|
92
|
-
- End-to-end encryption
|
|
93
|
-
- PCI DSS compliance
|
|
94
|
-
- 2FA required
|
|
95
|
-
- Session management
|
|
96
|
-
|
|
97
|
-
## Database Schema
|
|
98
|
-
|
|
99
|
-
```sql
|
|
100
|
-
-- Accounts
|
|
101
|
-
accounts (id, user_id, type, currency, balance, status, created_at)
|
|
102
|
-
account_limits (account_id, daily_limit, monthly_limit)
|
|
103
|
-
|
|
104
|
-
-- Transactions (immutable ledger)
|
|
105
|
-
transactions (
|
|
106
|
-
id, account_id, type, amount, currency,
|
|
107
|
-
balance_before, balance_after,
|
|
108
|
-
reference, metadata, created_at
|
|
109
|
-
)
|
|
110
|
-
transaction_categories (transaction_id, category)
|
|
111
|
-
|
|
112
|
-
-- Transfers
|
|
113
|
-
transfers (id, from_account, to_account, amount, currency, status, created_at)
|
|
114
|
-
|
|
115
|
-
-- Compliance
|
|
116
|
-
kyc_records (id, user_id, level, status, verified_at, documents)
|
|
117
|
-
aml_checks (id, transaction_id, risk_score, flags, reviewed_at)
|
|
118
|
-
|
|
119
|
-
-- Audit
|
|
120
|
-
audit_logs (id, user_id, action, resource, details, ip_address, created_at)
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Compliance Requirements
|
|
124
|
-
|
|
125
|
-
| Requirement | Implementation |
|
|
126
|
-
|-------------|----------------|
|
|
127
|
-
| PCI DSS | Tokenize card data, secure transmission |
|
|
128
|
-
| KYC | Identity verification, document checks |
|
|
129
|
-
| AML | Transaction monitoring, suspicious activity reports |
|
|
130
|
-
| GDPR/LGPD | Data encryption, deletion rights |
|
|
131
|
-
| SOX | Audit trails, access controls |
|
|
132
|
-
|
|
133
|
-
## Quick Start
|
|
134
|
-
|
|
135
|
-
```bash
|
|
136
|
-
# Create project
|
|
137
|
-
"Use @starter to create a fintech app with Next.js + PostgreSQL"
|
|
138
|
-
|
|
139
|
-
# Security first
|
|
140
|
-
"Use @security to implement secure authentication with 2FA"
|
|
141
|
-
|
|
142
|
-
# Compliance
|
|
143
|
-
"Use @legal to review for LGPD/GDPR compliance"
|
|
144
|
-
|
|
145
|
-
# Financial operations
|
|
146
|
-
"Use @finance to implement transaction processing"
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
## Testing Requirements
|
|
150
|
-
|
|
151
|
-
- Unit tests for all calculations
|
|
152
|
-
- Integration tests for transactions
|
|
153
|
-
- Compliance validation tests
|
|
154
|
-
- Penetration testing (external)
|
|
155
|
-
|
|
156
|
-
## Performance Targets
|
|
157
|
-
|
|
158
|
-
- Transaction processing: < 100ms
|
|
159
|
-
- Balance query: < 50ms
|
|
160
|
-
- Report generation: < 30s
|
|
161
|
-
- 99.99% uptime for transactions
|