@jhm1909/ag-kit 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 (320) hide show
  1. package/.agent/ARCHITECTURE.md +189 -0
  2. package/.agent/known-registries.json +181 -0
  3. package/.agent/mcp_config.json +19 -0
  4. package/.agent/rules/clean-code.md +107 -0
  5. package/.agent/rules/documents.md +177 -0
  6. package/.agent/rules/git-workflow.md +68 -0
  7. package/.agent/rules/nano-banana.md +46 -0
  8. package/.agent/rules/research.md +35 -0
  9. package/.agent/rules/skill-loading.md +100 -0
  10. package/.agent/rules/skill-suggestion.md +47 -0
  11. package/.agent/rules/testing.md +52 -0
  12. package/.agent/rules/workflow-advisor.md +108 -0
  13. package/.agent/rules/workflow-skill-convention.md +127 -0
  14. package/.agent/skills/ai-engineer/SKILL.md +824 -0
  15. package/.agent/skills/ai-engineer/references/agentic-patterns.md +329 -0
  16. package/.agent/skills/ai-engineer/references/evaluation.md +493 -0
  17. package/.agent/skills/ai-engineer/references/llm.md +490 -0
  18. package/.agent/skills/ai-engineer/references/rag-advanced.md +444 -0
  19. package/.agent/skills/ai-engineer/references/serving-optimization.md +531 -0
  20. package/.agent/skills/ai-engineer/vector-db/README.md +137 -0
  21. package/.agent/skills/app-builder/SKILL.md +75 -0
  22. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  23. package/.agent/skills/app-builder/feature-building.md +53 -0
  24. package/.agent/skills/app-builder/project-detection.md +34 -0
  25. package/.agent/skills/app-builder/scaffolding.md +118 -0
  26. package/.agent/skills/app-builder/tech-stack.md +41 -0
  27. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  28. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  29. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  30. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  31. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  32. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  33. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  34. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  35. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  36. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  37. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  38. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  39. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  40. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  41. package/.agent/skills/backend-developer/SKILL.md +763 -0
  42. package/.agent/skills/backend-developer/references/general-patterns.md +65 -0
  43. package/.agent/skills/backend-developer/references/go-echo.md +68 -0
  44. package/.agent/skills/backend-developer/references/go-gin.md +76 -0
  45. package/.agent/skills/backend-developer/references/java-springboot.md +83 -0
  46. package/.agent/skills/backend-developer/references/node-express.md +64 -0
  47. package/.agent/skills/backend-developer/references/node-nestjs.md +69 -0
  48. package/.agent/skills/backend-developer/references/python-django.md +67 -0
  49. package/.agent/skills/backend-developer/references/python-fastapi.md +80 -0
  50. package/.agent/skills/blockchain-engineer/SKILL.md +975 -0
  51. package/.agent/skills/blockchain-engineer/references/deployment.md +28 -0
  52. package/.agent/skills/blockchain-engineer/references/evm.md +14 -0
  53. package/.agent/skills/blockchain-engineer/references/mechanisms.md +32 -0
  54. package/.agent/skills/blockchain-engineer/references/solidity.md +32 -0
  55. package/.agent/skills/business-analysis/SKILL.md +85 -0
  56. package/.agent/skills/business-analysis/references/best-practices/diagrams.md +141 -0
  57. package/.agent/skills/business-analysis/references/domains/ai-agent.md +94 -0
  58. package/.agent/skills/business-analysis/references/domains/blockchain-dapp.md +86 -0
  59. package/.agent/skills/business-analysis/references/domains/ecommerce.md +77 -0
  60. package/.agent/skills/business-analysis/references/domains/education.md +42 -0
  61. package/.agent/skills/business-analysis/references/domains/fintech.md +44 -0
  62. package/.agent/skills/business-analysis/references/domains/fnb.md +82 -0
  63. package/.agent/skills/business-analysis/references/domains/healthtech.md +44 -0
  64. package/.agent/skills/business-analysis/references/domains/internal-tools.md +38 -0
  65. package/.agent/skills/business-analysis/references/domains/marketplace.md +52 -0
  66. package/.agent/skills/business-analysis/references/domains/saas.md +36 -0
  67. package/.agent/skills/business-analysis/references/workflows/collaboration.md +41 -0
  68. package/.agent/skills/business-analysis/scripts/verify_mermaid.py +86 -0
  69. package/.agent/skills/business-analysis/templates/brd.md +46 -0
  70. package/.agent/skills/business-analysis/templates/change-request.md +41 -0
  71. package/.agent/skills/business-analysis/templates/prd-functional.md +38 -0
  72. package/.agent/skills/business-analysis/templates/use-case.md +40 -0
  73. package/.agent/skills/business-analysis/templates/user-story-detailed.md +36 -0
  74. package/.agent/skills/code-review/SKILL.md +113 -0
  75. package/.agent/skills/code-review/references/code-review-reception.md +209 -0
  76. package/.agent/skills/code-review/references/differential_review.md +59 -0
  77. package/.agent/skills/code-review/references/requesting-code-review.md +105 -0
  78. package/.agent/skills/code-review/references/spec_compliance.md +43 -0
  79. package/.agent/skills/code-review/references/verification-before-completion.md +139 -0
  80. package/.agent/skills/context-engineering/SKILL.md +68 -0
  81. package/.agent/skills/context-engineering/references/context-compression.md +84 -0
  82. package/.agent/skills/context-engineering/references/context-degradation.md +93 -0
  83. package/.agent/skills/context-engineering/references/context-fundamentals.md +75 -0
  84. package/.agent/skills/context-engineering/references/context-optimization.md +82 -0
  85. package/.agent/skills/context-engineering/references/evaluation.md +89 -0
  86. package/.agent/skills/context-engineering/references/memory-systems.md +88 -0
  87. package/.agent/skills/context-engineering/references/multi-agent-patterns.md +90 -0
  88. package/.agent/skills/context-engineering/references/project-development.md +97 -0
  89. package/.agent/skills/context-engineering/references/tool-design.md +86 -0
  90. package/.agent/skills/debugging/SKILL.md +60 -0
  91. package/.agent/skills/debugging/references/defense-in-depth.md +130 -0
  92. package/.agent/skills/debugging/references/root-cause-tracing.md +177 -0
  93. package/.agent/skills/debugging/references/systematic-debugging.md +295 -0
  94. package/.agent/skills/debugging/references/verification-before-completion.md +142 -0
  95. package/.agent/skills/designer/SKILL.md +159 -0
  96. package/.agent/skills/designer/concepts/apple-glass.md +48 -0
  97. package/.agent/skills/designer/concepts/aurora-gradients.md +26 -0
  98. package/.agent/skills/designer/concepts/bento-grids.md +14 -0
  99. package/.agent/skills/designer/concepts/claymorphism.md +27 -0
  100. package/.agent/skills/designer/concepts/neo-brutalism.md +32 -0
  101. package/.agent/skills/designer/data/app-interface.csv +31 -0
  102. package/.agent/skills/designer/data/charts.csv +26 -0
  103. package/.agent/skills/designer/data/colors.csv +162 -0
  104. package/.agent/skills/designer/data/design.csv +1776 -0
  105. package/.agent/skills/designer/data/icons.csv +106 -0
  106. package/.agent/skills/designer/data/landing.csv +35 -0
  107. package/.agent/skills/designer/data/products.csv +162 -0
  108. package/.agent/skills/designer/data/react-performance.csv +45 -0
  109. package/.agent/skills/designer/data/styles.csv +85 -0
  110. package/.agent/skills/designer/data/typography.csv +74 -0
  111. package/.agent/skills/designer/data/ui-reasoning.csv +162 -0
  112. package/.agent/skills/designer/data/ux-guidelines.csv +100 -0
  113. package/.agent/skills/designer/references/accessibility.md +172 -0
  114. package/.agent/skills/designer/references/branding.md +88 -0
  115. package/.agent/skills/designer/references/color-theory.md +139 -0
  116. package/.agent/skills/designer/references/creation.md +118 -0
  117. package/.agent/skills/designer/references/design-systems.md +219 -0
  118. package/.agent/skills/designer/references/frontend_design_aesthetics.md +57 -0
  119. package/.agent/skills/designer/references/layout.md +200 -0
  120. package/.agent/skills/designer/references/motion.md +92 -0
  121. package/.agent/skills/designer/references/review.md +100 -0
  122. package/.agent/skills/designer/references/trends.md +209 -0
  123. package/.agent/skills/designer/references/typography.md +190 -0
  124. package/.agent/skills/designer/scripts/remove_background.py +135 -0
  125. package/.agent/skills/designer/scripts/ui-search/__pycache__/core.cpython-314.pyc +0 -0
  126. package/.agent/skills/designer/scripts/ui-search/__pycache__/design_system.cpython-314.pyc +0 -0
  127. package/.agent/skills/designer/scripts/ui-search/core.py +217 -0
  128. package/.agent/skills/designer/scripts/ui-search/design_system.py +1067 -0
  129. package/.agent/skills/designer/scripts/ui-search/search.py +114 -0
  130. package/.agent/skills/designer/templates/design-motion-spec.md +30 -0
  131. package/.agent/skills/devops-engineer/SKILL.md +90 -0
  132. package/.agent/skills/devops-engineer/docker-compose/README.md +47 -0
  133. package/.agent/skills/devops-engineer/references/ci-cd-pipelines.md +76 -0
  134. package/.agent/skills/devops-engineer/references/cloud-providers.md +57 -0
  135. package/.agent/skills/devops-engineer/references/codebase-normalization.md +104 -0
  136. package/.agent/skills/devops-engineer/references/container-orchestration.md +69 -0
  137. package/.agent/skills/devops-engineer/references/iac-tools.md +63 -0
  138. package/.agent/skills/devops-engineer/references/observability-security.md +45 -0
  139. package/.agent/skills/devops-engineer/references/vercel-supabase.md +17 -0
  140. package/.agent/skills/devops-engineer/templates/release-notes.md +8 -0
  141. package/.agent/skills/frontend-developer/SKILL.md +125 -0
  142. package/.agent/skills/frontend-developer/react-nextjs/README.md +90 -0
  143. package/.agent/skills/frontend-developer/references/angular.md +52 -0
  144. package/.agent/skills/frontend-developer/references/composition_patterns.md +60 -0
  145. package/.agent/skills/frontend-developer/references/core-performance.md +68 -0
  146. package/.agent/skills/frontend-developer/references/modern-signals.md +43 -0
  147. package/.agent/skills/frontend-developer/references/react_performance_rules.md +55 -0
  148. package/.agent/skills/frontend-developer/references/vue-nuxt.md +55 -0
  149. package/.agent/skills/frontend-developer/scripts/validate_compliance.py +65 -0
  150. package/.agent/skills/frontend-developer/threejs/README.md +89 -0
  151. package/.agent/skills/frontend-developer/threejs/animation.md +552 -0
  152. package/.agent/skills/frontend-developer/threejs/fundamentals.md +488 -0
  153. package/.agent/skills/frontend-developer/threejs/geometry.md +548 -0
  154. package/.agent/skills/frontend-developer/threejs/interaction.md +660 -0
  155. package/.agent/skills/frontend-developer/threejs/lighting.md +481 -0
  156. package/.agent/skills/frontend-developer/threejs/loaders.md +623 -0
  157. package/.agent/skills/frontend-developer/threejs/materials.md +520 -0
  158. package/.agent/skills/frontend-developer/threejs/postprocessing.md +602 -0
  159. package/.agent/skills/frontend-developer/threejs/router.json +181 -0
  160. package/.agent/skills/frontend-developer/threejs/shaders.md +642 -0
  161. package/.agent/skills/frontend-developer/threejs/textures.md +628 -0
  162. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  163. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  164. package/.agent/skills/game-development/SKILL.md +167 -0
  165. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  166. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  167. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  168. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  169. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  170. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  171. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  172. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  173. package/.agent/skills/lead-architect/SKILL.md +85 -0
  174. package/.agent/skills/lead-architect/references/application-architecture.md +70 -0
  175. package/.agent/skills/lead-architect/references/infrastructure.md +51 -0
  176. package/.agent/skills/lead-architect/references/process.md +42 -0
  177. package/.agent/skills/lead-architect/references/system-architecture.md +62 -0
  178. package/.agent/skills/lead-architect/references/web-fullstack.md +82 -0
  179. package/.agent/skills/lead-architect/templates/adr.md +62 -0
  180. package/.agent/skills/lead-architect/templates/rfc.md +46 -0
  181. package/.agent/skills/lead-architect/templates/sdd.md +62 -0
  182. package/.agent/skills/lead-architect/templates/technical-spec.md +61 -0
  183. package/.agent/skills/marketer/SKILL.md +66 -0
  184. package/.agent/skills/marketer/remotion-best-practices/SKILL.md +58 -0
  185. package/.agent/skills/marketer/remotion-best-practices/rules/3d.md +86 -0
  186. package/.agent/skills/marketer/remotion-best-practices/rules/animations.md +29 -0
  187. package/.agent/skills/marketer/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
  188. package/.agent/skills/marketer/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
  189. package/.agent/skills/marketer/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
  190. package/.agent/skills/marketer/remotion-best-practices/rules/assets.md +78 -0
  191. package/.agent/skills/marketer/remotion-best-practices/rules/audio.md +172 -0
  192. package/.agent/skills/marketer/remotion-best-practices/rules/calculate-metadata.md +104 -0
  193. package/.agent/skills/marketer/remotion-best-practices/rules/can-decode.md +75 -0
  194. package/.agent/skills/marketer/remotion-best-practices/rules/charts.md +58 -0
  195. package/.agent/skills/marketer/remotion-best-practices/rules/compositions.md +146 -0
  196. package/.agent/skills/marketer/remotion-best-practices/rules/display-captions.md +126 -0
  197. package/.agent/skills/marketer/remotion-best-practices/rules/extract-frames.md +229 -0
  198. package/.agent/skills/marketer/remotion-best-practices/rules/fonts.md +152 -0
  199. package/.agent/skills/marketer/remotion-best-practices/rules/get-audio-duration.md +58 -0
  200. package/.agent/skills/marketer/remotion-best-practices/rules/get-video-dimensions.md +68 -0
  201. package/.agent/skills/marketer/remotion-best-practices/rules/get-video-duration.md +58 -0
  202. package/.agent/skills/marketer/remotion-best-practices/rules/gifs.md +138 -0
  203. package/.agent/skills/marketer/remotion-best-practices/rules/images.md +130 -0
  204. package/.agent/skills/marketer/remotion-best-practices/rules/import-srt-captions.md +67 -0
  205. package/.agent/skills/marketer/remotion-best-practices/rules/lottie.md +68 -0
  206. package/.agent/skills/marketer/remotion-best-practices/rules/measuring-dom-nodes.md +35 -0
  207. package/.agent/skills/marketer/remotion-best-practices/rules/measuring-text.md +143 -0
  208. package/.agent/skills/marketer/remotion-best-practices/rules/sequencing.md +106 -0
  209. package/.agent/skills/marketer/remotion-best-practices/rules/tailwind.md +11 -0
  210. package/.agent/skills/marketer/remotion-best-practices/rules/text-animations.md +20 -0
  211. package/.agent/skills/marketer/remotion-best-practices/rules/timing.md +179 -0
  212. package/.agent/skills/marketer/remotion-best-practices/rules/transcribe-captions.md +19 -0
  213. package/.agent/skills/marketer/remotion-best-practices/rules/transitions.md +122 -0
  214. package/.agent/skills/marketer/remotion-best-practices/rules/trimming.md +53 -0
  215. package/.agent/skills/marketer/remotion-best-practices/rules/videos.md +171 -0
  216. package/.agent/skills/mcp-builder/SKILL.md +76 -0
  217. package/.agent/skills/mcp-builder/references/evaluation.md +602 -0
  218. package/.agent/skills/mcp-builder/references/mcp_best_practices.md +249 -0
  219. package/.agent/skills/mcp-builder/references/node_mcp_server.md +970 -0
  220. package/.agent/skills/mcp-builder/references/python_mcp_server.md +719 -0
  221. package/.agent/skills/mobile-developer/SKILL.md +83 -0
  222. package/.agent/skills/mobile-developer/api-routes/SKILL.md +389 -0
  223. package/.agent/skills/mobile-developer/building-ui/SKILL.md +335 -0
  224. package/.agent/skills/mobile-developer/building-ui/references/animations.md +220 -0
  225. package/.agent/skills/mobile-developer/building-ui/references/controls.md +270 -0
  226. package/.agent/skills/mobile-developer/building-ui/references/form-sheet.md +227 -0
  227. package/.agent/skills/mobile-developer/building-ui/references/gradients.md +106 -0
  228. package/.agent/skills/mobile-developer/building-ui/references/icons.md +213 -0
  229. package/.agent/skills/mobile-developer/building-ui/references/media.md +198 -0
  230. package/.agent/skills/mobile-developer/building-ui/references/route-structure.md +229 -0
  231. package/.agent/skills/mobile-developer/building-ui/references/search.md +248 -0
  232. package/.agent/skills/mobile-developer/building-ui/references/storage.md +121 -0
  233. package/.agent/skills/mobile-developer/building-ui/references/tabs.md +368 -0
  234. package/.agent/skills/mobile-developer/building-ui/references/visual-effects.md +197 -0
  235. package/.agent/skills/mobile-developer/building-ui/references/webgpu-three.md +605 -0
  236. package/.agent/skills/mobile-developer/cicd-workflows/SKILL.md +107 -0
  237. package/.agent/skills/mobile-developer/cicd-workflows/scripts/fetch.js +109 -0
  238. package/.agent/skills/mobile-developer/cicd-workflows/scripts/package.json +11 -0
  239. package/.agent/skills/mobile-developer/cicd-workflows/scripts/validate.js +84 -0
  240. package/.agent/skills/mobile-developer/data-fetching/SKILL.md +508 -0
  241. package/.agent/skills/mobile-developer/deployment/SKILL.md +207 -0
  242. package/.agent/skills/mobile-developer/deployment/references/app-store-metadata.md +479 -0
  243. package/.agent/skills/mobile-developer/deployment/references/ios-app-store.md +355 -0
  244. package/.agent/skills/mobile-developer/deployment/references/play-store.md +246 -0
  245. package/.agent/skills/mobile-developer/deployment/references/testflight.md +58 -0
  246. package/.agent/skills/mobile-developer/deployment/references/workflows.md +200 -0
  247. package/.agent/skills/mobile-developer/dev-client/SKILL.md +181 -0
  248. package/.agent/skills/mobile-developer/tailwind-setup/SKILL.md +501 -0
  249. package/.agent/skills/mobile-developer/upgrading-expo/SKILL.md +116 -0
  250. package/.agent/skills/mobile-developer/upgrading-expo/references/new-architecture.md +79 -0
  251. package/.agent/skills/mobile-developer/upgrading-expo/references/react-19.md +79 -0
  252. package/.agent/skills/mobile-developer/upgrading-expo/references/react-compiler.md +59 -0
  253. package/.agent/skills/mobile-developer/use-dom/SKILL.md +434 -0
  254. package/.agent/skills/modern-python/SKILL.md +122 -0
  255. package/.agent/skills/project-manager/SKILL.md +110 -0
  256. package/.agent/skills/project-manager/references/ba-collaboration.md +62 -0
  257. package/.agent/skills/project-manager/references/discovery_process.md +52 -0
  258. package/.agent/skills/project-manager/references/jobs_to_be_done.md +51 -0
  259. package/.agent/skills/project-manager/references/prd_development.md +52 -0
  260. package/.agent/skills/project-manager/references/rules-guide.md +55 -0
  261. package/.agent/skills/project-manager/references/skill-creation.md +98 -0
  262. package/.agent/skills/project-manager/references/strategic-frameworks.md +62 -0
  263. package/.agent/skills/project-manager/references/task-decomposition.md +194 -0
  264. package/.agent/skills/project-manager/references/workflows-guide.md +44 -0
  265. package/.agent/skills/project-manager/router.json +160 -0
  266. package/.agent/skills/project-manager/scripts/compare_skill.py +177 -0
  267. package/.agent/skills/project-manager/scripts/encoding_utils.py +36 -0
  268. package/.agent/skills/project-manager/scripts/init_skill.py +190 -0
  269. package/.agent/skills/project-manager/scripts/quick_validate.py +123 -0
  270. package/.agent/skills/project-manager/templates/pm-strategy-one-pager.md +6 -0
  271. package/.agent/skills/project-manager/templates/prd-strategic.md +38 -0
  272. package/.agent/skills/project-manager/templates/skill-questionnaire.md +118 -0
  273. package/.agent/skills/project-manager/templates/user-story-simple.md +14 -0
  274. package/.agent/skills/prompt-engineer/SKILL.md +319 -0
  275. package/.agent/skills/prompt-engineer/skill-creator/README.md +47 -0
  276. package/.agent/skills/qa-tester/SKILL.md +142 -0
  277. package/.agent/skills/qa-tester/assets/README.md +8 -0
  278. package/.agent/skills/qa-tester/references/accessibility_testing.md +35 -0
  279. package/.agent/skills/qa-tester/references/agent_browser.md +38 -0
  280. package/.agent/skills/qa-tester/references/automation/api_testing.md +23 -0
  281. package/.agent/skills/qa-tester/references/automation/best_practices.md +14 -0
  282. package/.agent/skills/qa-tester/references/automation/jest_vitest.md +26 -0
  283. package/.agent/skills/qa-tester/references/automation/playwright.md +30 -0
  284. package/.agent/skills/qa-tester/references/e2e_testing.md +46 -0
  285. package/.agent/skills/qa-tester/references/integration_testing.md +39 -0
  286. package/.agent/skills/qa-tester/references/performance_testing.md +44 -0
  287. package/.agent/skills/qa-tester/references/property_based_testing.md +44 -0
  288. package/.agent/skills/qa-tester/references/security_audit.md +53 -0
  289. package/.agent/skills/qa-tester/references/security_testing.md +30 -0
  290. package/.agent/skills/qa-tester/references/sharp_edges.md +49 -0
  291. package/.agent/skills/qa-tester/references/static_analysis.md +52 -0
  292. package/.agent/skills/qa-tester/references/supply_chain_audit.md +54 -0
  293. package/.agent/skills/qa-tester/references/test_case_standards.md +96 -0
  294. package/.agent/skills/qa-tester/references/test_report_template.md +32 -0
  295. package/.agent/skills/qa-tester/references/unit_testing.md +50 -0
  296. package/.agent/skills/qa-tester/references/visual_testing.md +32 -0
  297. package/.agent/skills/qa-tester/templates/uat-plan.md +34 -0
  298. package/.agent/skills/research-first/SKILL.md +118 -0
  299. package/.agent/skills-manifest.json +264 -0
  300. package/.agent/workflows/absorb.md +176 -0
  301. package/.agent/workflows/bootstrap.md +91 -0
  302. package/.agent/workflows/brainstorm.md +168 -0
  303. package/.agent/workflows/break-tasks.md +77 -0
  304. package/.agent/workflows/commit.md +349 -0
  305. package/.agent/workflows/custom-behavior.md +64 -0
  306. package/.agent/workflows/debug.md +65 -0
  307. package/.agent/workflows/development.md +49 -0
  308. package/.agent/workflows/documentation.md +221 -0
  309. package/.agent/workflows/gen-tests.md +53 -0
  310. package/.agent/workflows/guide.md +196 -0
  311. package/.agent/workflows/implement-feature.md +182 -0
  312. package/.agent/workflows/install-skill.md +193 -0
  313. package/.agent/workflows/qa.md +54 -0
  314. package/.agent/workflows/ui-ux-design.md +108 -0
  315. package/LICENSE +21 -0
  316. package/README.md +258 -0
  317. package/cli/index.js +345 -0
  318. package/cli/migrate-skills.js +113 -0
  319. package/cli/verify.js +291 -0
  320. package/package.json +49 -0
