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,173 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Skill: webapp-testing
4
+ Script: playwright_runner.py
5
+ Purpose: Run basic Playwright browser tests
6
+ Usage: python playwright_runner.py <url> [--screenshot]
7
+ Output: JSON with page info, health status, and optional screenshot path
8
+ Note: Requires playwright (pip install playwright && playwright install chromium)
9
+ Screenshots: Saved to system temp directory (auto-cleaned by OS)
10
+ """
11
+ import sys
12
+ import json
13
+ import os
14
+ import tempfile
15
+ from datetime import datetime
16
+
17
+ # Fix Windows console encoding for Unicode output
18
+ try:
19
+ sys.stdout.reconfigure(encoding='utf-8', errors='replace')
20
+ sys.stderr.reconfigure(encoding='utf-8', errors='replace')
21
+ except AttributeError:
22
+ pass # Python < 3.7
23
+
24
+ try:
25
+ from playwright.sync_api import sync_playwright
26
+ PLAYWRIGHT_AVAILABLE = True
27
+ except ImportError:
28
+ PLAYWRIGHT_AVAILABLE = False
29
+
30
+
31
+ def run_basic_test(url: str, take_screenshot: bool = False) -> dict:
32
+ """Run basic browser test on URL."""
33
+ if not PLAYWRIGHT_AVAILABLE:
34
+ return {
35
+ "error": "Playwright not installed",
36
+ "fix": "pip install playwright && playwright install chromium"
37
+ }
38
+
39
+ result = {
40
+ "url": url,
41
+ "timestamp": datetime.now().isoformat(),
42
+ "status": "pending"
43
+ }
44
+
45
+ try:
46
+ with sync_playwright() as p:
47
+ browser = p.chromium.launch(headless=True)
48
+ context = browser.new_context(
49
+ viewport={"width": 1280, "height": 720},
50
+ user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
51
+ )
52
+ page = context.new_page()
53
+
54
+ # Navigate
55
+ response = page.goto(url, wait_until="networkidle", timeout=30000)
56
+
57
+ # Basic info
58
+ result["page"] = {
59
+ "title": page.title(),
60
+ "url": page.url,
61
+ "status_code": response.status if response else None
62
+ }
63
+
64
+ # Health checks
65
+ result["health"] = {
66
+ "loaded": response.ok if response else False,
67
+ "has_title": bool(page.title()),
68
+ "has_h1": page.locator("h1").count() > 0,
69
+ "has_links": page.locator("a").count() > 0,
70
+ "has_images": page.locator("img").count() > 0
71
+ }
72
+
73
+ # Console errors
74
+ console_errors = []
75
+ page.on("console", lambda msg: console_errors.append(msg.text) if msg.type == "error" else None)
76
+
77
+ # Performance metrics
78
+ result["performance"] = {
79
+ "dom_content_loaded": page.evaluate("window.performance.timing.domContentLoadedEventEnd - window.performance.timing.navigationStart"),
80
+ "load_complete": page.evaluate("window.performance.timing.loadEventEnd - window.performance.timing.navigationStart")
81
+ }
82
+
83
+ # Screenshot - uses system temp directory (cross-platform, auto-cleaned)
84
+ if take_screenshot:
85
+ # Cross-platform: Windows=%TEMP%, Linux/macOS=/tmp
86
+ screenshot_dir = os.path.join(tempfile.gettempdir(), "maestro_screenshots")
87
+ os.makedirs(screenshot_dir, exist_ok=True)
88
+ screenshot_path = os.path.join(screenshot_dir, f"screenshot_{datetime.now().strftime('%Y%m%d_%H%M%S')}.png")
89
+ page.screenshot(path=screenshot_path, full_page=True)
90
+ result["screenshot"] = screenshot_path
91
+ result["screenshot_note"] = "Saved to temp directory (auto-cleaned by OS)"
92
+
93
+ # Element counts
94
+ result["elements"] = {
95
+ "links": page.locator("a").count(),
96
+ "buttons": page.locator("button").count(),
97
+ "inputs": page.locator("input").count(),
98
+ "images": page.locator("img").count(),
99
+ "forms": page.locator("form").count()
100
+ }
101
+
102
+ browser.close()
103
+
104
+ result["status"] = "success" if result["health"]["loaded"] else "failed"
105
+ result["summary"] = "[OK] Page loaded successfully" if result["status"] == "success" else "[X] Page failed to load"
106
+
107
+ except Exception as e:
108
+ result["status"] = "error"
109
+ result["error"] = str(e)
110
+ result["summary"] = f"[X] Error: {str(e)[:100]}"
111
+
112
+ return result
113
+
114
+
115
+ def run_accessibility_check(url: str) -> dict:
116
+ """Run basic accessibility check."""
117
+ if not PLAYWRIGHT_AVAILABLE:
118
+ return {"error": "Playwright not installed"}
119
+
120
+ result = {"url": url, "accessibility": {}}
121
+
122
+ try:
123
+ with sync_playwright() as p:
124
+ browser = p.chromium.launch(headless=True)
125
+ page = browser.new_page()
126
+ page.goto(url, wait_until="networkidle", timeout=30000)
127
+
128
+ # Basic a11y checks
129
+ result["accessibility"] = {
130
+ "images_with_alt": page.locator("img[alt]").count(),
131
+ "images_without_alt": page.locator("img:not([alt])").count(),
132
+ "buttons_with_label": page.locator("button[aria-label], button:has-text('')").count(),
133
+ "links_with_text": page.locator("a:has-text('')").count(),
134
+ "form_labels": page.locator("label").count(),
135
+ "headings": {
136
+ "h1": page.locator("h1").count(),
137
+ "h2": page.locator("h2").count(),
138
+ "h3": page.locator("h3").count()
139
+ }
140
+ }
141
+
142
+ browser.close()
143
+ result["status"] = "success"
144
+
145
+ except Exception as e:
146
+ result["status"] = "error"
147
+ result["error"] = str(e)
148
+
149
+ return result
150
+
151
+
152
+ if __name__ == "__main__":
153
+ if len(sys.argv) < 2:
154
+ print(json.dumps({
155
+ "error": "Usage: python playwright_runner.py <url> [--screenshot] [--a11y]",
156
+ "examples": [
157
+ "python playwright_runner.py https://example.com",
158
+ "python playwright_runner.py https://example.com --screenshot",
159
+ "python playwright_runner.py https://example.com --a11y"
160
+ ]
161
+ }, indent=2))
162
+ sys.exit(1)
163
+
164
+ url = sys.argv[1]
165
+ take_screenshot = "--screenshot" in sys.argv
166
+ check_a11y = "--a11y" in sys.argv
167
+
168
+ if check_a11y:
169
+ result = run_accessibility_check(url)
170
+ else:
171
+ result = run_basic_test(url, take_screenshot)
172
+
173
+ print(json.dumps(result, indent=2))
@@ -0,0 +1,407 @@
1
+ # Antigravity Kit Architecture
2
+
3
+ > Comprehensive AI Agent Capability Expansion Toolkit
4
+
5
+ ---
6
+
7
+ ## 📋 Overview
8
+
9
+ Antigravity Kit is a modular system consisting of:
10
+
11
+ - **21 Specialist Agents** - Role-based AI personas
12
+ - **42 Skills** - Domain-specific knowledge modules
13
+ - **40+ Workflows** - Slash command procedures
14
+ - **9 Templates** - PRD, SDD, ADR, README, .env, SECURITY, Design System, docs-index, OpenAPI
15
+
16
+ ---
17
+
18
+ ## 🏗️ Directory Structure
19
+
20
+ ```plaintext
21
+ .agent/ # Kit (cloned from shared repo) - IMMUTABLE
22
+ ├── ARCHITECTURE.md
23
+ ├── agents/
24
+ │ └── *.md # Global agents (shared)
25
+ ├── skills/
26
+ │ └── */ # Global skills (shared)
27
+ ├── workflows/
28
+ │ └── *.md # Global workflows (shared)
29
+ ├── templates/
30
+ ├── rules/
31
+ └── scripts/
32
+ ```
33
+
34
+ ## 📁 Project-Specific Customizations
35
+
36
+ The `.agent/` directory is **IMMUTABLE** and should not be modified by projects.
37
+
38
+ For project-specific customizations, use the `docs/` directory in the project root:
39
+
40
+ | Location | Use Case | Example |
41
+ |----------|----------|---------|
42
+ | `docs/flows/` | Process documentation | `cadastro-produtos.md` |
43
+ | `docs/architecture/` | Architecture decisions | `auth-system.md` |
44
+ | `docs/INDEX.md` | Central documentation catalog | - |
45
+
46
+ > **ℹ️ Note:** Use the `/document` workflow to create project-specific documentation.
47
+
48
+ ### Documentation Discovery
49
+
50
+ The `/new-task` and `/document` workflows automatically:
51
+ 1. Check `docs/INDEX.md` for existing documentation
52
+ 2. Load context from `docs/flows/` for the affected module
53
+ 3. Prompt to create documentation if missing
54
+ 4. **Backlog Support:** Use `/new-task --backlog` to only register the task without immediate implementation.
55
+
56
+ ## Agent Loading Priority
57
+
58
+ 1. **`docs/`** (Project Documentation) - Context for implementation
59
+ 2. **Global** (Kit) - Agent behavior and skills
60
+
61
+
62
+ ---
63
+
64
+ ## 🤖 Agents (21)
65
+
66
+ Specialist AI personas for different domains.
67
+
68
+ | Agent | Focus | Skills Used |
69
+ | ----- | ----- | ----------- |
70
+ | `orchestrator` | Multi-agent coordination | parallel-agents, behavioral-modes |
71
+ | `project-planner` | Discovery, task planning | brainstorming, plan-writing, architecture |
72
+ | `frontend-specialist` | Web UI/UX | frontend-design, nextjs-react-expert, tailwind-patterns |
73
+ | `backend-specialist` | API, business logic | api-patterns, nodejs-best-practices, database-design |
74
+ | `database-architect` | Schema, SQL | database-design, prisma-expert |
75
+ | `mobile-developer` | iOS, Android, RN | mobile-design |
76
+ | `game-developer` | Game logic, mechanics | game-development |
77
+ | `devops-engineer` | CI/CD, Docker | deployment-procedures, docker-expert |
78
+ | `security-auditor` | Security compliance | vulnerability-scanner, red-team-tactics |
79
+ | `penetration-tester` | Offensive security | red-team-tactics |
80
+ | `test-engineer` | Testing strategies | testing-patterns, tdd-workflow, webapp-testing |
81
+ | `debugger` | Root cause analysis | systematic-debugging |
82
+ | `performance-optimizer` | Speed, Web Vitals | performance-profiling |
83
+ | `seo-specialist` | Ranking, visibility | seo-fundamentals, geo-fundamentals |
84
+ | `documentation-writer` | Manuals, docs | documentation-templates |
85
+ | `product-manager` | Requirements, user stories | plan-writing, brainstorming |
86
+ | `product-owner` | Strategy, backlog, MVP | plan-writing, brainstorming |
87
+ | `qa-automation-engineer` | E2E testing, CI pipelines | webapp-testing, testing-patterns |
88
+ | `code-archaeologist` | Legacy code, refactoring | clean-code, code-review-checklist |
89
+ | `explorer-agent` | Codebase analysis | - |
90
+ | `tdd-reviewer` | SDD review, validation | tdd-validation, brainstorming, architecture |
91
+
92
+ ---
93
+
94
+ ## 🧩 Skills (42)
95
+
96
+ Modular knowledge domains that agents can load on-demand. based on task context.
97
+
98
+ ### Frontend & UI
99
+
100
+ | Skill | Description |
101
+ | ----- | ----------- |
102
+ | `nextjs-react-expert` | React & Next.js performance optimization (Vercel - 57 rules) |
103
+ | `web-design-guidelines` | Web UI audit - 100+ rules for accessibility, UX, performance (Vercel) |
104
+ | `tailwind-patterns` | Tailwind CSS v4 utilities |
105
+ | `frontend-design` | UI/UX patterns, design systems |
106
+ | `ui-ux-pro-max` | 50 styles, 21 palettes, 50 fonts |
107
+ | `atomic-design` | Stack-agnostic Atomic Design component generation (Atoms, Molecules, Organisms) |
108
+
109
+ ### Backend & API
110
+
111
+ | Skill | Description |
112
+ | ----- | ----------- |
113
+ | `api-patterns` | REST, GraphQL, tRPC |
114
+ | `nestjs-expert` | NestJS modules, DI, decorators |
115
+ | `nodejs-best-practices` | Node.js async, modules |
116
+ | `python-patterns` | Python standards, FastAPI |
117
+
118
+ ### Database
119
+
120
+ | Skill | Description |
121
+ | ----- | ----------- |
122
+ | `database-design` | Schema design, optimization |
123
+ | `prisma-expert` | Prisma ORM, migrations |
124
+
125
+ ### TypeScript/JavaScript
126
+
127
+ | Skill | Description |
128
+ | ----- | ----------- |
129
+ | `typescript-expert` | Type-level programming, performance |
130
+
131
+ ### Cloud & Infrastructure
132
+
133
+ | Skill | Description |
134
+ | ----- | ----------- |
135
+ | `docker-expert` | Containerization, Compose |
136
+ | `deployment-procedures` | CI/CD, deploy workflows |
137
+ | `server-management` | Infrastructure management |
138
+
139
+ ### Testing & Quality
140
+
141
+ | Skill | Description |
142
+ | ----- | ----------- |
143
+ | `testing-patterns` | Jest, Vitest, strategies |
144
+ | `webapp-testing` | E2E, Playwright |
145
+ | `tdd-workflow` | Test-driven development |
146
+ | `code-review-checklist` | Code review standards |
147
+ | `lint-and-validate` | Linting, validation |
148
+
149
+ ### Security
150
+
151
+ | Skill | Description |
152
+ | ----- | ----------- |
153
+ | `vulnerability-scanner` | Security auditing, OWASP |
154
+ | `red-team-tactics` | Offensive security |
155
+
156
+ ### Architecture & Planning
157
+
158
+ | Skill | Description |
159
+ | ----- | ----------- |
160
+ | `app-builder` | Full-stack app scaffolding |
161
+ | `architecture` | System design patterns |
162
+ | `plan-writing` | Task planning, breakdown |
163
+ | `brainstorming` | Socratic questioning |
164
+
165
+ ### Mobile
166
+
167
+ | Skill | Description |
168
+ | ----- | ----------- |
169
+ | `mobile-design` | Mobile UI/UX patterns |
170
+
171
+ ### Game Development
172
+
173
+ | Skill | Description |
174
+ | ----- | ----------- |
175
+ | `game-development` | Game logic, mechanics |
176
+
177
+ ### SEO & Growth
178
+
179
+ | Skill | Description |
180
+ | ----- | ----------- |
181
+ | `seo-fundamentals` | SEO, E-E-A-T, Core Web Vitals |
182
+ | `geo-fundamentals` | GenAI optimization |
183
+
184
+ ### Shell/CLI
185
+
186
+ | Skill | Description |
187
+ | ----- | ----------- |
188
+ | `bash-linux` | Linux commands, scripting |
189
+ | `powershell-windows` | Windows PowerShell |
190
+
191
+ ### Other
192
+
193
+ | Skill | Description |
194
+ | ----- | ----------- |
195
+ | `clean-code` | Coding standards (Global) |
196
+ | `behavioral-modes` | Agent personas |
197
+ | `parallel-agents` | Multi-agent patterns |
198
+ | `mcp-builder` | Model Context Protocol |
199
+ | `documentation-templates` | Doc formats |
200
+ | `i18n-localization` | Internationalization |
201
+ | `performance-profiling` | Web Vitals, optimization |
202
+ | `tdd-validation` | SDD completeness validation |
203
+ | `systematic-debugging` | Troubleshooting |
204
+
205
+ ### Documentation & Governance
206
+
207
+ | Skill | Description |
208
+ | ----- | ----------- |
209
+ | `project-foundation` | Generates README, .env.example, SECURITY.md, INDEX.md, ADR-000 |
210
+ | `document-registry` | Maintains `docs/INDEX.md` as source of truth (READ/WRITE/UPDATE protocol) |
211
+ | `context-gathering-patterns` | Mandatory doc-reading gate before implementation |
212
+ | `history-check-patterns` | Queries past task history before implementing |
213
+ | `qa-test-generation` | Heuristics for generating test checklists by change type |
214
+ ---
215
+
216
+ ## 🔄 Workflows (40+)
217
+
218
+ Slash command procedures. Invoke with `/command`.
219
+
220
+ ### Project Lifecycle
221
+
222
+ | Command | Description |
223
+ | ------- | ----------- |
224
+ | `/new-project` | New project orchestrator (PRD → SDD → Security → Implementation → Deploy) |
225
+ | `/legacy-project` | Legacy project: Foundation → Analysis → Docs → SDD Reverso → Security → Tasks |
226
+ | `/discovery` | Full automated flow: brainstorm → SDD → Flyee tasks |
227
+ | `/demand` | Commercial proposal generation |
228
+
229
+ ### Feature Development
230
+
231
+ | Command | Description |
232
+ | ------- | ----------- |
233
+ | `/new-task` | Add or improve features with Flyee tracking (`--backlog` for registration only) |
234
+ | `/execute` | Execute existing Flyee task |
235
+ | `/tdd` | SDD workflow (create `SDD-*.md`, validate, breakdown) |
236
+ | `/prd` | Create Product Requirements Document — outputs `PRD-*.md` |
237
+ | `/atomic` | Create Atomic Design components (stack-agnostic) |
238
+
239
+ ### Task Management (Flyee)
240
+
241
+ | Command | Description |
242
+ | ------- | ----------- |
243
+ | `/check-task` | Query task status without execution |
244
+ | `/task-update` | Update task progress in Flyee |
245
+ | `/task-complete` | Mandatory task completion: QA gate + Flyee sync + INDEX.md |
246
+ | `/log` | Record completed work retroactively |
247
+
248
+ ### Utilities
249
+
250
+ | Command | Description |
251
+ | ------- | ----------- |
252
+ | `/brainstorm` | Socratic discovery |
253
+ | `/create` | Create new features |
254
+ | `/debug` | Debug issues |
255
+ | `/deploy` | Deploy application |
256
+ | `/document` | Document existing flows |
257
+ | `/orchestrate` | Multi-agent coordination |
258
+ | `/plan` | Task breakdown |
259
+ | `/preview` | Preview changes |
260
+ | `/status` | Check project status |
261
+ | `/test` | Run tests |
262
+
263
+ ### Meta (Creation)
264
+
265
+ | Command | Description |
266
+ | ------- | ----------- |
267
+ | `/create-skill` | Create new skill |
268
+ | `/create-agent` | Create new specialist |
269
+ | `/create-workflow` | Create new workflow |
270
+
271
+ ---
272
+
273
+ ## 🎯 Skill Loading Protocol
274
+
275
+ ```plaintext
276
+ User Request → Skill Description Match → Load SKILL.md
277
+
278
+ Read references/
279
+
280
+ Read scripts/
281
+ ```
282
+
283
+ ### Skill Structure
284
+
285
+ ```plaintext
286
+ skill-name/
287
+ ├── SKILL.md # (Required) Metadata & instructions
288
+ ├── scripts/ # (Optional) Python/Bash scripts
289
+ ├── references/ # (Optional) Templates, docs
290
+ └── assets/ # (Optional) Images, logos
291
+ ```
292
+
293
+ ### Enhanced Skills (with scripts/references)
294
+
295
+ | Skill | Files | Coverage |
296
+ | ----- | ----- | -------- |
297
+ | `typescript-expert` | 5 | Utility types, tsconfig, cheatsheet |
298
+ | `ui-ux-pro-max` | 27 | 50 styles, 21 palettes, 50 fonts |
299
+ | `app-builder` | 20 | Full-stack scaffolding |
300
+
301
+ ---
302
+
303
+ ## � Scripts (2)
304
+
305
+ Master validation scripts that orchestrate skill-level scripts.
306
+
307
+ ### Master Scripts
308
+
309
+ | Script | Purpose | When to Use |
310
+ | ------ | ------- | ----------- |
311
+ | `checklist.py` | Priority-based validation (Core checks) | Development, pre-commit |
312
+ | `verify_all.py` | Comprehensive verification (All checks) | Pre-deployment, releases |
313
+
314
+ ### Usage
315
+
316
+ ```bash
317
+ # Quick validation during development
318
+ python .agent/scripts/checklist.py .
319
+
320
+ # Full verification before deployment
321
+ python .agent/scripts/verify_all.py . --url http://localhost:3000
322
+ ```
323
+
324
+ ### What They Check
325
+
326
+ **checklist.py** (Core checks):
327
+
328
+ - Security (vulnerabilities, secrets)
329
+ - Code Quality (lint, types)
330
+ - Schema Validation
331
+ - Test Suite
332
+ - UX Audit
333
+ - SEO Check
334
+
335
+ **verify_all.py** (Full suite):
336
+
337
+ - Everything in checklist.py PLUS:
338
+ - Lighthouse (Core Web Vitals)
339
+ - Playwright E2E
340
+ - Bundle Analysis
341
+ - Mobile Audit
342
+ - i18n Check
343
+
344
+ For details, see [scripts/README.md](scripts/README.md)
345
+
346
+ ---
347
+
348
+ ## 📊 Statistics
349
+
350
+ | Metric | Value |
351
+ | ------ | ----- |
352
+ | **Total Agents** | 21 |
353
+ | **Total Skills** | 42 |
354
+ | **Total Workflows** | 40+ |
355
+ | **Total Templates** | 9 |
356
+ | **Total Scripts** | 2 (master) + 19 (skill-level) |
357
+ | **Coverage** | ~95% web/mobile development |
358
+
359
+ ---
360
+
361
+ ## 📝 Flyee Integration
362
+
363
+ Workflows that integrate with Flyee for task management.
364
+
365
+ ### Required Database Properties
366
+
367
+ | Property | Type | Required | Description |
368
+ |----------|------|----------|-------------|
369
+ | Título | Title | ✅ | Task name |
370
+ | ID | Text | ✅ | Unique identifier (e.g., `1.1`, `M.2`) |
371
+ | Épico | Select | ✅ | Logical grouping |
372
+ | Status | Status | ✅ | `backlog` → `running` → `testing` → `completed` |
373
+ | % Progresso | Number | ✅ | 0-100% |
374
+ | Categoria | Multi-select | ✅ | Feature, Melhoria, Refatoração, Log, Bug |
375
+ | Prioridade | Select | ❌ | P0, P1, P2, P3 |
376
+ | Estimativa | Text | ❌ | Time estimate (e.g., "4h") |
377
+ | Tempo Gasto | Text | ❌ | Time spent |
378
+ | SDD Ref | Text | ❌ | Link to `docs/design/SDD-*.md` |
379
+
380
+ ### ID Convention
381
+
382
+ | Source | Format | Example |
383
+ |--------|--------|----------|
384
+ | `/discovery` | `{Epic}.{Seq}` | `1.1`, `2.3` |
385
+ | `/new-task` | `M.{Seq}` | `M.1`, `M.2` |
386
+ | `/legacy-project` | `R.{Seq}` or `{module}.{Seq}` | `R.1`, `auth.2` |
387
+
388
+ ### Recommended Views
389
+
390
+ - **Visão Cliente**: Name, Status, % Progresso only (for client transparency)
391
+ - **Por Épico**: Grouped by Épico property
392
+ - **Por Prioridade**: Sorted by Prioridade
393
+
394
+ ---
395
+
396
+ ## 🔗 Quick Reference
397
+
398
+ | Need | Agent | Skills |
399
+ | ---- | ----- | ------ |
400
+ | Web App | `frontend-specialist` | nextjs-react-expert, frontend-design |
401
+ | API | `backend-specialist` | api-patterns, nodejs-best-practices |
402
+ | Mobile | `mobile-developer` | mobile-design |
403
+ | Database | `database-architect` | database-design, prisma-expert |
404
+ | Security | `security-auditor` | vulnerability-scanner |
405
+ | Testing | `test-engineer` | testing-patterns, webapp-testing |
406
+ | Debug | `debugger` | systematic-debugging |
407
+ | Plan | `project-planner` | brainstorming, plan-writing |
@@ -0,0 +1,71 @@
1
+ {
2
+ "version": 1,
3
+ "local_resources": [
4
+ {
5
+ "id": "design-system-landing",
6
+ "label": "UI References — Landing Page components",
7
+ "path": "docs/design/ui-references/components/landing/",
8
+ "scope": ["landing", "hero", "features", "how-it-works", "faq", "pricing", "cta", "social-proof"]
9
+ },
10
+ {
11
+ "id": "design-system-layout",
12
+ "label": "UI References — Layout (Header, Footer, Sidebar)",
13
+ "path": "docs/design/ui-references/components/layout/",
14
+ "scope": ["header", "footer", "sidebar", "navigation", "layout"]
15
+ },
16
+ {
17
+ "id": "design-system-dashboard",
18
+ "label": "UI References — Dashboard components",
19
+ "path": "docs/design/ui-references/components/dashboard/",
20
+ "scope": ["dashboard", "overview", "stats", "metrics"]
21
+ },
22
+ {
23
+ "id": "design-system-ui",
24
+ "label": "UI References — UI primitives (buttons, inputs, cards)",
25
+ "path": "docs/design/ui-references/components/ui/",
26
+ "scope": ["design", "ui", "button", "input", "card", "badge", "modal", "dialog"]
27
+ },
28
+ {
29
+ "id": "design-system-pricing",
30
+ "label": "UI References — Pricing page components",
31
+ "path": "docs/design/ui-references/components/pricing/",
32
+ "scope": ["pricing", "planos", "plans", "subscription"]
33
+ },
34
+ {
35
+ "id": "design-system-portal",
36
+ "label": "UI References — Portal (public pages)",
37
+ "path": "docs/design/ui-references/components/portal/",
38
+ "scope": ["portal", "public", "share", "embed"]
39
+ },
40
+ {
41
+ "id": "design-system-articles",
42
+ "label": "UI References — Articles/Blog components",
43
+ "path": "docs/design/ui-references/components/articles/",
44
+ "scope": ["blog", "article", "post", "content"]
45
+ },
46
+ {
47
+ "id": "design-system-docs",
48
+ "label": "UI References — Documentation page components",
49
+ "path": "docs/design/ui-references/components/docs/",
50
+ "scope": ["docs", "documentation", "api-reference", "guide"]
51
+ },
52
+ {
53
+ "id": "design-system-wizard",
54
+ "label": "UI References — Wizard/Onboarding components",
55
+ "path": "docs/design/ui-references/components/wizard/",
56
+ "scope": ["wizard", "onboarding", "stepper", "setup"]
57
+ },
58
+ {
59
+ "id": "sdd-flyee",
60
+ "label": "SDD — Software Design Document (arquitetura e specs técnicas)",
61
+ "path": "docs/design/SDD-flyee.md",
62
+ "scope": ["architecture", "api", "sdk", "models", "schemas", "routes"]
63
+ },
64
+ {
65
+ "id": "prd-flyee",
66
+ "label": "PRD — Requisitos do produto",
67
+ "path": "docs/PRD-flyee.md",
68
+ "scope": ["requirements", "personas", "user-stories", "mvp", "roadmap"]
69
+ }
70
+ ]
71
+ }