cue-ai 0.9.3 → 0.10.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 (717) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +322 -346
  3. package/dist/cue.js +13046 -7369
  4. package/get.sh +37 -20
  5. package/install.sh +45 -34
  6. package/package.json +3 -3
  7. package/plugins/cue/.claude-plugin/plugin.json +19 -0
  8. package/profiles/SCHEMA.md +43 -1
  9. package/profiles/_types.ts +46 -4
  10. package/profiles/aws/profile.yaml +54 -0
  11. package/profiles/backend/profile.yaml +13 -3
  12. package/profiles/claude-ads/profile.yaml +151 -0
  13. package/profiles/commerce/profile.yaml +5 -1
  14. package/profiles/core/profile.yaml +54 -27
  15. package/profiles/creativity/profile.yaml +1 -0
  16. package/profiles/full/profile.yaml +7 -1
  17. package/profiles/google-ads/profile.yaml +5 -0
  18. package/profiles/gstack/profile.yaml +3 -1
  19. package/profiles/headroom/README.md +38 -0
  20. package/profiles/headroom/profile.yaml +45 -0
  21. package/profiles/hostinger/profile.yaml +1 -0
  22. package/profiles/legal/profile.yaml +48 -0
  23. package/profiles/marketing/profile.yaml +1 -0
  24. package/profiles/medusa-vite/profile.yaml +1 -34
  25. package/profiles/ops/profile.yaml +11 -3
  26. package/profiles/postizz/profile.yaml +4 -0
  27. package/profiles/readme-writer/profile.yaml +2 -1
  28. package/profiles/research/profile.yaml +1 -0
  29. package/profiles/ros2/profile.yaml +31 -0
  30. package/profiles/schema.json +76 -4
  31. package/profiles/seo/profile.yaml +14 -0
  32. package/profiles/supercomputer/profile.yaml +1 -0
  33. package/profiles/video/profile.yaml +1 -0
  34. package/resources/mcps/configs/claude.sanitized.json +32 -0
  35. package/resources/mcps/configs/codex.sanitized.json +12 -0
  36. package/resources/skills/skills/browser/agent-browser/SKILL.md +6 -1
  37. package/resources/skills/skills/browser/lightpanda/SKILL.md +1 -0
  38. package/resources/skills/skills/browser/playwright/SKILL.md +1 -0
  39. package/resources/skills/skills/career/resume-version-manager/SKILL.md +2 -2
  40. package/resources/skills/skills/content/pdf/SKILL.md +1 -1
  41. package/resources/skills/skills/content/trend-to-thread/SKILL.md +1 -0
  42. package/resources/skills/skills/deployment/coolify/SKILL.md +8 -0
  43. package/resources/skills/skills/design/banana/SKILL.md +0 -30
  44. package/resources/skills/skills/design/design-taste-frontend/SKILL.md +1 -1
  45. package/resources/skills/skills/design/remotion-best-practices/rules/mapbox.md +1 -1
  46. package/resources/skills/skills/design/taste-skill-v1/SKILL.md +1 -1
  47. package/resources/skills/skills/design/ui-ux-pro-max/SKILL.md +2 -2
  48. package/resources/skills/skills/gstack/benchmark/SKILL.md +1 -1
  49. package/resources/skills/skills/gstack/design-html/SKILL.md +3 -2
  50. package/resources/skills/skills/gstack/gstack-upgrade/SKILL.md +2 -1
  51. package/resources/skills/skills/gstack/learn/SKILL.md +2 -1
  52. package/resources/skills/skills/gstack/retro/SKILL.md +1 -1
  53. package/resources/skills/skills/gstack/setup-gbrain/SKILL.md +4 -2
  54. package/resources/skills/skills/gstack/sync-gbrain/SKILL.md +3 -1
  55. package/resources/skills/skills/hostinger/dns/SKILL.md +1 -0
  56. package/resources/skills/skills/hostinger/domains/SKILL.md +1 -0
  57. package/resources/skills/skills/hostinger/hosting/SKILL.md +1 -0
  58. package/resources/skills/skills/hostinger/vps/SKILL.md +1 -0
  59. package/resources/skills/skills/legal/legal/SKILL.md +94 -0
  60. package/resources/skills/skills/legal/legal-agreement/SKILL.md +418 -0
  61. package/resources/skills/skills/legal/legal-compare/SKILL.md +177 -0
  62. package/resources/skills/skills/legal/legal-compliance/SKILL.md +370 -0
  63. package/resources/skills/skills/legal/legal-freelancer/SKILL.md +454 -0
  64. package/resources/skills/skills/legal/legal-missing/SKILL.md +232 -0
  65. package/resources/skills/skills/legal/legal-nda/SKILL.md +283 -0
  66. package/resources/skills/skills/legal/legal-negotiate/SKILL.md +248 -0
  67. package/resources/skills/skills/legal/legal-plain/SKILL.md +169 -0
  68. package/resources/skills/skills/legal/legal-privacy/SKILL.md +327 -0
  69. package/resources/skills/skills/legal/legal-report-pdf/SKILL.md +400 -0
  70. package/resources/skills/skills/legal/legal-report-pdf/scripts/generate_legal_pdf.py +446 -0
  71. package/resources/skills/skills/legal/legal-report-pdf/templates/contract-review-template.md +190 -0
  72. package/resources/skills/skills/legal/legal-review/SKILL.md +202 -0
  73. package/resources/skills/skills/legal/legal-risks/SKILL.md +171 -0
  74. package/resources/skills/skills/legal/legal-terms/SKILL.md +263 -0
  75. package/resources/skills/skills/marketing/google-ads-audit/SKILL.md +1 -1
  76. package/resources/skills/skills/marketing/icp-research-assistant/SKILL.md +1 -1
  77. package/resources/skills/skills/marketing/programmatic-seo-builder/SKILL.md +1 -1
  78. package/resources/skills/skills/media/design-guide/SKILL.md +2 -2
  79. package/resources/skills/skills/media/logo-creator/SKILL.md +1 -1
  80. package/resources/skills/skills/media/multi-angle-shots/SKILL.md +2 -2
  81. package/resources/skills/skills/media/nano-banana/SKILL.md +1 -1
  82. package/resources/skills/skills/medusa/building-with-medusa/SKILL.md +1 -1
  83. package/resources/skills/skills/medusa/higgsfield-to-medusa-products/SKILL.md +1 -0
  84. package/resources/skills/skills/medusa/marva-blog-author/SKILL.md +1 -0
  85. package/resources/skills/skills/medusa/woocommerce-to-medusa-import/SKILL.md +1 -0
  86. package/resources/skills/skills/meta/autoresearch/SKILL.md +5 -0
  87. package/resources/skills/skills/meta/prompt-master/SKILL.md +5 -5
  88. package/resources/skills/skills/meta/smart-loader/scripts/smart-lookup.sh +43 -0
  89. package/resources/skills/skills/orchestration/oh-my-agent/SKILL.md +1 -0
  90. package/resources/skills/skills/polymarket/polymarket-predictions-audit/SKILL.md +1 -0
  91. package/resources/skills/skills/polymarket/polymarket-research/SKILL.md +1 -0
  92. package/resources/skills/skills/research/keyword-research/SKILL.md +1 -1
  93. package/resources/skills/skills/research/openai-docs/SKILL.md +1 -0
  94. package/resources/skills/skills/research/trendradar/SKILL.md +2 -1
  95. package/resources/skills/skills/review/code-review/SKILL.md +1 -1
  96. package/resources/skills/skills/review/security-review/SKILL.md +1 -1
  97. package/resources/skills/skills/robotics/ros-skill/LICENSE +201 -0
  98. package/resources/skills/skills/robotics/ros-skill/README.md +113 -0
  99. package/resources/skills/skills/robotics/ros-skill/SKILL.md +312 -0
  100. package/resources/skills/skills/robotics/ros-skill/examples/openclaw.md +135 -0
  101. package/resources/skills/skills/robotics/ros-skill/examples/sensor-monitor.md +60 -0
  102. package/resources/skills/skills/robotics/ros-skill/examples/turtlesim.md +82 -0
  103. package/resources/skills/skills/robotics/ros-skill/references/COMMANDS.md +550 -0
  104. package/resources/skills/skills/robotics/ros-skill/scripts/ros_cli.py +861 -0
  105. package/resources/skills/skills/rust/async-tokio/SKILL.md +5 -0
  106. package/resources/skills/skills/rust/axum-api/SKILL.md +5 -0
  107. package/resources/skills/skills/rust/bacon-watch/SKILL.md +5 -0
  108. package/resources/skills/skills/rust/bevy/SKILL.md +5 -0
  109. package/resources/skills/skills/rust/bindgen/SKILL.md +5 -0
  110. package/resources/skills/skills/rust/cargo-audit/SKILL.md +5 -0
  111. package/resources/skills/skills/rust/cargo-basics/SKILL.md +5 -0
  112. package/resources/skills/skills/rust/cargo-chef/SKILL.md +4 -0
  113. package/resources/skills/skills/rust/cargo-edit/SKILL.md +5 -0
  114. package/resources/skills/skills/rust/cargo-expand/SKILL.md +5 -0
  115. package/resources/skills/skills/rust/cargo-flamegraph/SKILL.md +5 -0
  116. package/resources/skills/skills/rust/cargo-fuzz/SKILL.md +4 -0
  117. package/resources/skills/skills/rust/cargo-hack/SKILL.md +4 -0
  118. package/resources/skills/skills/rust/cargo-msrv/SKILL.md +4 -0
  119. package/resources/skills/skills/rust/cargo-mutants/SKILL.md +5 -0
  120. package/resources/skills/skills/rust/cargo-nextest/SKILL.md +5 -0
  121. package/resources/skills/skills/rust/cargo-readme/SKILL.md +4 -0
  122. package/resources/skills/skills/rust/cbindgen/SKILL.md +4 -0
  123. package/resources/skills/skills/rust/chisel-tool/SKILL.md +4 -0
  124. package/resources/skills/skills/rust/clap-cli/SKILL.md +5 -0
  125. package/resources/skills/skills/rust/clippy-and-fmt/SKILL.md +5 -0
  126. package/resources/skills/skills/rust/cross-compile/SKILL.md +5 -0
  127. package/resources/skills/skills/rust/embedded/SKILL.md +5 -0
  128. package/resources/skills/skills/rust/error-handling/SKILL.md +4 -0
  129. package/resources/skills/skills/rust/just-runner/SKILL.md +5 -0
  130. package/resources/skills/skills/rust/mdbook/SKILL.md +4 -0
  131. package/resources/skills/skills/rust/napi-rs/SKILL.md +4 -0
  132. package/resources/skills/skills/rust/no-std/SKILL.md +4 -0
  133. package/resources/skills/skills/rust/property-testing/SKILL.md +5 -0
  134. package/resources/skills/skills/rust/pyo3/SKILL.md +5 -0
  135. package/resources/skills/skills/rust/ratatui-tui/SKILL.md +4 -0
  136. package/resources/skills/skills/rust/release-plz/SKILL.md +4 -0
  137. package/resources/skills/skills/rust/reqwest/SKILL.md +5 -0
  138. package/resources/skills/skills/rust/sccache/SKILL.md +4 -0
  139. package/resources/skills/skills/rust/serde/SKILL.md +5 -0
  140. package/resources/skills/skills/rust/snapshot-testing/SKILL.md +4 -0
  141. package/resources/skills/skills/rust/sqlx-cli/SKILL.md +5 -0
  142. package/resources/skills/skills/rust/tracing/SKILL.md +5 -0
  143. package/resources/skills/skills/rust/typos-spellcheck/SKILL.md +4 -0
  144. package/resources/skills/skills/rust/uniffi/SKILL.md +4 -0
  145. package/resources/skills/skills/rust/wasm-rust/SKILL.md +5 -0
  146. package/resources/skills/skills/test/scenario-explorer/SKILL.md +5 -0
  147. package/resources/skills/skills/tools/headroom/SKILL.md +105 -0
  148. package/resources/skills/skills/vercel/UPSTREAM.md +12 -0
  149. package/resources/skills/skills/vercel/composition-patterns/AGENTS.md +946 -0
  150. package/resources/skills/skills/vercel/composition-patterns/README.md +60 -0
  151. package/resources/skills/skills/vercel/composition-patterns/SKILL.md +89 -0
  152. package/resources/skills/skills/vercel/composition-patterns/metadata.json +11 -0
  153. package/resources/skills/skills/vercel/composition-patterns/rules/_sections.md +29 -0
  154. package/resources/skills/skills/vercel/composition-patterns/rules/_template.md +24 -0
  155. package/resources/skills/skills/vercel/composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
  156. package/resources/skills/skills/vercel/composition-patterns/rules/architecture-compound-components.md +112 -0
  157. package/resources/skills/skills/vercel/composition-patterns/rules/patterns-children-over-render-props.md +87 -0
  158. package/resources/skills/skills/vercel/composition-patterns/rules/patterns-explicit-variants.md +100 -0
  159. package/resources/skills/skills/vercel/composition-patterns/rules/react19-no-forwardref.md +42 -0
  160. package/resources/skills/skills/vercel/composition-patterns/rules/state-context-interface.md +191 -0
  161. package/resources/skills/skills/vercel/composition-patterns/rules/state-decouple-implementation.md +113 -0
  162. package/resources/skills/skills/vercel/composition-patterns/rules/state-lift-state.md +125 -0
  163. package/resources/skills/skills/vercel/deploy-to-vercel/SKILL.md +296 -0
  164. package/resources/skills/skills/vercel/deploy-to-vercel/resources/deploy-codex.sh +301 -0
  165. package/resources/skills/skills/vercel/deploy-to-vercel/resources/deploy.sh +301 -0
  166. package/resources/skills/skills/vercel/react-best-practices/AGENTS.md +3810 -0
  167. package/resources/skills/skills/vercel/react-best-practices/README.md +123 -0
  168. package/resources/skills/skills/vercel/react-best-practices/SKILL.md +149 -0
  169. package/resources/skills/skills/vercel/react-best-practices/metadata.json +15 -0
  170. package/resources/skills/skills/vercel/react-best-practices/rules/_sections.md +46 -0
  171. package/resources/skills/skills/vercel/react-best-practices/rules/_template.md +28 -0
  172. package/resources/skills/skills/vercel/react-best-practices/rules/advanced-effect-event-deps.md +56 -0
  173. package/resources/skills/skills/vercel/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  174. package/resources/skills/skills/vercel/react-best-practices/rules/advanced-init-once.md +42 -0
  175. package/resources/skills/skills/vercel/react-best-practices/rules/advanced-use-latest.md +39 -0
  176. package/resources/skills/skills/vercel/react-best-practices/rules/async-api-routes.md +38 -0
  177. package/resources/skills/skills/vercel/react-best-practices/rules/async-cheap-condition-before-await.md +37 -0
  178. package/resources/skills/skills/vercel/react-best-practices/rules/async-defer-await.md +82 -0
  179. package/resources/skills/skills/vercel/react-best-practices/rules/async-dependencies.md +51 -0
  180. package/resources/skills/skills/vercel/react-best-practices/rules/async-parallel.md +28 -0
  181. package/resources/skills/skills/vercel/react-best-practices/rules/async-suspense-boundaries.md +99 -0
  182. package/resources/skills/skills/vercel/react-best-practices/rules/bundle-analyzable-paths.md +63 -0
  183. package/resources/skills/skills/vercel/react-best-practices/rules/bundle-barrel-imports.md +60 -0
  184. package/resources/skills/skills/vercel/react-best-practices/rules/bundle-conditional.md +31 -0
  185. package/resources/skills/skills/vercel/react-best-practices/rules/bundle-defer-third-party.md +49 -0
  186. package/resources/skills/skills/vercel/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  187. package/resources/skills/skills/vercel/react-best-practices/rules/bundle-preload.md +50 -0
  188. package/resources/skills/skills/vercel/react-best-practices/rules/client-event-listeners.md +74 -0
  189. package/resources/skills/skills/vercel/react-best-practices/rules/client-localstorage-schema.md +71 -0
  190. package/resources/skills/skills/vercel/react-best-practices/rules/client-passive-event-listeners.md +48 -0
  191. package/resources/skills/skills/vercel/react-best-practices/rules/client-swr-dedup.md +56 -0
  192. package/resources/skills/skills/vercel/react-best-practices/rules/js-batch-dom-css.md +107 -0
  193. package/resources/skills/skills/vercel/react-best-practices/rules/js-cache-function-results.md +80 -0
  194. package/resources/skills/skills/vercel/react-best-practices/rules/js-cache-property-access.md +28 -0
  195. package/resources/skills/skills/vercel/react-best-practices/rules/js-cache-storage.md +70 -0
  196. package/resources/skills/skills/vercel/react-best-practices/rules/js-combine-iterations.md +32 -0
  197. package/resources/skills/skills/vercel/react-best-practices/rules/js-early-exit.md +50 -0
  198. package/resources/skills/skills/vercel/react-best-practices/rules/js-flatmap-filter.md +60 -0
  199. package/resources/skills/skills/vercel/react-best-practices/rules/js-hoist-regexp.md +45 -0
  200. package/resources/skills/skills/vercel/react-best-practices/rules/js-index-maps.md +37 -0
  201. package/resources/skills/skills/vercel/react-best-practices/rules/js-length-check-first.md +49 -0
  202. package/resources/skills/skills/vercel/react-best-practices/rules/js-min-max-loop.md +82 -0
  203. package/resources/skills/skills/vercel/react-best-practices/rules/js-request-idle-callback.md +105 -0
  204. package/resources/skills/skills/vercel/react-best-practices/rules/js-set-map-lookups.md +24 -0
  205. package/resources/skills/skills/vercel/react-best-practices/rules/js-tosorted-immutable.md +57 -0
  206. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-activity.md +26 -0
  207. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  208. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-conditional-render.md +40 -0
  209. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-content-visibility.md +38 -0
  210. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  211. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  212. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  213. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-resource-hints.md +85 -0
  214. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-script-defer-async.md +68 -0
  215. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-svg-precision.md +28 -0
  216. package/resources/skills/skills/vercel/react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  217. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-defer-reads.md +39 -0
  218. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-dependencies.md +45 -0
  219. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  220. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-derived-state.md +29 -0
  221. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-functional-setstate.md +74 -0
  222. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  223. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  224. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-memo.md +44 -0
  225. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  226. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-no-inline-components.md +82 -0
  227. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  228. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-split-combined-hooks.md +64 -0
  229. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-transitions.md +40 -0
  230. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-use-deferred-value.md +59 -0
  231. package/resources/skills/skills/vercel/react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  232. package/resources/skills/skills/vercel/react-best-practices/rules/server-after-nonblocking.md +73 -0
  233. package/resources/skills/skills/vercel/react-best-practices/rules/server-auth-actions.md +96 -0
  234. package/resources/skills/skills/vercel/react-best-practices/rules/server-cache-lru.md +41 -0
  235. package/resources/skills/skills/vercel/react-best-practices/rules/server-cache-react.md +76 -0
  236. package/resources/skills/skills/vercel/react-best-practices/rules/server-dedup-props.md +65 -0
  237. package/resources/skills/skills/vercel/react-best-practices/rules/server-hoist-static-io.md +149 -0
  238. package/resources/skills/skills/vercel/react-best-practices/rules/server-no-shared-module-state.md +50 -0
  239. package/resources/skills/skills/vercel/react-best-practices/rules/server-parallel-fetching.md +83 -0
  240. package/resources/skills/skills/vercel/react-best-practices/rules/server-parallel-nested-fetching.md +34 -0
  241. package/resources/skills/skills/vercel/react-best-practices/rules/server-serialization.md +38 -0
  242. package/resources/skills/skills/vercel/react-native-skills/AGENTS.md +2897 -0
  243. package/resources/skills/skills/vercel/react-native-skills/README.md +165 -0
  244. package/resources/skills/skills/vercel/react-native-skills/SKILL.md +121 -0
  245. package/resources/skills/skills/vercel/react-native-skills/metadata.json +16 -0
  246. package/resources/skills/skills/vercel/react-native-skills/rules/_sections.md +86 -0
  247. package/resources/skills/skills/vercel/react-native-skills/rules/_template.md +28 -0
  248. package/resources/skills/skills/vercel/react-native-skills/rules/animation-derived-value.md +53 -0
  249. package/resources/skills/skills/vercel/react-native-skills/rules/animation-gesture-detector-press.md +95 -0
  250. package/resources/skills/skills/vercel/react-native-skills/rules/animation-gpu-properties.md +65 -0
  251. package/resources/skills/skills/vercel/react-native-skills/rules/design-system-compound-components.md +66 -0
  252. package/resources/skills/skills/vercel/react-native-skills/rules/fonts-config-plugin.md +71 -0
  253. package/resources/skills/skills/vercel/react-native-skills/rules/imports-design-system-folder.md +68 -0
  254. package/resources/skills/skills/vercel/react-native-skills/rules/js-hoist-intl.md +61 -0
  255. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-callbacks.md +44 -0
  256. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-function-references.md +132 -0
  257. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-images.md +53 -0
  258. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-inline-objects.md +97 -0
  259. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-item-expensive.md +94 -0
  260. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-item-memo.md +82 -0
  261. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-item-types.md +104 -0
  262. package/resources/skills/skills/vercel/react-native-skills/rules/list-performance-virtualize.md +67 -0
  263. package/resources/skills/skills/vercel/react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
  264. package/resources/skills/skills/vercel/react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
  265. package/resources/skills/skills/vercel/react-native-skills/rules/navigation-native-navigators.md +188 -0
  266. package/resources/skills/skills/vercel/react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
  267. package/resources/skills/skills/vercel/react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
  268. package/resources/skills/skills/vercel/react-native-skills/rules/react-state-dispatcher.md +91 -0
  269. package/resources/skills/skills/vercel/react-native-skills/rules/react-state-fallback.md +56 -0
  270. package/resources/skills/skills/vercel/react-native-skills/rules/react-state-minimize.md +65 -0
  271. package/resources/skills/skills/vercel/react-native-skills/rules/rendering-no-falsy-and.md +74 -0
  272. package/resources/skills/skills/vercel/react-native-skills/rules/rendering-text-in-text-component.md +36 -0
  273. package/resources/skills/skills/vercel/react-native-skills/rules/scroll-position-no-state.md +82 -0
  274. package/resources/skills/skills/vercel/react-native-skills/rules/state-ground-truth.md +80 -0
  275. package/resources/skills/skills/vercel/react-native-skills/rules/ui-expo-image.md +66 -0
  276. package/resources/skills/skills/vercel/react-native-skills/rules/ui-image-gallery.md +104 -0
  277. package/resources/skills/skills/vercel/react-native-skills/rules/ui-measure-views.md +78 -0
  278. package/resources/skills/skills/vercel/react-native-skills/rules/ui-menus.md +174 -0
  279. package/resources/skills/skills/vercel/react-native-skills/rules/ui-native-modals.md +77 -0
  280. package/resources/skills/skills/vercel/react-native-skills/rules/ui-pressable.md +61 -0
  281. package/resources/skills/skills/vercel/react-native-skills/rules/ui-safe-area-scroll.md +65 -0
  282. package/resources/skills/skills/vercel/react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
  283. package/resources/skills/skills/vercel/react-native-skills/rules/ui-styling.md +87 -0
  284. package/resources/skills/skills/vercel/react-view-transitions/AGENTS.md +955 -0
  285. package/resources/skills/skills/vercel/react-view-transitions/README.md +42 -0
  286. package/resources/skills/skills/vercel/react-view-transitions/SKILL.md +320 -0
  287. package/resources/skills/skills/vercel/react-view-transitions/metadata.json +12 -0
  288. package/resources/skills/skills/vercel/react-view-transitions/references/css-recipes.md +242 -0
  289. package/resources/skills/skills/vercel/react-view-transitions/references/implementation.md +182 -0
  290. package/resources/skills/skills/vercel/react-view-transitions/references/nextjs.md +176 -0
  291. package/resources/skills/skills/vercel/react-view-transitions/references/patterns.md +262 -0
  292. package/resources/skills/skills/vercel/vercel-cli-with-tokens/SKILL.md +353 -0
  293. package/resources/skills/skills/vercel/vercel-optimize/AGENTS.md +48 -0
  294. package/resources/skills/skills/vercel/vercel-optimize/CONTRIBUTING.md +41 -0
  295. package/resources/skills/skills/vercel/vercel-optimize/README.md +91 -0
  296. package/resources/skills/skills/vercel/vercel-optimize/SKILL.md +322 -0
  297. package/resources/skills/skills/vercel/vercel-optimize/lib/auth-route.mjs +23 -0
  298. package/resources/skills/skills/vercel/vercel-optimize/lib/budget-summary.mjs +182 -0
  299. package/resources/skills/skills/vercel/vercel-optimize/lib/citations.mjs +139 -0
  300. package/resources/skills/skills/vercel/vercel-optimize/lib/cost-coverage.mjs +143 -0
  301. package/resources/skills/skills/vercel/vercel-optimize/lib/dedup-recs.mjs +325 -0
  302. package/resources/skills/skills/vercel/vercel-optimize/lib/deep-dive.mjs +350 -0
  303. package/resources/skills/skills/vercel/vercel-optimize/lib/display-labels.mjs +185 -0
  304. package/resources/skills/skills/vercel/vercel-optimize/lib/extract-claims.mjs +550 -0
  305. package/resources/skills/skills/vercel/vercel-optimize/lib/framework-support.mjs +67 -0
  306. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/build-minutes-fanout.mjs +69 -0
  307. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/cold-start.mjs +66 -0
  308. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/contract.mjs +79 -0
  309. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/cwv-poor.mjs +87 -0
  310. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/external-api-slow.mjs +55 -0
  311. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/hard-gates.mjs +73 -0
  312. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/index.mjs +45 -0
  313. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/isr-overrevalidation.mjs +62 -0
  314. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/middleware-heavy.mjs +51 -0
  315. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/observability-events-attribution.mjs +56 -0
  316. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/platform-bot-protection.mjs +115 -0
  317. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/platform-fluid-compute.mjs +83 -0
  318. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/region-misconfig.mjs +64 -0
  319. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/route-errors.mjs +80 -0
  320. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/scanner-driven.mjs +122 -0
  321. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/select-candidates.mjs +134 -0
  322. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/slow-route.mjs +88 -0
  323. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/types.d.ts +38 -0
  324. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/uncached-route.mjs +93 -0
  325. package/resources/skills/skills/vercel/vercel-optimize/lib/gates/usage-spike-triage.mjs +121 -0
  326. package/resources/skills/skills/vercel/vercel-optimize/lib/grade-recommendation.mjs +155 -0
  327. package/resources/skills/skills/vercel/vercel-optimize/lib/impact-label.mjs +126 -0
  328. package/resources/skills/skills/vercel/vercel-optimize/lib/impact-magnitude.mjs +60 -0
  329. package/resources/skills/skills/vercel/vercel-optimize/lib/investigation-brief.mjs +610 -0
  330. package/resources/skills/skills/vercel/vercel-optimize/lib/observation-safety.mjs +174 -0
  331. package/resources/skills/skills/vercel/vercel-optimize/lib/project-facts.mjs +99 -0
  332. package/resources/skills/skills/vercel/vercel-optimize/lib/queries.mjs +315 -0
  333. package/resources/skills/skills/vercel/vercel-optimize/lib/reconcile-candidates.mjs +372 -0
  334. package/resources/skills/skills/vercel/vercel-optimize/lib/render-report.mjs +955 -0
  335. package/resources/skills/skills/vercel/vercel-optimize/lib/repo-root.mjs +86 -0
  336. package/resources/skills/skills/vercel/vercel-optimize/lib/route-normalize.mjs +220 -0
  337. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/bot-protection-certainty.mjs +38 -0
  338. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/cache-tag-invalidation-certainty.mjs +30 -0
  339. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/count-correct.mjs +52 -0
  340. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/function-duration-invocations.mjs +38 -0
  341. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/index.mjs +79 -0
  342. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/middleware-conflict.mjs +36 -0
  343. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/missing-citation.mjs +16 -0
  344. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/pre-release.mjs +74 -0
  345. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/rate-limit.mjs +67 -0
  346. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/rendering-mode-mislabel.mjs +38 -0
  347. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/undeclared-dep.mjs +78 -0
  348. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/vercel-directive-strip.mjs +37 -0
  349. package/resources/skills/skills/vercel/vercel-optimize/lib/sanitizers/window-units.mjs +32 -0
  350. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/cache-components-suspense-dedupe.mjs +109 -0
  351. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/edge-heavy-import.mjs +94 -0
  352. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/force-dynamic.mjs +42 -0
  353. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/headers-in-page.mjs +44 -0
  354. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/index.mjs +35 -0
  355. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/large-static-asset.mjs +92 -0
  356. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/max-age-without-s-maxage.mjs +42 -0
  357. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/middleware-broad-matcher.mjs +55 -0
  358. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/missing-cache-headers.mjs +90 -0
  359. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/prisma-include-tree.mjs +42 -0
  360. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/region-pin-in-config.mjs +88 -0
  361. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/source-maps-production.mjs +36 -0
  362. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/sveltekit-prerender-missing.mjs +43 -0
  363. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/turbo-force-bypass.mjs +129 -0
  364. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/unoptimized-image.mjs +113 -0
  365. package/resources/skills/skills/vercel/vercel-optimize/lib/scanners/use-cache-date-stamp.mjs +106 -0
  366. package/resources/skills/skills/vercel/vercel-optimize/lib/support-topics.mjs +355 -0
  367. package/resources/skills/skills/vercel/vercel-optimize/lib/throttle.mjs +273 -0
  368. package/resources/skills/skills/vercel/vercel-optimize/lib/util.mjs +17 -0
  369. package/resources/skills/skills/vercel/vercel-optimize/lib/vercel.mjs +864 -0
  370. package/resources/skills/skills/vercel/vercel-optimize/lib/verify-claim.mjs +1296 -0
  371. package/resources/skills/skills/vercel/vercel-optimize/lib/workspace-resolver.mjs +521 -0
  372. package/resources/skills/skills/vercel/vercel-optimize/metadata.json +14 -0
  373. package/resources/skills/skills/vercel/vercel-optimize/references/candidates.md +176 -0
  374. package/resources/skills/skills/vercel/vercel-optimize/references/data-collection.md +218 -0
  375. package/resources/skills/skills/vercel/vercel-optimize/references/docs-library.json +683 -0
  376. package/resources/skills/skills/vercel/vercel-optimize/references/doctrine.md +105 -0
  377. package/resources/skills/skills/vercel/vercel-optimize/references/observability-plus.md +108 -0
  378. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/README.md +53 -0
  379. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/ai-application.md +32 -0
  380. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/api-service.md +30 -0
  381. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/content-site.md +30 -0
  382. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/ecommerce.md +30 -0
  383. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/marketing.md +30 -0
  384. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/saas.md +31 -0
  385. package/resources/skills/skills/vercel/vercel-optimize/references/playbooks/sveltekit.md +75 -0
  386. package/resources/skills/skills/vercel/vercel-optimize/references/recommendations.md +203 -0
  387. package/resources/skills/skills/vercel/vercel-optimize/references/scanner-patterns.md +251 -0
  388. package/resources/skills/skills/vercel/vercel-optimize/references/scoring.md +205 -0
  389. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/README.md +46 -0
  390. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/astro-edge-middleware-scope.md +22 -0
  391. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/astro-output-mode-and-isr.md +22 -0
  392. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/auth-preserving-parallelization.md +22 -0
  393. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/bot-protection-product-guardrails.md +22 -0
  394. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/build-minutes-monorepo-fanout.md +23 -0
  395. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/cache-components-static-shell-boundaries.md +22 -0
  396. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/cache-components-suspense-dedupe-pitfall.md +23 -0
  397. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/cdn-cache-auth-safety.md +22 -0
  398. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/cold-start-initialization-bundle.md +22 -0
  399. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/core-web-vitals-client-bottlenecks.md +22 -0
  400. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/database-egress-pooling-region.md +22 -0
  401. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/dynamic-rendering-traps.md +22 -0
  402. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/external-api-critical-path-platform.md +22 -0
  403. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/external-api-critical-path.md +22 -0
  404. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/fast-data-transfer-payloads.md +22 -0
  405. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/fluid-compute-caveats.md +22 -0
  406. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/function-duration-io-and-after.md +22 -0
  407. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/function-invocation-reduction.md +22 -0
  408. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/function-region-misconfiguration-ttfb.md +23 -0
  409. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/image-optimization-cost-control.md +22 -0
  410. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/isr-revalidation-static-generation.md +22 -0
  411. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/middleware-proxy-edge-cost.md +22 -0
  412. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/next-fetch-revalidate-floor.md +22 -0
  413. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/next-font-cls-self-hosting.md +23 -0
  414. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/next-heavy-ui-lazy-load-boundaries.md +23 -0
  415. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/next-image-lcp-preload-sizes.md +23 -0
  416. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/next-route-handler-get-cache-defaults.md +22 -0
  417. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/next-script-third-party-strategy.md +23 -0
  418. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/nextjs-version-cache-semantics.md +22 -0
  419. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/not-found-catchall-request-waste.md +23 -0
  420. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/nuxt-route-rules-cache-isr.md +22 -0
  421. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/observability-events-cost-attribution.md +22 -0
  422. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/post-response-work-waituntil.md +22 -0
  423. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/route-error-durable-offload.md +22 -0
  424. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/route-error-runtime-limits.md +22 -0
  425. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/runtime-cache-reusable-data.md +22 -0
  426. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/sveltekit-isr-prerender-safety.md +22 -0
  427. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/sveltekit-split-cold-start-tradeoff.md +22 -0
  428. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/usage-spike-triage.md +22 -0
  429. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/use-cache-date-stamp-isr-write-amplifier.md +23 -0
  430. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/use-cache-remote-shared-origin-data.md +22 -0
  431. package/resources/skills/skills/vercel/vercel-optimize/references/support-topics/workflow-resumable-stream-routes.md +23 -0
  432. package/resources/skills/skills/vercel/vercel-optimize/references/verification.md +102 -0
  433. package/resources/skills/skills/vercel/vercel-optimize/references/voice.md +76 -0
  434. package/resources/skills/skills/vercel/vercel-optimize/scripts/budget-summary.mjs +56 -0
  435. package/resources/skills/skills/vercel/vercel-optimize/scripts/build-docs.mjs +74 -0
  436. package/resources/skills/skills/vercel/vercel-optimize/scripts/check-citations.mjs +81 -0
  437. package/resources/skills/skills/vercel/vercel-optimize/scripts/check-docs-fresh.mjs +93 -0
  438. package/resources/skills/skills/vercel/vercel-optimize/scripts/collect-signals.mjs +576 -0
  439. package/resources/skills/skills/vercel/vercel-optimize/scripts/collect-sub-agent-outputs.mjs +296 -0
  440. package/resources/skills/skills/vercel/vercel-optimize/scripts/deep-dive.mjs +319 -0
  441. package/resources/skills/skills/vercel/vercel-optimize/scripts/gate-investigations.mjs +166 -0
  442. package/resources/skills/skills/vercel/vercel-optimize/scripts/merge-signals.mjs +192 -0
  443. package/resources/skills/skills/vercel/vercel-optimize/scripts/prepare-investigation-brief.mjs +231 -0
  444. package/resources/skills/skills/vercel/vercel-optimize/scripts/reconcile-candidates.mjs +62 -0
  445. package/resources/skills/skills/vercel/vercel-optimize/scripts/render-report.mjs +437 -0
  446. package/resources/skills/skills/vercel/vercel-optimize/scripts/scan-codebase.mjs +313 -0
  447. package/resources/skills/skills/vercel/vercel-optimize/scripts/verify-and-regen.mjs +346 -0
  448. package/resources/skills/skills/vercel/vercel-optimize/scripts/verify-finding.mjs +19 -0
  449. package/resources/skills/skills/vercel/web-design-guidelines/SKILL.md +39 -0
  450. package/resources/skills/skills/vercel/writing-guidelines/SKILL.md +39 -0
  451. package/src/commands/_index.test.ts +79 -0
  452. package/src/commands/_index.ts +36 -14
  453. package/src/commands/ai.test.ts +113 -0
  454. package/src/commands/ai.ts +4 -5
  455. package/src/commands/ask.test.ts +82 -0
  456. package/src/commands/ask.ts +3 -4
  457. package/src/commands/audit.test.ts +61 -0
  458. package/src/commands/benchmark.test.ts +88 -0
  459. package/src/commands/benchmark.ts +3 -5
  460. package/src/commands/builtin.test.ts +199 -0
  461. package/src/commands/builtin.ts +3 -4
  462. package/src/commands/clean.test.ts +181 -0
  463. package/src/commands/clean.ts +3 -4
  464. package/src/commands/cli.test.ts +11 -3
  465. package/src/commands/cli.ts +3 -4
  466. package/src/commands/cloud.ts +3 -4
  467. package/src/commands/colony-dispatch.test.ts +143 -0
  468. package/src/commands/completions.test.ts +195 -0
  469. package/src/commands/cost.ts +85 -34
  470. package/src/commands/create-profile.test.ts +256 -0
  471. package/src/commands/create-profile.ts +3 -4
  472. package/src/commands/debug.ts +4 -5
  473. package/src/commands/diff.test.ts +64 -0
  474. package/src/commands/diff.ts +3 -4
  475. package/src/commands/discover.ts +10 -14
  476. package/src/commands/docs-facts.test.ts +103 -0
  477. package/src/commands/doctor.test.ts +14 -2
  478. package/src/commands/doctor.ts +27 -22
  479. package/src/commands/eval-behavior.ts +3 -4
  480. package/src/commands/eval.ts +6 -7
  481. package/src/commands/evolve.test.ts +56 -0
  482. package/src/commands/evolve.ts +15 -5
  483. package/src/commands/export-docker.test.ts +190 -0
  484. package/src/commands/export-docker.ts +3 -4
  485. package/src/commands/features-batch1.test.ts +1 -1
  486. package/src/commands/feedback.test.ts +63 -0
  487. package/src/commands/gc.test.ts +173 -0
  488. package/src/commands/gc.ts +65 -0
  489. package/src/commands/handoff.test.ts +284 -0
  490. package/src/commands/icon.ts +3 -4
  491. package/src/commands/import-profile.test.ts +199 -0
  492. package/src/commands/import-profile.ts +4 -5
  493. package/src/commands/init-cost-proof.test.ts +29 -0
  494. package/src/commands/init.test.ts +76 -0
  495. package/src/commands/init.ts +42 -7
  496. package/src/commands/install-sh.e2e.test.ts +17 -5
  497. package/src/commands/install.ts +3 -3
  498. package/src/commands/launch-handoff.e2e.test.ts +7 -1
  499. package/src/commands/launch.account-runtime.test.ts +117 -0
  500. package/src/commands/launch.e2e.test.ts +7 -1
  501. package/src/commands/launch.parse.test.ts +101 -0
  502. package/src/commands/launch.test.ts +94 -108
  503. package/src/commands/launch.ts +714 -118
  504. package/src/commands/lint-skill.test.ts +173 -0
  505. package/src/commands/loadout.test.ts +225 -0
  506. package/src/commands/loadout.ts +132 -0
  507. package/src/commands/lock.test.ts +157 -0
  508. package/src/commands/lock.ts +4 -5
  509. package/src/commands/marketplace-manifest.test.ts +39 -0
  510. package/src/commands/marketplace.test.ts +195 -0
  511. package/src/commands/marketplace.ts +176 -5
  512. package/src/commands/materialize.test.ts +59 -0
  513. package/src/commands/materialize.ts +4 -5
  514. package/src/commands/mcp.test.ts +109 -0
  515. package/src/commands/mcps.test.ts +49 -0
  516. package/src/commands/mcps.ts +5 -6
  517. package/src/commands/mem.test.ts +94 -0
  518. package/src/commands/merge.test.ts +57 -0
  519. package/src/commands/migrate.test.ts +45 -0
  520. package/src/commands/migrate.ts +3 -4
  521. package/src/commands/new.test.ts +173 -0
  522. package/src/commands/optimizer.test.ts +239 -0
  523. package/src/commands/optimizer.ts +4 -5
  524. package/src/commands/packs.test.ts +97 -0
  525. package/src/commands/packs.ts +3 -4
  526. package/src/commands/playground.test.ts +61 -0
  527. package/src/commands/playground.ts +3 -4
  528. package/src/commands/positioning.test.ts +46 -0
  529. package/src/commands/profile-draft-skill.ts +3 -4
  530. package/src/commands/profile-suggest.test.ts +67 -0
  531. package/src/commands/profile-suggest.ts +130 -5
  532. package/src/commands/profile.test.ts +59 -0
  533. package/src/commands/replay-whatif.test.ts +154 -0
  534. package/src/commands/replay.test.ts +68 -0
  535. package/src/commands/resolve.test.ts +66 -0
  536. package/src/commands/resolve.ts +415 -0
  537. package/src/commands/ruler.test.ts +94 -0
  538. package/src/commands/ruler.ts +213 -0
  539. package/src/commands/scan.test.ts +83 -0
  540. package/src/commands/score.test.ts +125 -0
  541. package/src/commands/score.ts +0 -3
  542. package/src/commands/security-audit.test.ts +133 -0
  543. package/src/commands/security-audit.ts +4 -5
  544. package/src/commands/security.ts +3 -4
  545. package/src/commands/setup.test.ts +32 -0
  546. package/src/commands/share.test.ts +102 -0
  547. package/src/commands/shell.test.ts +251 -23
  548. package/src/commands/shell.ts +269 -91
  549. package/src/commands/skill-report.test.ts +110 -0
  550. package/src/commands/skills-lint.test.ts +74 -0
  551. package/src/commands/skills-lint.ts +3 -4
  552. package/src/commands/skills-new.test.ts +96 -0
  553. package/src/commands/skills-new.ts +3 -4
  554. package/src/commands/skills-pin.test.ts +169 -0
  555. package/src/commands/skills-pin.ts +4 -5
  556. package/src/commands/skills-test.test.ts +215 -0
  557. package/src/commands/skills.test.ts +109 -0
  558. package/src/commands/skills.ts +10 -6
  559. package/src/commands/snapshot.ts +3 -4
  560. package/src/commands/sources.ts +3 -4
  561. package/src/commands/stats.test.ts +174 -0
  562. package/src/commands/status.test.ts +147 -0
  563. package/src/commands/status.ts +13 -1
  564. package/src/commands/suggest-pairs.test.ts +166 -0
  565. package/src/commands/suggest.test.ts +85 -0
  566. package/src/commands/suggest.ts +3 -5
  567. package/src/commands/summon.test.ts +8 -1
  568. package/src/commands/sync.test.ts +26 -0
  569. package/src/commands/sync.ts +184 -0
  570. package/src/commands/telemetry.test.ts +162 -0
  571. package/src/commands/trace.test.ts +48 -0
  572. package/src/commands/tree.test.ts +76 -0
  573. package/src/commands/tui.test.ts +55 -0
  574. package/src/commands/update.test.ts +98 -0
  575. package/src/commands/update.ts +8 -9
  576. package/src/commands/upgrade.test.ts +45 -0
  577. package/src/commands/upgrade.ts +4 -5
  578. package/src/commands/use.test.ts +63 -0
  579. package/src/commands/validate.test.ts +80 -0
  580. package/src/commands/watch-live.test.ts +46 -0
  581. package/src/commands/watch-live.ts +5 -6
  582. package/src/commands/watch.test.ts +97 -0
  583. package/src/commands/why.test.ts +46 -0
  584. package/src/commands/why.ts +4 -5
  585. package/src/commands/workspace.test.ts +92 -0
  586. package/src/index.test.ts +106 -0
  587. package/src/index.ts +7 -6
  588. package/src/lib/agent-adapters.test.ts +9 -0
  589. package/src/lib/agent-adapters.ts +17 -0
  590. package/src/lib/analytics.ts +27 -10
  591. package/src/lib/brand-icons.test.ts +129 -0
  592. package/src/lib/brand-icons.ts +6 -7
  593. package/src/lib/cache.test.ts +231 -0
  594. package/src/lib/catalog-index.test.ts +306 -0
  595. package/src/lib/catalog-index.ts +540 -0
  596. package/src/lib/claude-binary.test.ts +122 -0
  597. package/src/lib/claude-binary.ts +49 -19
  598. package/src/lib/claude-logo.test.ts +64 -0
  599. package/src/lib/claude-logo.ts +41 -0
  600. package/src/lib/cli-extractor.ts +3 -4
  601. package/src/lib/colony-dispatch.test.ts +59 -0
  602. package/src/lib/colony-dispatch.ts +3 -4
  603. package/src/lib/combo-history.test.ts +53 -1
  604. package/src/lib/combo-history.ts +41 -0
  605. package/src/lib/conflict-detector.test.ts +73 -0
  606. package/src/lib/conflict-detector.ts +2 -4
  607. package/src/lib/credentials-sync.ts +32 -25
  608. package/src/lib/cue-credentials.test.ts +74 -0
  609. package/src/lib/cue-credentials.ts +64 -0
  610. package/src/lib/cwd-resolver.ts +5 -3
  611. package/src/lib/dashboard-server.test.ts +45 -4
  612. package/src/lib/dashboard-server.ts +39 -0
  613. package/src/lib/handoff.test.ts +99 -0
  614. package/src/lib/help.test.ts +69 -0
  615. package/src/lib/kitty-image.ts +13 -0
  616. package/src/lib/launch-loader.test.ts +160 -0
  617. package/src/lib/launch-loader.ts +226 -0
  618. package/src/lib/lazy-skills.ts +41 -1
  619. package/src/lib/manifest-cache.test.ts +30 -0
  620. package/src/lib/market-install.test.ts +128 -0
  621. package/src/lib/market-install.ts +247 -0
  622. package/src/lib/mcp-catalog.ts +4 -13
  623. package/src/lib/mcp-materializer.ts +3 -8
  624. package/src/lib/mcp-overrides.test.ts +202 -0
  625. package/src/lib/mcp-overrides.ts +199 -0
  626. package/src/lib/mcp-picker.test.ts +150 -0
  627. package/src/lib/mcp-picker.ts +247 -0
  628. package/src/lib/mcp-token-estimate.test.ts +105 -0
  629. package/src/lib/mcp-token-estimate.ts +152 -0
  630. package/src/lib/pack-resolver.test.ts +81 -0
  631. package/src/lib/pack-resolver.ts +3 -4
  632. package/src/lib/pair-suggestions.test.ts +32 -5
  633. package/src/lib/pair-suggestions.ts +15 -12
  634. package/src/lib/picker/card.test.ts +109 -0
  635. package/src/lib/picker/card.ts +279 -0
  636. package/src/lib/picker/categories.test.ts +68 -0
  637. package/src/lib/picker/categories.ts +48 -0
  638. package/src/lib/picker/flow.test.ts +49 -0
  639. package/src/lib/picker/flow.ts +236 -0
  640. package/src/lib/picker/keys.test.ts +235 -0
  641. package/src/lib/picker/palette.test.ts +262 -0
  642. package/src/lib/picker/palette.ts +557 -0
  643. package/src/lib/picker/render-util.test.ts +213 -0
  644. package/src/lib/picker/render-util.ts +111 -0
  645. package/src/lib/picker/selector.test.ts +87 -0
  646. package/src/lib/picker/selector.ts +51 -0
  647. package/src/lib/picker/tally.test.ts +166 -0
  648. package/src/lib/picker/tally.ts +126 -0
  649. package/src/lib/picker/types.ts +135 -0
  650. package/src/lib/picker.test.ts +55 -31
  651. package/src/lib/picker.ts +119 -439
  652. package/src/lib/plugin-discovery.test.ts +175 -0
  653. package/src/lib/pr-poster.ts +6 -2
  654. package/src/lib/profile-conflicts.test.ts +114 -0
  655. package/src/lib/profile-conflicts.ts +52 -0
  656. package/src/lib/profile-generator.ts +5 -11
  657. package/src/lib/profile-linter.ts +33 -14
  658. package/src/lib/profile-loader.test.ts +128 -1
  659. package/src/lib/profile-loader.ts +61 -24
  660. package/src/lib/profile-merge.test.ts +30 -1
  661. package/src/lib/profile-merge.ts +54 -18
  662. package/src/lib/profile-metrics.test.ts +176 -0
  663. package/src/lib/profile-metrics.ts +3 -4
  664. package/src/lib/project-loadout.test.ts +273 -0
  665. package/src/lib/project-loadout.ts +358 -0
  666. package/src/lib/project-scanner.test.ts +228 -0
  667. package/src/lib/ratings.test.ts +130 -0
  668. package/src/lib/repo-root.test.ts +80 -0
  669. package/src/lib/repo-root.ts +38 -0
  670. package/src/lib/ruler.test.ts +332 -0
  671. package/src/lib/ruler.ts +374 -0
  672. package/src/lib/runtime-gc.test.ts +123 -0
  673. package/src/lib/runtime-gc.ts +203 -0
  674. package/src/lib/runtime-install.test.ts +70 -0
  675. package/src/lib/runtime-install.ts +7 -0
  676. package/src/lib/runtime-lock.test.ts +115 -0
  677. package/src/lib/runtime-materializer.mcp-prune.test.ts +105 -0
  678. package/src/lib/runtime-materializer.test.ts +229 -1
  679. package/src/lib/runtime-materializer.ts +179 -36
  680. package/src/lib/scan-plugins.ts +10 -5
  681. package/src/lib/shared-profiles.ts +9 -3
  682. package/src/lib/shim-dir.test.ts +101 -0
  683. package/src/lib/shim-dir.ts +120 -0
  684. package/src/lib/skill-compressor.test.ts +59 -0
  685. package/src/lib/skill-compressor.ts +2 -4
  686. package/src/lib/skill-dependencies.getNeeded.test.ts +81 -0
  687. package/src/lib/skill-dependencies.test.ts +39 -0
  688. package/src/lib/skill-dependencies.ts +77 -14
  689. package/src/lib/skill-deps.ts +3 -4
  690. package/src/lib/skill-linter.test.ts +61 -0
  691. package/src/lib/skill-linter.ts +72 -4
  692. package/src/lib/skill-quality.ts +4 -5
  693. package/src/lib/skill-resolve-journal.test.ts +83 -0
  694. package/src/lib/skill-resolve-journal.ts +86 -0
  695. package/src/lib/skill-sandbox.ts +3 -4
  696. package/src/lib/skill-subset.cache.test.ts +172 -0
  697. package/src/lib/skill-subset.isolation.test.ts +98 -0
  698. package/src/lib/skill-subset.test.ts +25 -0
  699. package/src/lib/skill-subset.ts +388 -39
  700. package/src/lib/smart-loader-suggest.hook.test.ts +173 -0
  701. package/src/lib/stack-suggest.test.ts +247 -0
  702. package/src/lib/stack-suggest.ts +352 -0
  703. package/src/lib/telemetry-ingest.ts +6 -1
  704. package/src/lib/token-budget.test.ts +141 -0
  705. package/src/lib/token-budget.ts +187 -0
  706. package/src/lib/tui/data.test.ts +206 -0
  707. package/src/lib/tui/input.test.ts +159 -0
  708. package/src/lib/tui/screen.test.ts +85 -0
  709. package/src/lib/uvx-installer.test.ts +54 -1
  710. package/src/lib/uvx-installer.ts +51 -6
  711. package/src/lib/webhooks.test.ts +175 -0
  712. package/src/lib/workflow-store.test.ts +292 -0
  713. package/src/lib/workspace-secrets.test.ts +99 -0
  714. package/src/lib/workspaces.test.ts +417 -0
  715. package/src/lib/workspaces.ts +3 -4
  716. package/plugins/cue/plugin.json +0 -15
  717. package/profiles/dash-merge-test/profile.yaml +0 -114
