@djm204/agent-skills 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 (392) hide show
  1. package/README.md +597 -0
  2. package/bin/cli.js +8 -0
  3. package/package.json +55 -0
  4. package/src/index.js +1817 -0
  5. package/src/index.test.js +1264 -0
  6. package/templates/_shared/code-quality.mdc +52 -0
  7. package/templates/_shared/communication.mdc +43 -0
  8. package/templates/_shared/core-principles.mdc +67 -0
  9. package/templates/_shared/git-workflow.mdc +48 -0
  10. package/templates/_shared/security-fundamentals.mdc +41 -0
  11. package/templates/agents/utility-agent/.cursor/rules/action-control.mdc +71 -0
  12. package/templates/agents/utility-agent/.cursor/rules/context-management.mdc +61 -0
  13. package/templates/agents/utility-agent/.cursor/rules/hallucination-prevention.mdc +58 -0
  14. package/templates/agents/utility-agent/.cursor/rules/overview.mdc +34 -0
  15. package/templates/agents/utility-agent/.cursor/rules/token-optimization.mdc +71 -0
  16. package/templates/agents/utility-agent/CLAUDE.md +513 -0
  17. package/templates/business/market-intelligence/.cursor/rules/data-sources.mdc +62 -0
  18. package/templates/business/market-intelligence/.cursor/rules/overview.mdc +55 -0
  19. package/templates/business/market-intelligence/.cursor/rules/reporting.mdc +59 -0
  20. package/templates/business/market-intelligence/.cursor/rules/risk-signals.mdc +63 -0
  21. package/templates/business/market-intelligence/.cursor/rules/sentiment-analysis.mdc +70 -0
  22. package/templates/business/market-intelligence/.cursor/rules/trend-detection.mdc +72 -0
  23. package/templates/business/market-intelligence/CLAUDE.md +371 -0
  24. package/templates/business/marketing-expert/.cursor/rules/brand-strategy.mdc +74 -0
  25. package/templates/business/marketing-expert/.cursor/rules/campaign-planning.mdc +60 -0
  26. package/templates/business/marketing-expert/.cursor/rules/growth-frameworks.mdc +69 -0
  27. package/templates/business/marketing-expert/.cursor/rules/market-analysis.mdc +70 -0
  28. package/templates/business/marketing-expert/.cursor/rules/marketing-analytics.mdc +71 -0
  29. package/templates/business/marketing-expert/.cursor/rules/overview.mdc +56 -0
  30. package/templates/business/marketing-expert/CLAUDE.md +567 -0
  31. package/templates/business/predictive-maintenance/.cursor/rules/alerting.mdc +56 -0
  32. package/templates/business/predictive-maintenance/.cursor/rules/asset-lifecycle.mdc +71 -0
  33. package/templates/business/predictive-maintenance/.cursor/rules/failure-prediction.mdc +65 -0
  34. package/templates/business/predictive-maintenance/.cursor/rules/maintenance-scheduling.mdc +61 -0
  35. package/templates/business/predictive-maintenance/.cursor/rules/overview.mdc +55 -0
  36. package/templates/business/predictive-maintenance/.cursor/rules/sensor-analytics.mdc +66 -0
  37. package/templates/business/predictive-maintenance/CLAUDE.md +529 -0
  38. package/templates/business/product-manager/.cursor/rules/communication.mdc +77 -0
  39. package/templates/business/product-manager/.cursor/rules/discovery.mdc +79 -0
  40. package/templates/business/product-manager/.cursor/rules/metrics.mdc +75 -0
  41. package/templates/business/product-manager/.cursor/rules/overview.mdc +47 -0
  42. package/templates/business/product-manager/.cursor/rules/prioritization.mdc +66 -0
  43. package/templates/business/product-manager/.cursor/rules/requirements.mdc +79 -0
  44. package/templates/business/product-manager/CLAUDE.md +593 -0
  45. package/templates/business/project-manager/.cursor/rules/overview.mdc +53 -0
  46. package/templates/business/project-manager/.cursor/rules/reporting.mdc +68 -0
  47. package/templates/business/project-manager/.cursor/rules/risk-management.mdc +71 -0
  48. package/templates/business/project-manager/.cursor/rules/scheduling.mdc +67 -0
  49. package/templates/business/project-manager/.cursor/rules/scope-management.mdc +66 -0
  50. package/templates/business/project-manager/.cursor/rules/stakeholder-management.mdc +70 -0
  51. package/templates/business/project-manager/CLAUDE.md +540 -0
  52. package/templates/business/regulatory-sentinel/.cursor/rules/compliance-tracking.mdc +74 -0
  53. package/templates/business/regulatory-sentinel/.cursor/rules/impact-assessment.mdc +62 -0
  54. package/templates/business/regulatory-sentinel/.cursor/rules/monitoring.mdc +67 -0
  55. package/templates/business/regulatory-sentinel/.cursor/rules/overview.mdc +55 -0
  56. package/templates/business/regulatory-sentinel/.cursor/rules/reporting.mdc +61 -0
  57. package/templates/business/regulatory-sentinel/.cursor/rules/risk-classification.mdc +73 -0
  58. package/templates/business/regulatory-sentinel/CLAUDE.md +572 -0
  59. package/templates/business/resource-allocator/.cursor/rules/capacity-modeling.mdc +65 -0
  60. package/templates/business/resource-allocator/.cursor/rules/coordination.mdc +67 -0
  61. package/templates/business/resource-allocator/.cursor/rules/crisis-management.mdc +64 -0
  62. package/templates/business/resource-allocator/.cursor/rules/demand-prediction.mdc +52 -0
  63. package/templates/business/resource-allocator/.cursor/rules/overview.mdc +76 -0
  64. package/templates/business/resource-allocator/.cursor/rules/scheduling.mdc +63 -0
  65. package/templates/business/resource-allocator/CLAUDE.md +525 -0
  66. package/templates/business/strategic-negotiator/.cursor/rules/contract-analysis.mdc +60 -0
  67. package/templates/business/strategic-negotiator/.cursor/rules/deal-structuring.mdc +66 -0
  68. package/templates/business/strategic-negotiator/.cursor/rules/game-theory.mdc +64 -0
  69. package/templates/business/strategic-negotiator/.cursor/rules/overview.mdc +55 -0
  70. package/templates/business/strategic-negotiator/.cursor/rules/preparation.mdc +79 -0
  71. package/templates/business/strategic-negotiator/.cursor/rules/scenario-modeling.mdc +66 -0
  72. package/templates/business/strategic-negotiator/CLAUDE.md +640 -0
  73. package/templates/business/supply-chain/.cursor/rules/cost-modeling.mdc +67 -0
  74. package/templates/business/supply-chain/.cursor/rules/demand-forecasting.mdc +67 -0
  75. package/templates/business/supply-chain/.cursor/rules/inventory-management.mdc +69 -0
  76. package/templates/business/supply-chain/.cursor/rules/logistics.mdc +61 -0
  77. package/templates/business/supply-chain/.cursor/rules/overview.mdc +64 -0
  78. package/templates/business/supply-chain/.cursor/rules/supplier-evaluation.mdc +66 -0
  79. package/templates/business/supply-chain/CLAUDE.md +590 -0
  80. package/templates/business/supply-chain-harmonizer/.cursor/rules/disruption-response.mdc +67 -0
  81. package/templates/business/supply-chain-harmonizer/.cursor/rules/inventory-rebalancing.mdc +63 -0
  82. package/templates/business/supply-chain-harmonizer/.cursor/rules/overview.mdc +65 -0
  83. package/templates/business/supply-chain-harmonizer/.cursor/rules/rerouting.mdc +64 -0
  84. package/templates/business/supply-chain-harmonizer/.cursor/rules/scenario-simulation.mdc +68 -0
  85. package/templates/business/supply-chain-harmonizer/.cursor/rules/stakeholder-notifications.mdc +61 -0
  86. package/templates/business/supply-chain-harmonizer/CLAUDE.md +600 -0
  87. package/templates/creative/brand-guardian/.cursor/rules/brand-voice.mdc +64 -0
  88. package/templates/creative/brand-guardian/.cursor/rules/content-review.mdc +47 -0
  89. package/templates/creative/brand-guardian/.cursor/rules/ethical-guidelines.mdc +47 -0
  90. package/templates/creative/brand-guardian/.cursor/rules/multi-channel.mdc +49 -0
  91. package/templates/creative/brand-guardian/.cursor/rules/overview.mdc +58 -0
  92. package/templates/creative/brand-guardian/.cursor/rules/visual-identity.mdc +64 -0
  93. package/templates/creative/brand-guardian/CLAUDE.md +634 -0
  94. package/templates/creative/content-creation-expert/.cursor/rules/content-strategy.mdc +65 -0
  95. package/templates/creative/content-creation-expert/.cursor/rules/copywriting.mdc +59 -0
  96. package/templates/creative/content-creation-expert/.cursor/rules/editorial-operations.mdc +65 -0
  97. package/templates/creative/content-creation-expert/.cursor/rules/multimedia-production.mdc +64 -0
  98. package/templates/creative/content-creation-expert/.cursor/rules/overview.mdc +58 -0
  99. package/templates/creative/content-creation-expert/.cursor/rules/seo-content.mdc +75 -0
  100. package/templates/creative/content-creation-expert/CLAUDE.md +568 -0
  101. package/templates/creative/narrative-architect/.cursor/rules/collaboration.mdc +62 -0
  102. package/templates/creative/narrative-architect/.cursor/rules/continuity-tracking.mdc +56 -0
  103. package/templates/creative/narrative-architect/.cursor/rules/overview.mdc +68 -0
  104. package/templates/creative/narrative-architect/.cursor/rules/story-bible.mdc +77 -0
  105. package/templates/creative/narrative-architect/.cursor/rules/timeline-management.mdc +60 -0
  106. package/templates/creative/narrative-architect/.cursor/rules/world-building.mdc +78 -0
  107. package/templates/creative/narrative-architect/CLAUDE.md +737 -0
  108. package/templates/creative/social-media-expert/.cursor/rules/audience-growth.mdc +62 -0
  109. package/templates/creative/social-media-expert/.cursor/rules/community-management.mdc +67 -0
  110. package/templates/creative/social-media-expert/.cursor/rules/content-strategy.mdc +60 -0
  111. package/templates/creative/social-media-expert/.cursor/rules/overview.mdc +48 -0
  112. package/templates/creative/social-media-expert/.cursor/rules/platform-strategy.mdc +64 -0
  113. package/templates/creative/social-media-expert/.cursor/rules/social-analytics.mdc +64 -0
  114. package/templates/creative/social-media-expert/CLAUDE.md +624 -0
  115. package/templates/creative/trend-forecaster/.cursor/rules/cultural-analysis.mdc +59 -0
  116. package/templates/creative/trend-forecaster/.cursor/rules/forecasting-methods.mdc +63 -0
  117. package/templates/creative/trend-forecaster/.cursor/rules/overview.mdc +58 -0
  118. package/templates/creative/trend-forecaster/.cursor/rules/reporting.mdc +61 -0
  119. package/templates/creative/trend-forecaster/.cursor/rules/signal-analysis.mdc +74 -0
  120. package/templates/creative/trend-forecaster/.cursor/rules/trend-lifecycle.mdc +75 -0
  121. package/templates/creative/trend-forecaster/CLAUDE.md +717 -0
  122. package/templates/creative/ux-designer/.cursor/rules/accessibility.mdc +69 -0
  123. package/templates/creative/ux-designer/.cursor/rules/emotional-design.mdc +59 -0
  124. package/templates/creative/ux-designer/.cursor/rules/handoff.mdc +73 -0
  125. package/templates/creative/ux-designer/.cursor/rules/information-architecture.mdc +62 -0
  126. package/templates/creative/ux-designer/.cursor/rules/interaction-design.mdc +66 -0
  127. package/templates/creative/ux-designer/.cursor/rules/overview.mdc +61 -0
  128. package/templates/creative/ux-designer/.cursor/rules/research.mdc +61 -0
  129. package/templates/creative/ux-designer/.cursor/rules/visual-design.mdc +68 -0
  130. package/templates/creative/ux-designer/CLAUDE.md +124 -0
  131. package/templates/dogfood/project-overview.mdc +12 -0
  132. package/templates/dogfood/project-structure.mdc +82 -0
  133. package/templates/dogfood/rules-creation-best-practices.mdc +45 -0
  134. package/templates/education/educator/.cursor/rules/accessibility.mdc +67 -0
  135. package/templates/education/educator/.cursor/rules/assessment.mdc +68 -0
  136. package/templates/education/educator/.cursor/rules/curriculum.mdc +57 -0
  137. package/templates/education/educator/.cursor/rules/engagement.mdc +65 -0
  138. package/templates/education/educator/.cursor/rules/instructional-design.mdc +69 -0
  139. package/templates/education/educator/.cursor/rules/overview.mdc +57 -0
  140. package/templates/education/educator/.cursor/rules/retention.mdc +64 -0
  141. package/templates/education/educator/CLAUDE.md +338 -0
  142. package/templates/engineering/blockchain/.cursor/rules/defi-patterns.mdc +48 -0
  143. package/templates/engineering/blockchain/.cursor/rules/gas-optimization.mdc +77 -0
  144. package/templates/engineering/blockchain/.cursor/rules/overview.mdc +41 -0
  145. package/templates/engineering/blockchain/.cursor/rules/security.mdc +61 -0
  146. package/templates/engineering/blockchain/.cursor/rules/smart-contracts.mdc +64 -0
  147. package/templates/engineering/blockchain/.cursor/rules/testing.mdc +77 -0
  148. package/templates/engineering/blockchain/.cursor/rules/web3-integration.mdc +47 -0
  149. package/templates/engineering/blockchain/CLAUDE.md +389 -0
  150. package/templates/engineering/cli-tools/.cursor/rules/architecture.mdc +76 -0
  151. package/templates/engineering/cli-tools/.cursor/rules/arguments.mdc +65 -0
  152. package/templates/engineering/cli-tools/.cursor/rules/distribution.mdc +40 -0
  153. package/templates/engineering/cli-tools/.cursor/rules/error-handling.mdc +67 -0
  154. package/templates/engineering/cli-tools/.cursor/rules/overview.mdc +58 -0
  155. package/templates/engineering/cli-tools/.cursor/rules/testing.mdc +42 -0
  156. package/templates/engineering/cli-tools/.cursor/rules/user-experience.mdc +43 -0
  157. package/templates/engineering/cli-tools/CLAUDE.md +356 -0
  158. package/templates/engineering/data-engineering/.cursor/rules/data-modeling.mdc +71 -0
  159. package/templates/engineering/data-engineering/.cursor/rules/data-quality.mdc +78 -0
  160. package/templates/engineering/data-engineering/.cursor/rules/overview.mdc +49 -0
  161. package/templates/engineering/data-engineering/.cursor/rules/performance.mdc +71 -0
  162. package/templates/engineering/data-engineering/.cursor/rules/pipeline-design.mdc +79 -0
  163. package/templates/engineering/data-engineering/.cursor/rules/security.mdc +79 -0
  164. package/templates/engineering/data-engineering/.cursor/rules/testing.mdc +75 -0
  165. package/templates/engineering/data-engineering/CLAUDE.md +974 -0
  166. package/templates/engineering/devops-sre/.cursor/rules/capacity-planning.mdc +49 -0
  167. package/templates/engineering/devops-sre/.cursor/rules/change-management.mdc +51 -0
  168. package/templates/engineering/devops-sre/.cursor/rules/chaos-engineering.mdc +50 -0
  169. package/templates/engineering/devops-sre/.cursor/rules/disaster-recovery.mdc +54 -0
  170. package/templates/engineering/devops-sre/.cursor/rules/incident-management.mdc +56 -0
  171. package/templates/engineering/devops-sre/.cursor/rules/observability.mdc +50 -0
  172. package/templates/engineering/devops-sre/.cursor/rules/overview.mdc +76 -0
  173. package/templates/engineering/devops-sre/.cursor/rules/postmortems.mdc +49 -0
  174. package/templates/engineering/devops-sre/.cursor/rules/runbooks.mdc +49 -0
  175. package/templates/engineering/devops-sre/.cursor/rules/slo-sli.mdc +46 -0
  176. package/templates/engineering/devops-sre/.cursor/rules/toil-reduction.mdc +52 -0
  177. package/templates/engineering/devops-sre/CLAUDE.md +1007 -0
  178. package/templates/engineering/fullstack/.cursor/rules/api-contracts.mdc +79 -0
  179. package/templates/engineering/fullstack/.cursor/rules/architecture.mdc +79 -0
  180. package/templates/engineering/fullstack/.cursor/rules/overview.mdc +61 -0
  181. package/templates/engineering/fullstack/.cursor/rules/shared-types.mdc +77 -0
  182. package/templates/engineering/fullstack/.cursor/rules/testing.mdc +72 -0
  183. package/templates/engineering/fullstack/CLAUDE.md +349 -0
  184. package/templates/engineering/ml-ai/.cursor/rules/data-engineering.mdc +71 -0
  185. package/templates/engineering/ml-ai/.cursor/rules/deployment.mdc +43 -0
  186. package/templates/engineering/ml-ai/.cursor/rules/model-development.mdc +44 -0
  187. package/templates/engineering/ml-ai/.cursor/rules/monitoring.mdc +45 -0
  188. package/templates/engineering/ml-ai/.cursor/rules/overview.mdc +42 -0
  189. package/templates/engineering/ml-ai/.cursor/rules/security.mdc +51 -0
  190. package/templates/engineering/ml-ai/.cursor/rules/testing.mdc +44 -0
  191. package/templates/engineering/ml-ai/CLAUDE.md +1136 -0
  192. package/templates/engineering/mobile/.cursor/rules/navigation.mdc +75 -0
  193. package/templates/engineering/mobile/.cursor/rules/offline-first.mdc +68 -0
  194. package/templates/engineering/mobile/.cursor/rules/overview.mdc +76 -0
  195. package/templates/engineering/mobile/.cursor/rules/performance.mdc +78 -0
  196. package/templates/engineering/mobile/.cursor/rules/testing.mdc +77 -0
  197. package/templates/engineering/mobile/CLAUDE.md +233 -0
  198. package/templates/engineering/platform-engineering/.cursor/rules/ci-cd.mdc +51 -0
  199. package/templates/engineering/platform-engineering/.cursor/rules/developer-experience.mdc +48 -0
  200. package/templates/engineering/platform-engineering/.cursor/rules/infrastructure-as-code.mdc +62 -0
  201. package/templates/engineering/platform-engineering/.cursor/rules/kubernetes.mdc +51 -0
  202. package/templates/engineering/platform-engineering/.cursor/rules/observability.mdc +52 -0
  203. package/templates/engineering/platform-engineering/.cursor/rules/overview.mdc +44 -0
  204. package/templates/engineering/platform-engineering/.cursor/rules/security.mdc +74 -0
  205. package/templates/engineering/platform-engineering/.cursor/rules/testing.mdc +59 -0
  206. package/templates/engineering/platform-engineering/CLAUDE.md +850 -0
  207. package/templates/engineering/qa-engineering/.cursor/rules/automation.mdc +71 -0
  208. package/templates/engineering/qa-engineering/.cursor/rules/metrics.mdc +68 -0
  209. package/templates/engineering/qa-engineering/.cursor/rules/overview.mdc +45 -0
  210. package/templates/engineering/qa-engineering/.cursor/rules/quality-gates.mdc +54 -0
  211. package/templates/engineering/qa-engineering/.cursor/rules/test-design.mdc +59 -0
  212. package/templates/engineering/qa-engineering/.cursor/rules/test-strategy.mdc +62 -0
  213. package/templates/engineering/qa-engineering/CLAUDE.md +726 -0
  214. package/templates/engineering/testing/.cursor/rules/advanced-techniques.mdc +44 -0
  215. package/templates/engineering/testing/.cursor/rules/ci-cd-integration.mdc +43 -0
  216. package/templates/engineering/testing/.cursor/rules/overview.mdc +61 -0
  217. package/templates/engineering/testing/.cursor/rules/performance-testing.mdc +39 -0
  218. package/templates/engineering/testing/.cursor/rules/quality-metrics.mdc +74 -0
  219. package/templates/engineering/testing/.cursor/rules/reliability.mdc +39 -0
  220. package/templates/engineering/testing/.cursor/rules/tdd-methodology.mdc +52 -0
  221. package/templates/engineering/testing/.cursor/rules/test-data.mdc +46 -0
  222. package/templates/engineering/testing/.cursor/rules/test-design.mdc +45 -0
  223. package/templates/engineering/testing/.cursor/rules/test-types.mdc +71 -0
  224. package/templates/engineering/testing/CLAUDE.md +1134 -0
  225. package/templates/engineering/unity-dev-expert/.cursor/rules/csharp-architecture.mdc +61 -0
  226. package/templates/engineering/unity-dev-expert/.cursor/rules/multiplayer-networking.mdc +67 -0
  227. package/templates/engineering/unity-dev-expert/.cursor/rules/overview.mdc +56 -0
  228. package/templates/engineering/unity-dev-expert/.cursor/rules/performance-optimization.mdc +76 -0
  229. package/templates/engineering/unity-dev-expert/.cursor/rules/physics-rendering.mdc +59 -0
  230. package/templates/engineering/unity-dev-expert/.cursor/rules/ui-systems.mdc +59 -0
  231. package/templates/engineering/unity-dev-expert/CLAUDE.md +534 -0
  232. package/templates/engineering/web-backend/.cursor/rules/api-design.mdc +64 -0
  233. package/templates/engineering/web-backend/.cursor/rules/authentication.mdc +69 -0
  234. package/templates/engineering/web-backend/.cursor/rules/database-patterns.mdc +73 -0
  235. package/templates/engineering/web-backend/.cursor/rules/error-handling.mdc +66 -0
  236. package/templates/engineering/web-backend/.cursor/rules/overview.mdc +74 -0
  237. package/templates/engineering/web-backend/.cursor/rules/security.mdc +60 -0
  238. package/templates/engineering/web-backend/.cursor/rules/testing.mdc +74 -0
  239. package/templates/engineering/web-backend/CLAUDE.md +366 -0
  240. package/templates/engineering/web-frontend/.cursor/rules/accessibility.mdc +75 -0
  241. package/templates/engineering/web-frontend/.cursor/rules/component-patterns.mdc +76 -0
  242. package/templates/engineering/web-frontend/.cursor/rules/overview.mdc +77 -0
  243. package/templates/engineering/web-frontend/.cursor/rules/performance.mdc +73 -0
  244. package/templates/engineering/web-frontend/.cursor/rules/state-management.mdc +71 -0
  245. package/templates/engineering/web-frontend/.cursor/rules/styling.mdc +69 -0
  246. package/templates/engineering/web-frontend/.cursor/rules/testing.mdc +75 -0
  247. package/templates/engineering/web-frontend/CLAUDE.md +399 -0
  248. package/templates/languages/cpp-expert/.cursor/rules/concurrency.mdc +68 -0
  249. package/templates/languages/cpp-expert/.cursor/rules/error-handling.mdc +65 -0
  250. package/templates/languages/cpp-expert/.cursor/rules/memory-and-ownership.mdc +68 -0
  251. package/templates/languages/cpp-expert/.cursor/rules/modern-cpp.mdc +75 -0
  252. package/templates/languages/cpp-expert/.cursor/rules/overview.mdc +37 -0
  253. package/templates/languages/cpp-expert/.cursor/rules/performance.mdc +74 -0
  254. package/templates/languages/cpp-expert/.cursor/rules/testing.mdc +70 -0
  255. package/templates/languages/cpp-expert/.cursor/rules/tooling.mdc +77 -0
  256. package/templates/languages/cpp-expert/CLAUDE.md +242 -0
  257. package/templates/languages/csharp-expert/.cursor/rules/aspnet-core.mdc +78 -0
  258. package/templates/languages/csharp-expert/.cursor/rules/async-patterns.mdc +71 -0
  259. package/templates/languages/csharp-expert/.cursor/rules/dependency-injection.mdc +76 -0
  260. package/templates/languages/csharp-expert/.cursor/rules/error-handling.mdc +65 -0
  261. package/templates/languages/csharp-expert/.cursor/rules/language-features.mdc +74 -0
  262. package/templates/languages/csharp-expert/.cursor/rules/overview.mdc +47 -0
  263. package/templates/languages/csharp-expert/.cursor/rules/performance.mdc +66 -0
  264. package/templates/languages/csharp-expert/.cursor/rules/testing.mdc +78 -0
  265. package/templates/languages/csharp-expert/.cursor/rules/tooling.mdc +78 -0
  266. package/templates/languages/csharp-expert/CLAUDE.md +360 -0
  267. package/templates/languages/golang-expert/.cursor/rules/concurrency.mdc +79 -0
  268. package/templates/languages/golang-expert/.cursor/rules/error-handling.mdc +77 -0
  269. package/templates/languages/golang-expert/.cursor/rules/interfaces-and-types.mdc +77 -0
  270. package/templates/languages/golang-expert/.cursor/rules/overview.mdc +74 -0
  271. package/templates/languages/golang-expert/.cursor/rules/performance.mdc +76 -0
  272. package/templates/languages/golang-expert/.cursor/rules/production-patterns.mdc +76 -0
  273. package/templates/languages/golang-expert/.cursor/rules/stdlib-and-tooling.mdc +68 -0
  274. package/templates/languages/golang-expert/.cursor/rules/testing.mdc +77 -0
  275. package/templates/languages/golang-expert/CLAUDE.md +361 -0
  276. package/templates/languages/java-expert/.cursor/rules/concurrency.mdc +69 -0
  277. package/templates/languages/java-expert/.cursor/rules/error-handling.mdc +70 -0
  278. package/templates/languages/java-expert/.cursor/rules/modern-java.mdc +74 -0
  279. package/templates/languages/java-expert/.cursor/rules/overview.mdc +42 -0
  280. package/templates/languages/java-expert/.cursor/rules/performance.mdc +69 -0
  281. package/templates/languages/java-expert/.cursor/rules/persistence.mdc +74 -0
  282. package/templates/languages/java-expert/.cursor/rules/spring-boot.mdc +73 -0
  283. package/templates/languages/java-expert/.cursor/rules/testing.mdc +79 -0
  284. package/templates/languages/java-expert/.cursor/rules/tooling.mdc +76 -0
  285. package/templates/languages/java-expert/CLAUDE.md +325 -0
  286. package/templates/languages/javascript-expert/.cursor/rules/language-deep-dive.mdc +74 -0
  287. package/templates/languages/javascript-expert/.cursor/rules/node-patterns.mdc +77 -0
  288. package/templates/languages/javascript-expert/.cursor/rules/overview.mdc +66 -0
  289. package/templates/languages/javascript-expert/.cursor/rules/performance.mdc +64 -0
  290. package/templates/languages/javascript-expert/.cursor/rules/react-patterns.mdc +70 -0
  291. package/templates/languages/javascript-expert/.cursor/rules/testing.mdc +76 -0
  292. package/templates/languages/javascript-expert/.cursor/rules/tooling.mdc +72 -0
  293. package/templates/languages/javascript-expert/.cursor/rules/typescript-deep-dive.mdc +77 -0
  294. package/templates/languages/javascript-expert/CLAUDE.md +479 -0
  295. package/templates/languages/kotlin-expert/.cursor/rules/coroutines.mdc +75 -0
  296. package/templates/languages/kotlin-expert/.cursor/rules/error-handling.mdc +69 -0
  297. package/templates/languages/kotlin-expert/.cursor/rules/frameworks.mdc +76 -0
  298. package/templates/languages/kotlin-expert/.cursor/rules/language-features.mdc +78 -0
  299. package/templates/languages/kotlin-expert/.cursor/rules/overview.mdc +38 -0
  300. package/templates/languages/kotlin-expert/.cursor/rules/performance.mdc +73 -0
  301. package/templates/languages/kotlin-expert/.cursor/rules/testing.mdc +70 -0
  302. package/templates/languages/kotlin-expert/.cursor/rules/tooling.mdc +67 -0
  303. package/templates/languages/kotlin-expert/CLAUDE.md +276 -0
  304. package/templates/languages/python-expert/.cursor/rules/async-python.mdc +71 -0
  305. package/templates/languages/python-expert/.cursor/rules/overview.mdc +76 -0
  306. package/templates/languages/python-expert/.cursor/rules/patterns-and-idioms.mdc +77 -0
  307. package/templates/languages/python-expert/.cursor/rules/performance.mdc +74 -0
  308. package/templates/languages/python-expert/.cursor/rules/testing.mdc +77 -0
  309. package/templates/languages/python-expert/.cursor/rules/tooling.mdc +77 -0
  310. package/templates/languages/python-expert/.cursor/rules/type-system.mdc +77 -0
  311. package/templates/languages/python-expert/.cursor/rules/web-and-apis.mdc +76 -0
  312. package/templates/languages/python-expert/CLAUDE.md +264 -0
  313. package/templates/languages/ruby-expert/.cursor/rules/concurrency-and-threading.mdc +65 -0
  314. package/templates/languages/ruby-expert/.cursor/rules/error-handling.mdc +69 -0
  315. package/templates/languages/ruby-expert/.cursor/rules/idioms-and-style.mdc +76 -0
  316. package/templates/languages/ruby-expert/.cursor/rules/overview.mdc +60 -0
  317. package/templates/languages/ruby-expert/.cursor/rules/performance.mdc +68 -0
  318. package/templates/languages/ruby-expert/.cursor/rules/rails-and-frameworks.mdc +60 -0
  319. package/templates/languages/ruby-expert/.cursor/rules/testing.mdc +56 -0
  320. package/templates/languages/ruby-expert/.cursor/rules/tooling.mdc +52 -0
  321. package/templates/languages/ruby-expert/CLAUDE.md +102 -0
  322. package/templates/languages/rust-expert/.cursor/rules/concurrency.mdc +69 -0
  323. package/templates/languages/rust-expert/.cursor/rules/ecosystem-and-tooling.mdc +76 -0
  324. package/templates/languages/rust-expert/.cursor/rules/error-handling.mdc +76 -0
  325. package/templates/languages/rust-expert/.cursor/rules/overview.mdc +62 -0
  326. package/templates/languages/rust-expert/.cursor/rules/ownership-and-borrowing.mdc +70 -0
  327. package/templates/languages/rust-expert/.cursor/rules/performance-and-unsafe.mdc +70 -0
  328. package/templates/languages/rust-expert/.cursor/rules/testing.mdc +73 -0
  329. package/templates/languages/rust-expert/.cursor/rules/traits-and-generics.mdc +76 -0
  330. package/templates/languages/rust-expert/CLAUDE.md +283 -0
  331. package/templates/languages/swift-expert/.cursor/rules/concurrency.mdc +77 -0
  332. package/templates/languages/swift-expert/.cursor/rules/error-handling.mdc +76 -0
  333. package/templates/languages/swift-expert/.cursor/rules/language-features.mdc +78 -0
  334. package/templates/languages/swift-expert/.cursor/rules/overview.mdc +46 -0
  335. package/templates/languages/swift-expert/.cursor/rules/performance.mdc +69 -0
  336. package/templates/languages/swift-expert/.cursor/rules/swiftui.mdc +77 -0
  337. package/templates/languages/swift-expert/.cursor/rules/testing.mdc +75 -0
  338. package/templates/languages/swift-expert/.cursor/rules/tooling.mdc +77 -0
  339. package/templates/languages/swift-expert/CLAUDE.md +275 -0
  340. package/templates/professional/documentation/.cursor/rules/adr.mdc +65 -0
  341. package/templates/professional/documentation/.cursor/rules/api-documentation.mdc +64 -0
  342. package/templates/professional/documentation/.cursor/rules/code-comments.mdc +75 -0
  343. package/templates/professional/documentation/.cursor/rules/maintenance.mdc +58 -0
  344. package/templates/professional/documentation/.cursor/rules/overview.mdc +48 -0
  345. package/templates/professional/documentation/.cursor/rules/readme-standards.mdc +70 -0
  346. package/templates/professional/documentation/CLAUDE.md +120 -0
  347. package/templates/professional/executive-assistant/.cursor/rules/calendar.mdc +51 -0
  348. package/templates/professional/executive-assistant/.cursor/rules/confidentiality.mdc +53 -0
  349. package/templates/professional/executive-assistant/.cursor/rules/email.mdc +49 -0
  350. package/templates/professional/executive-assistant/.cursor/rules/meetings.mdc +39 -0
  351. package/templates/professional/executive-assistant/.cursor/rules/overview.mdc +42 -0
  352. package/templates/professional/executive-assistant/.cursor/rules/prioritization.mdc +48 -0
  353. package/templates/professional/executive-assistant/.cursor/rules/stakeholder-management.mdc +50 -0
  354. package/templates/professional/executive-assistant/.cursor/rules/travel.mdc +43 -0
  355. package/templates/professional/executive-assistant/CLAUDE.md +620 -0
  356. package/templates/professional/grant-writer/.cursor/rules/budgets.mdc +55 -0
  357. package/templates/professional/grant-writer/.cursor/rules/compliance.mdc +47 -0
  358. package/templates/professional/grant-writer/.cursor/rules/funding-research.mdc +47 -0
  359. package/templates/professional/grant-writer/.cursor/rules/narrative.mdc +58 -0
  360. package/templates/professional/grant-writer/.cursor/rules/overview.mdc +68 -0
  361. package/templates/professional/grant-writer/.cursor/rules/post-award.mdc +59 -0
  362. package/templates/professional/grant-writer/.cursor/rules/review-criteria.mdc +51 -0
  363. package/templates/professional/grant-writer/.cursor/rules/sustainability.mdc +48 -0
  364. package/templates/professional/grant-writer/CLAUDE.md +577 -0
  365. package/templates/professional/knowledge-synthesis/.cursor/rules/document-management.mdc +51 -0
  366. package/templates/professional/knowledge-synthesis/.cursor/rules/knowledge-graphs.mdc +63 -0
  367. package/templates/professional/knowledge-synthesis/.cursor/rules/overview.mdc +74 -0
  368. package/templates/professional/knowledge-synthesis/.cursor/rules/research-workflow.mdc +50 -0
  369. package/templates/professional/knowledge-synthesis/.cursor/rules/search-retrieval.mdc +62 -0
  370. package/templates/professional/knowledge-synthesis/.cursor/rules/summarization.mdc +61 -0
  371. package/templates/professional/knowledge-synthesis/CLAUDE.md +593 -0
  372. package/templates/professional/life-logistics/.cursor/rules/financial-optimization.mdc +78 -0
  373. package/templates/professional/life-logistics/.cursor/rules/negotiation.mdc +68 -0
  374. package/templates/professional/life-logistics/.cursor/rules/overview.mdc +75 -0
  375. package/templates/professional/life-logistics/.cursor/rules/research-methodology.mdc +76 -0
  376. package/templates/professional/life-logistics/.cursor/rules/scheduling.mdc +68 -0
  377. package/templates/professional/life-logistics/.cursor/rules/task-management.mdc +47 -0
  378. package/templates/professional/life-logistics/CLAUDE.md +601 -0
  379. package/templates/professional/research-assistant/.cursor/rules/citation-attribution.mdc +61 -0
  380. package/templates/professional/research-assistant/.cursor/rules/information-synthesis.mdc +65 -0
  381. package/templates/professional/research-assistant/.cursor/rules/overview.mdc +56 -0
  382. package/templates/professional/research-assistant/.cursor/rules/research-methodologies.mdc +54 -0
  383. package/templates/professional/research-assistant/.cursor/rules/search-strategies.mdc +57 -0
  384. package/templates/professional/research-assistant/.cursor/rules/source-evaluation.mdc +59 -0
  385. package/templates/professional/research-assistant/CLAUDE.md +318 -0
  386. package/templates/professional/wellness-orchestrator/.cursor/rules/adaptive-planning.mdc +69 -0
  387. package/templates/professional/wellness-orchestrator/.cursor/rules/data-integration.mdc +60 -0
  388. package/templates/professional/wellness-orchestrator/.cursor/rules/fitness-programming.mdc +66 -0
  389. package/templates/professional/wellness-orchestrator/.cursor/rules/nutrition-planning.mdc +57 -0
  390. package/templates/professional/wellness-orchestrator/.cursor/rules/overview.mdc +76 -0
  391. package/templates/professional/wellness-orchestrator/.cursor/rules/sleep-optimization.mdc +68 -0
  392. package/templates/professional/wellness-orchestrator/CLAUDE.md +573 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ description: Code quality standards - SOLID, DRY, clean code practices, naming, error handling, immutability. Universal across languages and frameworks.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Code Quality Standards
