@infandev/agent-kit 1.0.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 (229) hide show
  1. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  2. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  3. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  4. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  5. package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  6. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  7. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  8. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  9. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  10. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  11. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  12. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  13. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  14. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  15. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  16. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  17. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  18. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  19. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  20. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  21. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  22. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  23. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  25. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  26. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  27. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  28. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
  29. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
  30. package/.agent/ARCHITECTURE.md +289 -0
  31. package/.agent/agents/backend-specialist.md +263 -0
  32. package/.agent/agents/code-archaeologist.md +106 -0
  33. package/.agent/agents/database-architect.md +226 -0
  34. package/.agent/agents/debugger.md +225 -0
  35. package/.agent/agents/devops-engineer.md +242 -0
  36. package/.agent/agents/documentation-writer.md +104 -0
  37. package/.agent/agents/explorer-agent.md +73 -0
  38. package/.agent/agents/frontend-specialist.md +593 -0
  39. package/.agent/agents/game-developer.md +162 -0
  40. package/.agent/agents/mobile-developer.md +377 -0
  41. package/.agent/agents/orchestrator.md +440 -0
  42. package/.agent/agents/penetration-tester.md +188 -0
  43. package/.agent/agents/performance-optimizer.md +187 -0
  44. package/.agent/agents/product-manager.md +112 -0
  45. package/.agent/agents/product-owner.md +95 -0
  46. package/.agent/agents/project-planner.md +419 -0
  47. package/.agent/agents/qa-automation-engineer.md +103 -0
  48. package/.agent/agents/security-auditor.md +170 -0
  49. package/.agent/agents/seo-specialist.md +111 -0
  50. package/.agent/agents/test-engineer.md +158 -0
  51. package/.agent/mcp_config.json +24 -0
  52. package/.agent/rules/GEMINI.md +284 -0
  53. package/.agent/scripts/auto_preview.py +148 -0
  54. package/.agent/scripts/checklist.py +217 -0
  55. package/.agent/scripts/session_manager.py +120 -0
  56. package/.agent/scripts/verify_all.py +327 -0
  57. package/.agent/skills/agent-ops/SKILL.md +72 -0
  58. package/.agent/skills/agent-ops/scripts/export_ide_rules.py +131 -0
  59. package/.agent/skills/agent-ops/scripts/registry.py +125 -0
  60. package/.agent/skills/api-patterns/SKILL.md +81 -0
  61. package/.agent/skills/api-patterns/api-style.md +42 -0
  62. package/.agent/skills/api-patterns/auth.md +24 -0
  63. package/.agent/skills/api-patterns/documentation.md +26 -0
  64. package/.agent/skills/api-patterns/graphql.md +41 -0
  65. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  66. package/.agent/skills/api-patterns/response.md +37 -0
  67. package/.agent/skills/api-patterns/rest.md +40 -0
  68. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  69. package/.agent/skills/api-patterns/security-testing.md +122 -0
  70. package/.agent/skills/api-patterns/trpc.md +41 -0
  71. package/.agent/skills/api-patterns/versioning.md +22 -0
  72. package/.agent/skills/app-builder/SKILL.md +75 -0
  73. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  74. package/.agent/skills/app-builder/feature-building.md +53 -0
  75. package/.agent/skills/app-builder/project-detection.md +34 -0
  76. package/.agent/skills/app-builder/scaffolding.md +118 -0
  77. package/.agent/skills/app-builder/tech-stack.md +41 -0
  78. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  79. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  80. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  81. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  82. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  83. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  84. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  85. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  86. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  87. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  88. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  89. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  90. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  91. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  92. package/.agent/skills/architecture/SKILL.md +55 -0
  93. package/.agent/skills/architecture/context-discovery.md +43 -0
  94. package/.agent/skills/architecture/examples.md +94 -0
  95. package/.agent/skills/architecture/pattern-selection.md +68 -0
  96. package/.agent/skills/architecture/patterns-reference.md +50 -0
  97. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  98. package/.agent/skills/bash-linux/SKILL.md +199 -0
  99. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  100. package/.agent/skills/brainstorming/SKILL.md +163 -0
  101. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  102. package/.agent/skills/clean-code/SKILL.md +201 -0
  103. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  104. package/.agent/skills/database-design/SKILL.md +52 -0
  105. package/.agent/skills/database-design/database-selection.md +43 -0
  106. package/.agent/skills/database-design/indexing.md +39 -0
  107. package/.agent/skills/database-design/migrations.md +48 -0
  108. package/.agent/skills/database-design/optimization.md +36 -0
  109. package/.agent/skills/database-design/orm-selection.md +30 -0
  110. package/.agent/skills/database-design/schema-design.md +56 -0
  111. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  112. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  113. package/.agent/skills/doc.md +177 -0
  114. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  115. package/.agent/skills/frontend-design/SKILL.md +452 -0
  116. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  117. package/.agent/skills/frontend-design/color-system.md +311 -0
  118. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  119. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  120. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  121. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  122. package/.agent/skills/frontend-design/typography-system.md +345 -0
  123. package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  124. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  125. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  126. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  127. package/.agent/skills/game-development/SKILL.md +167 -0
  128. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  129. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  130. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  131. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  132. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  133. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  134. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  135. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  136. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  137. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  138. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  139. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  140. package/.agent/skills/intelligent-routing/SKILL.md +335 -0
  141. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  142. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  143. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  144. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  145. package/.agent/skills/mobile-design/SKILL.md +394 -0
  146. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  147. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  148. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  149. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  150. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  151. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  152. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  153. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  154. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  155. package/.agent/skills/mobile-design/platform-android.md +666 -0
  156. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  157. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  158. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  159. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  160. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  161. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  162. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  163. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  164. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  165. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  166. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  167. package/.agent/skills/nextjs-react-expert/9-cache-components.md +103 -0
  168. package/.agent/skills/nextjs-react-expert/SKILL.md +293 -0
  169. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  170. package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  171. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  172. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  173. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  174. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  175. package/.agent/skills/plan-writing/SKILL.md +152 -0
  176. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  177. package/.agent/skills/python-patterns/SKILL.md +441 -0
  178. package/.agent/skills/red-team-tactics/SKILL.md +199 -0
  179. package/.agent/skills/rust-pro/SKILL.md +176 -0
  180. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  181. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  182. package/.agent/skills/server-management/SKILL.md +161 -0
  183. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  184. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  185. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  186. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  187. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  188. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  189. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  190. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  191. package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  192. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  193. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  194. package/.agent/workflows/brainstorm.md +113 -0
  195. package/.agent/workflows/create.md +59 -0
  196. package/.agent/workflows/debug.md +103 -0
  197. package/.agent/workflows/deploy.md +176 -0
  198. package/.agent/workflows/enhance.md +63 -0
  199. package/.agent/workflows/orchestrate.md +237 -0
  200. package/.agent/workflows/plan.md +89 -0
  201. package/.agent/workflows/preview.md +81 -0
  202. package/.agent/workflows/status.md +86 -0
  203. package/.agent/workflows/test.md +144 -0
  204. package/.agent/workflows/ui-ux-pro-max.md +296 -0
  205. package/.cursor/rules/backend-specialist.mdc +266 -0
  206. package/.cursor/rules/code-archaeologist.mdc +109 -0
  207. package/.cursor/rules/database-architect.mdc +229 -0
  208. package/.cursor/rules/debugger.mdc +230 -0
  209. package/.cursor/rules/devops-engineer.mdc +245 -0
  210. package/.cursor/rules/documentation-writer.mdc +107 -0
  211. package/.cursor/rules/explorer-agent.mdc +76 -0
  212. package/.cursor/rules/frontend-specialist.mdc +596 -0
  213. package/.cursor/rules/game-developer.mdc +165 -0
  214. package/.cursor/rules/mobile-developer.mdc +380 -0
  215. package/.cursor/rules/orchestrator.mdc +443 -0
  216. package/.cursor/rules/penetration-tester.mdc +191 -0
  217. package/.cursor/rules/performance-optimizer.mdc +190 -0
  218. package/.cursor/rules/product-manager.mdc +115 -0
  219. package/.cursor/rules/product-owner.mdc +98 -0
  220. package/.cursor/rules/project-planner.mdc +422 -0
  221. package/.cursor/rules/qa-automation-engineer.mdc +106 -0
  222. package/.cursor/rules/security-auditor.mdc +173 -0
  223. package/.cursor/rules/seo-specialist.mdc +114 -0
  224. package/.cursor/rules/test-engineer.mdc +161 -0
  225. package/.windsurfrules +3 -0
  226. package/AGENTS.md +4301 -0
  227. package/README.md +83 -0
  228. package/bin/cli.js +100 -0
  229. package/package.json +35 -0
