@musashishao/agent-kit 1.2.2

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 (236) hide show
  1. package/.agent/agents/backend-specialist.md +263 -0
  2. package/.agent/agents/database-architect.md +226 -0
  3. package/.agent/agents/debugger.md +225 -0
  4. package/.agent/agents/devops-engineer.md +242 -0
  5. package/.agent/agents/documentation-writer.md +104 -0
  6. package/.agent/agents/explorer-agent.md +73 -0
  7. package/.agent/agents/frontend-specialist.md +556 -0
  8. package/.agent/agents/game-developer.md +162 -0
  9. package/.agent/agents/mobile-developer.md +377 -0
  10. package/.agent/agents/orchestrator.md +416 -0
  11. package/.agent/agents/penetration-tester.md +188 -0
  12. package/.agent/agents/performance-optimizer.md +187 -0
  13. package/.agent/agents/project-planner.md +403 -0
  14. package/.agent/agents/security-auditor.md +170 -0
  15. package/.agent/agents/seo-specialist.md +111 -0
  16. package/.agent/agents/test-engineer.md +158 -0
  17. package/.agent/mcp/README.md +69 -0
  18. package/.agent/mcp/config/mcp-config.json +62 -0
  19. package/.agent/mcp/config/registry.json +54 -0
  20. package/.agent/mcp/servers/agent-kit-core/package.json +28 -0
  21. package/.agent/mcp/servers/agent-kit-core/src/index.ts +455 -0
  22. package/.agent/mcp/servers/agent-kit-core/tsconfig.json +16 -0
  23. package/.agent/mcp/servers/agent-kit-fs/package.json +25 -0
  24. package/.agent/mcp/servers/agent-kit-fs/src/index.ts +399 -0
  25. package/.agent/mcp/servers/agent-kit-fs/tsconfig.json +16 -0
  26. package/.agent/mcp/servers/agent-kit-git/package.json +24 -0
  27. package/.agent/mcp/servers/agent-kit-git/src/index.ts +283 -0
  28. package/.agent/mcp/servers/agent-kit-git/tsconfig.json +16 -0
  29. package/.agent/mcp/templates/README.md +49 -0
  30. package/.agent/mcp/templates/api/README.md.template +45 -0
  31. package/.agent/mcp/templates/api/src/index.ts.template +185 -0
  32. package/.agent/mcp/templates/base-package.json.template +27 -0
  33. package/.agent/mcp/templates/base-tsconfig.json +21 -0
  34. package/.agent/mcp/templates/custom/src/index.ts.template +133 -0
  35. package/.agent/mcp/templates/database/src/index.ts.template +273 -0
  36. package/.agent/mcp/templates/web-scraper/src/index.ts.template +239 -0
  37. package/.agent/rules/CODEX.md +250 -0
  38. package/.agent/rules/GEMINI.md +251 -0
  39. package/.agent/skills/api-patterns/SKILL.md +81 -0
  40. package/.agent/skills/api-patterns/api-style.md +42 -0
  41. package/.agent/skills/api-patterns/auth.md +24 -0
  42. package/.agent/skills/api-patterns/documentation.md +26 -0
  43. package/.agent/skills/api-patterns/graphql.md +41 -0
  44. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  45. package/.agent/skills/api-patterns/response.md +37 -0
  46. package/.agent/skills/api-patterns/rest.md +40 -0
  47. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  48. package/.agent/skills/api-patterns/security-testing.md +122 -0
  49. package/.agent/skills/api-patterns/trpc.md +41 -0
  50. package/.agent/skills/api-patterns/versioning.md +22 -0
  51. package/.agent/skills/app-builder/SKILL.md +75 -0
  52. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  53. package/.agent/skills/app-builder/feature-building.md +53 -0
  54. package/.agent/skills/app-builder/project-detection.md +34 -0
  55. package/.agent/skills/app-builder/scaffolding.md +118 -0
  56. package/.agent/skills/app-builder/tech-stack.md +40 -0
  57. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  58. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  59. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  60. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  61. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  62. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  63. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  64. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  65. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
  66. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
  67. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
  68. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
  69. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  70. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
  71. package/.agent/skills/architecture/SKILL.md +55 -0
  72. package/.agent/skills/architecture/context-discovery.md +43 -0
  73. package/.agent/skills/architecture/examples.md +94 -0
  74. package/.agent/skills/architecture/pattern-selection.md +68 -0
  75. package/.agent/skills/architecture/patterns-reference.md +50 -0
  76. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  77. package/.agent/skills/bash-linux/SKILL.md +199 -0
  78. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  79. package/.agent/skills/brainstorming/SKILL.md +163 -0
  80. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  81. package/.agent/skills/clean-code/SKILL.md +201 -0
  82. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  83. package/.agent/skills/context-engineering/SKILL.md +74 -0
  84. package/.agent/skills/context-engineering/examples/advanced_code_request.md +73 -0
  85. package/.agent/skills/context-engineering/scripts/quality_validator.py +294 -0
  86. package/.agent/skills/context-engineering/scripts/repo_mapper.py +27 -0
  87. package/.agent/skills/context-engineering/scripts/skill_checker.py +194 -0
  88. package/.agent/skills/context-engineering/scripts/token_counter.py +65 -0
  89. package/.agent/skills/context-engineering/strategies/context-caching.md +50 -0
  90. package/.agent/skills/context-engineering/strategies/few-shot-examples.md +56 -0
  91. package/.agent/skills/context-engineering/strategies/skeleton-code.md +59 -0
  92. package/.agent/skills/context-engineering/strategies/xml-framing.md +57 -0
  93. package/.agent/skills/database-design/SKILL.md +52 -0
  94. package/.agent/skills/database-design/database-selection.md +43 -0
  95. package/.agent/skills/database-design/indexing.md +39 -0
  96. package/.agent/skills/database-design/migrations.md +48 -0
  97. package/.agent/skills/database-design/optimization.md +36 -0
  98. package/.agent/skills/database-design/orm-selection.md +30 -0
  99. package/.agent/skills/database-design/schema-design.md +56 -0
  100. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  101. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  102. package/.agent/skills/doc.md +177 -0
  103. package/.agent/skills/docker-expert/SKILL.md +409 -0
  104. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  105. package/.agent/skills/frontend-design/SKILL.md +396 -0
  106. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  107. package/.agent/skills/frontend-design/color-system.md +311 -0
  108. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  109. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  110. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  111. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  112. package/.agent/skills/frontend-design/typography-system.md +345 -0
  113. package/.agent/skills/frontend-design/ux-psychology.md +541 -0
  114. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  115. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  116. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  117. package/.agent/skills/game-development/SKILL.md +167 -0
  118. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  119. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  120. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  121. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  122. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  123. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  124. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  125. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  126. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  127. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  128. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  129. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  130. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  131. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
  132. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  133. package/.agent/skills/mcp-builder/SKILL.md +662 -0
  134. package/.agent/skills/mcp-builder/python-template.md +522 -0
  135. package/.agent/skills/mcp-builder/tool-patterns.md +642 -0
  136. package/.agent/skills/mcp-builder/typescript-template.md +361 -0
  137. package/.agent/skills/mobile-design/SKILL.md +394 -0
  138. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  139. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  140. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  141. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  142. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  143. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  144. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  145. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  146. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  147. package/.agent/skills/mobile-design/platform-android.md +666 -0
  148. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  149. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  150. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  151. package/.agent/skills/nestjs-expert/SKILL.md +552 -0
  152. package/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
  153. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  154. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  155. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  156. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  157. package/.agent/skills/plan-writing/SKILL.md +152 -0
  158. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  159. package/.agent/skills/prisma-expert/SKILL.md +355 -0
  160. package/.agent/skills/problem-solving/SKILL.md +556 -0
  161. package/.agent/skills/problem-solving/collision-zone-thinking.md +285 -0
  162. package/.agent/skills/problem-solving/inversion-exercise.md +205 -0
  163. package/.agent/skills/problem-solving/meta-pattern-recognition.md +313 -0
  164. package/.agent/skills/problem-solving/scale-game.md +300 -0
  165. package/.agent/skills/problem-solving/simplification-cascades.md +321 -0
  166. package/.agent/skills/problem-solving/when-stuck.md +146 -0
  167. package/.agent/skills/python-patterns/SKILL.md +441 -0
  168. package/.agent/skills/react-patterns/SKILL.md +198 -0
  169. package/.agent/skills/red-team-tactics/SKILL.md +199 -0
  170. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  171. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  172. package/.agent/skills/server-management/SKILL.md +161 -0
  173. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  174. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  175. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  176. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  177. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  178. package/.agent/skills/typescript-expert/SKILL.md +429 -0
  179. package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
  180. package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
  181. package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
  182. package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
  183. package/.agent/skills/ui-ux-pro-max/SKILL.md +351 -0
  184. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  185. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  186. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  187. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  188. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  189. package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  190. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  191. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  192. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  193. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  194. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  195. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  196. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  197. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  198. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  199. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  200. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  201. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  202. package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  203. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  204. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  205. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  206. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  207. package/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
  208. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
  209. package/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
  210. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  211. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  212. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  213. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  214. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  215. package/.agent/templates/AGENTS.backend.md +230 -0
  216. package/.agent/templates/AGENTS.md +121 -0
  217. package/.agent/templates/AGENTS.mobile.md +183 -0
  218. package/.agent/templates/AGENTS.web.md +192 -0
  219. package/.agent/workflows/brainstorm.md +113 -0
  220. package/.agent/workflows/context.md +47 -0
  221. package/.agent/workflows/create.md +59 -0
  222. package/.agent/workflows/debug.md +103 -0
  223. package/.agent/workflows/deploy.md +176 -0
  224. package/.agent/workflows/enhance.md +63 -0
  225. package/.agent/workflows/orchestrate.md +237 -0
  226. package/.agent/workflows/plan.md +89 -0
  227. package/.agent/workflows/preview.md +80 -0
  228. package/.agent/workflows/quality.md +89 -0
  229. package/.agent/workflows/status.md +86 -0
  230. package/.agent/workflows/test.md +144 -0
  231. package/.agent/workflows/ui-ux-pro-max.md +250 -0
  232. package/LICENSE +21 -0
  233. package/README.md +317 -0
  234. package/bin/cli.js +1267 -0
  235. package/index.js +1 -0
  236. package/package.json +50 -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,230 @@