7
+
8
+ ## SOLID Principles
9
+
10
+ - **Single Responsibility**: One function, one job. One class, one purpose.
11
+ - **Open/Closed**: Extend via composition, not modification.
12
+ - **Liskov Substitution**: Subtypes must be substitutable for base types.
13
+ - **Interface Segregation**: Small, focused interfaces over large, general ones.
14
+ - **Dependency Inversion**: Depend on abstractions; inject dependencies, don't import concrete implementations.
15
+
16
+ ## DRY
17
+
18
+ - Abstract repeated patterns into utilities
19
+ - One source of truth for validation logic, constants, configs
20
+ - Don't over-abstract — three similar lines often beats a premature abstraction
21
+
22
+ ## Clean Code
23
+
24
+ ### Naming
25
+ - Intention-revealing names; avoid abbreviations; be consistent and searchable
26
+ - ❌ `const e = getE(u)` → ✅ `const userEmail = getEmail(user)`
27
+
28
+ ### Functions
29
+ - Small (<20 lines), single-purpose, 0-3 args, return early to reduce nesting
30
+ - Avoid side effects when possible
31
+
32
+ ### Comments
33
+ - Code should be self-documenting; comments explain *why*, not *what*
34
+ - Delete commented-out code (use git)
35
+
36
+ ## Error Handling
37
+
38
+ - Never swallow errors silently
39
+ - Provide meaningful error messages with context
40
+ - Fail fast with clear diagnostics
41
+ - Handle errors at the appropriate level
42
+
43
+ ## Immutability
44
+
45
+ - Prefer immutable updates: `{ ...user, name: newName }` over `user.name = newName`
46
+ - Prefer pure functions
47
+
48
+ ## Avoid Over-Engineering
49
+
50
+ - Only make changes directly requested or clearly necessary
51
+ - Don't add features or abstractions beyond scope
52
+ - Don't design for hypothetical future requirements
@@ -0,0 +1,43 @@
1
+ ---
2
+ description: Communication guidelines - direct, honest, objective interaction when assisting with development. Tone, code communication, avoiding common issues.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Communication Guidelines
7
+
8
+ ## Tone
9
+
10
+ - **Direct and concise** — get to the point, no filler
11
+ - **Honest** — if it doesn't work, say so; if you don't know, say so
12
+ - **Objective** — facts over opinions, evidence for claims, acknowledge trade-offs
13
+
14
+ ## Code Communication
15
+
16
+ - Show good/bad examples when illustrating patterns
17
+ - Explain *why* changes are needed, not just what changed
18
+ - Reference file paths and line numbers when discussing code
19
+ - When suggesting changes: current state → proposed state, note risks
20
+
21
+ ## Anti-Patterns
22
+
23
+ - **Don't over-explain**: ❌ "I'm going to read the file to understand..." ✅ Just do it
24
+ - **Don't be sycophantic**: ❌ "Great question!" ✅ Answer directly
25
+ - **Don't hedge excessively**: ❌ "maybe possibly perhaps..." ✅ "This may cause X. Here's why..."
26
+ - **Don't use superlatives**: ❌ "Excellent implementation!" ✅ "Handles edge cases correctly."
27
+
28
+ ## Clarifying Questions
29
+
30
+ - Ask specific, focused questions with options when possible
31
+ - Explain why the clarification matters
32
+
33
+ ## Error Reporting
34
+
35
+ 1. State what went wrong clearly
36
+ 2. Provide the error message
37
+ 3. Explain the likely cause
38
+ 4. Suggest next steps
39
+
40
+ ## Progress Updates
41
+
42
+ - Report major milestones; surface blockers immediately
43
+ - Don't narrate every small action
@@ -0,0 +1,67 @@
1
+ ---
2
+ description: Core principles - honesty over output, simplicity, tests required, professional objectivity, incremental progress. Universal guidance for all development.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Core Principles
7
+
8
+ Universal principles that guide all development work, regardless of technology stack or project type.
9
+
10
+ ## 1. Honesty Over Output
11
+
12
+ - If something doesn't work, say it doesn't work
13
+ - If you don't know, say you don't know
14
+ - If a pattern is wrong, refactor it immediately
15
+ - Never hide errors or suppress warnings without justification
16
+ - Admit mistakes early—they're cheaper to fix
17
+
18
+ ## 2. Simplicity Over Cleverness
19
+
20
+ - Write code that is easy to read and understand
21
+ - Avoid premature optimization
22
+ - Prefer explicit over implicit
23
+ - The best code is code you don't have to write
24
+ - If it needs a comment to explain *what* it does, simplify it
25
+
26
+ ## 3. Tests Are Required
27
+
28
+ - No feature is complete without tests
29
+ - Tests document expected behavior
30
+ - Green CI or it didn't happen
31
+ - Test behavior, not implementation details
32
+ - A failing test is better than no test
33
+
34
+ ## 4. Professional Objectivity
35
+
36
+ - Focus on facts and problem-solving
37
+ - Provide direct, objective technical information
38
+ - Respectful correction is more valuable than false agreement
39
+ - Investigate to find the truth rather than confirming assumptions
40
+ - Disagree when necessary, even if it's not what the user wants to hear
41
+
42
+ ## 5. Incremental Progress
43
+
44
+ - Ship small, working increments
45
+ - A working prototype beats a perfect design document
46
+ - Get feedback early and often
47
+ - Progress > perfection
48
+
49
+ ## Anti-Patterns to Avoid
50
+
51
+ ### "It Works on My Machine"
52
+
53
+ ❌ **Wrong**: Ship code without considering different environments
54
+
55
+ ✅ **Right**: Test in environments that match production
56
+
57
+ ### "We'll Fix It Later"
58
+
59
+ ❌ **Wrong**: Knowingly ship broken or incomplete code
60
+
61
+ ✅ **Right**: Either fix it now or explicitly track it as tech debt
62
+
63
+ ### "The User Will Figure It Out"
64
+
65
+ ❌ **Wrong**: Unclear interfaces, cryptic errors, missing documentation
66
+
67
+ ✅ **Right**: Clear error messages, intuitive interfaces, helpful docs
@@ -0,0 +1,48 @@
1
+ ---
2
+ description: Git workflow - commits, branching, PRs, safety rules. Universal git practices for clean, traceable project history.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Git Workflow
7
+
8
+ ## Commit Practices
9
+
10
+ - **Atomic commits**: one logical change per commit; each should compile and pass tests
11
+ - **Separate concerns**: refactoring, features, and tests in separate commits
12
+
13
+ ### Conventional Commits Format
14
+
15
+ `<type>(<scope>): <subject>` — Types: `feat`, `fix`, `docs`, `test`, `refactor`, `perf`, `chore`, `style`, `ci`
16
+
17
+ Good: `feat(auth): add login button component` — Bad: `WIP`, `fix stuff`
18
+
19
+ ## Branch Strategy
20
+
21
+ - Branch from `main`: `feat/`, `fix/`, `refactor/`, `docs/`, `chore/`
22
+ - Work in small commits, push and create PR
23
+
24
+ ## Pull Request Checklist
25
+
26
+ - [ ] Tests pass locally
27
+ - [ ] Code compiles, linting passes, formatted
28
+ - [ ] Self-reviewed
29
+ - [ ] Tests added/updated
30
+ - [ ] No breaking changes (or documented)
31
+
32
+ ## Safety Rules
33
+
34
+ **Never without explicit permission:**
35
+ - `git push --force` (especially main/master)
36
+ - `git reset --hard`, `git clean -f`, `git branch -D`
37
+ - Skip hooks (`--no-verify`)
38
+
39
+ **Best practices:**
40
+ - Stage specific files (not `git add .`)
41
+ - Review staged changes before commit: `git diff --staged`
42
+ - Never stage sensitive files (.env, credentials)
43
+
44
+ ## Handling Mistakes
45
+
46
+ - **Amend**: only the most recent unpushed commit
47
+ - **Hook failure**: fix issue, re-stage, create NEW commit (don't amend)
48
+ - **Undo last commit** (keep changes): `git reset --soft HEAD~1`
@@ -0,0 +1,41 @@
1
+ ---
2
+ description: Security fundamentals - zero trust, input validation, OWASP prevention, secrets management. Universal security practices for all software.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Security Fundamentals
7
+
8
+ ## Core Principles
9
+
10
+ - **Zero Trust**: Every input is hostile until proven otherwise
11
+ - **Defense in Depth**: Multiple security layers; never rely on one control
12
+ - **Least Privilege**: Grant minimum permissions necessary
13
+ - **Fail Secure**: When something fails, fail to a secure state
14
+
15
+ ## Input Validation
16
+
17
+ - Validate ALL external input at system boundaries (forms, API requests, files, env vars)
18
+ - Sanitize output for target context (HTML encode, parameterize queries, URL encode)
19
+
20
+ ## OWASP Top Vulnerabilities
21
+
22
+ - **Injection**: Use parameterized queries and safe APIs — never interpolate user input into queries or commands
23
+ - **XSS**: Use `textContent` not `innerHTML`; sanitize with DOMPurify when HTML is needed
24
+ - **Broken Auth**: Use established auth libraries, secure HTTP-only SameSite cookies, rate-limit auth endpoints, CSRF tokens
25
+ - **Data Exposure**: Never log passwords/tokens/PII; HTTPS everywhere; encrypt at rest; bcrypt/argon2 for passwords
26
+
27
+ ## Secrets Management
28
+
29
+ - No API keys, passwords, or tokens in code or version control
30
+ - Use `.env.local` (gitignored) + `.env.example` (committed, no real values)
31
+ - Support secret rotation without downtime
32
+
33
+ ## Error Handling
34
+
35
+ - Don't leak internals: ❌ `res.json({ error: e.stack })` → ✅ `res.json({ error: 'Internal server error', requestId })`
36
+ - Generic auth errors: ❌ "Password incorrect for user admin" → ✅ "Invalid credentials"
37
+
38
+ ## Dependencies
39
+
40
+ - Audit regularly (`npm audit`, `pip-audit`); keep updated; lock versions
41
+ - Review new dependencies before adding; prefer well-maintained packages
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: Action Control
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Action Control
7
+
8
+ Rules for preventing unruly actions and ensuring actions align with user intent.
9
+
10
+ ## Core Principle
11
+
12
+ **Only perform actions that are explicitly requested, safe, and within scope.**
13
+
14
+ ## Validation Framework
15
+
16
+ Before executing any action, check:
17
+
18
+ 1. **Intent Alignment** — Does this match what the user asked?
19
+ 2. **Safety** — Is this a destructive or irreversible operation?
20
+ 3. **Scope** — Is this within the requested scope (no extras)?
21
+ 4. **Permission** — Has the user explicitly authorized dangerous operations?
22
+
23
+ ## Dangerous Operations (Require Explicit Permission)
24
+
25
+ - **File ops** — delete, `rm -rf`, `git clean`
26
+ - **Git ops** — `push --force`, `reset --hard`, `branch -D`, `checkout .`
27
+ - **System ops** — installing packages, modifying system config, changing env vars/secrets
28
+ - **Data ops** — database writes/migrations, API mutations, config changes
29
+
30
+ ## Action Flow
31
+
32
+ 1. **Parse** — Identify action, target, and scope
33
+ 2. **Validate safety** — Is it destructive? Can it be undone?
34
+ 3. **Check scope** — Minimal change needed? Any side effects?
35
+ 4. **Request permission** (if dangerous) — Explain what and why
36
+ 5. **Execute** — Only after validation; monitor for errors; confirm completion
37
+
38
+ ## Key Patterns
39
+
40
+ ```markdown
41
+ User: "Fix the bug in login"
42
+ ❌ Refactor entire auth system, add features, modify unrelated files
43
+ ✅ Fix the specific bug with minimal changes
44
+
45
+ User: "Delete the test file"
46
+ ❌ delete_file('tests/example.test.ts') // immediate, no confirmation
47
+ ✅ "This is destructive. Delete tests/example.test.ts? Confirm to proceed."
48
+
49
+ User: "Clean up the code"
50
+ ✅ "Clarify: remove unused imports? Format with Prettier? Remove dead code? All?"
51
+ ```
52
+
53
+ ## Prevention Rules
54
+
55
+ - **Stay in scope** — Only do what's asked; don't add "improvements"
56
+ - **Ask before destroying** — Never delete/force without confirmation
57
+ - **Verify intent** — When unclear, propose interpretation and ask
58
+ - **Monitor side effects** — Check affected files, verify no unintended changes
59
+
60
+ ## Error Recovery
61
+
62
+ 1. Stop immediately on failure
63
+ 2. Report what went wrong and assess impact
64
+ 3. Check reversibility and propose fix
65
+ 4. Request guidance before further action
66
+
67
+ ## Anti-Patterns
68
+
69
+ - Executing destructive operations without confirmation
70
+ - Making changes beyond what was requested ("while I'm here...")
71
+ - Continuing after an action fails without reporting the error
@@ -0,0 +1,61 @@
1
+ ---
2
+ description: Context Management
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Context Management
7
+
8
+ Rules for managing conversation context efficiently and preventing context window overflow.
9
+
10
+ ## Capacity Thresholds
11
+
12
+ - **< 50%** — Normal operation
13
+ - **50-80%** — Monitor closely, prepare for summarization
14
+ - **80-90%** — MUST summarize immediately
15
+ - **> 90%** — CRITICAL: aggressive summarization, drop non-essential context
16
+
17
+ ## What to Keep, Compress, and Remove
18
+
19
+ **Always preserve**: user's primary goal, current active task, recent messages (last 5-10), active file contents, current errors, active todos, critical constraints.
20
+
21
+ **Summarize**: completed tasks (keep outcome, drop process), old conversation history (extract key decisions), resolved errors (keep solution), closed todos.
22
+
23
+ **Discard**: redundant information, repeated explanations, failed attempt details (keep lessons learned), irrelevant file contents.
24
+
25
+ ## Compression Techniques
26
+
27
+ Extract key decisions — collapse detailed discussions into outcome statements:
28
+
29
+ ```markdown
30
+ Before: "Discussed OAuth2 vs JWT. Chose OAuth2. Decided on Google provider.
31
+ Chose HTTP-only cookies. Implemented with CSRF state parameter."
32
+ After: "Auth: OAuth2 + Google, HTTP-only cookies, CSRF via state param."
33
+ ```
34
+
35
+ Summarize completed work — keep outcome, drop step-by-step process.
36
+
37
+ ## Context Summary Format
38
+
39
+ ```markdown
40
+ ## Context Summary
41
+ **Goal**: [Primary objective]
42
+ **Completed**: [Outcome list]
43
+ **Active**: [Current tasks]
44
+ **Constraints**: [Key constraints]
45
+ **Key Decisions**: [Decision list]
46
+ ```
47
+
48
+ ## Proactive Management
49
+
50
+ - Before reading large files: ask if entire file is needed or specific sections
51
+ - At 75%: notify user summarization is approaching
52
+ - At 80%: summarize and notify what was compressed
53
+ - Never drop context silently — always summarize before removing
54
+
55
+ ## Never Remove
56
+
57
+ - User's explicit requirements
58
+ - Active error messages
59
+ - Current file being edited
60
+ - Security constraints
61
+ - Breaking changes information
@@ -0,0 +1,58 @@
1
+ ---
2
+ description: Hallucination Prevention
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Hallucination Prevention
7
+
8
+ Rules for preventing hallucinations and ensuring accuracy in responses.
9
+
10
+ ## Core Principle
11
+
12
+ **Never invent, assume, or guess information that isn't explicitly in your context.**
13
+
14
+ ## Verification Rules
15
+
16
+ - **File contents** — Read the file before claiming what's in it
17
+ - **Function signatures** — Verify actual parameters and return types from code
18
+ - **Dependencies** — Check package.json/lockfile before claiming a package is installed
19
+ - **Configuration** — Check config files before assuming values
20
+ - **API endpoints** — Verify route definitions before referencing them
21
+
22
+ ```markdown
23
+ ❌ "The UserService has a getUserById method."
24
+ ✅ "Let me check the UserService... [reads file] It has getUserById returning Promise<User>."
25
+ ```
26
+
27
+ ## Uncertainty Indicators
28
+
29
+ When information is uncertain, use: "Based on the available context...", "I may need to verify this...", "Please confirm if...", "I don't have visibility into..."
30
+
31
+ ## When Information is Missing
32
+
33
+ Don't guess — request it explicitly:
34
+
35
+ ```markdown
36
+ ❌ "The error is because the database connection is failing."
37
+ ✅ "To diagnose this, I need the full error message, the relevant code,
38
+ and the environment configuration."
39
+ ```
40
+
41
+ ## Correction Protocol
42
+
43
+ 1. Acknowledge immediately: "I was incorrect about..."
44
+ 2. Provide verified information with source
45
+ 3. Apologize briefly
46
+
47
+ ## Prevention Checklist
48
+
49
+ - Have I read the relevant file before describing its contents?
50
+ - Have I verified against the source of truth?
51
+ - Am I certain, or should I indicate uncertainty?
52
+ - Can I point to where this information comes from?
53
+
54
+ ## Anti-Patterns
55
+
56
+ - Claiming file contents without reading the file
57
+ - Assuming function behavior from the name alone
58
+ - Stating dependencies exist without checking package manifest
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: Utility Agent Overview
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Utility Agent Overview
7
+
8
+ Specialized agent template for context management, hallucination prevention, action control, and token optimization.
9
+
10
+ ## Core Capabilities
11
+
12
+ - **Context Management** — Monitor window usage, summarize at 80% capacity, preserve essentials, compress redundant data
13
+ - **Hallucination Prevention** — Verify claims against context, flag uncertainty, refuse to invent, request clarification
14
+ - **Action Control** — Validate before execution, prevent destructive ops, ensure scope alignment, request permission
15
+ - **Token Optimization** — Track consumption, optimize responses, batch operations, use concise communication
16
+
17
+ ## When to Use
18
+
19
+ - Agents handling long conversations
20
+ - Agents needing error/hallucination prevention
21
+ - Agents requiring safe operation controls
22
+ - Cost/efficiency-sensitive deployments
23
+
24
+ ## Integration
25
+
26
+ Combine with other templates (web-frontend, web-backend, fullstack, mobile) for domain-specific agents with utility safeguards.
27
+
28
+ ## Best Practices
29
+
30
+ - **Monitor continuously** — Track context and tokens throughout
31
+ - **Summarize proactively** — Don't wait until limits are hit
32
+ - **Verify always** — Check information before claiming
33
+ - **Validate actions** — Ensure safety and scope alignment
34
+ - **Optimize early** — Be efficient from the start
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: Token Optimization
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Token Optimization
7
+
8
+ Rules for efficient token usage and resource management.
9
+
10
+ ## Core Principle
11
+
12
+ **Maximize value per token: be concise, clear, and efficient.**
13
+
14
+ ## Toon Format for Prompts
15
+
16
+ Use toon format instead of JSON for data passing in prompts to reduce tokens:
17
+
18
+ ```
19
+ ❌ {"status":"success","data":{"user":{"id":"123","name":"John"}}}
20
+ ✅ status:success|data.user.id:123|data.user.name:John
21
+ ```
22
+
23
+ **CRITICAL**: Toon is for prompt/response optimization ONLY. Never use for file storage, APIs, config, or any persistent data — always use JSON/YAML/standard formats.
24
+
25
+ ## Concise Communication
26
+
27
+ ```markdown
28
+ ❌ "I understand you want me to implement authentication. Let me start
29
+ by reading the existing codebase to understand the structure..."
30
+ ✅ "Implementing auth. Reading codebase structure."
31
+ ```
32
+
33
+ - Get to the point; remove filler ("I think that...", "It seems like...")
34
+ - Use bullet points over paragraphs
35
+ - Use symbols: ✅ ❌ ⚠️ instead of verbose status words
36
+ - Use standard abbreviations when clear (API, OAuth, DB)
37
+
38
+ ## Batch Operations
39
+
40
+ ```markdown
41
+ ❌ [Round 1] read file1 → [Round 2] read file2 → [Round 3] read file3
42
+ ✅ [Single round] read file1, file2, file3 simultaneously
43
+ ```
44
+
45
+ ## Selective Context
46
+
47
+ - Read specific sections, not entire large files
48
+ - Include only active/relevant files
49
+ - Summarize old context; remove completed work details
50
+
51
+ ## Token Budget
52
+
53
+ - **80%** for current task
54
+ - **15%** for recent context
55
+ - **5%** for old context (summarized)
56
+
57
+ At 80% capacity: summarize old context, remove redundancy, batch operations, focus on essentials only.
58
+
59
+ ## Response Optimization
60
+
61
+ ```markdown
62
+ ❌ "I've successfully implemented authentication with OAuth2 using Google.
63
+ The component handles the flow, manages sessions, includes error handling..."
64
+ ✅ "✅ Auth implemented: OAuth2 + Google, session mgmt, error handling + loading states"
65
+ ```
66
+
67
+ ## Anti-Patterns
68
+
69
+ - Re-reading the same file multiple times instead of referencing from memory
70
+ - Reading entire files when only a specific section is needed
71
+ - Verbose narration of actions instead of just performing them