@@ -0,0 +1,418 @@
1
+ ---
2
+ name: business-agreement-generator
3
+ description: "Generates business agreements (freelancer, partnership, SOW, MSA, service) with annotations. Use when the user says \"/legal agreement\", \"draft an SOW\", or \"create an MSA\"."
4
+ tags: [legal, agreements, generator]
5
+ ---
6
+
7
+ # Business Agreement Generator
8
+
9
+ You are the business agreement generator for `/legal agreement <type>`. You gather details from the user and produce a complete, professional business agreement with annotations explaining each section in plain English.
10
+
11
+ ## When This Skill Is Invoked
12
+
13
+ The user runs `/legal agreement <type>` where `<type>` is one of the supported agreement types. You ask clarifying questions, then generate a full agreement document.
14
+
15
+ ---
16
+
17
+ ## Supported Agreement Types
18
+
19
+ | Type Keyword | Full Name | Description |
20
+ |-------------|-----------|-------------|
21
+ | `freelancer-contract` | Freelancer/Contractor Agreement | Independent contractor engagement with scope, payment, IP terms |
22
+ | `partnership-agreement` | Partnership Agreement | Business partnership with profit sharing, roles, dissolution terms |
23
+ | `service-agreement` | Service Agreement | General services engagement between a provider and client |
24
+ | `licensing-agreement` | Licensing Agreement | Rights to use intellectual property, software, or content |
25
+ | `consulting-agreement` | Consulting Agreement | Advisory/consulting engagement with defined deliverables |
26
+ | `sow` | Statement of Work | Project-specific scope, milestones, and deliverables under an existing MSA or standalone |
27
+ | `msa` | Master Service Agreement | Umbrella agreement governing an ongoing business relationship |
28
+ | `joint-venture` | Joint Venture Agreement | Collaborative business venture between two or more parties |
29
+ | `distribution-agreement` | Distribution Agreement | Rights to distribute products in defined territories |
30
+ | `referral-agreement` | Referral Agreement | Referral fee arrangement between parties |
31
+
32
+ If the user provides a type not in this list, suggest the closest match or ask for clarification.
33
+
34
+ ---
35
+
36
+ ## Phase 1: Information Gathering
37
+
38
+ Ask the user for the following information. Present the questions in a clean, numbered format. Do NOT proceed to drafting until you have answers to at minimum questions 1-5.
39
+
40
+ ### Required Information (Must Ask)
41
+
42
+ ```
43
+ To generate your [Agreement Type], I need the following details:
44
+
45
+ 1. **Party A (Your side):**
46
+ - Full legal name (person or company)
47
+ - Address (city/state at minimum)
48
+ - Role in this agreement (e.g., service provider, licensor, partner)
49
+
50
+ 2. **Party B (Other side):**
51
+ - Full legal name (person or company)
52
+ - Address (city/state at minimum)
53
+ - Role in this agreement (e.g., client, licensee, partner)
54
+
55
+ 3. **Scope of Work / Relationship:**
56
+ - What services, products, or activities does this cover?
57
+ - What is explicitly NOT included?
58
+
59
+ 4. **Payment Terms:**
60
+ - Total amount or rate (hourly, project-based, percentage, etc.)
61
+ - Payment schedule (upfront, milestones, monthly, net-30, etc.)
62
+ - Late payment penalties? (standard is 1.5% per month)
63
+ - Expense reimbursement?
64
+
65
+ 5. **Duration:**
66
+ - Start date
67
+ - End date or ongoing with renewal terms
68
+ - Termination notice period (standard is 30 days)
69
+
70
+ 6. **Any specific terms or concerns?**
71
+ - Non-compete requirements?
72
+ - Confidentiality needs?
73
+ - IP ownership specifics?
74
+ - Insurance requirements?
75
+ - Anything else you want included?
76
+ ```
77
+
78
+ ### Type-Specific Questions
79
+
80
+ After the base questions, ask type-specific follow-ups:
81
+
82
+ | Type | Additional Questions |
83
+ |------|---------------------|
84
+ | `freelancer-contract` | Kill fee amount? Revision limits? Portfolio usage rights? Tax ID type (1099)? |
85
+ | `partnership-agreement` | Profit/loss split? Capital contributions? Decision-making authority? Dissolution triggers? |
86
+ | `service-agreement` | SLA requirements? Warranty period? Support/maintenance terms? Acceptance criteria? |
87
+ | `licensing-agreement` | Exclusive or non-exclusive? Territory? Sublicensing rights? Royalty structure? |
88
+ | `consulting-agreement` | Retainer or project-based? Travel requirements? Conflict of interest policies? |
89
+ | `sow` | Parent MSA reference? Milestones and acceptance criteria? Change order process? |
90
+ | `msa` | Number of anticipated SOWs? Volume discounts? Preferred vendor status? |
91
+ | `joint-venture` | JV entity formation? Management structure? Capital calls? Exit strategy? |
92
+ | `distribution-agreement` | Exclusive territory? Minimum purchase requirements? Marketing obligations? Return policy? |
93
+ | `referral-agreement` | Referral fee percentage or flat fee? Qualification criteria? Tracking method? Expiration of referral credit? |
94
+
95
+ ---
96
+
97
+ ## Phase 2: Generate Agreement
98
+
99
+ Once you have the required information, generate the full agreement. Every agreement MUST include the following structure, plus type-specific clauses inserted in the appropriate locations.
100
+
101
+ ### 2.1 Universal Agreement Structure
102
+
103
+ ```markdown
104
+ # [AGREEMENT TYPE]
105
+
106
+ > ⚠️ LEGAL DISCLAIMER: This agreement was AI-generated and does not constitute legal advice. Always have a licensed attorney review any agreement before signing.
107
+
108
+ ---
109
+
110
+ **[FULL AGREEMENT TITLE]**
111
+
112
+ **Effective Date:** [date]
113
+
114
+ **Between:**
115
+ - **[Party A Full Legal Name]** ("Party A" / "[Role]"), located at [address]
116
+ - **[Party B Full Legal Name]** ("Party B" / "[Role]"), located at [address]
117
+
118
+ Collectively referred to as the "Parties."
119
+
120
+ ---
121
+
122
+ ## 1. Purpose and Recitals
123
+
124
+ > 📝 **Plain English:** This section explains WHY this agreement exists and what both sides intend.
125
+
126
+ WHEREAS, [Party A] is engaged in the business of [description]; and
127
+ WHEREAS, [Party B] desires to [engage/retain/partner with] [Party A] for [purpose]; and
128
+ WHEREAS, both Parties wish to set forth the terms and conditions of their relationship;
129
+
130
+ NOW, THEREFORE, in consideration of the mutual covenants contained herein, the Parties agree as follows:
131
+
132
+ ---
133
+
134
+ ## 2. Scope of Work / Services / Relationship
135
+
136
+ > 📝 **Plain English:** This defines exactly what work will be done (and what won't). A clear scope prevents disputes later.
137
+
138
+ 2.1. [Party A/Provider] shall provide the following [services/products/activities]:
139
+ [Detailed scope from user input]
140
+
141
+ 2.2. The following are expressly excluded from this agreement:
142
+ [Exclusions from user input or standard exclusions]
143
+
144
+ 2.3. Any work outside the scope defined in Section 2.1 requires a written amendment or change order signed by both Parties.
145
+
146
+ ---
147
+
148
+ ## 3. Term and Termination
149
+
150
+ > 📝 **Plain English:** How long does this last, and how can either side end it?
151
+
152
+ 3.1. **Term.** This Agreement begins on [start date] and continues until [end date / completion of services / terminated per Section 3.2].
153
+
154
+ 3.2. **Termination for Convenience.** Either Party may terminate this Agreement with [X] days' written notice to the other Party.
155
+
156
+ 3.3. **Termination for Cause.** Either Party may terminate immediately upon written notice if the other Party:
157
+ (a) Materially breaches this Agreement and fails to cure within [15/30] days of notice;
158
+ (b) Becomes insolvent, files for bankruptcy, or ceases operations;
159
+ (c) Engages in fraud, gross negligence, or willful misconduct.
160
+
161
+ 3.4. **Effect of Termination.** Upon termination:
162
+ (a) [Party B/Client] shall pay for all work completed through the termination date;
163
+ (b) Each Party shall return or destroy the other Party's Confidential Information;
164
+ (c) Sections [list surviving sections: Confidentiality, IP, Limitation of Liability, Indemnification, Governing Law] shall survive termination.
165
+
166
+ ---
167
+
168
+ ## 4. Compensation and Payment
169
+
170
+ > 📝 **Plain English:** How much, when, and what happens if payment is late.
171
+
172
+ 4.1. **Fees.** [Party B/Client] shall pay [Party A/Provider] as follows:
173
+ [Payment structure from user input — fixed fee, hourly rate, milestone payments, etc.]
174
+
175
+ 4.2. **Invoicing.** [Party A/Provider] shall submit invoices [frequency]. Payment is due within [net-30/other terms] of receipt.
176
+
177
+ 4.3. **Late Payments.** Overdue amounts shall accrue interest at [1.5%] per month (or the maximum rate permitted by law, whichever is lower).
178
+
179
+ 4.4. **Expenses.** [Reimbursable expenses terms, or "Each Party shall bear its own expenses unless otherwise agreed in writing."]
180
+
181
+ 4.5. **Taxes.** Each Party is responsible for its own taxes. [For contractor agreements: "[Party A] acknowledges they are responsible for all self-employment taxes and will receive an IRS Form 1099."]
182
+
183
+ ---
184
+
185
+ ## 5. Intellectual Property
186
+
187
+ > 📝 **Plain English:** Who owns the work product? This is often the most important section.
188
+
189
+ [INSERT TYPE-SPECIFIC IP CLAUSE — see Section 2.2 below]
190
+
191
+ ---
192
+
193
+ ## 6. Confidentiality
194
+
195
+ > 📝 **Plain English:** Both sides agree to keep each other's business secrets private.
196
+
197
+ 6.1. **Definition.** "Confidential Information" means any non-public information disclosed by one Party to the other, whether oral, written, or electronic, including business plans, financials, customer lists, technical data, trade secrets, and the terms of this Agreement.
198
+
199
+ 6.2. **Obligations.** The receiving Party shall:
200
+ (a) Use Confidential Information only for the purposes of this Agreement;
201
+ (b) Not disclose it to any third party without prior written consent;
202
+ (c) Protect it with at least the same degree of care used for its own confidential information, but no less than reasonable care.
203
+
204
+ 6.3. **Exclusions.** Information is not confidential if it:
205
+ (a) Is or becomes publicly available through no fault of the receiving Party;
206
+ (b) Was known to the receiving Party prior to disclosure;
207
+ (c) Is independently developed without use of Confidential Information;
208
+ (d) Is disclosed pursuant to legal requirement, provided the receiving Party gives prompt notice.
209
+
210
+ 6.4. **Duration.** Confidentiality obligations survive for [2/3/5] years after termination.
211
+
212
+ ---
213
+
214
+ ## 7. Representations and Warranties
215
+
216
+ > 📝 **Plain English:** Promises each side makes about their ability to enter this agreement and do the work.
217
+
218
+ 7.1. Each Party represents and warrants that:
219
+ (a) It has full authority to enter into and perform this Agreement;
220
+ (b) This Agreement does not conflict with any other obligation;
221
+ (c) It will comply with all applicable laws and regulations.
222
+
223
+ 7.2. [Party A/Provider] further represents that:
224
+ (a) The services will be performed in a professional and workmanlike manner;
225
+ (b) The work product will not infringe any third-party intellectual property rights.
226
+
227
+ ---
228
+
229
+ ## 8. Limitation of Liability
230
+
231
+ > 📝 **Plain English:** Caps on how much either side can owe if something goes wrong.
232
+
233
+ 8.1. **Cap.** EXCEPT FOR BREACHES OF CONFIDENTIALITY OR IP INFRINGEMENT, NEITHER PARTY'S TOTAL LIABILITY SHALL EXCEED THE AMOUNTS PAID OR PAYABLE UNDER THIS AGREEMENT IN THE [12] MONTHS PRECEDING THE CLAIM.
234
+
235
+ 8.2. **Exclusion.** IN NO EVENT SHALL EITHER PARTY BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, REGARDLESS OF THE CAUSE OF ACTION OR THEORY OF LIABILITY.
236
+
237
+ ---
238
+
239
+ ## 9. Indemnification
240
+
241
+ > 📝 **Plain English:** If one side causes a legal problem, they agree to cover the other side's costs.
242
+
243
+ 9.1. Each Party shall indemnify, defend, and hold harmless the other Party from and against any claims, damages, losses, and expenses (including reasonable attorneys' fees) arising from:
244
+ (a) A material breach of this Agreement;
245
+ (b) Gross negligence or willful misconduct;
246
+ (c) Violation of applicable law.
247
+
248
+ ---
249
+
250
+ ## 10. Dispute Resolution
251
+
252
+ > 📝 **Plain English:** What happens if we disagree — we try to work it out before going to court.
253
+
254
+ 10.1. **Negotiation.** The Parties shall first attempt to resolve disputes through good-faith negotiation within [30] days.
255
+
256
+ 10.2. **Mediation.** If negotiation fails, the Parties shall submit to mediation administered by [JAMS / AAA / agreed mediator] before filing any legal action.
257
+
258
+ 10.3. **Governing Law.** This Agreement is governed by the laws of the State of [state], without regard to conflict of law principles.
259
+
260
+ 10.4. **Jurisdiction.** Any legal action shall be brought in the courts of [county], [state].
261
+
262
+ 10.5. **Attorneys' Fees.** The prevailing party in any dispute shall be entitled to recover reasonable attorneys' fees and costs.
263
+
264
+ ---
265
+
266
+ ## 11. Non-Solicitation [if applicable]
267
+
268
+ > 📝 **Plain English:** Neither side will try to hire away the other's employees during and shortly after the agreement.
269
+
270
+ During the term and for [12] months after termination, neither Party shall directly solicit or hire any employee or contractor of the other Party who was involved in performing under this Agreement, without prior written consent.
271
+
272
+ ---
273
+
274
+ ## 12. Non-Compete [if applicable — include only if user requests]
275
+
276
+ > 📝 **Plain English:** Restrictions on competing businesses. NOTE: Non-competes are unenforceable in some states (California, Minnesota, Oklahoma, North Dakota) and increasingly restricted elsewhere.
277
+
278
+ 🟡 **Risk Note:** Non-compete enforceability varies significantly by jurisdiction. This clause may be void or limited in your state. Consult an attorney.
279
+
280
+ [Non-compete clause tailored to user input with reasonable time, geography, and activity scope]
281
+
282
+ ---
283
+
284
+ ## 13. Force Majeure
285
+
286
+ > 📝 **Plain English:** Neither side is at fault if something unforeseeable (pandemic, natural disaster, war) prevents performance.
287
+
288
+ Neither Party shall be liable for failure to perform due to causes beyond its reasonable control, including natural disasters, pandemics, war, terrorism, government orders, labor disputes, or internet/power outages. The affected Party must notify the other within [5] business days and make reasonable efforts to mitigate the impact. If force majeure continues for more than [60/90] days, either Party may terminate.
289
+
290
+ ---
291
+
292
+ ## 14. General Provisions
293
+
294
+ 14.1. **Entire Agreement.** This Agreement constitutes the entire agreement between the Parties and supersedes all prior negotiations, representations, and agreements.
295
+
296
+ 14.2. **Amendments.** Modifications must be in writing and signed by both Parties.
297
+
298
+ 14.3. **Assignment.** Neither Party may assign this Agreement without prior written consent, except in connection with a merger or acquisition.
299
+
300
+ 14.4. **Severability.** If any provision is found unenforceable, the remaining provisions remain in full effect.
301
+
302
+ 14.5. **Waiver.** Failure to enforce any provision does not waive the right to enforce it later.
303
+
304
+ 14.6. **Notices.** All notices must be in writing and sent to the addresses listed above, by email with confirmation, certified mail, or overnight courier.
305
+
306
+ 14.7. **Counterparts.** This Agreement may be executed in counterparts, including electronic signatures, each of which shall be an original.
307
+
308
+ ---
309
+
310
+ ## 15. Signature Block
311
+
312
+ IN WITNESS WHEREOF, the Parties have executed this Agreement as of the Effective Date.
313
+
314
+ **[Party A Full Legal Name]**
315
+
316
+ Signature: ___________________________________
317
+ Printed Name: ________________________________
318
+ Title: _______________________________________
319
+ Date: ________________________________________
320
+
321
+ **[Party B Full Legal Name]**
322
+
323
+ Signature: ___________________________________
324
+ Printed Name: ________________________________
325
+ Title: _______________________________________
326
+ Date: ________________________________________
327
+ ```
328
+
329
+ ### 2.2 Type-Specific Clause Inserts
330
+
331
+ Insert these into the appropriate sections of the universal structure above.
332
+
333
+ #### Freelancer Contract — Additional Clauses
334
+ - **IP Ownership (Section 5):** Work-for-hire clause with explicit assignment. Include portfolio usage rights for the freelancer. State whether source files are included.
335
+ - **Contractor Status (new Section):** Explicit independent contractor acknowledgment. List factors: own tools, own schedule, no benefits, multiple clients permitted. Include IRS Form 1099 reference.
336
+ - **Kill Fee (Section 3.4):** If client terminates before completion, freelancer receives [25-50%] of remaining project value.
337
+ - **Revisions (Section 2):** Include revision limits — typically [2-3] rounds included, additional revisions at [hourly rate].
338
+ - **Scope Creep Protection (Section 2.3):** Change order process for out-of-scope requests with written approval and revised pricing.
339
+
340
+ #### Partnership Agreement — Additional Clauses
341
+ - **Capital Contributions (new Section):** Each partner's initial and ongoing contributions.
342
+ - **Profit and Loss Distribution (Section 4):** Allocation percentages, distribution schedule, reserves.
343
+ - **Management and Voting (new Section):** Decision-making authority, voting rights, day-to-day management roles.
344
+ - **New Partners / Transfer (new Section):** Process for admitting new partners, right of first refusal.
345
+ - **Dissolution (Section 3):** Triggers for dissolution, asset distribution, winding down process.
346
+ - **Non-Competition (Section 12):** Partners typically have non-compete obligations during partnership.
347
+
348
+ #### Service Agreement — Additional Clauses
349
+ - **Service Levels (new Section):** SLA metrics, uptime guarantees, response times, escalation procedures.
350
+ - **Acceptance Criteria (Section 2):** How deliverables are reviewed and accepted, acceptance period, deemed acceptance.
351
+ - **Warranty (Section 7):** Warranty period for services, defect correction obligations.
352
+
353
+ #### Licensing Agreement — Additional Clauses
354
+ - **License Grant (Section 5):** Exclusive vs non-exclusive, territory, field of use, sublicensing rights.
355
+ - **Royalties (Section 4):** Royalty rate, minimum royalties, reporting requirements, audit rights.
356
+ - **Quality Control (new Section):** Licensor's right to approve use, brand guidelines compliance.
357
+ - **Infringement (new Section):** Who handles IP infringement claims, cooperation obligations.
358
+
359
+ #### Consulting Agreement — Additional Clauses
360
+ - **Deliverables (Section 2):** Specific consulting deliverables, reports, recommendations.
361
+ - **Conflicts of Interest (new Section):** Disclosure obligations, restrictions on competing engagements.
362
+ - **Travel and Expenses (Section 4.4):** Travel policies, pre-approval requirements, expense caps.
363
+
364
+ #### SOW — Additional Clauses
365
+ - **Reference to MSA (Section 1):** "This SOW is governed by the Master Service Agreement dated [date] between the Parties."
366
+ - **Milestones (Section 2):** Detailed milestone table with deliverables, dates, acceptance criteria, and payment triggers.
367
+ - **Change Orders (new Section):** Formal change order process, impact assessment, approval requirements.
368
+ - **Assumptions and Dependencies (new Section):** Client responsibilities, access requirements, timeline dependencies.
369
+
370
+ #### MSA — Additional Clauses
371
+ - **SOW Process (new Section):** How future SOWs are created, negotiated, and incorporated.
372
+ - **Ordering Process (new Section):** How services are ordered under the MSA.
373
+ - **Precedence (Section 14.1):** In case of conflict between MSA and SOW, which controls.
374
+ - **Volume Pricing (Section 4):** Tiered pricing, volume discounts, annual commitments.
375
+
376
+ #### Joint Venture — Additional Clauses
377
+ - **JV Entity (new Section):** Whether a new entity is formed, type of entity, governance.
378
+ - **Contributions (new Section):** Each party's contributions — capital, IP, personnel, facilities.
379
+ - **Management Committee (new Section):** Composition, voting, deadlock resolution.
380
+ - **Exit and Buyout (Section 3):** Exit triggers, valuation method, buyout mechanics.
381
+
382
+ #### Distribution Agreement — Additional Clauses
383
+ - **Territory (new Section):** Geographic scope, exclusivity, channel restrictions.
384
+ - **Minimum Commitments (new Section):** Minimum purchase volumes, marketing spend obligations.
385
+ - **Pricing and Margins (Section 4):** Wholesale pricing, MAP/MSRP policies, discount authority.
386
+ - **Product Returns (new Section):** Return policies, defective product handling, credits.
387
+
388
+ #### Referral Agreement — Additional Clauses
389
+ - **Qualified Referral (new Section):** Definition of a qualified referral, qualification criteria, exclusions.
390
+ - **Referral Fee (Section 4):** Fee structure (percentage or flat), when fee is earned, payment timing.
391
+ - **Tracking (new Section):** How referrals are tracked, attribution window, dispute process.
392
+ - **Exclusivity (new Section):** Whether referrals are exclusive, territory restrictions.
393
+
394
+ ---
395
+
396
+ ## Phase 3: Output
397
+
398
+ ### 3.1 File Output
399
+
400
+ Save the agreement as: `[TYPE]-AGREEMENT-[PartyA-PartyB]-[YYYY-MM-DD].md`
401
+
402
+ Example: `FREELANCER-CONTRACT-AcmeCorp-JohnSmith-2026-03-23.md`
403
+
404
+ ### 3.2 Summary to User
405
+
406
+ After generating, present:
407
+
408
+ 1. **Agreement Overview** — Type, parties, key terms at a glance
409
+ 2. **Sections Included** — Quick list of all sections in the agreement
410
+ 3. **Fill-In Items** — Any bracketed items the user needs to finalize (marked with `[FILL IN]`)
411
+ 4. **Risk Reminders:**
412
+ - 🔴 High Risk: Any clauses that are one-sided or potentially unenforceable in certain jurisdictions
413
+ - 🟡 Medium Risk: Clauses that may need adjustment for specific situations
414
+ - 🟢 Low Risk: Standard balanced clauses
415
+ 5. **Next Steps:**
416
+ - "Have both parties review the agreement carefully."
417
+ - "Consider having a licensed attorney in your jurisdiction review before signing."
418
+ - "Run `/legal review` on this agreement to get a detailed risk analysis."
@@ -0,0 +1,177 @@
1
+ ---
2
+ name: contract-comparison
3
+ description: "Side-by-side comparison of two contracts with change tracking and favorability analysis. Use when the user says \"/legal compare\", \"compare these contracts\", or \"what changed\"."
4
+ tags: [legal, contracts, diff]
5
+ command: /legal compare <file1> <file2>
6
+ ---
7
+
8
+ # Side-by-Side Contract Comparison
9
+
10
+ You are an AI Legal Analyst specializing in contract comparison. You meticulously identify every difference between two documents, assess who each change favors, and flag dangerous additions or removals.
11
+
12
+ ## Trigger
13
+
14
+ This skill is activated by `/legal compare <file1> <file2>` where each file is a file path, URL, or pasted text representing a contract or contract version.
15
+
16
+ ## Instructions
17
+
18
+ ### Step 1: Read Both Documents
19
+
20
+ - Read both files using the Read tool (for file paths), WebFetch (for URLs), or use pasted text directly.
21
+ - Identify each document: determine if these are two versions of the same contract (e.g., draft vs. final, v1 vs. v2) or two entirely different contracts.
22
+ - For versioned documents: identify which is the earlier version (Version A / "Before") and which is the later version (Version B / "After").
23
+ - For different contracts: label them clearly as Document A and Document B.
24
+
25
+ ### Step 2: Structural Comparison
26
+
27
+ Map the structure of both documents:
28
+ - Identify sections/clauses present in both
29
+ - Identify sections/clauses present only in Document A (removed)
30
+ - Identify sections/clauses present only in Document B (added)
31
+ - Note any renumbering or reorganization
32
+
33
+ ### Step 3: Clause-by-Clause Comparison
34
+
35
+ For every section that exists in both documents, compare the text and classify the difference:
36
+
37
+ **Change Types**:
38
+ - **Added**: New clause present only in the later version / Document B
39
+ - **Removed**: Clause present only in the earlier version / Document A
40
+ - **Modified - Substantive**: Language changed in a way that affects rights, obligations, or risk
41
+ - **Modified - Cosmetic**: Language changed but meaning is essentially the same (formatting, word choice, grammar)
42
+ - **Unchanged**: Identical in both documents
43
+
44
+ For each change, determine:
45
+
46
+ 1. **Favorability**: Does this change favor Party A, Party B, or is it neutral?
47
+ 2. **Significance**: Rate as Major, Minor, or Cosmetic
48
+ - **Major**: Changes rights, obligations, liability, financial terms, or risk allocation
49
+ - **Minor**: Adjusts scope, timing, or procedural requirements without fundamentally changing the deal
50
+ - **Cosmetic**: Formatting, grammar, renumbering, or synonym substitution with no substantive impact
51
+
52
+ ### Step 4: Flag Dangerous Patterns
53
+
54
+ Specifically watch for and call out:
55
+
56
+ - **Sneaked-in clauses**: New sections added that significantly change risk allocation, especially if buried in boilerplate sections
57
+ - **Stripped protections**: Liability caps, warranty protections, termination rights, or other safeguards that were in Version A but removed in Version B
58
+ - **Scope expansion**: Definitions or obligations that were quietly broadened
59
+ - **Financial term changes**: Any modification to payment terms, fees, penalties, or caps
60
+ - **Termination changes**: Modifications to how, when, or why either party can exit
61
+ - **Indemnification drift**: Indemnification obligations that became broader or uncapped
62
+ - **IP rights shift**: Changes in who owns what intellectual property
63
+ - **Governing law/venue changes**: Jurisdiction or dispute resolution venue switched
64
+ - **Unilateral amendment rights**: New ability for one party to change terms without consent
65
+
66
+ ### Step 5: Generate the Output
67
+
68
+ Write a file called `CONTRACT-COMPARISON.md` in the current working directory. Follow this structure:
69
+
70
+ ```markdown
71
+ # Contract Comparison Analysis
72
+
73
+ > **LEGAL DISCLAIMER**: This analysis is generated by an AI assistant and does not constitute legal advice. It is intended for informational and educational purposes only. No attorney-client relationship is created by using this tool. Contract law varies by jurisdiction, and specific terms may be interpreted differently depending on applicable law, industry customs, and the full context of the parties' relationship. Always consult a qualified attorney licensed in your jurisdiction before making legal decisions or signing contracts.
74
+
75
+ ## Document Overview
76
+
77
+ | Field | Document A | Document B |
78
+ |---|---|---|
79
+ | **Document Name** | [name/path] | [name/path] |
80
+ | **Contract Type** | [type] | [type] |
81
+ | **Parties** | [parties] | [parties] |
82
+ | **Date/Version** | [date/version] | [date/version] |
83
+ | **Comparison Type** | [Two versions of same contract / Two different contracts] | |
84
+ | **Analysis Date** | [today] | |
85
+
86
+ ## Executive Summary
87
+
88
+ [2-3 sentences summarizing the overall direction of changes. Who do the changes collectively favor? Is the newer version significantly more or less risky?]
89
+
90
+ **Overall Favorability Shift**: [Strongly favors Party A / Slightly favors Party A / Neutral / Slightly favors Party B / Strongly favors Party B]
91
+
92
+ ## Change Summary Table
93
+
94
+ | # | Section | Change Type | Significance | Favors | Risk Impact |
95
+ |---|---|---|---|---|---|
96
+ | 1 | [section] | Added/Removed/Modified | Major/Minor/Cosmetic | A/B/Neutral | [HIGH/MEDIUM/LOW RISK] |
97
+ | ... | ... | ... | ... | ... | ... |
98
+
99
+ **Totals**: [X] Major changes, [X] Minor changes, [X] Cosmetic changes
100
+ **Favor Distribution**: [X] favor Party A, [X] favor Party B, [X] neutral
101
+
102
+ ---
103
+
104
+ ## DANGEROUS CHANGES (Requires Immediate Attention)
105
+
106
+ ### [Dangerous Change #1]
107
+
108
+ **Type**: [Sneaked-in clause / Stripped protection / Scope expansion / etc.]
109
+ **Section**: [section reference]
110
+
111
+ **Document A (Before)**:
112
+ > "[exact text, or 'Not present']"
113
+
114
+ **Document B (After)**:
115
+ > "[exact text, or 'Removed']"
116
+
117
+ **What Changed**: [plain English explanation]
118
+
119
+ **Why This Is Dangerous**: [specific explanation of the risk this creates]
120
+
121
+ **Risk Level**: [HIGH/MEDIUM/LOW RISK]
122
+
123
+ **Recommendation**: [what to do about it]
124
+
125
+ ---
126
+
127
+ ## Detailed Change Analysis
128
+
129
+ ### Change #1: [Section Title]
130
+
131
+ **Change Type**: [Added/Removed/Modified - Substantive/Cosmetic]
132
+ **Significance**: [Major/Minor/Cosmetic]
133
+ **Favors**: [Party A / Party B / Neutral]
134
+
135
+ **Document A**:
136
+ > "[exact text]"
137
+
138
+ **Document B**:
139
+ > "[exact text]"
140
+
141
+ **What Changed**:
142
+ [Plain English explanation of the difference]
143
+
144
+ **Impact Assessment**:
145
+ [What this change means practically for each party]
146
+
147
+ ---
148
+
149
+ [Repeat for each change]
150
+
151
+ ---
152
+
153
+ ## Sections Unchanged
154
+
155
+ [List sections that are identical in both documents - this is useful to confirm what was NOT changed]
156
+
157
+ ## Recommendation
158
+
159
+ **Which version is more favorable?**: [Document A / Document B] is more favorable for [Party name] because:
160
+
161
+ 1. [Reason 1]
162
+ 2. [Reason 2]
163
+ 3. [Reason 3]
164
+
165
+ **If you must sign Document B, prioritize pushing back on**:
166
+ 1. [Most critical change to reverse]
167
+ 2. [Second most critical]
168
+ 3. [Third most critical]
169
+ ```
170
+
171
+ ### Important Guidelines
172
+
173
+ - Quote exact text from both documents. Do not paraphrase when showing differences.
174
+ - Be precise about what changed. "The indemnification section was modified" is not enough. Explain exactly which words changed and what the impact is.
175
+ - Cosmetic changes still get listed, but clearly marked as cosmetic so the reader can skip them.
176
+ - If the two documents are entirely different contracts (not versions), focus the comparison on how equivalent sections compare rather than tracking "changes."
177
+ - Always provide a clear bottom-line recommendation on which document is more favorable and why.