@@ -0,0 +1,168 @@
1
+ ---
2
+ description: Analyze ideas with the user and create preliminary high-level documents (Roadmap, PRD).
3
+ ---
4
+
5
+ # Brainstorm Workflow
6
+
7
+ ## MCP Usage Guidelines
8
+
9
+ | MCP Tool | When to Use | Example |
10
+ | :------------------------------------------- | :----------------------------------------------------- | :-------------------------------------- |
11
+ | `mcp_sequential-thinking_sequentialthinking` | Analyze requirements, feature dependencies, trade-offs | Break down ambiguous requests |
12
+ | `mcp_context7_query-docs` | Research library patterns, APIs, best practices | "How to setup auth in Next.js" |
13
+ | `search_web` | Proactive research for implementation patterns | "best architecture for agentic systems" |
14
+
15
+ ---
16
+
17
+ ## Step 1: Iterative Requirement Analysis & Research
18
+
19
+ > [!IMPORTANT]
20
+ > **LOOP THIS STEP**: Cycle until the user's requirements are crystal clear.
21
+
22
+ **Goal**: Achieve a "Shared Understanding" with the user.
23
+
24
+ 1. **Analyze (Internal)**:
25
+ - Use `mcp_sequential-thinking_sequentialthinking` to breakdown the request.
26
+ - Explore angles, edge cases, and creative possibilities.
27
+ - Identify gaps, missing features, or ambiguous terms.
28
+
29
+ 2. **Research (External)**:
30
+ - Use `search_web` to understand domain, competitors, best practices.
31
+ - Use `read_url_content` for specific references.
32
+ - Verify technical feasibility.
33
+
34
+ 3. **Clarify (Interaction)**:
35
+ - Summarize findings in an artifact.
36
+ - Ask specific questions to resolve ambiguities.
37
+ - **WAIT** for user response.
38
+
39
+ 4. **Evaluation**:
40
+ - New info? → **GO TO 1.1** (Repeat).
41
+ - User confirms → **BREAK LOOP**, go to Step 2.
42
+
43
+ ---
44
+
45
+ ## Step 2: Create Roadmap
46
+
47
+ // turbo
48
+
49
+ > 💡 **MCP**: Use `sequential-thinking` for phased planning and risk assessment.
50
+
51
+ 1. **Invoke `[product-manager]` skill** to draft:
52
+ - Project timeline and milestones
53
+ - Phase breakdown (MVP, v1.0, v2.0)
54
+ - Key deliverables per phase — **each major feature becomes a wiki-link**: `[[Epic-{Feature}]]`
55
+ 2. Create `draft-roadmap.md` artifact for review
56
+ 3. After approval → Save to `docs/010-Planning/Roadmap-{ProjectName}.md`
57
+ 4. **WAIT** for user response
58
+
59
+ ---
60
+
61
+ ## Step 3: Create PRD & Atomized Feature Docs
62
+
63
+ // turbo
64
+
65
+ > [!IMPORTANT]
66
+ > **AI-OPTIMIZED RULE**: 1 file = 1 concept. Never dump all features into 1 monolithic PRD.
67
+ > All files MUST follow `documents.md` conventions: frontmatter, naming, wiki-links.
68
+
69
+ ### Step 3.1: PRD Overview
70
+
71
+ 1. **Invoke `[product-manager]` skill** to draft a **concise** PRD overview:
72
+ - Business objectives and success metrics
73
+ - Target audience/user personas (brief)
74
+ - Feature list — each feature is a wiki-link: `[[Epic-{Feature}]]`
75
+ - Technical constraints
76
+ 2. Save to `docs/020-Requirements/PRD-{ProjectName}.md`
77
+
78
+ > [!TIP]
79
+ > PRD should be **max 50-80 lines**. Details go in individual Epic/Use Case files.
80
+
81
+ ### Step 3.2: Create Individual Epic Files
82
+
83
+ For **each major feature** identified in the PRD:
84
+
85
+ 1. Create `docs/022-User-Stories/Epics/Epic-{FeatureName}.md` with:
86
+
87
+ ```yaml
88
+ ---
89
+ id: EPIC-{NNN}
90
+ type: epic
91
+ status: draft
92
+ created: YYYY-MM-DD
93
+ linked-to: [[PRD-{ProjectName}]]
94
+ ---
95
+ ```
96
+
97
+ Content sections:
98
+ - **Summary** — What this feature does (2-3 sentences)
99
+ - **User Value** — Why users need this
100
+ - **Scope** — What's included, what's explicitly NOT included
101
+ - **Acceptance Criteria** — Checkable conditions for "done"
102
+ - **Related**: `[[UC-{NN}-{Feature}]]`, `[[Story-{Feature}]]`
103
+
104
+ ### Step 3.3: Create Individual Use Case Files
105
+
106
+ For **each feature** that has user-facing flows:
107
+
108
+ 1. Create `docs/020-Requirements/Use-Cases/UC-{NN}-{FeatureName}.md` with:
109
+
110
+ ```yaml
111
+ ---
112
+ id: UC-{NN}
113
+ type: use-case
114
+ status: draft
115
+ created: YYYY-MM-DD
116
+ linked-to: [[Epic-{FeatureName}]]
117
+ ---
118
+ ```
119
+
120
+ Content sections:
121
+ - **Actor** — Who performs this action
122
+ - **Preconditions** — What must be true before
123
+ - **Main Flow** — Numbered steps (happy path)
124
+ - **Alternative Flows** — Edge cases, error handling
125
+ - **Postconditions** — What's true after success
126
+
127
+ ### Step 3.4: Create MOC Files
128
+
129
+ Create/update Map of Content files for each populated folder:
130
+
131
+ - `docs/010-Planning/Planning-MOC.md` — links to Roadmap
132
+ - `docs/020-Requirements/Requirements-MOC.md` — links to PRD + Use Cases
133
+ - `docs/022-User-Stories/Stories-MOC.md` — links to all Epics
134
+
135
+ **WAIT** for user to review all artifacts before proceeding.
136
+
137
+ ---
138
+
139
+ ## Step 4: Transition
140
+
141
+ 1. Present summary:
142
+ - File count created
143
+ - Wiki-link graph (which files reference which)
144
+ - Any gaps identified
145
+ 2. Suggest next step: `/documentation` (SDD, Stories) or `/implement-feature`
146
+
147
+ ---
148
+
149
+ ## Quick Reference
150
+
151
+ | Step | Skill | Output |
152
+ | :--- | :-------------- | :----- |
153
+ | 1 | (analysis loop) | Shared understanding |
154
+ | 2 | product-manager | `Roadmap-{Name}.md` |
155
+ | 3.1 | product-manager | `PRD-{Name}.md` (overview) |
156
+ | 3.2 | product-manager | `Epic-{Feature}.md` × N |
157
+ | 3.3 | business-analysis | `UC-{NN}-{Feature}.md` × N |
158
+ | 3.4 | — | MOC files |
159
+
160
+ ## AI-Optimization Checklist
161
+
162
+ Before finishing, verify:
163
+ - [ ] Every file has frontmatter (id, type, status, created, linked-to)
164
+ - [ ] PRD references all Epics via `[[wiki-links]]`
165
+ - [ ] Roadmap phases reference Epics via `[[wiki-links]]`
166
+ - [ ] Each Epic references its Use Cases
167
+ - [ ] MOC files list all documents in their folder
168
+ - [ ] No file exceeds ~100 lines (split if necessary)
@@ -0,0 +1,77 @@
1
+ ---
2
+ description: Orchestrates breaking down requirements into actionable tasks for implementation.
3
+ ---
4
+
5
+ # Break Tasks Workflow
6
+
7
+ ## MCP Usage Guidelines
8
+
9
+ | MCP Tool | When to Use |
10
+ | :------------------------------------------- | :-------------------------------------------------------- |
11
+ | `mcp_sequential-thinking_sequentialthinking` | **REQUIRED** to break down requirements into atomic tasks |
12
+ | `mcp_context7_query-docs` | To check best practices for specific technologies |
13
+
14
+ ---
15
+
16
+ ## Step 1: Identify Source Document
17
+
18
+ 1. Locate the source document (PRD, User Story, Feature Spec, or SDD).
19
+ 2. If multiple versions exist, ask the user for clarification.
20
+ 3. Relevant folders to check:
21
+ - `docs/020-Requirements/`
22
+ - `docs/022-User-Stories/`
23
+ - `docs/030-Specs/`
24
+
25
+ ---
26
+
27
+ ## Step 2: Analyze Requirements
28
+
29
+ // turbo
30
+
31
+ 1. **Invoke `[business-analysis]` skill** to extract key features and acceptance criteria.
32
+ 2. Use `sequential-thinking` to:
33
+ - Identify technical dependencies.
34
+ - Separate backend, frontend, and QA requirements.
35
+ - Spot ambiguous or missing details.
36
+ 3. List any clarifying questions for the user.
37
+ 4. **WAIT** for user clarification if needed.
38
+
39
+ ---
40
+
41
+ ## Step 3: Atomic Task Breakdown
42
+
43
+ // turbo
44
+
45
+ > 💡 **MCP**: **MUST** use `sequential-thinking` here to ensure tasks are atomic and manageable.
46
+
47
+ 1. **Invoke `[lead-architect]` skill** to create a structured task list.
48
+ 2. Group tasks by component or phase (e.g., Database, API, Logic, UI, Testing).
49
+ 3. For each task, include:
50
+ - Goal/Description.
51
+ - Acceptance Criteria.
52
+ - Estimated complexity (if applicable).
53
+ 4. Create a `task-breakdown.md` artifact representing the proposed sequence.
54
+
55
+ ---
56
+
57
+ ## Step 4: Finalize Task Documentation
58
+
59
+ // turbo
60
+
61
+ 1. After user approves the `task-breakdown.md` artifact:
62
+ 2. Update the `task.md` of the current session or create a new task file in `docs/050-Tasks/`.
63
+ 3. If creating a new file, follow standard naming: `docs/050-Tasks/Task-{FeatureName}.md`.
64
+ 4. Update `docs/050-Tasks/Tasks-MOC.md`.
65
+ 5. Present the finalized task list to the user.
66
+
67
+ ---
68
+
69
+ ## Quick Reference
70
+
71
+ | Role | Skill | Responsibility |
72
+ | :----------------- | :------------------- | :-------------------------------------- |
73
+ | Product Manager | `product-manager` | Requirement validation & prioritization |
74
+ | Lead Architect | `lead-architect` | Technical breakdown & dependencies |
75
+ | Developer | `backend-developer` | Backend/API specific tasks |
76
+ | Frontend Developer | `frontend-developer` | UI/UX specific tasks |
77
+ | QA Tester | `qa-tester` | Verification & Edge case tasks |
@@ -0,0 +1,349 @@
1
+ ---
2
+ description: Git commit and push with Conventional Commits, branch safety, and protected file guards
3
+ ---
4
+
5
+ # Git Commit & Push
6
+
7
+ > [!IMPORTANT]
8
+ > Uses **Conventional Commits** format. Works with any project.
9
+ > 3 modes: ⚡ Quick, 🛡️ Safe, 🎛️ Custom.
10
+
11
+ ---
12
+
13
+ ## Step 0: Choose Mode
14
+
15
+ Present to user:
16
+
17
+ ```
18
+ How would you like to commit?
19
+
20
+ ⚡ 1. Quick — stage all, auto-generate message, push (fastest)
21
+ 🛡️ 2. Safe — full checks: branch, .gitignore, protected files (recommended)
22
+ 🎛️ 3. Custom — you control each step
23
+ ```
24
+
25
+ - If user says "nhanh" / "quick" / "go" → **Quick**
26
+ - If user says "an toàn" / "safe" → **Safe**
27
+ - If user says "tùy biến" / "custom" → **Custom**
28
+ - Default (no preference): **Safe**
29
+
30
+ ### Mode Behavior Matrix
31
+
32
+ | Step | ⚡ Quick | 🛡️ Safe | 🎛️ Custom |
33
+ |------|---------|---------|-----------|
34
+ | Branch check | Skip | ✅ Check + suggest branch | ✅ Check + ask user |
35
+ | Diff summary | Show brief | ✅ Full summary + scope table | ✅ Full + ask scope grouping |
36
+ | File selection | All at once | All (ask if >15 files) | ✅ Always ask |
37
+ | .gitignore check | Skip | ✅ Auto-check + warn | ✅ Check + show details |
38
+ | Protected files | Skip | ✅ Auto-check + confirm | ✅ List every file for approval |
39
+ | Commit message | Auto-generate, no confirm | Auto-generate, show for confirm | ✅ User writes or edits |
40
+ | Push | Auto push | Auto push | ✅ Ask push/PR/keep local |
41
+
42
+ ---
43
+
44
+ ## Step 1: Branch Safety Check
45
+
46
+ > **⚡ Quick**: skip this step entirely
47
+ > **🛡️ Safe / 🎛️ Custom**: execute
48
+
49
+ // turbo
50
+
51
+ ```bash
52
+ git branch --show-current
53
+ ```
54
+
55
+ **If on `main` or `master`:**
56
+
57
+ ```
58
+ ⚠️ You are on the main branch.
59
+ 1. Create a new branch and commit there (recommended)
60
+ 2. Commit directly to main
61
+ ```
62
+
63
+ - **🛡️ Safe**: For > 5 files, strongly recommend Option 1. For ≤ 5 files, default to Option 2.
64
+ - **🎛️ Custom**: Always ask. If Option 1: ask for branch name or auto-suggest (e.g. `feat/add-auth`), then:
65
+ ```bash
66
+ git checkout -b <branch-name>
67
+ ```
68
+
69
+ **If on feature branch**, proceed. After all commits:
70
+
71
+ ```
72
+ What would you like to do?
73
+ 1. Push to remote (default)
74
+ 2. Push and create a Pull Request
75
+ 3. Keep locally
76
+ ```
77
+
78
+ > **⚡ Quick**: auto-push (Option 1)
79
+
80
+ ---
81
+
82
+ ## Step 2: Diff Summary
83
+
84
+ // turbo
85
+
86
+ ```bash
87
+ git status --short; git diff --stat
88
+ ```
89
+
90
+ **Auto-detect scopes** from changed file paths:
91
+
92
+ | Directory Pattern | Scope |
93
+ |-------------------|-------|
94
+ | `apps/<name>/` | `<name>` |
95
+ | `packages/<name>/` | `<name>` |
96
+ | `src/` | omit (single-app) |
97
+ | `.agent/skills/` | `skills` |
98
+ | `.agent/workflows/` | `workflows` |
99
+ | `.agent/rules/` | `rules` |
100
+ | `cli/` or `bin/` | `cli` |
101
+ | `docs/` | `docs` |
102
+ | `test/` or `__tests__/` | `test` |
103
+ | `.github/` | `ci` |
104
+ | Root files | omit scope |
105
+
106
+ **🛡️ Safe / 🎛️ Custom**: Present scope summary table.
107
+ **⚡ Quick**: Show file count only: `📦 <N> files changed`.
108
+
109
+ ---
110
+
111
+ ## Step 2.5: File Selection
112
+
113
+ > **⚡ Quick**: skip — always stage all
114
+ > **🛡️ Safe**: ask only if > 15 files
115
+ > **🎛️ Custom**: always ask
116
+
117
+ ```
118
+ 📦 Found <N> changed files across <M> scopes.
119
+ How would you like to commit?
120
+
121
+ 1. All at once (single commit)
122
+ 2. Split by scope (one commit per scope) — recommended
123
+ 3. Let me pick specific files
124
+ ```
125
+
126
+ **Option 3** (🎛️ Custom):
127
+ ```
128
+ Changed files:
129
+ [1] cli/index.js
130
+ [2] cli/migrate-skills.js
131
+ [3] .agent/skills/ai-engineer/SKILL.md
132
+ ...
133
+
134
+ Enter file numbers to stage (e.g. 1,2,5-8 or "all"):
135
+ ```
136
+
137
+ ---
138
+
139
+ ## Step 3: .gitignore Safety Check
140
+
141
+ > **⚡ Quick**: skip
142
+ > **🛡️ Safe**: auto-check + auto-fix
143
+ > **🎛️ Custom**: check + ask before each fix
144
+
145
+ // turbo
146
+
147
+ ```bash
148
+ test -f .gitignore && echo "EXISTS" || echo "MISSING"
149
+ ```
150
+
151
+ **If `.gitignore` is MISSING:**
152
+ - 🚨 **STOP** — warn user
153
+ - Auto-generate based on project type:
154
+
155
+ | Detected Files | Project Type | Required Ignores |
156
+ |---------------|-------------|-----------------|
157
+ | `package.json` | Node.js | `node_modules/`, `dist/`, `*.log` |
158
+ | `requirements.txt` / `pyproject.toml` | Python | `__pycache__/`, `*.pyc`, `.venv/` |
159
+ | `go.mod` | Go | `vendor/`, binary outputs |
160
+ | `Cargo.toml` | Rust | `target/` |
161
+ | `*.sln` / `*.csproj` | .NET | `bin/`, `obj/` |
162
+
163
+ **If `.gitignore` EXISTS:** verify critical patterns:
164
+
165
+ | Pattern | Why |
166
+ |---------|-----|
167
+ | `node_modules/` | Dependencies (500MB+) |
168
+ | `.env` or `.env*` | Secrets, API keys |
169
+ | `dist/` / `build/` / `.next/` | Build outputs |
170
+ | `*.log` | Log files |
171
+ | `.DS_Store` / `Thumbs.db` | OS junk |
172
+
173
+ **If patterns missing (🛡️ Safe):** auto-add + inform user.
174
+ **If patterns missing (🎛️ Custom):**
175
+ ```
176
+ ⚠️ Your .gitignore is missing important patterns:
177
+ - node_modules/ (detected package.json)
178
+ - .env (secrets could be committed!)
179
+
180
+ Add them now?
181
+ 1. Yes, add missing patterns (recommended)
182
+ 2. No, I know what I'm doing
183
+ ```
184
+
185
+ ---
186
+
187
+ ## Step 4: Protected Files Guard
188
+
189
+ > **⚡ Quick**: skip
190
+ > **🛡️ Safe**: check + confirm sensitive files
191
+ > **🎛️ Custom**: list every changed file for explicit approval
192
+
193
+ // turbo
194
+
195
+ Check for **protected files** in changed list:
196
+
197
+ | Category | Files |
198
+ |----------|-------|
199
+ | Lock files | `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `go.sum` |
200
+ | Environment | `.env`, `.env.*` |
201
+ | CI/CD | `.github/workflows/*`, `Dockerfile*`, `docker-compose*` |
202
+ | Config roots | `package.json`, `tsconfig.json`, `*.config.*` |
203
+ | Git config | `.gitignore`, `.gitmodules` |
204
+
205
+ **Rules:**
206
+ - **Never** silently stage `.env` files (even in ⚡ Quick mode!)
207
+ - `package-lock.json` acceptable if `package.json` also changed
208
+ - **🎛️ Custom**: "Did you intentionally modify `<file>`?" for each
209
+
210
+ ---
211
+
212
+ ## Step 5: Stage Files
213
+
214
+ // turbo
215
+
216
+ ### Single Mode
217
+ ```bash
218
+ git add -A
219
+ ```
220
+
221
+ ### Selective (from Step 2.5)
222
+ ```bash
223
+ git add <file1> <file2> ...
224
+ ```
225
+
226
+ ### Split Mode
227
+ ```bash
228
+ git add <scope-directory>/
229
+ ```
230
+
231
+ Commit order (dependencies first):
232
+ 1. Shared libraries / internal packages
233
+ 2. Backend / API
234
+ 3. Frontend / UI
235
+ 4. Documentation
236
+ 5. CI/CD
237
+ 6. Root config files
238
+
239
+ ---
240
+
241
+ ## Step 6: Generate Commit Message
242
+
243
+ // turbo
244
+
245
+ 1. Analyze staged diff
246
+ 2. Generate **Conventional Commit**:
247
+
248
+ | Prefix | Use For |
249
+ |--------|---------|
250
+ | `feat:` | New feature |
251
+ | `fix:` | Bug fix |
252
+ | `refactor:` | Restructuring |
253
+ | `docs:` | Documentation |
254
+ | `chore:` | Maintenance |
255
+ | `test:` | Tests |
256
+ | `style:` | Formatting only |
257
+ | `ci:` | CI/CD |
258
+ | `perf:` | Performance |
259
+
260
+ 3. Format: `type(scope): short description`
261
+ - Lowercase, imperative mood, no period, max 72 chars
262
+ 4. Complex changes: add body after blank line
263
+ 5. Breaking changes: `type(scope)!: description` + `BREAKING CHANGE:` footer
264
+
265
+ **Mode behavior:**
266
+ - **⚡ Quick**: auto-generate + commit immediately (no confirmation)
267
+ - **🛡️ Safe**: auto-generate + show for approval
268
+ - **🎛️ Custom**: show suggestion, user can edit or write their own
269
+
270
+ ---
271
+
272
+ ## Step 7: Commit
273
+
274
+ ```bash
275
+ git commit -m "<message>"
276
+ ```
277
+
278
+ ### Hook Failures
279
+
280
+ | Scenario | Action |
281
+ |----------|--------|
282
+ | Lint fails on your files | Fix errors, do NOT bypass |
283
+ | Lint SIGKILL (OOM) | `--no-verify` + inform user |
284
+ | Prettier on non-code | `--no-verify` |
285
+ | Test failures | Fix tests, do NOT bypass |
286
+
287
+ ---
288
+
289
+ ## Step 8: Loop (Split Mode Only)
290
+
291
+ Repeat Steps 5–7 for each remaining scope group.
292
+ Show progress: `✅ 2/4 committed: skills, cli`
293
+
294
+ ---
295
+
296
+ ## Step 9: Push
297
+
298
+ // turbo
299
+
300
+ - **⚡ Quick / 🛡️ Safe**: auto-push
301
+ - **🎛️ Custom**: ask first
302
+
303
+ ```bash
304
+ git push origin HEAD
305
+ ```
306
+
307
+ If rejected:
308
+ ```bash
309
+ git pull --rebase origin HEAD; git push origin HEAD
310
+ ```
311
+
312
+ If **new branch** (created in Step 1):
313
+ ```bash
314
+ git push -u origin HEAD
315
+ ```
316
+
317
+ ---
318
+
319
+ ## Step 10: Confirm
320
+
321
+ // turbo
322
+
323
+ ```bash
324
+ git log --oneline -<N>
325
+ ```
326
+
327
+ ```
328
+ ✅ Committed and pushed successfully.
329
+ <hash> <message>
330
+ ```
331
+
332
+ If on a feature branch:
333
+ ```
334
+ 💡 To create a PR: gh pr create --fill
335
+ ```
336
+
337
+ ---
338
+
339
+ ## Error Recovery
340
+
341
+ | Failure | Recovery |
342
+ |---------|----------|
343
+ | Nothing to commit | Inform user |
344
+ | Push rejected | `git pull --rebase` then retry |
345
+ | Merge conflict | Show files, ask user to resolve |
346
+ | Auth failure | Check credentials / SSH |
347
+ | Wrong branch | `git stash; git checkout -b feat/<name>; git stash pop` |
348
+ | Large files blocked | Check `.gitignore`, suggest `git-lfs` |
349
+ | `.env` staged | 🚨 Unstage immediately: `git reset HEAD .env` |
@@ -0,0 +1,64 @@
1
+ ---
2
+ description: Workflow for safely customizing Agent rules and workflows with impact analysis and user confirmation.
3
+ ---
4
+
5
+ # Custom Behavior Workflow
6
+
7
+ ## Tool Usage Guidelines
8
+
9
+ | Tool | When to Use | Example Query |
10
+ | --------------- | ---------------------------------------------------- | --------------------------------------------------------------- |
11
+ | `find_by_name` | Step 1: To find if a rule/workflow already exists | `Pattern="*security*", SearchDirectory=".agent/rules"` |
12
+ | `view_file` | Step 2: To read the existing content for comparison | `AbsolutePath="/.../.agent/rules/security.md"` |
13
+ | `notify_user` | Step 3: To present analysis and ask for confirmation | `Message="I found an existing rule. Do you want to overwrite?"` |
14
+ | `write_to_file` | Step 4: To create or overwrite the file | `Overwrite=true` |
15
+
16
+ ## Step 1: Identification & Search
17
+
18
+ // turbo
19
+
20
+ > 💡 **Tip**: Don't assume the file doesn't exist. Always search first.
21
+
22
+ 1. Analyze the user's request to identify the _intent_ (e.g., "Add stricter linting", "Skip tests in deployment").
23
+ 2. Search for existing Rules or Workflows that might already cover this.
24
+ - Rules: search in `.agent/rules/`
25
+ - Workflows: search in `.agent/workflows/`
26
+
27
+ ## Step 2: Impact Analysis
28
+
29
+ > 💡 **Tip**: If a file exists, you MUST read it and compare it with the request.
30
+
31
+ **Condition A: Target does NOT exist:**
32
+
33
+ 1. Verify if a template exists in `.agent/assets/` or `references/` that could be used as a base.
34
+ 2. Draft the new content in your memory.
35
+
36
+ **Condition B: Target ALREADY exists:**
37
+
38
+ 1. **Read** the current content of the file.
39
+ 2. **Compare** the User's request vs the Current Content.
40
+ 3. **Identify Conflicts**:
41
+ - Will this break existing constraints?
42
+ - Is this a "Breaking Change" or just an "Enhancement"?
43
+ 4. **Formulate Recommendation**:
44
+ - _Adapt_: "I recommend creating a new file `custom-X.md` to avoid breaking standard X."
45
+ - _Override_: "This helps matches your specific need, but removes the safety check Y."
46
+
47
+ ## Step 3: User Confirmation
48
+
49
+ > 💡 **Tip**: You must be explicit about what will change.
50
+
51
+ 1. **Notify User** with a summary of your analysis.
52
+ - If **New**: "I will create a new rule [filename] that [does X]."
53
+ - If **modifying**: "I will modify [filename]. \n**Current**: [Summary of old]\n**Proposed**: [Summary of new]\n**Impact**: [Warning about side effects]"
54
+ 2. **WAIT** for user approval.
55
+
56
+ ## Step 4: Execution
57
+
58
+ 1. Perform the file operation (`write_to_file` or `replace_file_content`).
59
+ 2. **Validate**: Read the file back to ensure syntax is correct (Markdown/YAML frontmatter).
60
+ 3. **Register**: If it's a rule, remind the user if they need to manually activate it (unless it's `always_on`).
61
+
62
+ ## Step 5: Verification
63
+
64
+ 1. Check if the customization works as expected (if possible, by running a dry-run or asking user to test).