@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,525 @@
1
+ # Dynamic Resource Allocator Development Guide
2
+
3
+ Principal-level guidelines for shifting personnel, equipment, and assets in real-time based on incoming data, demand predictions, and crisis reports across healthcare, emergency services, and other high-stakes operational environments.
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ This guide applies to:
10
+
11
+ - Real-time resource optimization and rebalancing
12
+ - Demand prediction and capacity modeling
13
+ - Personnel scheduling and shift optimization
14
+ - Equipment and asset tracking across sites
15
+ - Crisis escalation protocols and triage
16
+ - Prioritization matrices for competing demands
17
+ - Utilization monitoring and bottleneck detection
18
+ - Multi-site coordination strategies
19
+
20
+ ### Key Principles
21
+
22
+ 1. **Lives Before Efficiency** - Optimization models serve people, not the other way around
23
+ 2. **Real-Time Over Perfect** - A good allocation now beats an optimal allocation in an hour
24
+ 3. **Capacity Headroom** - Never run at 100%; systems without slack cannot absorb surges
25
+ 4. **Transparent Tradeoffs** - Every allocation decision has a cost somewhere else; make it visible
26
+ 5. **Degrade Gracefully** - When demand exceeds supply, fail in a controlled, prioritized manner
27
+
28
+ ### Core Frameworks
29
+
30
+ | Framework | Purpose |
31
+ |-----------|---------|
32
+ | Queueing Theory | Model wait times, service rates, and congestion effects |
33
+ | Linear Programming | Optimize allocation across constraints and objectives |
34
+ | Triage Protocols (START/SALT) | Prioritize resource distribution during mass events |
35
+ | Demand Forecasting (ARIMA/Prophet) | Predict future resource needs from historical patterns |
36
+ | Critical Path Method | Identify bottleneck resources that constrain throughput |
37
+ | Game Theory (Mechanism Design) | Design fair allocation rules when agents have competing interests |
38
+
39
+ ---
40
+
41
+ ## Real-Time Resource Optimization
42
+
43
+ ### Optimization Pipeline
44
+
45
+ ```text
46
+ Resource Optimization Loop
47
+ ├── Sense
48
+ │ ├── Ingest real-time demand signals (patient arrivals, incident reports)
49
+ │ ├── Poll asset location and status (GPS, RFID, check-in systems)
50
+ │ ├── Monitor personnel availability (on-shift, on-call, fatigued)
51
+ │ └── Capture environmental inputs (weather, traffic, event calendars)
52
+ ├── Predict
53
+ │ ├── Short-horizon forecast (next 1-4 hours)
54
+ │ ├── Medium-horizon forecast (next shift / next 12 hours)
55
+ │ ├── Anomaly detection against baseline demand curves
56
+ │ └── Scenario modeling for developing situations
57
+ ├── Optimize
58
+ │ ├── Match available resources to predicted demand
59
+ │ ├── Apply constraint sets (certifications, travel time, fatigue rules)
60
+ │ ├── Score candidate allocations against objective function
61
+ │ └── Select feasible plan with best tradeoff profile
62
+ ├── Act
63
+ │ ├── Dispatch reallocation orders
64
+ │ ├── Notify affected personnel and coordinators
65
+ │ ├── Update tracking systems and dashboards
66
+ │ └── Log decision rationale for audit
67
+ └── Learn
68
+ ├── Compare predicted vs actual demand
69
+ ├── Measure allocation effectiveness (response time, utilization)
70
+ ├── Update model weights and parameters
71
+ └── Feed outcomes into next optimization cycle
72
+ ```
73
+
74
+ ### Objective Function Components
75
+
76
+ | Component | Weight | Description |
77
+ |-----------|--------|-------------|
78
+ | Response time minimization | High | Reduce time from demand signal to resource arrival |
79
+ | Utilization balancing | Medium | Spread load evenly to prevent burnout and bottlenecks |
80
+ | Skill-demand matching | High | Assign resources with appropriate certifications |
81
+ | Travel cost minimization | Low-Medium | Reduce transit time and transportation costs |
82
+ | Fairness constraints | Medium | Prevent systematic over-assignment of specific teams |
83
+ | Surge reserve maintenance | Medium | Keep minimum reserve capacity for unexpected events |
84
+
85
+ ### Constraint Categories
86
+
87
+ ```text
88
+ Hard Constraints (must never violate)
89
+ ├── Certification requirements (licensed personnel only)
90
+ ├── Maximum consecutive work hours (fatigue regulations)
91
+ ├── Minimum staffing ratios (regulatory compliance)
92
+ ├── Equipment maintenance schedules (safety-critical)
93
+ └── Jurisdictional boundaries (legal authority limits)
94
+
95
+ Soft Constraints (violate with escalation)
96
+ ├── Preferred shift patterns (employee preferences)
97
+ ├── Target utilization ranges (70-85%)
98
+ ├── Budget limits per period
99
+ ├── Travel distance thresholds
100
+ └── Team continuity preferences
101
+ ```
102
+
103
+ ---
104
+
105
+ ## Demand Prediction and Capacity Modeling
106
+
107
+ ### Demand Signal Taxonomy
108
+
109
+ ```text
110
+ Demand Signals
111
+ ├── Deterministic
112
+ │ ├── Scheduled procedures and appointments
113
+ │ ├── Planned events (concerts, marathons, holidays)
114
+ │ ├── Seasonal patterns (flu season, summer trauma)
115
+ │ └── Regulatory deadlines (inspections, reporting)
116
+ ├── Stochastic
117
+ │ ├── Walk-in patients and unscheduled arrivals
118
+ │ ├── Equipment failures and breakdowns
119
+ │ ├── Weather-driven incidents
120
+ │ └── Traffic accidents and emergency calls
121
+ └── Shock Events
122
+ ├── Mass casualty incidents
123
+ ├── Natural disasters
124
+ ├── Infrastructure failures (power, water)
125
+ └── Pandemic surges
126
+ ```
127
+
128
+ ### Forecasting Methods
129
+
130
+ | Method | Best For | Horizon | Data Requirements |
131
+ |--------|----------|---------|-------------------|
132
+ | Moving averages | Stable baseline demand | 1-7 days | 30+ days history |
133
+ | ARIMA/SARIMA | Seasonal patterns | 1-30 days | 2+ years history |
134
+ | Prophet | Multiple seasonalities with holidays | 1-90 days | 1+ year history |
135
+ | Gradient boosting | Complex multi-feature prediction | 1-14 days | Feature-rich datasets |
136
+ | Simulation (Monte Carlo) | Scenario analysis and stress testing | Variable | Distribution parameters |
137
+ | Heuristic rules | Crisis mode, data-poor situations | Immediate | Domain expertise |
138
+
139
+ ### Capacity Model Template
140
+
141
+ ```markdown
142
+ ## Capacity Assessment: [Facility/Unit Name]
143
+
144
+ **Date**: [Date]
145
+ **Assessed By**: [Name]
146
+
147
+ ### Current State
148
+ | Resource Type | Available | In Use | Reserve | Utilization |
149
+ |--------------|-----------|--------|---------|-------------|
150
+ | [Personnel type] | [Count] | [Count] | [Count] | [%] |
151
+ | [Equipment type] | [Count] | [Count] | [Count] | [%] |
152
+ | [Beds/Spaces] | [Count] | [Count] | [Count] | [%] |
153
+
154
+ ### Projected Demand (Next 24h)
155
+ | Hour Block | Expected Volume | Confidence | Peak Resource Need |
156
+ |------------|----------------|------------|-------------------|
157
+ | 00-06 | [Volume] | [High/Med/Low] | [Count by type] |
158
+ | 06-12 | [Volume] | [High/Med/Low] | [Count by type] |
159
+ | 12-18 | [Volume] | [High/Med/Low] | [Count by type] |
160
+ | 18-24 | [Volume] | [High/Med/Low] | [Count by type] |
161
+
162
+ ### Gap Analysis
163
+ | Resource Type | Projected Need | Available | Gap | Mitigation |
164
+ |--------------|---------------|-----------|-----|------------|
165
+ | [Type] | [Count] | [Count] | [+/-] | [Plan] |
166
+
167
+ ### Recommendations
168
+ 1. [Action with owner and timeline]
169
+ 2. [Action with owner and timeline]
170
+ ```
171
+
172
+ ### Demand Accuracy Tracking
173
+
174
+ | Metric | Target | Measurement |
175
+ |--------|--------|-------------|
176
+ | Mean Absolute Percentage Error (MAPE) | < 15% for 4-hour windows | Compare forecast vs actual arrivals |
177
+ | Bias | Near zero | Systematic over/under prediction |
178
+ | Peak detection rate | > 90% | Percentage of surge events predicted in advance |
179
+ | False alarm rate | < 10% | Surge alerts that did not materialize |
180
+
181
+ ---
182
+
183
+ ## Personnel Scheduling and Shift Optimization
184
+
185
+ ### Scheduling Hierarchy
186
+
187
+ ```text
188
+ Scheduling Layers
189
+ ├── Strategic (months ahead)
190
+ │ ├── Headcount planning and hiring pipeline
191
+ │ ├── Training and certification scheduling
192
+ │ ├── Leave and vacation allocation
193
+ │ └── Contract and agency staffing agreements
194
+ ├── Tactical (weeks ahead)
195
+ │ ├── Shift roster generation
196
+ │ ├── On-call rotation assignment
197
+ │ ├── Cross-training deployment
198
+ │ └── Overtime pre-authorization
199
+ └── Operational (hours ahead / real-time)
200
+ ├── Call-in and no-show backfill
201
+ ├── Demand-driven redeployment
202
+ ├── Break and relief scheduling
203
+ └── Crisis staffing activation
204
+ ```
205
+
206
+ ### Shift Optimization Rules
207
+
208
+ | Rule | Rationale | Implementation |
209
+ |------|-----------|----------------|
210
+ | Maximum 12-hour shifts | Fatigue degrades performance after 12 hours | Hard constraint in optimizer |
211
+ | Minimum 10-hour rest between shifts | Recovery time prevents errors | Hard constraint |
212
+ | No more than 60 hours per week | Burnout prevention and regulatory compliance | Hard constraint with waiver escalation |
213
+ | Skill mix per shift | Ensure coverage of all required competencies | Constraint matrix by shift |
214
+ | Seniority balancing | Spread experience across all shifts | Soft constraint with weight |
215
+ | Request honoring rate > 80% | Staff satisfaction and retention | Soft constraint, tracked metric |
216
+
217
+ ### Fatigue Risk Management
218
+
219
+ ```text
220
+ Fatigue Risk Levels
221
+ ├── Green (Normal)
222
+ │ └── Within standard shift patterns, adequate rest
223
+ ├── Yellow (Elevated)
224
+ │ └── Extended shift or short turnaround; monitor performance
225
+ ├── Orange (High)
226
+ │ └── Consecutive extended shifts; restrict safety-critical tasks
227
+ └── Red (Critical)
228
+ └── Regulatory limit approached; mandatory stand-down
229
+ ```
230
+
231
+ ### Schedule Quality Metrics
232
+
233
+ | Metric | Target | Description |
234
+ |--------|--------|-------------|
235
+ | Coverage ratio | 100% of minimum staffing | All required positions filled every shift |
236
+ | Overtime percentage | < 8% of total hours | Excessive overtime signals understaffing |
237
+ | Vacancy fill time | < 4 hours for critical roles | Time to backfill unexpected absences |
238
+ | Schedule stability | < 15% changes after publication | Frequent changes erode trust |
239
+ | Preference satisfaction | > 80% | Percentage of shift preferences honored |
240
+
241
+ ---
242
+
243
+ ## Equipment and Asset Tracking
244
+
245
+ ### Asset Lifecycle States
246
+
247
+ ```text
248
+ Asset States
249
+ ├── Available
250
+ │ ├── Ready (fully operational, at base location)
251
+ │ ├── Standby (operational, staged for potential deployment)
252
+ │ └── Reserved (allocated to upcoming scheduled need)
253
+ ├── In Use
254
+ │ ├── Deployed (actively serving demand)
255
+ │ ├── In Transit (moving between locations)
256
+ │ └── Setup/Teardown (being prepared or packed)
257
+ ├── Unavailable
258
+ │ ├── Maintenance (scheduled service)
259
+ │ ├── Repair (unscheduled fix)
260
+ │ ├── Decontamination (cleaning cycle)
261
+ │ └── Inspection (regulatory or safety check)
262
+ └── Retired
263
+ ├── End of life
264
+ ├── Condemned (safety failure)
265
+ └── Surplus (excess to needs)
266
+ ```
267
+
268
+ ### Tracking Requirements
269
+
270
+ | Data Point | Update Frequency | Source |
271
+ |-----------|-----------------|--------|
272
+ | Location | Real-time (< 5 min) | GPS, RFID, manual check-in |
273
+ | Status | On state change | Operator input, sensor data |
274
+ | Utilization hours | Continuous | Telematics, usage meters |
275
+ | Maintenance due date | Daily | Asset management system |
276
+ | Certification expiry | Daily | Compliance database |
277
+ | Assigned operator | On change | Scheduling system |
278
+
279
+ ### Preventive Maintenance Triggers
280
+
281
+ | Trigger Type | Example | Action |
282
+ |-------------|---------|--------|
283
+ | Time-based | Every 90 days | Schedule service window |
284
+ | Usage-based | Every 500 operating hours | Alert maintenance team |
285
+ | Condition-based | Sensor reading out of range | Immediate inspection |
286
+ | Event-based | After deployment to hazardous environment | Decontamination protocol |
287
+
288
+ ---
289
+
290
+ ## Crisis Escalation Protocols and Triage
291
+
292
+ ### Crisis Level Definitions
293
+
294
+ | Level | Name | Description | Example |
295
+ |-------|------|-------------|---------|
296
+ | 1 | Normal Operations | Demand within forecast; standard allocation | Typical weekday |
297
+ | 2 | Elevated Demand | Demand 20-50% above forecast; reserves activated | Large event, minor weather |
298
+ | 3 | Surge | Demand 50-100% above forecast; mutual aid requested | Multi-vehicle accident, storm |
299
+ | 4 | Major Incident | Demand exceeds capacity; triage protocols active | Mass casualty, infrastructure failure |
300
+ | 5 | Catastrophic | System overwhelmed; regional/national coordination | Natural disaster, pandemic peak |
301
+
302
+ ### Escalation Triggers and Responses
303
+
304
+ ```text
305
+ Level 1 → Level 2
306
+ Trigger: Utilization > 85% for 2+ hours or demand forecast elevated
307
+ Response: Activate on-call personnel, pre-position equipment
308
+ Authority: Shift supervisor
309
+
310
+ Level 2 → Level 3
311
+ Trigger: Utilization > 95% or confirmed surge event
312
+ Response: Cancel non-essential activities, request mutual aid
313
+ Authority: Operations manager
314
+
315
+ Level 3 → Level 4
316
+ Trigger: Resources exhausted at primary site, wait times critical
317
+ Response: Activate crisis command center, implement triage protocols
318
+ Authority: Incident commander / Director
319
+
320
+ Level 4 → Level 5
321
+ Trigger: Multi-site resource exhaustion, cascading failures
322
+ Response: Request regional/state/federal assistance, crisis standards
323
+ Authority: Executive leadership / Emergency management
324
+ ```
325
+
326
+ ### Triage Prioritization Matrix
327
+
328
+ | Priority | Label | Criteria | Resource Allocation |
329
+ |----------|-------|----------|-------------------|
330
+ | P1 | Immediate | Life-threatening, time-critical | First allocation, best-matched resources |
331
+ | P2 | Urgent | Serious but stable for 1-4 hours | Second allocation, may queue briefly |
332
+ | P3 | Delayed | Important but not time-sensitive | Queued, served as capacity allows |
333
+ | P4 | Minor | Low severity, self-sufficient temporarily | Deferred, redirect to lower-acuity resources |
334
+ | P5 | Expectant | Needs exceed available resources | Comfort measures only (crisis standards) |
335
+
336
+ ### Crisis Communication Template
337
+
338
+ ```markdown
339
+ ## Situation Report: [Incident Name]
340
+
341
+ **Time**: [Timestamp]
342
+ **Crisis Level**: [1-5]
343
+ **Issued By**: [Name/Role]
344
+
345
+ ### Current Situation
346
+ [2-3 sentences describing what is happening]
347
+
348
+ ### Resource Status
349
+ | Resource Type | Available | Deployed | Inbound | Gap |
350
+ |--------------|-----------|----------|---------|-----|
351
+ | [Type] | [Count] | [Count] | [Count] | [+/-] |
352
+
353
+ ### Actions Taken
354
+ 1. [Action and timestamp]
355
+ 2. [Action and timestamp]
356
+
357
+ ### Immediate Needs
358
+ - [Resource need with quantity and urgency]
359
+ - [Resource need with quantity and urgency]
360
+
361
+ ### Next Update
362
+ [Scheduled time for next situation report]
363
+ ```
364
+
365
+ ---
366
+
367
+ ## Utilization Monitoring and Bottleneck Detection
368
+
369
+ ### Utilization Zones
370
+
371
+ | Zone | Range | Interpretation | Action |
372
+ |------|-------|---------------|--------|
373
+ | Under-utilized | < 50% | Waste; resources idle or misallocated | Consolidate or redeploy |
374
+ | Optimal | 50-80% | Healthy balance of throughput and reserve | Maintain, minor adjustments |
375
+ | High | 80-90% | Productive but limited surge capacity | Monitor closely, pre-stage reserves |
376
+ | Stressed | 90-95% | Near capacity; delays likely | Activate overflow, defer non-critical |
377
+ | Saturated | > 95% | At or beyond capacity; degraded service | Escalate, implement triage |
378
+
379
+ ### Bottleneck Detection Methods
380
+
381
+ ```text
382
+ Bottleneck Identification
383
+ ├── Throughput Analysis
384
+ │ ├── Measure flow rate at each stage of the process
385
+ │ ├── The stage with lowest throughput is the bottleneck
386
+ │ └── Monitor for bottleneck migration as load shifts
387
+ ├── Queue Length Monitoring
388
+ │ ├── Track wait queues at each resource type
389
+ │ ├── Growing queues indicate constrained resources
390
+ │ └── Compare queue growth rates across resource types
391
+ ├── Utilization Heat Maps
392
+ │ ├── Visualize utilization by resource, time, and location
393
+ │ ├── Persistent hot spots indicate structural bottlenecks
394
+ │ └── Intermittent hot spots indicate demand variability
395
+ └── Constraint Analysis
396
+ ├── Identify which constraints are binding in the optimizer
397
+ ├── Shadow prices indicate the value of relaxing each constraint
398
+ └── Highest shadow price = most impactful bottleneck to resolve
399
+ ```
400
+
401
+ ### Key Performance Indicators
402
+
403
+ | KPI | Target | Measurement Frequency |
404
+ |-----|--------|----------------------|
405
+ | Average response time | Sector-dependent (e.g., < 8 min EMS) | Per-incident, aggregated hourly |
406
+ | Resource utilization rate | 70-85% | Continuous, reported per shift |
407
+ | Demand-supply gap | < 5% unmet demand | Hourly during operations |
408
+ | Reallocation frequency | Contextual; track trend | Daily count |
409
+ | Overtime hours ratio | < 8% of total hours | Weekly |
410
+ | Equipment downtime | < 5% of available hours | Monthly |
411
+ | Inter-site transfer rate | Track trend (lower is better) | Weekly |
412
+ | Patient/client wait time | Sector-dependent targets | Per-event, aggregated daily |
413
+
414
+ ---
415
+
416
+ ## Multi-Site Coordination Strategies
417
+
418
+ ### Coordination Models
419
+
420
+ ```text
421
+ Coordination Architectures
422
+ ├── Centralized
423
+ │ ├── Single command center allocates across all sites
424
+ │ ├── Best for: Uniform demand, high inter-site mobility
425
+ │ ├── Risk: Single point of failure, latency in local decisions
426
+ │ └── Mitigation: Redundant command centers, local override authority
427
+ ├── Federated
428
+ │ ├── Sites manage own resources; share surplus via agreements
429
+ │ ├── Best for: Heterogeneous sites, varied demand patterns
430
+ │ ├── Risk: Parochial hoarding, slow mutual aid activation
431
+ │ └── Mitigation: Pre-negotiated sharing protocols, visibility dashboards
432
+ ├── Hierarchical
433
+ │ ├── Regional coordinators manage clusters; escalate to center
434
+ │ ├── Best for: Large geographic areas, tiered service levels
435
+ │ ├── Risk: Middle management bottleneck, information delays
436
+ │ └── Mitigation: Clear escalation thresholds, direct communication channels
437
+ └── Hybrid
438
+ ├── Normal operations: Federated local control
439
+ ├── Elevated demand: Regional coordination activates
440
+ ├── Crisis: Centralized command authority
441
+ └── Best for: Organizations that span multiple operating modes
442
+ ```
443
+
444
+ ### Mutual Aid Protocols
445
+
446
+ | Element | Specification |
447
+ |---------|--------------|
448
+ | Trigger conditions | When lending site utilization < 75% and borrowing site > 90% |
449
+ | Request process | Formal request through coordination platform with resource type and duration |
450
+ | Response time | Acknowledgment within 15 minutes; deployment within agreed window |
451
+ | Cost allocation | Pre-agreed rate card or reciprocal arrangement |
452
+ | Authority | Lending site retains recall authority for own-site emergencies |
453
+ | Reporting | Both sites log transfer in shared system; post-event reconciliation |
454
+
455
+ ### Multi-Site Dashboard Requirements
456
+
457
+ ```markdown
458
+ ## Multi-Site Status Board
459
+
460
+ ### System Overview
461
+ | Site | Status | Utilization | Available Staff | Available Equipment | Wait Time |
462
+ |------|--------|-------------|----------------|--------------------|-----------|
463
+ | [Site A] | [Green/Yellow/Red] | [%] | [Count] | [Count] | [Minutes] |
464
+ | [Site B] | [Green/Yellow/Red] | [%] | [Count] | [Count] | [Minutes] |
465
+
466
+ ### Active Transfers
467
+ | From | To | Resource | Departure | ETA | Status |
468
+ |------|-----|----------|-----------|-----|--------|
469
+ | [Site] | [Site] | [Description] | [Time] | [Time] | [In Transit/Arrived] |
470
+
471
+ ### Alerts
472
+ - [Alert with severity and timestamp]
473
+ - [Alert with severity and timestamp]
474
+ ```
475
+
476
+ ---
477
+
478
+ ## Common Pitfalls
479
+
480
+ ### 1. Optimizing for Average Demand
481
+
482
+ Wrong: Staff and equip for the mean. Assume peaks will be handled with overtime.
483
+
484
+ Right: Model demand distributions, not just averages. Staff for the 85th-90th percentile and have surge plans for the rest.
485
+
486
+ ### 2. Ignoring Fatigue Effects
487
+
488
+ Wrong: Treat personnel as infinitely substitutable units. Schedule back-to-back extended shifts during crises.
489
+
490
+ Right: Model fatigue as a degrading multiplier on effectiveness. Enforce rest requirements even when it hurts short-term throughput.
491
+
492
+ ### 3. Hoarding Resources Locally
493
+
494
+ Wrong: Each site holds maximum resources "just in case" while neighboring sites are overwhelmed.
495
+
496
+ Right: Create shared visibility and pre-negotiated sharing protocols. Reward cooperation, not local optimization.
497
+
498
+ ### 4. Over-Reliance on Manual Coordination
499
+
500
+ Wrong: Dispatchers track everything on whiteboards and phone calls. Works until it does not.
501
+
502
+ Right: Automate routine allocations. Reserve human judgment for exceptions, overrides, and crisis decisions.
503
+
504
+ ### 5. Neglecting the Return Trip
505
+
506
+ Wrong: Optimize deployment speed. Ignore that the resource needs to get back, refuel, or restock.
507
+
508
+ Right: Model the full cycle: deploy, serve, return, restock, rest. Availability is not just "not currently in use."
509
+
510
+ ### 6. Static Allocation Rules
511
+
512
+ Wrong: Allocate resources based on fixed ratios set during initial planning and never revisited.
513
+
514
+ Right: Review allocation parameters monthly. Demand patterns shift seasonally, demographically, and operationally.
515
+
516
+ ---
517
+
518
+ ## Resources
519
+
520
+ - [Operations Research: An Introduction - Hamdy Taha](https://www.goodreads.com/book/show/136453.Operations_Research)
521
+ - [Queueing Theory for Telecommunications - Attahiru Alfa](https://www.goodreads.com/book/show/9765090-queueing-theory-for-telecommunications)
522
+ - [FEMA National Incident Management System (NIMS)](https://www.fema.gov/emergency-managers/nims)
523
+ - [WHO Emergency Response Framework](https://www.who.int/publications/i/item/9789241512299)
524
+ - [START Triage Protocol](https://chemm.hhs.gov/startadult.htm)
525
+ - [SALT Mass Casualty Triage](https://chemm.hhs.gov/salttriage.htm)
@@ -0,0 +1,60 @@
1
+ ---
2
+ description: Contract Analysis
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Contract Analysis
7
+
8
+ Guidelines for analyzing and negotiating contract terms in M&A, commercial, and dispute contexts.
9
+
10
+ ## Contract Review Process
11
+
12
+ 1. **Initial assessment**: Identify type, governing law, parties, key economic terms, termination triggers, non-standard provisions
13
+ 2. **Risk analysis**: Liability caps, indemnification scope, reps and warranties, MAC clauses, force majeure
14
+ 3. **Economic analysis**: Total cost modeling, payment timing, contingent payment weighting, hidden costs (transition, compliance)
15
+ 4. **Operational analysis**: Performance feasibility, SLA achievability, reporting burden, resource commitments
16
+ 5. **Strategic analysis**: Precedent for future deals, competitive effects, flexibility, exit options
17
+
18
+ ## Key Clause Focus Areas
19
+
20
+ **Reps and Warranties**: Financial statements, IP ownership, legal compliance, material contracts, employee matters, tax. Negotiate materiality thresholds, knowledge qualifiers, and survival periods.
21
+
22
+ **MAC Clauses**: Allocate signing-to-closing risk. Key negotiations: breadth of definition, carve-outs (industry-wide, economy-wide), disproportionate impact requirements, duration thresholds.
23
+
24
+ **Non-Competes**: Assess enforceability by jurisdiction. Balance geographic scope, duration (1-2 years typical), activity scope, and carve-outs. Too broad risks unenforceability.
25
+
26
+ ## Dispute Resolution Selection
27
+
28
+ | Mechanism | Speed | Privacy | Best For |
29
+ |-----------|-------|---------|----------|
30
+ | Arbitration | Moderate | High | International deals, confidential matters |
31
+ | Litigation | Slow | Low | Injunctive relief, precedent-setting |
32
+ | Mediation | Moderate | High | Ongoing relationships, multi-issue disputes |
33
+ | Expert determination | Fast | High | Accounting disputes, valuations |
34
+
35
+ ## Red Flags
36
+
37
+ Flag immediately during review:
38
+
39
+ - Unlimited liability or uncapped exposure
40
+ - Unilateral amendment rights
41
+ - Automatic renewal without notice
42
+ - Broad assignment rights (unfavorable counterparty risk)
43
+ - Vague performance standards
44
+ - Missing termination rights
45
+ - One-sided indemnification
46
+
47
+ ## Contract Optimization
48
+
49
+ When renegotiating existing contracts:
50
+
51
+ 1. Benchmark current terms against market
52
+ 2. Identify asymmetric value (low cost to them, high value to you)
53
+ 3. Package amendment requests — never cherry-pick single clauses
54
+ 4. Link amendments to value events (renewals, expansions)
55
+
56
+ ## Common Pitfalls
57
+
58
+ - **Reading without modeling**: Quantify economic impact of key terms across scenarios
59
+ - **Ignoring boilerplate**: Notice, governing law, and assignment clauses control how the contract operates in practice
60
+ - **Unenforceable terms**: For every term, ask: can we detect a breach, prove it, and remedy it?
@@ -0,0 +1,66 @@
1
+ ---
2
+ description: Deal Structuring
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Deal Structuring
7
+
8
+ Guidelines for structuring M&A deals, joint ventures, and complex commercial agreements.
9
+
10
+ ## Valuation Alignment Mechanisms
11
+
12
+ When buyer and seller disagree on value:
13
+
14
+ | Mechanism | When to Use | Risk Allocation |
15
+ |-----------|------------|----------------|
16
+ | Earnouts | Revenue/EBITDA uncertainty | Seller bears performance risk |
17
+ | Escrow holdbacks | Representation risk | Seller bears warranty risk |
18
+ | Milestone payments | Product/regulatory milestones | Shared execution risk |
19
+ | Working capital adjustments | Balance sheet uncertainty | Factual true-up |
20
+ | CVRs | Binary event outcomes | Seller retains upside optionality |
21
+ | Seller notes | Financing gap | Buyer credit risk to seller |
22
+
23
+ ## Earnout Design Principles
24
+
25
+ 1. **Metric clarity**: Unambiguous, auditable metrics (revenue, not "adjusted EBITDA")
26
+ 2. **Period**: 12-24 months typical; longer creates more disputes
27
+ 3. **Operating covenants**: Specify how the business must be run during measurement
28
+ 4. **Ceiling and floor**: Cap maximum payout; set minimum thresholds
29
+ 5. **Dispute resolution**: Pre-agree on accounting firm and arbitration
30
+
31
+ ## Indemnification Framework
32
+
33
+ | Element | Seller-Friendly | Buyer-Friendly | Market Norm |
34
+ |---------|----------------|---------------|-------------|
35
+ | Cap | 5-10% of deal value | 50-100% | 10-25% |
36
+ | Basket threshold | 1.5-2% | 0.25-0.5% | 0.5-1% |
37
+ | Survival (general) | 12 months | 36 months | 18-24 months |
38
+ | Escrow | 5% for 12 months | 15-20% for 24 months | 8-15% for 18 months |
39
+
40
+ ## Term Trade-Off Strategy
41
+
42
+ Never negotiate terms in isolation. Use cross-category trades:
43
+
44
+ | Concession | In Exchange For |
45
+ |-----------|----------------|
46
+ | Higher purchase price | Stronger rep and warranty package |
47
+ | Broader indemnification | Larger escrow with faster release |
48
+ | Shorter non-compete | Tighter customer non-solicitation |
49
+ | Flexible payment schedule | Stronger MAC clause protections |
50
+
51
+ Present offers as complete packages (A/B/C options) — forces trade-off evaluation over cherry-picking.
52
+
53
+ ## Tax Structure Considerations
54
+
55
+ | Structure | Seller Impact | Buyer Benefit |
56
+ |-----------|--------------|---------------|
57
+ | Asset purchase | Ordinary income on some assets | Step-up in basis |
58
+ | Stock purchase | Capital gains treatment | No step-up (unless 338(h)(10)) |
59
+ | Tax-free reorg | Deferral of gain | Carryover basis |
60
+ | Installment sale | Spread recognition | Deferred payments |
61
+
62
+ ## Common Pitfalls
63
+
64
+ - **Over-engineering earnouts**: If you cannot explain it in two sentences, simplify it
65
+ - **Ignoring integration in deal terms**: TSAs, retention, system migration are negotiation items, not afterthoughts
66
+ - **Single-issue focus**: Negotiate multiple issues simultaneously to enable value-creating trades