flyee 0.1.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.
Files changed (302) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +134 -0
  3. package/bin/install.js +357 -0
  4. package/bridge/bridge.py +1780 -0
  5. package/bridge/local_tracker.py +722 -0
  6. package/core/agents/backend-specialist.md +266 -0
  7. package/core/agents/code-archaeologist.md +106 -0
  8. package/core/agents/database-architect.md +226 -0
  9. package/core/agents/debugger.md +225 -0
  10. package/core/agents/devops-engineer.md +323 -0
  11. package/core/agents/documentation-writer.md +104 -0
  12. package/core/agents/explorer-agent.md +73 -0
  13. package/core/agents/frontend-specialist.md +743 -0
  14. package/core/agents/game-developer.md +162 -0
  15. package/core/agents/mobile-developer.md +377 -0
  16. package/core/agents/orchestrator.md +416 -0
  17. package/core/agents/penetration-tester.md +188 -0
  18. package/core/agents/performance-optimizer.md +187 -0
  19. package/core/agents/product-manager.md +112 -0
  20. package/core/agents/product-owner.md +95 -0
  21. package/core/agents/project-planner.md +470 -0
  22. package/core/agents/qa-automation-engineer.md +103 -0
  23. package/core/agents/security-auditor.md +170 -0
  24. package/core/agents/seo-specialist.md +111 -0
  25. package/core/agents/stitch-designer.md +190 -0
  26. package/core/agents/tdd-reviewer.md +282 -0
  27. package/core/agents/test-engineer.md +158 -0
  28. package/core/scripts/auto_preview.py +148 -0
  29. package/core/scripts/checklist.py +243 -0
  30. package/core/scripts/cost_report.py +149 -0
  31. package/core/scripts/doc-sync-check.py +461 -0
  32. package/core/scripts/parse_user_stories.py +79 -0
  33. package/core/scripts/prepare_notion_updates.py +172 -0
  34. package/core/scripts/print_create_payload.py +18 -0
  35. package/core/scripts/session_manager.py +120 -0
  36. package/core/scripts/task_complete.py +127 -0
  37. package/core/scripts/verify_all.py +327 -0
  38. package/core/skills/analytics-strategy/SKILL.md +128 -0
  39. package/core/skills/api-patterns/SKILL.md +81 -0
  40. package/core/skills/api-patterns/api-style.md +42 -0
  41. package/core/skills/api-patterns/auth.md +24 -0
  42. package/core/skills/api-patterns/documentation.md +26 -0
  43. package/core/skills/api-patterns/graphql.md +41 -0
  44. package/core/skills/api-patterns/rate-limiting.md +31 -0
  45. package/core/skills/api-patterns/response.md +37 -0
  46. package/core/skills/api-patterns/rest.md +40 -0
  47. package/core/skills/api-patterns/scripts/api_validator.py +211 -0
  48. package/core/skills/api-patterns/security-testing.md +122 -0
  49. package/core/skills/api-patterns/trpc.md +41 -0
  50. package/core/skills/api-patterns/versioning.md +22 -0
  51. package/core/skills/app-builder/SKILL.md +75 -0
  52. package/core/skills/app-builder/agent-coordination.md +71 -0
  53. package/core/skills/app-builder/feature-building.md +53 -0
  54. package/core/skills/app-builder/project-detection.md +34 -0
  55. package/core/skills/app-builder/scaffolding.md +118 -0
  56. package/core/skills/app-builder/tech-stack.md +40 -0
  57. package/core/skills/app-builder/templates/SKILL.md +39 -0
  58. package/core/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  59. package/core/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  60. package/core/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  61. package/core/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  62. package/core/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  63. package/core/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  64. package/core/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  65. package/core/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
  66. package/core/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
  67. package/core/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
  68. package/core/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
  69. package/core/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  70. package/core/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
  71. package/core/skills/architecture/SKILL.md +55 -0
  72. package/core/skills/architecture/context-discovery.md +43 -0
  73. package/core/skills/architecture/examples.md +94 -0
  74. package/core/skills/architecture/pattern-selection.md +68 -0
  75. package/core/skills/architecture/patterns-reference.md +50 -0
  76. package/core/skills/architecture/trade-off-analysis.md +77 -0
  77. package/core/skills/atomic-design/SKILL.md +282 -0
  78. package/core/skills/atomic-design/references/classification-guide.md +132 -0
  79. package/core/skills/atomic-design/references/quality-checklist.md +60 -0
  80. package/core/skills/atomic-design/references/stacks/stack-blade.md +254 -0
  81. package/core/skills/atomic-design/references/stacks/stack-nextjs.md +272 -0
  82. package/core/skills/atomic-design/references/stacks/stack-react.md +239 -0
  83. package/core/skills/atomic-design/references/stacks/stack-vue.md +224 -0
  84. package/core/skills/bash-linux/SKILL.md +199 -0
  85. package/core/skills/behavioral-modes/SKILL.md +242 -0
  86. package/core/skills/brainstorming/SKILL.md +163 -0
  87. package/core/skills/brainstorming/dynamic-questioning.md +373 -0
  88. package/core/skills/checkpointing-patterns/SKILL.md +163 -0
  89. package/core/skills/clean-code/SKILL.md +201 -0
  90. package/core/skills/code-review-checklist/SKILL.md +109 -0
  91. package/core/skills/code-truth-validation/SKILL.md +149 -0
  92. package/core/skills/component-library-discovery/SKILL.md +154 -0
  93. package/core/skills/content-strategy/SKILL.md +222 -0
  94. package/core/skills/context-budget/SKILL.md +155 -0
  95. package/core/skills/context-gathering-patterns/SKILL.md +278 -0
  96. package/core/skills/cost-tracking/SKILL.md +206 -0
  97. package/core/skills/database-design/SKILL.md +52 -0
  98. package/core/skills/database-design/database-selection.md +43 -0
  99. package/core/skills/database-design/indexing.md +39 -0
  100. package/core/skills/database-design/migrations.md +48 -0
  101. package/core/skills/database-design/optimization.md +36 -0
  102. package/core/skills/database-design/orm-selection.md +30 -0
  103. package/core/skills/database-design/schema-design.md +56 -0
  104. package/core/skills/database-design/scripts/schema_validator.py +172 -0
  105. package/core/skills/deployment-procedures/SKILL.md +295 -0
  106. package/core/skills/design-md/README.md +34 -0
  107. package/core/skills/design-md/SKILL.md +172 -0
  108. package/core/skills/design-md/examples/DESIGN.md +154 -0
  109. package/core/skills/design-system-enforcement/SKILL.md +339 -0
  110. package/core/skills/doc.md +177 -0
  111. package/core/skills/document-registry/SKILL.md +130 -0
  112. package/core/skills/documentation-publishing/SKILL.md +174 -0
  113. package/core/skills/documentation-templates/SKILL.md +194 -0
  114. package/core/skills/enhance-prompt/README.md +34 -0
  115. package/core/skills/enhance-prompt/SKILL.md +204 -0
  116. package/core/skills/enhance-prompt/references/KEYWORDS.md +114 -0
  117. package/core/skills/frontend-design/SKILL.md +430 -0
  118. package/core/skills/frontend-design/animation-guide.md +331 -0
  119. package/core/skills/frontend-design/color-system.md +311 -0
  120. package/core/skills/frontend-design/decision-trees.md +418 -0
  121. package/core/skills/frontend-design/motion-graphics.md +306 -0
  122. package/core/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  123. package/core/skills/frontend-design/scripts/ux_audit.py +722 -0
  124. package/core/skills/frontend-design/typography-system.md +345 -0
  125. package/core/skills/frontend-design/ux-psychology.md +541 -0
  126. package/core/skills/frontend-design/visual-effects.md +383 -0
  127. package/core/skills/game-development/2d-games/SKILL.md +119 -0
  128. package/core/skills/game-development/3d-games/SKILL.md +135 -0
  129. package/core/skills/game-development/SKILL.md +167 -0
  130. package/core/skills/game-development/game-art/SKILL.md +185 -0
  131. package/core/skills/game-development/game-audio/SKILL.md +190 -0
  132. package/core/skills/game-development/game-design/SKILL.md +129 -0
  133. package/core/skills/game-development/mobile-games/SKILL.md +108 -0
  134. package/core/skills/game-development/multiplayer/SKILL.md +132 -0
  135. package/core/skills/game-development/pc-games/SKILL.md +144 -0
  136. package/core/skills/game-development/vr-ar/SKILL.md +123 -0
  137. package/core/skills/game-development/web-games/SKILL.md +150 -0
  138. package/core/skills/geo-fundamentals/SKILL.md +156 -0
  139. package/core/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  140. package/core/skills/git-workflow/SKILL.md +263 -0
  141. package/core/skills/history-check-patterns/SKILL.md +125 -0
  142. package/core/skills/i18n-localization/SKILL.md +154 -0
  143. package/core/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  144. package/core/skills/integration-completeness/SKILL.md +219 -0
  145. package/core/skills/intelligent-routing/SKILL.md +370 -0
  146. package/core/skills/lint-and-validate/SKILL.md +45 -0
  147. package/core/skills/lint-and-validate/scripts/lint_runner.py +173 -0
  148. package/core/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  149. package/core/skills/local-verification/SKILL.md +195 -0
  150. package/core/skills/mcp-builder/SKILL.md +176 -0
  151. package/core/skills/mobile-design/SKILL.md +394 -0
  152. package/core/skills/mobile-design/decision-trees.md +516 -0
  153. package/core/skills/mobile-design/mobile-backend.md +491 -0
  154. package/core/skills/mobile-design/mobile-color-system.md +420 -0
  155. package/core/skills/mobile-design/mobile-debugging.md +122 -0
  156. package/core/skills/mobile-design/mobile-design-thinking.md +357 -0
  157. package/core/skills/mobile-design/mobile-navigation.md +458 -0
  158. package/core/skills/mobile-design/mobile-performance.md +767 -0
  159. package/core/skills/mobile-design/mobile-testing.md +356 -0
  160. package/core/skills/mobile-design/mobile-typography.md +433 -0
  161. package/core/skills/mobile-design/platform-android.md +666 -0
  162. package/core/skills/mobile-design/platform-ios.md +561 -0
  163. package/core/skills/mobile-design/scripts/mobile_audit.py +670 -0
  164. package/core/skills/mobile-design/touch-psychology.md +537 -0
  165. package/core/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
  166. package/core/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  167. package/core/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  168. package/core/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  169. package/core/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  170. package/core/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  171. package/core/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  172. package/core/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  173. package/core/skills/nextjs-react-expert/SKILL.md +267 -0
  174. package/core/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  175. package/core/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  176. package/core/skills/nodejs-best-practices/SKILL.md +333 -0
  177. package/core/skills/notion-task-patterns/SKILL.md +2529 -0
  178. package/core/skills/page-specifications/SKILL.md +367 -0
  179. package/core/skills/parallel-agents/SKILL.md +175 -0
  180. package/core/skills/performance-profiling/SKILL.md +143 -0
  181. package/core/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  182. package/core/skills/plan-writing/SKILL.md +190 -0
  183. package/core/skills/powershell-windows/SKILL.md +167 -0
  184. package/core/skills/project-foundation/SKILL.md +117 -0
  185. package/core/skills/project-setup/SKILL.md +141 -0
  186. package/core/skills/project-tracking-patterns/SKILL.md +357 -0
  187. package/core/skills/project-type-discovery/SKILL.md +239 -0
  188. package/core/skills/python-patterns/SKILL.md +441 -0
  189. package/core/skills/qa-test-generation/SKILL.md +156 -0
  190. package/core/skills/react-components/README.md +36 -0
  191. package/core/skills/react-components/SKILL.md +47 -0
  192. package/core/skills/react-components/examples/gold-standard-card.tsx +80 -0
  193. package/core/skills/react-components/package-lock.json +231 -0
  194. package/core/skills/react-components/package.json +16 -0
  195. package/core/skills/react-components/resources/architecture-checklist.md +15 -0
  196. package/core/skills/react-components/resources/component-template.tsx +37 -0
  197. package/core/skills/react-components/resources/stitch-api-reference.md +14 -0
  198. package/core/skills/react-components/resources/style-guide.json +27 -0
  199. package/core/skills/react-components/scripts/fetch-stitch.sh +30 -0
  200. package/core/skills/react-components/scripts/validate.js +68 -0
  201. package/core/skills/red-team-tactics/SKILL.md +199 -0
  202. package/core/skills/remotion/README.md +105 -0
  203. package/core/skills/remotion/SKILL.md +393 -0
  204. package/core/skills/remotion/examples/WalkthroughComposition.tsx +78 -0
  205. package/core/skills/remotion/examples/screens.json +56 -0
  206. package/core/skills/remotion/resources/composition-checklist.md +124 -0
  207. package/core/skills/remotion/resources/screen-slide-template.tsx +123 -0
  208. package/core/skills/remotion/scripts/download-stitch-asset.sh +38 -0
  209. package/core/skills/seo-fundamentals/SKILL.md +129 -0
  210. package/core/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  211. package/core/skills/server-management/SKILL.md +161 -0
  212. package/core/skills/session-resilience/SKILL.md +199 -0
  213. package/core/skills/shadcn-ui/README.md +248 -0
  214. package/core/skills/shadcn-ui/SKILL.md +326 -0
  215. package/core/skills/shadcn-ui/examples/auth-layout.tsx +177 -0
  216. package/core/skills/shadcn-ui/examples/data-table.tsx +313 -0
  217. package/core/skills/shadcn-ui/examples/form-pattern.tsx +177 -0
  218. package/core/skills/shadcn-ui/resources/component-catalog.md +481 -0
  219. package/core/skills/shadcn-ui/resources/customization-guide.md +516 -0
  220. package/core/skills/shadcn-ui/resources/migration-guide.md +463 -0
  221. package/core/skills/shadcn-ui/resources/setup-guide.md +412 -0
  222. package/core/skills/shadcn-ui/scripts/verify-setup.sh +134 -0
  223. package/core/skills/state-machine/SKILL.md +264 -0
  224. package/core/skills/stitch-loop/README.md +54 -0
  225. package/core/skills/stitch-loop/SKILL.md +203 -0
  226. package/core/skills/stitch-loop/examples/SITE.md +73 -0
  227. package/core/skills/stitch-loop/examples/next-prompt.md +25 -0
  228. package/core/skills/stitch-loop/resources/baton-schema.md +61 -0
  229. package/core/skills/stitch-loop/resources/site-template.md +104 -0
  230. package/core/skills/systematic-debugging/SKILL.md +109 -0
  231. package/core/skills/tailwind-patterns/SKILL.md +284 -0
  232. package/core/skills/tdd-validation/SKILL.md +243 -0
  233. package/core/skills/tdd-workflow/SKILL.md +284 -0
  234. package/core/skills/testing-patterns/SKILL.md +196 -0
  235. package/core/skills/testing-patterns/scripts/test_runner.py +219 -0
  236. package/core/skills/ui-ux-discovery/SKILL.md +329 -0
  237. package/core/skills/ui-validation/SKILL.md +190 -0
  238. package/core/skills/ui-validation/scripts/ui_antipattern_check.py +317 -0
  239. package/core/skills/verification-gate/SKILL.md +205 -0
  240. package/core/skills/vulnerability-scanner/SKILL.md +276 -0
  241. package/core/skills/vulnerability-scanner/checklists.md +121 -0
  242. package/core/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  243. package/core/skills/web-design-guidelines/SKILL.md +57 -0
  244. package/core/skills/webapp-testing/SKILL.md +187 -0
  245. package/core/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  246. package/core/templates/ARCHITECTURE.template.md +407 -0
  247. package/core/templates/project-resources.example.json +71 -0
  248. package/core/workflows/atomic.md +182 -0
  249. package/core/workflows/brainstorm.md +134 -0
  250. package/core/workflows/check-task.md +242 -0
  251. package/core/workflows/copy-collect.md +306 -0
  252. package/core/workflows/create-agent.md +33 -0
  253. package/core/workflows/create-skill.md +39 -0
  254. package/core/workflows/create-workflow.md +33 -0
  255. package/core/workflows/create.md +92 -0
  256. package/core/workflows/debug.md +186 -0
  257. package/core/workflows/demand.md +443 -0
  258. package/core/workflows/deploy.md +260 -0
  259. package/core/workflows/discovery.md +267 -0
  260. package/core/workflows/document.md +272 -0
  261. package/core/workflows/ds-components.md +296 -0
  262. package/core/workflows/ds-init.md +58 -0
  263. package/core/workflows/ds-refactor.md +245 -0
  264. package/core/workflows/ds-references.md +197 -0
  265. package/core/workflows/ds-styleguide.md +237 -0
  266. package/core/workflows/ds-token-diff.md +103 -0
  267. package/core/workflows/ds-tokens.md +317 -0
  268. package/core/workflows/ds-validate.md +309 -0
  269. package/core/workflows/execute.md +483 -0
  270. package/core/workflows/extract-template.md +278 -0
  271. package/core/workflows/fix-failed-tests.md +160 -0
  272. package/core/workflows/init-project.md +386 -0
  273. package/core/workflows/legacy-project.md +849 -0
  274. package/core/workflows/log.md +97 -0
  275. package/core/workflows/new-project.md +610 -0
  276. package/core/workflows/new-project.md.bak +3292 -0
  277. package/core/workflows/new-task.md +404 -0
  278. package/core/workflows/orchestrate.md +237 -0
  279. package/core/workflows/page-build.md +296 -0
  280. package/core/workflows/plan.md +89 -0
  281. package/core/workflows/prd.md +255 -0
  282. package/core/workflows/preview.md +81 -0
  283. package/core/workflows/review-page.md +304 -0
  284. package/core/workflows/status.md +86 -0
  285. package/core/workflows/stitch.md +226 -0
  286. package/core/workflows/task-complete.md +473 -0
  287. package/core/workflows/task-update.md +163 -0
  288. package/core/workflows/tdd.md +344 -0
  289. package/core/workflows/test.md +251 -0
  290. package/core/workflows/ui-ux-pro-max.md +437 -0
  291. package/core/workflows/ux-mobile-optimize.md +262 -0
  292. package/core/workflows/ux-mobile-validate.md +297 -0
  293. package/engine-files/GEMINI.md +69 -0
  294. package/package.json +47 -0
  295. package/runtime-adapters/antigravity.js +26 -0
  296. package/runtime-adapters/claude.js +57 -0
  297. package/runtime-adapters/codex.js +51 -0
  298. package/runtime-adapters/copilot.js +51 -0
  299. package/runtime-adapters/cursor.js +51 -0
  300. package/runtime-adapters/gemini-cli.js +30 -0
  301. package/runtime-adapters/opencode.js +51 -0
  302. package/runtime-adapters/windsurf.js +51 -0