@@ -0,0 +1,327 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Full Verification Suite - Antigravity Kit
4
+ ==========================================
5
+
6
+ Runs COMPLETE validation including all checks + performance + E2E.
7
+ Use this before deployment or major releases.
8
+
9
+ Usage:
10
+ python scripts/verify_all.py . --url <URL>
11
+
12
+ Includes ALL checks:
13
+ ✅ Security Scan (OWASP, secrets, dependencies)
14
+ ✅ Lint & Type Coverage
15
+ ✅ Schema Validation
16
+ ✅ Test Suite (unit + integration)
17
+ ✅ UX Audit (psychology, accessibility)
18
+ ✅ SEO Check
19
+ ✅ Lighthouse (Core Web Vitals)
20
+ ✅ Playwright E2E
21
+ ✅ Bundle Analysis (if applicable)
22
+ ✅ Mobile Audit (if applicable)
23
+ """
24
+
25
+ import sys
26
+ import subprocess
27
+ import argparse
28
+ from pathlib import Path
29
+ from typing import List, Dict, Optional
30
+ from datetime import datetime
31
+
32
+ # ANSI colors
33
+ class Colors:
34
+ HEADER = '\033[95m'
35
+ BLUE = '\033[94m'
36
+ CYAN = '\033[96m'
37
+ GREEN = '\033[92m'
38
+ YELLOW = '\033[93m'
39
+ RED = '\033[91m'
40
+ ENDC = '\033[0m'
41
+ BOLD = '\033[1m'
42
+
43
+ def print_header(text: str):
44
+ print(f"\n{Colors.BOLD}{Colors.CYAN}{'='*70}{Colors.ENDC}")
45
+ print(f"{Colors.BOLD}{Colors.CYAN}{text.center(70)}{Colors.ENDC}")
46
+ print(f"{Colors.BOLD}{Colors.CYAN}{'='*70}{Colors.ENDC}\n")
47
+
48
+ def print_step(text: str):
49
+ print(f"{Colors.BOLD}{Colors.BLUE}🔄 {text}{Colors.ENDC}")
50
+
51
+ def print_success(text: str):
52
+ print(f"{Colors.GREEN}✅ {text}{Colors.ENDC}")
53
+
54
+ def print_warning(text: str):
55
+ print(f"{Colors.YELLOW}⚠️ {text}{Colors.ENDC}")
56
+
57
+ def print_error(text: str):
58
+ print(f"{Colors.RED}❌ {text}{Colors.ENDC}")
59
+
60
+ # Complete verification suite
61
+ VERIFICATION_SUITE = [
62
+ # P0: Security (CRITICAL)
63
+ {
64
+ "category": "Security",
65
+ "checks": [
66
+ ("Security Scan", ".agent/skills/vulnerability-scanner/scripts/security_scan.py", True),
67
+ ("Dependency Analysis", ".agent/skills/vulnerability-scanner/scripts/dependency_analyzer.py", False),
68
+ ]
69
+ },
70
+
71
+ # P1: Code Quality (CRITICAL)
72
+ {
73
+ "category": "Code Quality",
74
+ "checks": [
75
+ ("Lint Check", ".agent/skills/lint-and-validate/scripts/lint_runner.py", True),
76
+ ("Type Coverage", ".agent/skills/lint-and-validate/scripts/type_coverage.py", False),
77
+ ]
78
+ },
79
+
80
+ # P2: Data Layer
81
+ {
82
+ "category": "Data Layer",
83
+ "checks": [
84
+ ("Schema Validation", ".agent/skills/database-design/scripts/schema_validator.py", False),
85
+ ]
86
+ },
87
+
88
+ # P3: Testing
89
+ {
90
+ "category": "Testing",
91
+ "checks": [
92
+ ("Test Suite", ".agent/skills/testing-patterns/scripts/test_runner.py", False),
93
+ ]
94
+ },
95
+
96
+ # P4: UX & Accessibility
97
+ {
98
+ "category": "UX & Accessibility",
99
+ "checks": [
100
+ ("UX Audit", ".agent/skills/frontend-design/scripts/ux_audit.py", False),
101
+ ("Accessibility Check", ".agent/skills/frontend-design/scripts/accessibility_checker.py", False),
102
+ ]
103
+ },
104
+
105
+ # P5: SEO & Content
106
+ {
107
+ "category": "SEO & Content",
108
+ "checks": [
109
+ ("SEO Check", ".agent/skills/seo-fundamentals/scripts/seo_checker.py", False),
110
+ ("GEO Check", ".agent/skills/geo-fundamentals/scripts/geo_checker.py", False),
111
+ ]
112
+ },
113
+
114
+ # P6: Performance (requires URL)
115
+ {
116
+ "category": "Performance",
117
+ "requires_url": True,
118
+ "checks": [
119
+ ("Lighthouse Audit", ".agent/skills/performance-profiling/scripts/lighthouse_audit.py", True),
120
+ ("Bundle Analysis", ".agent/skills/performance-profiling/scripts/bundle_analyzer.py", False),
121
+ ]
122
+ },
123
+
124
+ # P7: E2E Testing (requires URL)
125
+ {
126
+ "category": "E2E Testing",
127
+ "requires_url": True,
128
+ "checks": [
129
+ ("Playwright E2E", ".agent/skills/webapp-testing/scripts/playwright_runner.py", False),
130
+ ]
131
+ },
132
+
133
+ # P8: Mobile (if applicable)
134
+ {
135
+ "category": "Mobile",
136
+ "checks": [
137
+ ("Mobile Audit", ".agent/skills/mobile-design/scripts/mobile_audit.py", False),
138
+ ]
139
+ },
140
+
141
+ # P9: Internationalization
142
+ {
143
+ "category": "Internationalization",
144
+ "checks": [
145
+ ("i18n Check", ".agent/skills/i18n-localization/scripts/i18n_checker.py", False),
146
+ ]
147
+ },
148
+ ]
149
+
150
+ def run_script(name: str, script_path: Path, project_path: str, url: Optional[str] = None) -> dict:
151
+ """Run validation script"""
152
+ if not script_path.exists():
153
+ print_warning(f"{name}: Script not found, skipping")
154
+ return {"name": name, "passed": True, "skipped": True, "duration": 0}
155
+
156
+ print_step(f"Running: {name}")
157
+ start_time = datetime.now()
158
+
159
+ # Build command
160
+ cmd = ["python", str(script_path), project_path]
161
+ if url and ("lighthouse" in script_path.name.lower() or "playwright" in script_path.name.lower()):
162
+ cmd.append(url)
163
+
164
+ # Run
165
+ try:
166
+ result = subprocess.run(
167
+ cmd,
168
+ capture_output=True,
169
+ text=True,
170
+ timeout=600 # 10 minute timeout for slow checks
171
+ )
172
+
173
+ duration = (datetime.now() - start_time).total_seconds()
174
+ passed = result.returncode == 0
175
+
176
+ if passed:
177
+ print_success(f"{name}: PASSED ({duration:.1f}s)")
178
+ else:
179
+ print_error(f"{name}: FAILED ({duration:.1f}s)")
180
+ if result.stderr:
181
+ print(f" {result.stderr[:300]}")
182
+
183
+ return {
184
+ "name": name,
185
+ "passed": passed,
186
+ "output": result.stdout,
187
+ "error": result.stderr,
188
+ "skipped": False,
189
+ "duration": duration
190
+ }
191
+
192
+ except subprocess.TimeoutExpired:
193
+ duration = (datetime.now() - start_time).total_seconds()
194
+ print_error(f"{name}: TIMEOUT (>{duration:.0f}s)")
195
+ return {"name": name, "passed": False, "skipped": False, "duration": duration, "error": "Timeout"}
196
+
197
+ except Exception as e:
198
+ duration = (datetime.now() - start_time).total_seconds()
199
+ print_error(f"{name}: ERROR - {str(e)}")
200
+ return {"name": name, "passed": False, "skipped": False, "duration": duration, "error": str(e)}
201
+
202
+ def print_final_report(results: List[dict], start_time: datetime):
203
+ """Print comprehensive final report"""
204
+ total_duration = (datetime.now() - start_time).total_seconds()
205
+
206
+ print_header("📊 FULL VERIFICATION REPORT")
207
+
208
+ # Statistics
209
+ total = len(results)
210
+ passed = sum(1 for r in results if r["passed"] and not r.get("skipped"))
211
+ failed = sum(1 for r in results if not r["passed"] and not r.get("skipped"))
212
+ skipped = sum(1 for r in results if r.get("skipped"))
213
+
214
+ print(f"Total Duration: {total_duration:.1f}s")
215
+ print(f"Total Checks: {total}")
216
+ print(f"{Colors.GREEN}✅ Passed: {passed}{Colors.ENDC}")
217
+ print(f"{Colors.RED}❌ Failed: {failed}{Colors.ENDC}")
218
+ print(f"{Colors.YELLOW}⏭️ Skipped: {skipped}{Colors.ENDC}")
219
+ print()
220
+
221
+ # Category breakdown
222
+ print(f"{Colors.BOLD}Results by Category:{Colors.ENDC}")
223
+ current_category = None
224
+ for r in results:
225
+ # Print category header if changed
226
+ if r.get("category") and r["category"] != current_category:
227
+ current_category = r["category"]
228
+ print(f"\n{Colors.BOLD}{Colors.CYAN}{current_category}:{Colors.ENDC}")
229
+
230
+ # Print result
231
+ if r.get("skipped"):
232
+ status = f"{Colors.YELLOW}⏭️ {Colors.ENDC}"
233
+ elif r["passed"]:
234
+ status = f"{Colors.GREEN}✅{Colors.ENDC}"
235
+ else:
236
+ status = f"{Colors.RED}❌{Colors.ENDC}"
237
+
238
+ duration_str = f"({r.get('duration', 0):.1f}s)" if not r.get("skipped") else ""
239
+ print(f" {status} {r['name']} {duration_str}")
240
+
241
+ print()
242
+
243
+ # Failed checks detail
244
+ if failed > 0:
245
+ print(f"{Colors.BOLD}{Colors.RED}❌ FAILED CHECKS:{Colors.ENDC}")
246
+ for r in results:
247
+ if not r["passed"] and not r.get("skipped"):
248
+ print(f"\n{Colors.RED}✗ {r['name']}{Colors.ENDC}")
249
+ if r.get("error"):
250
+ error_preview = r["error"][:200]
251
+ print(f" Error: {error_preview}")
252
+ print()
253
+
254
+ # Final verdict
255
+ if failed > 0:
256
+ print_error(f"VERIFICATION FAILED - {failed} check(s) need attention")
257
+ print(f"\n{Colors.YELLOW}💡 Tip: Fix critical (security, lint) issues first{Colors.ENDC}")
258
+ return False
259
+ else:
260
+ print_success("✨ ALL CHECKS PASSED - Ready for deployment! ✨")
261
+ return True
262
+
263
+ def main():
264
+ parser = argparse.ArgumentParser(
265
+ description="Run complete Antigravity Kit verification suite",
266
+ formatter_class=argparse.RawDescriptionHelpFormatter,
267
+ epilog="""
268
+ Examples:
269
+ python scripts/verify_all.py . --url http://localhost:3000
270
+ python scripts/verify_all.py . --url https://staging.example.com --no-e2e
271
+ """
272
+ )
273
+ parser.add_argument("project", help="Project path to validate")
274
+ parser.add_argument("--url", required=True, help="URL for performance & E2E checks")
275
+ parser.add_argument("--no-e2e", action="store_true", help="Skip E2E tests")
276
+ parser.add_argument("--stop-on-fail", action="store_true", help="Stop on first failure")
277
+
278
+ args = parser.parse_args()
279
+
280
+ project_path = Path(args.project).resolve()
281
+
282
+ if not project_path.exists():
283
+ print_error(f"Project path does not exist: {project_path}")
284
+ sys.exit(1)
285
+
286
+ print_header("🚀 ANTIGRAVITY KIT - FULL VERIFICATION SUITE")
287
+ print(f"Project: {project_path}")
288
+ print(f"URL: {args.url}")
289
+ print(f"Started: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
290
+
291
+ start_time = datetime.now()
292
+ results = []
293
+
294
+ # Run all verification categories
295
+ for suite in VERIFICATION_SUITE:
296
+ category = suite["category"]
297
+ requires_url = suite.get("requires_url", False)
298
+
299
+ # Skip if requires URL and not provided
300
+ if requires_url and not args.url:
301
+ continue
302
+
303
+ # Skip E2E if flag set
304
+ if args.no_e2e and category == "E2E Testing":
305
+ continue
306
+
307
+ print_header(f"📋 {category.upper()}")
308
+
309
+ for name, script_path, required in suite["checks"]:
310
+ script = project_path / script_path
311
+ result = run_script(name, script, str(project_path), args.url)
312
+ result["category"] = category
313
+ results.append(result)
314
+
315
+ # Stop on critical failure if flag set
316
+ if args.stop_on_fail and required and not result["passed"] and not result.get("skipped"):
317
+ print_error(f"CRITICAL: {name} failed. Stopping verification.")
318
+ print_final_report(results, start_time)
319
+ sys.exit(1)
320
+
321
+ # Print final report
322
+ all_passed = print_final_report(results, start_time)
323
+
324
+ sys.exit(0 if all_passed else 1)
325
+
326
+ if __name__ == "__main__":
327
+ main()
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: agent-ops
3
+ description: Master reasoning protocol (TNbN) and dynamic tool registry for Antigravity agents. Mandatory for all complex operations.
4
+ version: 1.0.0
5
+ ---
6
+
7
+ # Agent Ops - The Reasoning Operating System
8
+
9
+ This skill defines the core "Logic Gates" and "Verification Protocols" that all Antigravity agents use to ensure high-fidelity, autonomous performance.
10
+
11
+ ---
12
+
13
+ ## 🧠 Think Node-by-Node (TNbN) Protocol
14
+
15
+ To eliminate state hallucinations, agents MUST follow the **TNbN Reasoning Gate** before every action that modifies the workspace.
16
+
17
+ ### The Reasoning Gate Steps:
18
+
19
+ 1. **🌳 State Node (Input Verification):**
20
+ - Declare what you THINK is true (e.g., "I am about to edit `utils.py`").
21
+ - Explicitly state any assumptions (e.g., "I assume `utils.py` contains the helper function `foo`").
22
+
23
+ 2. **🔍 Verify Node (Filesystem Check):**
24
+ - Perform a `Read` or `Grep` to confirm the State Node.
25
+ - **Rule:** If the verification fails or differs from the State Node, you MUST stop and recalibrate.
26
+
27
+ 3. **🛠️ Act Node (Execution):**
28
+ - Perform the tool call (e.g., `Edit`, `Write`, `Bash`).
29
+ - Explain the direct impact of this action.
30
+
31
+ 4. **✅ Confirm Node (Verification):**
32
+ - Perform a final check to confirm the action was successful (e.g., `Read` the edited file or check `command_status`).
33
+
34
+ ---
35
+
36
+ ## 🛠️ Tool Registry Discovery
37
+
38
+ Agents should use the built-in `registry.py` script to discover and validate available tools (skills/scripts) before attempting to use them.
39
+
40
+ ### Usage:
41
+ ```bash
42
+ # Get the full map of available capabilities
43
+ python .agent/skills/agent-ops/scripts/registry.py map
44
+
45
+ # Verify if a specific tool is configured
46
+ python .agent/skills/agent-ops/scripts/registry.py verify --tool [tool-name]
47
+ ```
48
+
49
+ ---
50
+
51
+ ## 🛑 Critical Rules
52
+
53
+ - **Filesystem-First:** Never assume a file exists based on memory or `ARCHITECTURE.md`. Verify it with a tool.
54
+ - **Node-Wait:** A task is not "In Progress" until the Verify Node is complete.
55
+ - **Fail Early:** If you find a discrepancy in the Verify Node, do not "guess." Report it.
56
+
57
+ ---
58
+
59
+ ## 📋 Examples
60
+
61
+ ### ❌ WRONG (Hallucination Risk)
62
+ "I will now add the feature to `main.js`."
63
+ [Proceeds to edit `main.js` without reading it first]
64
+
65
+ ### ✅ CORRECT (TNbN Flow)
66
+ "**State Node**: I am about to add the logging feature to `main.js`.
67
+ **Verify Node**: I will read `main.js` to ensure the entry point is standard.
68
+ [Agent reads file...]
69
+ **Observation**: Found entry point at line 42.
70
+ **Act Node**: I will now use `Edit` to add the logger.
71
+ [Agent edits file...]
72
+ **Confirm Node**: Verifying edit success by reading lines 42-50."
@@ -0,0 +1,131 @@
1
+ import os
2
+ import re
3
+ import argparse
4
+ from pathlib import Path
5
+
6
+ # Mapping agents to native IDE file triggers (Globs)
7
+ GLOB_MAP = {
8
+ "frontend-specialist": ["**/*.tsx", "**/*.jsx", "**/*.html", "**/*.css", "src/components/**/*"],
9
+ "backend-specialist": ["**/*.ts", "**/api/**/*", "**/server/**/*", "**/routes/**/*"],
10
+ "database-architect": ["**/prisma/**/*", "**/drizzle/**/*", "**/*.sql", "**/db/**/*"],
11
+ "mobile-developer": ["**/*.tsx", "**/*.jsx", "ios/**/*", "android/**/*", "**/mobile/**/*"],
12
+ "security-auditor": ["**/auth/**/*", "**/security/**/*", ".env*", "**/middleware/**/*"],
13
+ "test-engineer": ["**/*.test.ts", "**/*.test.tsx", "**/__tests__/**/*", "**/tests/**/*"],
14
+ "devops-engineer": ["Dockerfile", "docker-compose.yml", ".github/**/*", "**/deploy/**/*", "scripts/**/*"],
15
+ "seo-specialist": ["**/pages/**/*", "**/metadata/**/*", "next.config.js", "sitemap.xml"],
16
+ }
17
+
18
+ def get_agent_root():
19
+ """Navigate to the .agent directory."""
20
+ current_path = Path(__file__).resolve()
21
+ for parent in current_path.parents:
22
+ if (parent / ".agent").exists():
23
+ return parent / ".agent"
24
+ return None
25
+
26
+ def extract_markdown_data(file_path):
27
+ """Extract frontmatter and content from a markdown file."""
28
+ content = file_path.read_text(encoding="utf-8")
29
+ frontmatter = {}
30
+ body = content
31
+
32
+ if content.startswith("---"):
33
+ match = re.match(r"---(.*?)---(.*)", content, re.DOTALL)
34
+ if match:
35
+ fm_text = match.group(1)
36
+ body = match.group(2).strip()
37
+ for line in fm_text.splitlines():
38
+ if ":" in line:
39
+ k, v = line.split(":", 1)
40
+ frontmatter[k.strip()] = v.strip()
41
+ return frontmatter, body
42
+
43
+ def get_tnbn_protocol(agent_root):
44
+ """Fetch the TNbN protocol from GEMINI.md."""
45
+ gemini_path = agent_root / "rules" / "GEMINI.md"
46
+ if gemini_path.exists():
47
+ _, body = extract_markdown_data(gemini_path)
48
+ # Extract the TNbN section
49
+ match = re.search(r"### 🧠 Think Node-by-Node (TNbN)(.*?)---", body, re.DOTALL)
50
+ if match:
51
+ return f"## 🧠 Think Node-by-Node (TNbN)\n{match.group(1).strip()}"
52
+ return ""
53
+
54
+ def export_to_cursor(agent_root, tnbn):
55
+ """Compile agent kit for Cursor (.mdc files)."""
56
+ cursor_rules_dir = agent_root.parent / ".cursor" / "rules"
57
+ cursor_rules_dir.mkdir(parents=True, exist_ok=True)
58
+
59
+ agents_dir = agent_root / "agents"
60
+ if not agents_dir.exists():
61
+ return
62
+
63
+ for agent_file in agents_dir.glob("*.md"):
64
+ fm, body = extract_markdown_data(agent_file)
65
+ name = fm.get("name", agent_file.stem)
66
+ description = fm.get("description", f"Specialist rules for {name}")
67
+ globs = GLOB_MAP.get(agent_file.stem, ["*"])
68
+
69
+ # Build .mdc content
70
+ mdc_content = f"---"
71
+ mdc_content += f"\ndescription: {description}"
72
+ mdc_content += f"\nglobs: [" + ", ".join([f'"{g}"' for g in globs]) + "]"
73
+ mdc_content += f"\n---"
74
+ mdc_content += f"\n\n# {name}\n\n"
75
+ mdc_content += f"{tnbn}\n\n"
76
+ mdc_content += f"## Specialist Protocol\n\n{body}"
77
+
78
+ # Clean up @skills references for Cursor
79
+ mdc_content = re.sub(r"@\[skills/.*?\]", "specialized agents", mdc_content)
80
+
81
+ target_path = cursor_rules_dir / f"{agent_file.stem}.mdc"
82
+ target_path.write_text(mdc_content, encoding="utf-8")
83
+ print(f"✅ Cursor: Compiled {target_path.name}")
84
+
85
+ def export_to_windsurf(agent_root, tnbn):
86
+ """Compile agent kit for Windsurf (AGENTS.md)."""
87
+ agents_dir = agent_root / "agents"
88
+ if not agents_dir.exists():
89
+ return
90
+
91
+ master_agents_content = f"# Master Intelligence (Antigravity Kit)\n\n"
92
+ master_agents_content += f"{tnbn}\n\n"
93
+ master_agents_content += "---"
94
+
95
+ for agent_file in agents_dir.glob("*.md"):
96
+ fm, body = extract_markdown_data(agent_file)
97
+ name = fm.get("name", agent_file.stem)
98
+ master_agents_content += f"\n\n## Specialist: {name}\n\n{body}\n\n---"
99
+
100
+ # Export AGENTS.md to root
101
+ target_path = agent_root.parent / "AGENTS.md"
102
+ target_path.write_text(master_agents_content, encoding="utf-8")
103
+
104
+ # Update .windsurfrules to point to AGENTS.md
105
+ windsurf_rules = agent_root.parent / ".windsurfrules"
106
+ windsurf_rules_content = f"## Intelligence Protocol\n\nRefer to AGENTS.md for specialist personas and TNbN reasoning."
107
+ windsurf_rules.write_text(windsurf_rules_content, encoding="utf-8")
108
+ print(f"✅ Windsurf: Compiled AGENTS.md & .windsurfrules")
109
+
110
+ def main():
111
+ parser = argparse.ArgumentParser(description="Antigravity Kit Universal Compiler")
112
+ parser.add_argument("--cursor", action="store_true", help="Compile for Cursor (.mdc)")
113
+ parser.add_argument("--windsurf", action="store_true", help="Compile for Windsurf (AGENTS.md)")
114
+ parser.add_argument("--all", action="store_true", help="Compile for all platforms")
115
+ args = parser.parse_args()
116
+
117
+ agent_root = get_agent_root()
118
+ if not agent_root:
119
+ print("Error: Could not find .agent directory.")
120
+ return
121
+
122
+ tnbn = get_tnbn_protocol(agent_root)
123
+
124
+ if args.cursor or args.all:
125
+ export_to_cursor(agent_root, tnbn)
126
+
127
+ if args.windsurf or args.all:
128
+ export_to_windsurf(agent_root, tnbn)
129
+
130
+ if __name__ == "__main__":
131
+ main()
@@ -0,0 +1,125 @@
1
+ import os
2
+ import json
3
+ import argparse
4
+ from pathlib import Path
5
+
6
+ def get_agent_root():
7
+ """Navigate to the .agent directory."""
8
+ current_path = Path(__file__).resolve()
9
+ for parent in current_path.parents:
10
+ if (parent / ".agent").exists():
11
+ return parent / ".agent"
12
+ return None
13
+
14
+ def list_skills(agent_root):
15
+ """Index all folders in the skills directory and parse their metadata."""
16
+ skills_dir = agent_root / "skills"
17
+ skills_map = {}
18
+ if skills_dir.exists():
19
+ for skill_folder in skills_dir.iterdir():
20
+ if skill_folder.is_dir():
21
+ skill_md = skill_folder / "SKILL.md"
22
+ description = "No description available."
23
+ if skill_md.exists():
24
+ try:
25
+ content = skill_md.read_text(encoding="utf-8")
26
+ # Basic YAML frontmatter parser for simplicity
27
+ if content.startswith("---"):
28
+ end_pos = content.find("---", 3)
29
+ if end_pos != -1:
30
+ frontmatter = content[3:end_pos]
31
+ for line in frontmatter.splitlines():
32
+ if "description:" in line:
33
+ description = line.split("description:", 1)[1].strip()
34
+ break
35
+ except Exception:
36
+ pass
37
+
38
+ scripts = []
39
+ scripts_dir = skill_folder / "scripts"
40
+ if scripts_dir.exists():
41
+ scripts = [f.name for f in scripts_dir.iterdir() if f.is_file()]
42
+
43
+ skills_map[skill_folder.name] = {
44
+ "description": description,
45
+ "scripts": scripts
46
+ }
47
+ return skills_map
48
+
49
+ def list_workflows(agent_root):
50
+ workflows_dir = agent_root / "workflows"
51
+ workflows_map = {}
52
+ if workflows_dir.exists():
53
+ for workflow_file in workflows_dir.iterdir():
54
+ if workflow_file.is_file() and workflow_file.suffix == ".md":
55
+ name = workflow_file.stem
56
+ description = "No description available."
57
+ try:
58
+ content = workflow_file.read_text(encoding="utf-8")
59
+ if content.startswith("---"):
60
+ end_pos = content.find("---", 3)
61
+ if end_pos != -1:
62
+ frontmatter = content[3:end_pos]
63
+ for line in frontmatter.splitlines():
64
+ if "description:" in line:
65
+ description = line.split("description:", 1)[1].strip()
66
+ break
67
+ except Exception:
68
+ pass
69
+ workflows_map[name] = description
70
+ return workflows_map
71
+
72
+ def list_master_scripts(agent_root):
73
+ scripts_dir = agent_root / "scripts"
74
+ master_scripts = []
75
+ if scripts_dir.exists():
76
+ master_scripts = [f.name for f in scripts_dir.iterdir() if f.is_file()]
77
+ return master_scripts
78
+
79
+ def main():
80
+ parser = argparse.ArgumentParser(description="Antigravity Tool Registry Discovery")
81
+ parser.add_argument("command", choices=["map", "verify"], help="Command to run")
82
+ parser.add_argument("--tool", help="Specific tool name to verify")
83
+ args = parser.parse_args()
84
+
85
+ agent_root = get_agent_root()
86
+ if not agent_root:
87
+ print("Error: Could not find .agent directory.")
88
+ return
89
+
90
+ if args.command == "map":
91
+ results = {
92
+ "skills": list_skills(agent_root),
93
+ "workflows": list_workflows(agent_root),
94
+ "master_scripts": list_master_scripts(agent_root)
95
+ }
96
+ print(json.dumps(results, indent=2))
97
+
98
+ elif args.command == "verify":
99
+ if not args.tool:
100
+ print("Error: Please provide a tool name with --tool")
101
+ return
102
+
103
+ skills = list_skills(agent_root)
104
+ workflows = list_workflows(agent_root)
105
+ scripts = list_master_scripts(agent_root)
106
+
107
+ found = False
108
+ if args.tool in skills:
109
+ print(f"Tool FOUND in SKILLS: {args.tool}")
110
+ print(f"Description: {skills[args.tool]['description']}")
111
+ print(f"Scripts: {skills[args.tool]['scripts']}")
112
+ found = True
113
+ elif args.tool in workflows:
114
+ print(f"Tool FOUND in WORKFLOWS: {args.tool}")
115
+ print(f"Description: {workflows[args.tool]}")
116
+ found = True
117
+ elif args.tool in scripts:
118
+ print(f"Tool FOUND in MASTER SCRIPTS: {args.tool}")
119
+ found = True
120
+
121
+ if not found:
122
+ print(f"Tool NOT FOUND: {args.tool}")
123
+
124
+ if __name__ == "__main__":
125
+ main()