1
+ # AGENTS.md - Backend API
2
+
3
+ > **[PROJECT_NAME]** - Production-ready backend API.
4
+
5
+ ---
6
+
7
+ ## ๐Ÿš€ Project Overview
8
+
9
+ [Brief description of your backend API]
10
+
11
+ ### Tech Stack
12
+
13
+ | Layer | Technology | Version |
14
+ |-------|------------|---------|
15
+ | **Runtime** | Node.js | 20.x LTS |
16
+ | **Framework** | Express / Fastify / NestJS | - |
17
+ | **Language** | TypeScript | 5.x |
18
+ | **Database** | PostgreSQL + Prisma | - |
19
+ | **Cache** | Redis | 7.x |
20
+ | **Auth** | JWT + bcrypt | - |
21
+ | **Docs** | Swagger / OpenAPI | 3.1 |
22
+
23
+ ---
24
+
25
+ ## ๐Ÿ› ๏ธ Setup Commands
26
+
27
+ ```bash
28
+ # Install dependencies
29
+ npm install
30
+
31
+ # Setup database
32
+ npx prisma generate
33
+ npx prisma migrate dev
34
+
35
+ # Seed database
36
+ npm run db:seed
37
+
38
+ # Start development server
39
+ npm run dev
40
+
41
+ # Build for production
42
+ npm run build
43
+
44
+ # Start production server
45
+ npm start
46
+
47
+ # Run tests
48
+ npm test
49
+
50
+ # Lint code
51
+ npm run lint
52
+ ```
53
+
54
+ ---
55
+
56
+ ## ๐Ÿ“ Code Style & Standards
57
+
58
+ ### TypeScript
59
+ - Strict mode enabled
60
+ - Proper typing for all functions
61
+ - DTOs for request/response validation
62
+
63
+ ### API Patterns
64
+ - RESTful conventions
65
+ - Consistent error handling
66
+ - Request validation with Zod/Joi
67
+ - Response serialization
68
+
69
+ ### File Naming
70
+ - Controllers: `resource.controller.ts`
71
+ - Services: `resource.service.ts`
72
+ - Routes: `resource.routes.ts`
73
+
74
+ ---
75
+
76
+ ## ๐Ÿ“ Project Structure
77
+
78
+ ```
79
+ src/
80
+ โ”œโ”€โ”€ controllers/ # Request handlers
81
+ โ”œโ”€โ”€ services/ # Business logic
82
+ โ”œโ”€โ”€ routes/ # API routes
83
+ โ”œโ”€โ”€ middleware/
84
+ โ”‚ โ”œโ”€โ”€ auth.ts # Authentication
85
+ โ”‚ โ”œโ”€โ”€ validation.ts # Request validation
86
+ โ”‚ โ””โ”€โ”€ error-handler.ts # Error handling
87
+ โ”œโ”€โ”€ models/ # Database models
88
+ โ”œโ”€โ”€ types/ # TypeScript types
89
+ โ”œโ”€โ”€ utils/ # Utility functions
90
+ โ”œโ”€โ”€ config/ # Configuration
91
+ โ””โ”€โ”€ index.ts # Entry point
92
+ ```
93
+
94
+ ---
95
+
96
+ ## ๐Ÿ”Œ API Endpoints
97
+
98
+ ```
99
+ GET /api/v1/resources # List resources
100
+ POST /api/v1/resources # Create resource
101
+ GET /api/v1/resources/:id # Get single resource
102
+ PUT /api/v1/resources/:id # Update resource
103
+ DELETE /api/v1/resources/:id # Delete resource
104
+ ```
105
+
106
+ API Documentation: `http://localhost:3000/api/docs`
107
+
108
+ ---
109
+
110
+ ## ๐Ÿ”’ Security Guidelines
111
+
112
+ ### Environment Variables
113
+ ```bash
114
+ # Required (never commit these)
115
+ DATABASE_URL=
116
+ JWT_SECRET=
117
+ REDIS_URL=
118
+ ```
119
+
120
+ ### Best Practices
121
+ - Input validation on all endpoints
122
+ - Rate limiting on sensitive routes
123
+ - CORS configuration
124
+ - Helmet for security headers
125
+ - SQL injection prevention (use Prisma/ORM)
126
+ - Password hashing with bcrypt
127
+ - JWT token expiration
128
+
129
+ ### Authentication Flow
130
+ ```
131
+ POST /api/v1/auth/register
132
+ POST /api/v1/auth/login
133
+ POST /api/v1/auth/refresh
134
+ POST /api/v1/auth/logout
135
+ ```
136
+
137
+ ---
138
+
139
+ ## ๐Ÿงช Testing
140
+
141
+ ```bash
142
+ # Unit tests
143
+ npm test
144
+
145
+ # Integration tests
146
+ npm run test:integration
147
+
148
+ # Coverage report
149
+ npm run test:coverage
150
+ ```
151
+
152
+ ### Test Structure
153
+ ```
154
+ __tests__/
155
+ โ”œโ”€โ”€ unit/
156
+ โ”‚ โ”œโ”€โ”€ services/
157
+ โ”‚ โ””โ”€โ”€ utils/
158
+ โ”œโ”€โ”€ integration/
159
+ โ”‚ โ””โ”€โ”€ api/
160
+ โ””โ”€โ”€ fixtures/
161
+ ```
162
+
163
+ ---
164
+
165
+ ## ๐Ÿ“Š Database
166
+
167
+ ### Prisma Commands
168
+ ```bash
169
+ # Generate client
170
+ npx prisma generate
171
+
172
+ # Create migration
173
+ npx prisma migrate dev --name migration_name
174
+
175
+ # Reset database
176
+ npx prisma migrate reset
177
+
178
+ # Open Prisma Studio
179
+ npx prisma studio
180
+ ```
181
+
182
+ ---
183
+
184
+ ## ๐Ÿš€ Deployment
185
+
186
+ ```bash
187
+ # Build
188
+ npm run build
189
+
190
+ # Start production
191
+ NODE_ENV=production npm start
192
+
193
+ # With PM2
194
+ pm2 start ecosystem.config.js
195
+
196
+ # Docker
197
+ docker-compose up -d
198
+ ```
199
+
200
+ ---
201
+
202
+ ## ๐Ÿค– AI Agent Configuration
203
+
204
+ ### Quick Commands
205
+
206
+ | Command | Description |
207
+ |---------|-------------|
208
+ | `/create user CRUD` | Create CRUD endpoints |
209
+ | `/debug 500 error` | Debug server errors |
210
+ | `/test UserService` | Generate tests |
211
+ | `/plan microservice` | Plan architecture |
212
+
213
+ ### Agent Mentions
214
+
215
+ - `@backend-specialist` - API development
216
+ - `@database-architect` - Schema design
217
+ - `@security-auditor` - Security review
218
+ - `@devops-engineer` - Deployment
219
+
220
+ ---
221
+
222
+ ## ๐Ÿ“š Additional Resources
223
+
224
+ - [Express.js](https://expressjs.com)
225
+ - [Prisma Documentation](https://www.prisma.io/docs)
226
+ - [JWT Best Practices](https://jwt.io/introduction)
227
+
228
+ ---
229
+
230
+ *Built with Agent Kit - AI-enhanced backend development*
@@ -0,0 +1,121 @@
1
+ # AGENTS.md
2
+
3
+ > **Project using Agent Kit** - AI-enhanced development configuration.
4
+
5
+ ---
6
+
7
+ ## ๐Ÿš€ Project Overview
8
+
9
+ <!-- Replace with your project description -->
10
+ [PROJECT_NAME] - [Brief description of what this project does]
11
+
12
+ ### Tech Stack
13
+ <!-- Update based on your project -->
14
+ | Layer | Technology |
15
+ |-------|------------|
16
+ | **Frontend** | Next.js / React |
17
+ | **Backend** | Node.js / Express |
18
+ | **Database** | PostgreSQL / MongoDB |
19
+ | **Styling** | Tailwind CSS |
20
+
21
+ ---
22
+
23
+ ## ๐Ÿ› ๏ธ Setup Commands
24
+
25
+ ```bash
26
+ # Install dependencies
27
+ npm install
28
+
29
+ # Start development server
30
+ npm run dev
31
+
32
+ # Run tests
33
+ npm test
34
+
35
+ # Build for production
36
+ npm run build
37
+
38
+ # Lint code
39
+ npm run lint
40
+ ```
41
+
42
+ ---
43
+
44
+ ## ๐Ÿ“ Code Style
45
+
46
+ - **TypeScript** strict mode enabled
47
+ - **Functional components** with hooks
48
+ - **Tailwind CSS** for styling
49
+ - **Absolute imports** with `@/` alias
50
+ - External links: always add `rel="noopener noreferrer"`
51
+
52
+ ---
53
+
54
+ ## ๐Ÿ“ Project Structure
55
+
56
+ ```
57
+ src/
58
+ โ”œโ”€โ”€ app/ # Next.js App Router
59
+ โ”œโ”€โ”€ components/ # React components
60
+ โ”œโ”€โ”€ lib/ # Utilities
61
+ โ”œโ”€โ”€ hooks/ # Custom hooks
62
+ โ””โ”€โ”€ types/ # TypeScript types
63
+ ```
64
+
65
+ ---
66
+
67
+ ## ๐Ÿงช Testing
68
+
69
+ ```bash
70
+ # Unit tests
71
+ npm test
72
+
73
+ # E2E tests
74
+ npm run test:e2e
75
+
76
+ # Coverage report
77
+ npm run test:coverage
78
+ ```
79
+
80
+ ---
81
+
82
+ ## ๐Ÿ”’ Security
83
+
84
+ - No hardcoded API keys or secrets
85
+ - Environment variables for configuration
86
+ - Follow OWASP security guidelines
87
+ - Input validation on all forms
88
+
89
+ ---
90
+
91
+ ## ๐Ÿค– AI Agent Configuration
92
+
93
+ This project uses [Agent Kit](https://github.com/musashishao/agent-kit) for AI-enhanced development.
94
+
95
+ ### Available Slash Commands
96
+ | Command | Purpose |
97
+ |---------|---------|
98
+ | `/create` | Create new features |
99
+ | `/debug` | Debug issues |
100
+ | `/test` | Generate tests |
101
+ | `/deploy` | Deploy to production |
102
+ | `/ui-ux-pro-max` | Design premium UI |
103
+
104
+ ### Available Agents
105
+ Mention agents with `@agent-name`:
106
+ - `@frontend-specialist` - UI development
107
+ - `@backend-specialist` - API/server
108
+ - `@debugger` - Bug fixing
109
+ - `@security-auditor` - Security review
110
+
111
+ ---
112
+
113
+ ## ๐Ÿ“š Documentation
114
+
115
+ - README.md - Getting started
116
+ - docs/ - Detailed documentation
117
+ - .agent/ - AI agent configuration
118
+
119
+ ---
120
+
121
+ *Powered by Agent Kit*
@@ -0,0 +1,183 @@
1
+ # AGENTS.md - Mobile Application
2
+
3
+ > **[PROJECT_NAME]** - Cross-platform mobile application.
4
+
5
+ ---
6
+
7
+ ## ๐Ÿš€ Project Overview
8
+
9
+ [Brief description of your mobile application]
10
+
11
+ ### Tech Stack
12
+
13
+ | Layer | Technology | Version |
14
+ |-------|------------|---------|
15
+ | **Framework** | React Native | 0.76.x |
16
+ | **Navigation** | React Navigation | 7.x |
17
+ | **State** | Zustand / TanStack Query | - |
18
+ | **Styling** | NativeWind (Tailwind) | 4.x |
19
+ | **Build** | Expo | 52.x |
20
+ | **Backend** | Firebase / Supabase | - |
21
+
22
+ ---
23
+
24
+ ## ๐Ÿ› ๏ธ Setup Commands
25
+
26
+ ```bash
27
+ # Install dependencies
28
+ npm install
29
+
30
+ # Start Expo development server
31
+ npm start
32
+
33
+ # Run on iOS simulator
34
+ npm run ios
35
+
36
+ # Run on Android emulator
37
+ npm run android
38
+
39
+ # Run tests
40
+ npm test
41
+
42
+ # Lint code
43
+ npm run lint
44
+ ```
45
+
46
+ ---
47
+
48
+ ## ๐Ÿ“ Code Style & Standards
49
+
50
+ ### TypeScript
51
+ - Strict mode enabled
52
+ - Proper typing for all props
53
+ - No `any` types
54
+
55
+ ### React Native Patterns
56
+ - Functional components with hooks
57
+ - Memoization for performance
58
+ - Platform-specific files when needed (`.ios.tsx`, `.android.tsx`)
59
+
60
+ ### File Naming
61
+ - Screens: `ScreenName.tsx` โ†’ `HomeScreen.tsx`
62
+ - Components: `ComponentName.tsx` โ†’ `Button.tsx`
63
+ - Hooks: `useHookName.ts` โ†’ `useAuth.ts`
64
+
65
+ ---
66
+
67
+ ## ๐Ÿ“ Project Structure
68
+
69
+ ```
70
+ src/
71
+ โ”œโ”€โ”€ app/ # Expo Router screens
72
+ โ”‚ โ”œโ”€โ”€ (tabs)/ # Tab navigation
73
+ โ”‚ โ”œโ”€โ”€ (auth)/ # Auth screens
74
+ โ”‚ โ””โ”€โ”€ _layout.tsx # Root layout
75
+ โ”‚
76
+ โ”œโ”€โ”€ components/
77
+ โ”‚ โ”œโ”€โ”€ ui/ # Reusable UI components
78
+ โ”‚ โ”œโ”€โ”€ forms/ # Form components
79
+ โ”‚ โ””โ”€โ”€ layout/ # Layout components
80
+ โ”‚
81
+ โ”œโ”€โ”€ lib/
82
+ โ”‚ โ”œโ”€โ”€ api.ts # API client
83
+ โ”‚ โ””โ”€โ”€ utils.ts # Utility functions
84
+ โ”‚
85
+ โ”œโ”€โ”€ hooks/ # Custom hooks
86
+ โ”œโ”€โ”€ stores/ # Zustand stores
87
+ โ”œโ”€โ”€ types/ # TypeScript types
88
+ โ””โ”€โ”€ constants/ # App constants
89
+ ```
90
+
91
+ ---
92
+
93
+ ## ๐Ÿ”’ Security Guidelines
94
+
95
+ ### Environment Variables
96
+ ```bash
97
+ # Use expo-constants or react-native-dotenv
98
+ EXPO_PUBLIC_API_URL=
99
+ EXPO_PUBLIC_FIREBASE_API_KEY=
100
+ ```
101
+
102
+ ### Best Practices
103
+ - Never store sensitive data in AsyncStorage unencrypted
104
+ - Use Keychain (iOS) / Keystore (Android) for tokens
105
+ - Validate all API responses
106
+ - Implement certificate pinning for production
107
+
108
+ ---
109
+
110
+ ## ๐Ÿงช Testing
111
+
112
+ ```bash
113
+ # Unit tests with Jest
114
+ npm test
115
+
116
+ # E2E tests with Detox
117
+ npm run test:e2e
118
+
119
+ # Coverage report
120
+ npm run test:coverage
121
+ ```
122
+
123
+ ---
124
+
125
+ ## ๐Ÿ“ฑ Platform Specifics
126
+
127
+ ### iOS
128
+ - Minimum iOS version: 15.1
129
+ - Required permissions in `app.json`
130
+ - Submit via App Store Connect
131
+
132
+ ### Android
133
+ - Minimum SDK: 24 (Android 7.0)
134
+ - Required permissions in `app.json`
135
+ - Submit via Google Play Console
136
+
137
+ ---
138
+
139
+ ## ๐Ÿš€ Deployment
140
+
141
+ ```bash
142
+ # Build for iOS
143
+ eas build --platform ios
144
+
145
+ # Build for Android
146
+ eas build --platform android
147
+
148
+ # Submit to stores
149
+ eas submit
150
+ ```
151
+
152
+ ---
153
+
154
+ ## ๐Ÿค– AI Agent Configuration
155
+
156
+ ### Quick Commands
157
+
158
+ | Command | Description |
159
+ |---------|-------------|
160
+ | `/create login screen` | Create auth screens |
161
+ | `/debug navigation crash` | Debug navigation issues |
162
+ | `/test ProfileScreen` | Generate tests |
163
+ | `/ui-ux-pro-max bottom sheet` | Design mobile UI |
164
+
165
+ ### Agent Mentions
166
+
167
+ - `@mobile-developer` - React Native / Flutter
168
+ - `@frontend-specialist` - Component design
169
+ - `@backend-specialist` - API integration
170
+ - `@test-engineer` - Test generation
171
+
172
+ ---
173
+
174
+ ## ๐Ÿ“š Additional Resources
175
+
176
+ - [React Native Documentation](https://reactnative.dev)
177
+ - [Expo Documentation](https://docs.expo.dev)
178
+ - [React Navigation](https://reactnavigation.org)
179
+ - [NativeWind](https://www.nativewind.dev)
180
+
181
+ ---
182
+
183
+ *Built with Agent Kit - AI-enhanced mobile development*