@@ -0,0 +1,205 @@
1
+ ---
2
+ name: verification-gate
3
+ description: Mechanical verification of task completion. Must-haves (Truths, Artifacts, Key Links), automatic command discovery, verification reports. Absorbed from GSD-2 verification-gate.ts patterns.
4
+ ---
5
+
6
+ # Verification Gate
7
+
8
+ > **Absorbed from:** GSD-2 `verification-gate.ts`
9
+ > **Purpose:** Verify completion with evidence, not vibes. "Does it work?" not "does it look done?"
10
+
11
+ ---
12
+
13
+ ## 🎯 PURPOSE
14
+
15
+ Without mechanical verification, task completion is subjective:
16
+ - "I think it works" → ships broken code
17
+ - "The tests pass" → but which tests? All of them?
18
+ - "Looks good" → but is it connected? Does it render?
19
+
20
+ The Verification Gate makes completion **deterministic**.
21
+
22
+ ---
23
+
24
+ ## 📋 MUST-HAVES
25
+
26
+ Every task plan includes three categories of must-haves:
27
+
28
+ ### 1. Truths — Observable Behaviors
29
+
30
+ Things that **must be true** when the task is done. Testable assertions.
31
+
32
+ ```markdown
33
+ ## Truths
34
+ - [ ] `GET /api/posts` returns 200 with array of posts
35
+ - [ ] `POST /api/posts` with valid body returns 201
36
+ - [ ] BlogCard renders title and excerpt from post data
37
+ - [ ] BlogCard image uses next/image with blur placeholder
38
+ - [ ] Navigation to /blog shows BlogList with at least 1 card
39
+ ```
40
+
41
+ ### 2. Artifacts — Files That Must Exist
42
+
43
+ Files that **must exist with real implementation** (not stubs, not mocks).
44
+
45
+ ```markdown
46
+ ## Artifacts
47
+ - [ ] `src/components/BlogCard.tsx` — min 40 lines, exports BlogCard
48
+ - [ ] `src/components/BlogCard.module.css` — min 15 lines
49
+ - [ ] `src/app/blog/page.tsx` — imports and uses BlogCard
50
+ ```
51
+
52
+ ### 3. Key Links — Wiring Between Artifacts
53
+
54
+ Connections that **must exist** between files. Prevents "island components."
55
+
56
+ ```markdown
57
+ ## Key Links
58
+ - [ ] `BlogList.tsx` → `BlogCard.tsx` via import
59
+ - [ ] `BlogCard.tsx` → `usePosts` hook via import or prop
60
+ - [ ] `usePosts.ts` → `/api/posts` via fetch/SWR
61
+ - [ ] `BlogCard.module.css` → imported in `BlogCard.tsx`
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 🔍 COMMAND DISCOVERY
67
+
68
+ Automatically discover verification commands. Priority order:
69
+
70
+ ### 1. Explicit preference (if configured in .flyee/)
71
+
72
+ ```json
73
+ // .flyee/verification-commands.json
74
+ {
75
+ "commands": ["npm run typecheck", "npm run lint", "npm run test"]
76
+ }
77
+ ```
78
+
79
+ ### 2. Task plan verify field
80
+
81
+ ```markdown
82
+ ## Verify
83
+ npm run typecheck && npm run test -- --run
84
+ ```
85
+
86
+ ### 3. package.json scripts (auto-detected)
87
+
88
+ Probe for these scripts in order:
89
+ 1. `typecheck` → `npm run typecheck`
90
+ 2. `lint` → `npm run lint`
91
+ 3. `test` → `npm run test`
92
+
93
+ ### 4. Fallback: no commands found
94
+
95
+ ```
96
+ ⚠️ No verification commands discovered.
97
+ Add scripts to package.json: typecheck, lint, test
98
+ Or create .flyee/verification-commands.json
99
+ ```
100
+
101
+ ---
102
+
103
+ ## 📊 VERIFICATION REPORT
104
+
105
+ Generated after running the gate:
106
+
107
+ ```markdown
108
+ ## Verification Report — T03 BlogCard
109
+
110
+ ### Command Results
111
+ | # | Command | Exit | Duration | Status |
112
+ |---|---------|------|----------|--------|
113
+ | 1 | `npm run typecheck` | 0 | 3.2s | ✅ PASS |
114
+ | 2 | `npm run lint` | 0 | 1.8s | ✅ PASS |
115
+ | 3 | `npm run test` | 1 | 12.4s | ❌ FAIL |
116
+
117
+ ### Must-Have Results
118
+ | # | Type | Description | Status | Evidence |
119
+ |---|------|-------------|--------|----------|
120
+ | 1 | Truth | GET /api/posts returns 200 | ✅ | curl output |
121
+ | 2 | Truth | BlogCard renders title | ✅ | component renders |
122
+ | 3 | Artifact | BlogCard.tsx exists, 87 lines | ✅ | file exists |
123
+ | 4 | Artifact | BlogCard.module.css, 42 lines | ✅ | file exists |
124
+ | 5 | Key Link | BlogList → BlogCard import | ✅ | grep confirms |
125
+ | 6 | Key Link | BlogCard → usePosts | ❌ | import missing |
126
+
127
+ ### Verdict: ❌ FAIL
128
+ **Blocking issues:**
129
+ - Test suite failed (1 error in BlogCard.test.tsx)
130
+ - Key Link missing: BlogCard not connected to usePosts hook
131
+
132
+ **Action required:** Fix test + wire usePosts before completing task.
133
+ ```
134
+
135
+ ---
136
+
137
+ ## 🔄 GATE INTEGRATION
138
+
139
+ ### In /task-complete workflow
140
+
141
+ ```
142
+ /task-complete
143
+ ├── 1. Existing gates (Anti-Mock, DS check, Flyee Sync)
144
+ ├── 2. 🆕 Must-Haves check (Truths, Artifacts, Key Links)
145
+ ├── 3. 🆕 Verification Gate (typecheck + lint + test)
146
+ ├── 4. 🆕 Write Verification Report
147
+ └── 5. If ALL pass → complete. If ANY fail → BLOCK with details.
148
+ ```
149
+
150
+ ### In autonomous execution (/execute --auto)
151
+
152
+ ```
153
+ Loop:
154
+ Execute task → Run Verification Gate
155
+ ├── PASS → Mark complete, advance to next
156
+ └── FAIL → Attempt fix (max 2 retries)
157
+ ├── Fixed → PASS → advance
158
+ └── Still failing → BLOCK → stop auto-mode
159
+ ```
160
+
161
+ ---
162
+
163
+ ## 🛡️ COMMAND SAFETY
164
+
165
+ Commands are validated before execution:
166
+ - No shell injection patterns (`;`, `|`, `` ` ``, `$(...)`)
167
+ - First token must be a known command prefix (npm, node, python, etc.)
168
+ - Per-command timeout: 120s default
169
+ - stdout/stderr capped at 10KB per command
170
+
171
+ ---
172
+
173
+ ## ⚡ TASK PLAN TEMPLATE WITH MUST-HAVES
174
+
175
+ ```markdown
176
+ # T03 — BlogCard Component
177
+
178
+ ## Objective
179
+ Create the BlogCard component that renders a post preview.
180
+
181
+ ## Steps
182
+ 1. Create BlogCard.tsx with Post prop
183
+ 2. Create BlogCard.module.css with design tokens
184
+ 3. Wire to usePosts hook
185
+ 4. Add hover animation
186
+ 5. Verify must-haves
187
+
188
+ ## Must-Haves
189
+
190
+ ### Truths
191
+ - [ ] BlogCard renders title, excerpt, date, author
192
+ - [ ] BlogCard links to /blog/[slug]
193
+ - [ ] Hover shows scale animation per design tokens
194
+
195
+ ### Artifacts
196
+ - [ ] `src/components/BlogCard.tsx` — min 40 lines
197
+ - [ ] `src/components/BlogCard.module.css` — min 15 lines
198
+
199
+ ### Key Links
200
+ - [ ] `BlogList.tsx` → `BlogCard.tsx` via import
201
+ - [ ] `BlogCard.tsx` → Post type from `types/post.ts`
202
+
203
+ ## Verify
204
+ npm run typecheck && npm run test -- --run BlogCard
205
+ ```
@@ -0,0 +1,276 @@
1
+ ---
2
+ name: vulnerability-scanner
3
+ description: Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, risk prioritization.
4
+ allowed-tools: Read, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Vulnerability Scanner
8
+
9
+ > Think like an attacker, defend like an expert. 2025 threat landscape awareness.
10
+
11
+ ## 🔧 Runtime Scripts
12
+
13
+ **Execute for automated validation:**
14
+
15
+ | Script | Purpose | Usage |
16
+ |--------|---------|-------|
17
+ | `scripts/security_scan.py` | Validate security principles applied | `python scripts/security_scan.py <project_path>` |
18
+
19
+ ## 📋 Reference Files
20
+
21
+ | File | Purpose |
22
+ |------|---------|
23
+ | [checklists.md](checklists.md) | OWASP Top 10, Auth, API, Data protection checklists |
24
+
25
+ ---
26
+
27
+ ## 1. Security Expert Mindset
28
+
29
+ ### Core Principles
30
+
31
+ | Principle | Application |
32
+ |-----------|-------------|
33
+ | **Assume Breach** | Design as if attacker already inside |
34
+ | **Zero Trust** | Never trust, always verify |
35
+ | **Defense in Depth** | Multiple layers, no single point |
36
+ | **Least Privilege** | Minimum required access only |
37
+ | **Fail Secure** | On error, deny access |
38
+
39
+ ### Threat Modeling Questions
40
+
41
+ Before scanning, ask:
42
+ 1. What are we protecting? (Assets)
43
+ 2. Who would attack? (Threat actors)
44
+ 3. How would they attack? (Attack vectors)
45
+ 4. What's the impact? (Business risk)
46
+
47
+ ---
48
+
49
+ ## 2. OWASP Top 10:2025
50
+
51
+ ### Risk Categories
52
+
53
+ | Rank | Category | Think About |
54
+ |------|----------|-------------|
55
+ | **A01** | Broken Access Control | Who can access what? IDOR, SSRF |
56
+ | **A02** | Security Misconfiguration | Defaults, headers, exposed services |
57
+ | **A03** | Software Supply Chain 🆕 | Dependencies, CI/CD, build integrity |
58
+ | **A04** | Cryptographic Failures | Weak crypto, exposed secrets |
59
+ | **A05** | Injection | User input → system commands |
60
+ | **A06** | Insecure Design | Flawed architecture |
61
+ | **A07** | Authentication Failures | Session, credential management |
62
+ | **A08** | Integrity Failures | Unsigned updates, tampered data |
63
+ | **A09** | Logging & Alerting | Blind spots, no monitoring |
64
+ | **A10** | Exceptional Conditions 🆕 | Error handling, fail-open states |
65
+
66
+ ### 2025 Key Changes
67
+
68
+ ```
69
+ 2021 → 2025 Shifts:
70
+ ├── SSRF merged into A01 (Access Control)
71
+ ├── A02 elevated (Cloud/Container configs)
72
+ ├── A03 NEW: Supply Chain (major focus)
73
+ ├── A10 NEW: Exceptional Conditions
74
+ └── Focus shift: Root causes > Symptoms
75
+ ```
76
+
77
+ ---
78
+
79
+ ## 3. Supply Chain Security (A03)
80
+
81
+ ### Attack Surface
82
+
83
+ | Vector | Risk | Question to Ask |
84
+ |--------|------|-----------------|
85
+ | **Dependencies** | Malicious packages | Do we audit new deps? |
86
+ | **Lock files** | Integrity attacks | Are they committed? |
87
+ | **Build pipeline** | CI/CD compromise | Who can modify? |
88
+ | **Registry** | Typosquatting | Verified sources? |
89
+
90
+ ### Defense Principles
91
+
92
+ - Verify package integrity (checksums)
93
+ - Pin versions, audit updates
94
+ - Use private registries for critical deps
95
+ - Sign and verify artifacts
96
+
97
+ ---
98
+
99
+ ## 4. Attack Surface Mapping
100
+
101
+ ### What to Map
102
+
103
+ | Category | Elements |
104
+ |----------|----------|
105
+ | **Entry Points** | APIs, forms, file uploads |
106
+ | **Data Flows** | Input → Process → Output |
107
+ | **Trust Boundaries** | Where auth/authz checked |
108
+ | **Assets** | Secrets, PII, business data |
109
+
110
+ ### Prioritization Matrix
111
+
112
+ ```
113
+ Risk = Likelihood × Impact
114
+
115
+ High Impact + High Likelihood → CRITICAL
116
+ High Impact + Low Likelihood → HIGH
117
+ Low Impact + High Likelihood → MEDIUM
118
+ Low Impact + Low Likelihood → LOW
119
+ ```
120
+
121
+ ---
122
+
123
+ ## 5. Risk Prioritization
124
+
125
+ ### CVSS + Context
126
+
127
+ | Factor | Weight | Question |
128
+ |--------|--------|----------|
129
+ | **CVSS Score** | Base severity | How severe is the vuln? |
130
+ | **EPSS Score** | Exploit likelihood | Is it being exploited? |
131
+ | **Asset Value** | Business context | What's at risk? |
132
+ | **Exposure** | Attack surface | Internet-facing? |
133
+
134
+ ### Prioritization Decision Tree
135
+
136
+ ```
137
+ Is it actively exploited (EPSS >0.5)?
138
+ ├── YES → CRITICAL: Immediate action
139
+ └── NO → Check CVSS
140
+ ├── CVSS ≥9.0 → HIGH
141
+ ├── CVSS 7.0-8.9 → Consider asset value
142
+ └── CVSS <7.0 → Schedule for later
143
+ ```
144
+
145
+ ---
146
+
147
+ ## 6. Exceptional Conditions (A10 - New)
148
+
149
+ ### Fail-Open vs Fail-Closed
150
+
151
+ | Scenario | Fail-Open (BAD) | Fail-Closed (GOOD) |
152
+ |----------|-----------------|---------------------|
153
+ | Auth error | Allow access | Deny access |
154
+ | Parsing fails | Accept input | Reject input |
155
+ | Timeout | Retry forever | Limit + abort |
156
+
157
+ ### What to Check
158
+
159
+ - Exception handlers that catch-all and ignore
160
+ - Missing error handling on security operations
161
+ - Race conditions in auth/authz
162
+ - Resource exhaustion scenarios
163
+
164
+ ---
165
+
166
+ ## 7. Scanning Methodology
167
+
168
+ ### Phase-Based Approach
169
+
170
+ ```
171
+ 1. RECONNAISSANCE
172
+ └── Understand the target
173
+ ├── Technology stack
174
+ ├── Entry points
175
+ └── Data flows
176
+
177
+ 2. DISCOVERY
178
+ └── Identify potential issues
179
+ ├── Configuration review
180
+ ├── Dependency analysis
181
+ └── Code pattern search
182
+
183
+ 3. ANALYSIS
184
+ └── Validate and prioritize
185
+ ├── False positive elimination
186
+ ├── Risk scoring
187
+ └── Attack chain mapping
188
+
189
+ 4. REPORTING
190
+ └── Actionable findings
191
+ ├── Clear reproduction steps
192
+ ├── Business impact
193
+ └── Remediation guidance
194
+ ```
195
+
196
+ ---
197
+
198
+ ## 8. Code Pattern Analysis
199
+
200
+ ### High-Risk Patterns
201
+
202
+ | Pattern | Risk | Look For |
203
+ |---------|------|----------|
204
+ | **String concat in queries** | Injection | `"SELECT * FROM " + user_input` |
205
+ | **Dynamic code execution** | RCE | `eval()`, `exec()`, `Function()` |
206
+ | **Unsafe deserialization** | RCE | `pickle.loads()`, `unserialize()` |
207
+ | **Path manipulation** | Traversal | User input in file paths |
208
+ | **Disabled security** | Various | `verify=False`, `--insecure` |
209
+
210
+ ### Secret Patterns
211
+
212
+ | Type | Indicators |
213
+ |------|-----------|
214
+ | API Keys | `api_key`, `apikey`, high entropy |
215
+ | Tokens | `token`, `bearer`, `jwt` |
216
+ | Credentials | `password`, `secret`, `key` |
217
+ | Cloud | `AWS_`, `AZURE_`, `GCP_` prefixes |
218
+
219
+ ---
220
+
221
+ ## 9. Cloud Security Considerations
222
+
223
+ ### Shared Responsibility
224
+
225
+ | Layer | You Own | Provider Owns |
226
+ |-------|---------|---------------|
227
+ | Data | ✅ | ❌ |
228
+ | Application | ✅ | ❌ |
229
+ | OS/Runtime | Depends | Depends |
230
+ | Infrastructure | ❌ | ✅ |
231
+
232
+ ### Cloud-Specific Checks
233
+
234
+ - IAM: Least privilege applied?
235
+ - Storage: Public buckets?
236
+ - Network: Security groups tightened?
237
+ - Secrets: Using secrets manager?
238
+
239
+ ---
240
+
241
+ ## 10. Anti-Patterns
242
+
243
+ | ❌ Don't | ✅ Do |
244
+ |----------|-------|
245
+ | Scan without understanding | Map attack surface first |
246
+ | Alert on every CVE | Prioritize by exploitability + asset |
247
+ | Ignore false positives | Maintain verified baseline |
248
+ | Fix symptoms only | Address root causes |
249
+ | Scan once before deploy | Continuous scanning |
250
+ | Trust third-party deps blindly | Verify integrity, audit code |
251
+
252
+ ---
253
+
254
+ ## 11. Reporting Principles
255
+
256
+ ### Finding Structure
257
+
258
+ Each finding should answer:
259
+ 1. **What?** - Clear vulnerability description
260
+ 2. **Where?** - Exact location (file, line, endpoint)
261
+ 3. **Why?** - Root cause explanation
262
+ 4. **Impact?** - Business consequence
263
+ 5. **How to fix?** - Specific remediation
264
+
265
+ ### Severity Classification
266
+
267
+ | Severity | Criteria |
268
+ |----------|----------|
269
+ | **Critical** | RCE, auth bypass, mass data exposure |
270
+ | **High** | Data exposure, privilege escalation |
271
+ | **Medium** | Limited scope, requires conditions |
272
+ | **Low** | Informational, best practice |
273
+
274
+ ---
275
+
276
+ > **Remember:** Vulnerability scanning finds issues. Expert thinking prioritizes what matters. Always ask: "What would an attacker do with this?"
@@ -0,0 +1,121 @@
1
+ # Security Checklists
2
+
3
+ > Quick reference checklists for security audits. Use alongside vulnerability-scanner principles.
4
+
5
+ ---
6
+
7
+ ## OWASP Top 10 Audit Checklist
8
+
9
+ ### A01: Broken Access Control
10
+ - [ ] Authorization on all protected routes
11
+ - [ ] Deny by default
12
+ - [ ] Rate limiting implemented
13
+ - [ ] CORS properly configured
14
+
15
+ ### A02: Cryptographic Failures
16
+ - [ ] Passwords hashed (bcrypt/argon2, cost 12+)
17
+ - [ ] Sensitive data encrypted at rest
18
+ - [ ] TLS 1.2+ for all connections
19
+ - [ ] No secrets in code/logs
20
+
21
+ ### A03: Injection
22
+ - [ ] Parameterized queries
23
+ - [ ] Input validation on all user data
24
+ - [ ] Output encoding for XSS
25
+ - [ ] No eval() or dynamic code execution
26
+
27
+ ### A04: Insecure Design
28
+ - [ ] Threat modeling done
29
+ - [ ] Security requirements defined
30
+ - [ ] Business logic validated
31
+
32
+ ### A05: Security Misconfiguration
33
+ - [ ] Unnecessary features disabled
34
+ - [ ] Error messages sanitized
35
+ - [ ] Security headers configured
36
+ - [ ] Default credentials changed
37
+
38
+ ### A06: Vulnerable Components
39
+ - [ ] Dependencies up to date
40
+ - [ ] No known vulnerabilities
41
+ - [ ] Unused dependencies removed
42
+
43
+ ### A07: Authentication Failures
44
+ - [ ] MFA available
45
+ - [ ] Session invalidation on logout
46
+ - [ ] Session timeout implemented
47
+ - [ ] Brute force protection
48
+
49
+ ### A08: Integrity Failures
50
+ - [ ] Dependency integrity verified
51
+ - [ ] CI/CD pipeline secured
52
+ - [ ] Update mechanism secured
53
+
54
+ ### A09: Logging Failures
55
+ - [ ] Security events logged
56
+ - [ ] Logs protected
57
+ - [ ] No sensitive data in logs
58
+ - [ ] Alerting configured
59
+
60
+ ### A10: SSRF
61
+ - [ ] URL validation implemented
62
+ - [ ] Allow-list for external calls
63
+ - [ ] Network segmentation
64
+
65
+ ---
66
+
67
+ ## Authentication Checklist
68
+
69
+ - [ ] Strong password policy
70
+ - [ ] Account lockout
71
+ - [ ] Secure password reset
72
+ - [ ] Session management
73
+ - [ ] Token expiration
74
+ - [ ] Logout invalidation
75
+
76
+ ---
77
+
78
+ ## API Security Checklist
79
+
80
+ - [ ] Authentication required
81
+ - [ ] Authorization per endpoint
82
+ - [ ] Input validation
83
+ - [ ] Rate limiting
84
+ - [ ] Output sanitization
85
+ - [ ] Error handling
86
+
87
+ ---
88
+
89
+ ## Data Protection Checklist
90
+
91
+ - [ ] Encryption at rest
92
+ - [ ] Encryption in transit
93
+ - [ ] Key management
94
+ - [ ] Data minimization
95
+ - [ ] Secure deletion
96
+
97
+ ---
98
+
99
+ ## Security Headers
100
+
101
+ | Header | Purpose |
102
+ |--------|---------|
103
+ | **Content-Security-Policy** | XSS prevention |
104
+ | **X-Content-Type-Options** | MIME sniffing |
105
+ | **X-Frame-Options** | Clickjacking |
106
+ | **Strict-Transport-Security** | Force HTTPS |
107
+ | **Referrer-Policy** | Referrer control |
108
+
109
+ ---
110
+
111
+ ## Quick Audit Commands
112
+
113
+ | Check | What to Look For |
114
+ |-------|------------------|
115
+ | Secrets in code | password, api_key, secret |
116
+ | Dangerous patterns | eval, innerHTML, SQL concat |
117
+ | Dependency issues | npm audit, snyk |
118
+
119
+ ---
120
+
121
+ > **Usage:** Copy relevant checklists into your PLAN.md or security report.