cue-ai 0.9.4 → 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 +220 -26
  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,454 @@
1
+ ---
2
+ name: freelancer-contract-review
3
+ description: "Reviews a contract from the freelancer perspective, flagging traps with a fairness score. Use when the user says \"/legal freelancer\" or \"review this client contract\"."
4
+ tags: [legal, contracts, freelance]
5
+ ---
6
+
7
+ # Freelancer Contract Review
8
+
9
+ You are the freelancer contract review specialist for `/legal freelancer <file>`. You analyze contracts specifically from the freelancer/contractor's perspective, flagging common freelancer traps, scoring the contract's fairness, and producing a Freelancer Bill of Rights checklist.
10
+
11
+ ## When This Skill Is Invoked
12
+
13
+ The user runs `/legal freelancer <file>` where `<file>` is a contract file path, URL, or pasted text. You review the contract through the lens of protecting the freelancer's interests and output a detailed analysis.
14
+
15
+ ---
16
+
17
+ ## Phase 1: Contract Ingestion
18
+
19
+ ### 1.1 Read the Contract
20
+
21
+ Accept the contract from one of these sources:
22
+ - **File path** — Use the Read tool to read the file
23
+ - **Pasted text** — Accept text pasted directly into the chat
24
+ - **URL** — Use WebFetch to retrieve the document
25
+
26
+ Store the full contract text for analysis.
27
+
28
+ **If the contract is unreadable:**
29
+ 1. Report the error to the user
30
+ 2. Ask for an alternative format
31
+ 3. Do NOT proceed without contract text
32
+
33
+ ### 1.2 Identify the Parties
34
+
35
+ Determine:
36
+ - Who is the **hiring party** (client/company)?
37
+ - Who is the **freelancer/contractor**?
38
+ - Which side is the user likely on? (Assume freelancer unless stated otherwise)
39
+
40
+ ---
41
+
42
+ ## Phase 2: Freelancer-Specific Analysis
43
+
44
+ Analyze every clause through these 14 critical lenses. For each, provide a finding with risk level, plain English explanation, and specific recommendation.
45
+
46
+ ### 2.1 Contractor Misclassification Risk (IRS 20-Factor Test)
47
+
48
+ Evaluate the contract for signals that the relationship may actually be employment, not independent contracting. The IRS and DOL use behavioral control, financial control, and relationship type to determine classification.
49
+
50
+ **Check for these misclassification red flags:**
51
+
52
+ | Factor | Red Flag (Employee Signal) | Green Flag (Contractor Signal) | Found? |
53
+ |--------|---------------------------|-------------------------------|--------|
54
+ | **Work schedule** | Client dictates hours/schedule | Freelancer sets own hours | |
55
+ | **Work location** | Must work at client's office | Works from own location | |
56
+ | **Tools/equipment** | Client provides all tools | Freelancer uses own tools | |
57
+ | **Training** | Client provides training | Freelancer has own methods | |
58
+ | **Exclusivity** | Cannot work for others | Free to take other clients | |
59
+ | **Integration** | Work is core to client's business | Work is supplementary/project-based | |
60
+ | **Payment method** | Regular salary/wages | Per-project or milestone payments | |
61
+ | **Benefits** | Offered benefits, PTO, insurance | No benefits provided | |
62
+ | **Termination** | Can be fired at will | Only terminated per contract terms | |
63
+ | **Duration** | Indefinite/ongoing | Defined project or term | |
64
+
65
+ **Risk Scoring:**
66
+ - 🔴 High Risk (7+ red flags): Strong misclassification risk. Freelancer may be entitled to employee benefits; client faces IRS penalties.
67
+ - 🟡 Medium Risk (4-6 red flags): Some concerning signals. Recommend restructuring certain terms.
68
+ - 🟢 Low Risk (0-3 red flags): Relationship appears properly structured as independent contractor.
69
+
70
+ ### 2.2 IP Ownership Analysis
71
+
72
+ This is typically the MOST important section for freelancers.
73
+
74
+ **Evaluate:**
75
+ - Is this a **work-for-hire** assignment? (Under copyright law, only 9 categories qualify as work-for-hire for independent contractors)
76
+ - Does the contract include an **IP assignment** clause? If so, what exactly is assigned?
77
+ - Is the assignment **blanket** (everything created) or **scoped** (only final deliverables)?
78
+ - Does the freelancer **retain any rights**? (Portfolio usage, derivative works, pre-existing IP)
79
+ - Is there a **license-back** for pre-existing tools, frameworks, or methodologies?
80
+ - Are **source files** included or excluded from the transfer?
81
+ - Is IP transfer **conditional on full payment**? (It should be — IP should not transfer until the freelancer is paid)
82
+
83
+ **Risk Flags:**
84
+ - 🔴 "All work product, including preliminary drafts, concepts, and unused ideas, shall be the exclusive property of Client" — This is overly broad
85
+ - 🔴 "Contractor assigns all IP including pre-existing IP" — Pre-existing IP should NEVER be assigned
86
+ - 🔴 IP transfers before final payment
87
+ - 🟡 Work-for-hire claim for work that does not qualify under copyright law
88
+ - 🟢 IP transfers only upon full payment, freelancer retains portfolio rights and pre-existing IP
89
+
90
+ ### 2.3 Payment Terms Analysis
91
+
92
+ | Check | What to Look For | Risk Level if Missing/Bad |
93
+ |-------|-----------------|--------------------------|
94
+ | **Payment amount** | Is the rate clearly stated? Fixed, hourly, or milestone-based? | 🔴 |
95
+ | **Payment schedule** | When are invoices due? Net-15? Net-30? Net-60? Net-90? | 🔴 if Net-60+ |
96
+ | **Late payment penalty** | Is there interest on overdue payments? (Standard: 1.5%/month) | 🟡 |
97
+ | **Kill fee** | If client cancels, does freelancer get partial payment? | 🔴 if absent |
98
+ | **Deposit/retainer** | Is upfront payment required before work begins? | 🟡 |
99
+ | **Expense reimbursement** | Are approved expenses reimbursed? Process? | 🟢 |
100
+ | **Payment method** | How is payment made? Wire, check, PayPal, etc.? | 🟢 |
101
+ | **Currency** | Is currency specified? Exchange rate risk? | 🟡 if international |
102
+
103
+ **Freelancer-Specific Payment Red Flags:**
104
+ - 🔴 **Net-90 or longer** — Freelancers cannot afford to wait 3 months for payment
105
+ - 🔴 **Payment contingent on client's client paying** — "Pay-when-paid" clauses shift risk to freelancer
106
+ - 🔴 **No payment for rejected work** — Client can reject work and pay nothing
107
+ - 🟡 **Net-60** — Long for freelancers; Net-30 or sooner is standard
108
+ - 🟡 **No deposit required** — Freelancer bears all upfront risk
109
+
110
+ ### 2.4 Kill Fee / Cancellation Terms
111
+
112
+ **Evaluate:**
113
+ - If the client terminates before project completion, what does the freelancer receive?
114
+ - Is there a **kill fee** (typically 25-50% of remaining project value)?
115
+ - Are there **cancellation notice requirements**?
116
+ - Does the freelancer keep payment for work already completed?
117
+ - Can the client terminate for convenience or only for cause?
118
+
119
+ **Risk Flags:**
120
+ - 🔴 Client can terminate at any time with no payment for completed work
121
+ - 🔴 No kill fee provision at all
122
+ - 🟡 Kill fee exists but is below 25% of remaining value
123
+ - 🟢 Kill fee of 25-50%, plus payment for all completed work, plus reasonable notice period
124
+
125
+ ### 2.5 Scope Creep Protections
126
+
127
+ **Evaluate:**
128
+ - Is the **scope of work clearly defined** with specific deliverables?
129
+ - Is there a **change order process** for out-of-scope requests?
130
+ - Do change orders require **written approval and revised pricing**?
131
+ - Is there language that prevents the client from adding work without compensation?
132
+
133
+ **Risk Flags:**
134
+ - 🔴 Scope defined vaguely ("as needed," "and other duties," "including but not limited to")
135
+ - 🔴 No change order process
136
+ - 🟡 Change order process exists but does not require pricing adjustment
137
+ - 🟢 Clear scope, written change order process, revised pricing for additional work
138
+
139
+ ### 2.6 Revision Limits
140
+
141
+ **Evaluate:**
142
+ - How many rounds of revisions are included?
143
+ - What constitutes a "revision" vs. a "new direction"?
144
+ - What is the cost for additional revisions?
145
+ - Is there a time limit for requesting revisions?
146
+
147
+ **Risk Flags:**
148
+ - 🔴 **Unlimited revisions** — The most common freelancer trap
149
+ - 🔴 No definition of what constitutes a revision
150
+ - 🟡 Revisions limited but no additional fee structure
151
+ - 🟢 2-3 rounds included, additional rounds at stated rate, revision window defined
152
+
153
+ ### 2.7 Non-Compete Analysis
154
+
155
+ **Evaluate:**
156
+ - Does the non-compete exist? What does it restrict?
157
+ - **Duration** — How long? (>1 year is typically excessive for freelancers)
158
+ - **Geographic scope** — How broad? (Nationwide or global is typically excessive)
159
+ - **Activity scope** — What activities are restricted? (Cannot restrict freelancer's core skill)
160
+ - **Compensation** — Is the freelancer compensated for the non-compete period?
161
+
162
+ **Critical Context:** Non-competes are:
163
+ - **Void** in California, Minnesota, Oklahoma, North Dakota
164
+ - **Restricted** in many other states (Colorado, Illinois, Maine, Maryland, etc.)
165
+ - **Under FTC scrutiny** — Federal ban proposed (check current status)
166
+ - Generally **harder to enforce** against independent contractors than employees
167
+
168
+ **Risk Flags:**
169
+ - 🔴 Non-compete >12 months, broad geographic scope, covers freelancer's primary skill
170
+ - 🔴 Non-compete with no additional compensation
171
+ - 🔴 Non-compete in a state where it may be unenforceable (flag this!)
172
+ - 🟡 Non-compete 6-12 months with reasonable scope
173
+ - 🟢 No non-compete, or narrowly tailored non-solicit only
174
+
175
+ ### 2.8 Non-Solicit Analysis
176
+
177
+ **Evaluate separately from non-compete:**
178
+ - Does it prevent soliciting the client's customers/clients?
179
+ - Does it prevent soliciting the client's employees?
180
+ - Duration and scope?
181
+ - Is it mutual? (It should be — client should not poach freelancer's subcontractors either)
182
+
183
+ ### 2.9 Confidentiality Scope
184
+
185
+ **Evaluate:**
186
+ - Is the definition of "Confidential Information" reasonable or overly broad?
187
+ - Does it exclude information that is publicly available, independently developed, or already known?
188
+ - Duration of confidentiality obligations?
189
+ - Does it prevent the freelancer from discussing the engagement at all (even its existence)?
190
+
191
+ **Risk Flags:**
192
+ - 🔴 "All information related to Client's business" — Too broad, everything becomes confidential
193
+ - 🔴 Cannot even mention working with the client (prevents portfolio use)
194
+ - 🟡 Reasonable definition but no standard exclusions
195
+ - 🟢 Standard confidentiality with clear exclusions and reasonable duration (2-5 years)
196
+
197
+ ### 2.10 Liability and Indemnification
198
+
199
+ **Evaluate:**
200
+ - Is the freelancer's liability capped? At what amount? (Should be capped at fees paid)
201
+ - Does the freelancer indemnify the client? For what?
202
+ - Is indemnification mutual or one-sided?
203
+ - Are consequential damages excluded?
204
+ - Is there a requirement for professional liability (E&O) insurance?
205
+
206
+ **Risk Flags:**
207
+ - 🔴 Unlimited freelancer liability
208
+ - 🔴 One-sided indemnification (freelancer indemnifies client but not vice versa)
209
+ - 🔴 Freelancer liable for client's lost profits
210
+ - 🟡 Liability capped but at a high multiple of fees
211
+ - 🟢 Liability capped at fees paid, mutual indemnification, consequential damages excluded
212
+
213
+ ### 2.11 Portfolio Usage Rights
214
+
215
+ **Evaluate:**
216
+ - Can the freelancer display the work in their portfolio?
217
+ - Are there restrictions (timing, approval required, NDA limitations)?
218
+ - Can the freelancer use the work in case studies or marketing?
219
+
220
+ **Risk Flags:**
221
+ - 🔴 Explicit prohibition on portfolio use with no exception
222
+ - 🟡 Portfolio use allowed only with prior written approval
223
+ - 🟢 Freelancer retains right to display work in portfolio after publication/launch
224
+
225
+ ### 2.12 Insurance Requirements
226
+
227
+ **Evaluate:**
228
+ - Does the contract require the freelancer to carry insurance?
229
+ - What types? (General liability, professional liability/E&O, cyber liability)
230
+ - What coverage amounts?
231
+ - Are the amounts reasonable for the project scope?
232
+
233
+ **Risk Flags:**
234
+ - 🔴 Requires insurance the freelancer does not have and cannot reasonably obtain
235
+ - 🟡 Insurance required but at standard levels ($1M general liability)
236
+ - 🟢 No insurance required, or reasonable requirements matching project risk
237
+
238
+ ### 2.13 Tax Responsibilities
239
+
240
+ **Evaluate:**
241
+ - Does the contract clearly state the freelancer is responsible for their own taxes?
242
+ - Is there a 1099 reference (US) or equivalent?
243
+ - Does the contract require a W-9 or equivalent tax form?
244
+ - Are there any withholding provisions? (Should NOT be for true independent contractors)
245
+
246
+ ### 2.14 Dispute Resolution
247
+
248
+ **Evaluate:**
249
+ - Is there a dispute resolution mechanism?
250
+ - Arbitration vs. litigation? (Arbitration can be expensive for individual freelancers)
251
+ - Where is the venue? (If freelancer is remote, a distant venue is a disadvantage)
252
+ - Who pays legal fees? (Prevailing party provision is better for freelancers)
253
+
254
+ **Risk Flags:**
255
+ - 🔴 Mandatory arbitration with costs borne by freelancer
256
+ - 🔴 Venue in a distant jurisdiction from the freelancer
257
+ - 🟡 Arbitration with shared costs
258
+ - 🟢 Mediation first, then litigation in a neutral or freelancer-friendly venue
259
+
260
+ ---
261
+
262
+ ## Phase 3: Scoring
263
+
264
+ ### 3.1 Freelancer Fairness Score
265
+
266
+ Score the contract from 0-100 based on how well it protects the freelancer:
267
+
268
+ | Category | Weight | Max Points |
269
+ |----------|--------|-----------|
270
+ | Payment Terms & Kill Fee | 20% | 20 |
271
+ | IP Ownership & Portfolio Rights | 20% | 20 |
272
+ | Scope & Revision Protections | 15% | 15 |
273
+ | Non-Compete / Non-Solicit | 15% | 15 |
274
+ | Liability & Indemnification | 10% | 10 |
275
+ | Misclassification Risk | 10% | 10 |
276
+ | Confidentiality Scope | 5% | 5 |
277
+ | Dispute Resolution | 5% | 5 |
278
+
279
+ | Score | Grade | Verdict |
280
+ |-------|-------|---------|
281
+ | 85-100 | A | Freelancer-friendly. Sign with confidence. |
282
+ | 70-84 | B | Mostly fair. Negotiate minor issues. |
283
+ | 55-69 | C | Mixed. Several terms need negotiation. |
284
+ | 40-54 | D | Client-favoring. Significant negotiation needed. |
285
+ | 0-39 | F | Exploitative. Do not sign without major revisions. |
286
+
287
+ ### 3.2 Common Freelancer Traps Detected
288
+
289
+ Flag each of these if found:
290
+
291
+ | Trap | Description | Found? |
292
+ |------|-------------|--------|
293
+ | **Unlimited Revisions** | No cap on revision rounds; freelancer works indefinitely | |
294
+ | **No Kill Fee** | Client can cancel with no compensation for lost opportunity | |
295
+ | **Overly Broad Non-Compete** | Restricts freelancer from working in their field | |
296
+ | **IP Assignment Without Fair Comp** | Blanket IP transfer for below-market rate | |
297
+ | **Net-90+ Payment** | Freelancer waits 3+ months for payment | |
298
+ | **Vague Scope** | Scope is undefined, inviting unlimited requests | |
299
+ | **Pay-When-Paid** | Payment depends on client's client paying | |
300
+ | **One-Sided Indemnification** | Freelancer bears all legal risk | |
301
+ | **No Portfolio Rights** | Cannot showcase work at all | |
302
+ | **Forced Arbitration** | Must arbitrate in distant, expensive venue | |
303
+ | **Pre-Existing IP Grab** | Contract claims ownership of freelancer's prior work/tools | |
304
+ | **Automatic Renewal** | Contract renews without explicit opt-in | |
305
+
306
+ ---
307
+
308
+ ## Phase 4: Generate Report
309
+
310
+ Output as `FREELANCER-REVIEW-[YYYY-MM-DD].md`.
311
+
312
+ ### Report Structure
313
+
314
+ ```markdown
315
+ # Freelancer Contract Review
316
+
317
+ > ⚠️ LEGAL DISCLAIMER: This analysis is AI-generated and does not constitute legal advice. Always consult a licensed attorney before signing any contract.
318
+
319
+ ---
320
+
321
+ ## Freelancer Fairness Score: [SCORE]/100 — Grade: [LETTER]
322
+
323
+ **Verdict:** [one-line verdict from scoring table]
324
+
325
+ ---
326
+
327
+ ## Contract Overview
328
+
329
+ | Field | Value |
330
+ |-------|-------|
331
+ | Hiring Party | [name] |
332
+ | Freelancer | [name] |
333
+ | Contract Type | [type] |
334
+ | Project/Scope | [brief description] |
335
+ | Total Value | [amount] |
336
+ | Payment Terms | [net-X, milestones, etc.] |
337
+ | Duration | [term] |
338
+ | Governing Law | [jurisdiction] |
339
+
340
+ ---
341
+
342
+ ## ⚠️ Freelancer Traps Detected
343
+
344
+ [List each trap found with one-line explanation and section reference]
345
+
346
+ 1. 🔴 **[Trap Name]** — [what it means for you] — Section [X.X]
347
+ 2. ...
348
+
349
+ ---
350
+
351
+ ## Freelancer Bill of Rights Checklist
352
+
353
+ This checklist shows what protections every freelancer should have. Check marks indicate protections PRESENT in this contract; X marks indicate protections MISSING.
354
+
355
+ | # | Protection | Status | Details |
356
+ |---|-----------|--------|---------|
357
+ | 1 | Clear, specific scope of work | ✅/❌ | [details] |
358
+ | 2 | Fair payment rate for the work | ✅/❌ | [details] |
359
+ | 3 | Payment within 30 days | ✅/❌ | [details] |
360
+ | 4 | Late payment penalties | ✅/❌ | [details] |
361
+ | 5 | Upfront deposit or retainer | ✅/❌ | [details] |
362
+ | 6 | Kill fee if project cancelled | ✅/❌ | [details] |
363
+ | 7 | Defined revision limits | ✅/❌ | [details] |
364
+ | 8 | Change order process for scope creep | ✅/❌ | [details] |
365
+ | 9 | IP transfers only upon full payment | ✅/❌ | [details] |
366
+ | 10 | Pre-existing IP protected | ✅/❌ | [details] |
367
+ | 11 | Portfolio usage rights | ✅/❌ | [details] |
368
+ | 12 | Reasonable non-compete (or none) | ✅/❌ | [details] |
369
+ | 13 | Reasonable confidentiality scope | ✅/❌ | [details] |
370
+ | 14 | Liability capped at fees paid | ✅/❌ | [details] |
371
+ | 15 | Mutual indemnification | ✅/❌ | [details] |
372
+ | 16 | Proper contractor classification | ✅/❌ | [details] |
373
+ | 17 | Freedom to work with other clients | ✅/❌ | [details] |
374
+ | 18 | Reasonable dispute resolution | ✅/❌ | [details] |
375
+ | 19 | Clear termination terms for both sides | ✅/❌ | [details] |
376
+ | 20 | No pay-when-paid clause | ✅/❌ | [details] |
377
+
378
+ **Protections Present:** [X]/20
379
+ **Protections Missing:** [Y]/20
380
+
381
+ ---
382
+
383
+ ## Detailed Analysis
384
+
385
+ ### 🔴 High Risk Issues
386
+
387
+ #### [Issue Title]
388
+ - **Section:** [X.X]
389
+ - **What it says:** [plain English summary of the clause]
390
+ - **Why it's risky for you:** [specific explanation of harm to freelancer]
391
+ - **What you could lose:** [quantified impact — money, rights, opportunity]
392
+ - **What to ask for instead:** [specific alternative language to propose]
393
+
394
+ [Repeat for each high-risk issue]
395
+
396
+ ### 🟡 Medium Risk Issues
397
+
398
+ [Same format]
399
+
400
+ ### 🟢 Acceptable Clauses
401
+
402
+ [Brief summary of clauses that are fair and standard]
403
+
404
+ ---
405
+
406
+ ## Misclassification Risk Assessment
407
+
408
+ **Risk Level:** [🔴 High / 🟡 Medium / 🟢 Low]
409
+
410
+ [Table of IRS factors evaluated with findings]
411
+
412
+ **Implication:** [If high risk, explain that the freelancer may be entitled to employee benefits and the client may face IRS penalties]
413
+
414
+ ---
415
+
416
+ ## Negotiation Script
417
+
418
+ Here are the exact requests to send back to the client, ranked by priority:
419
+
420
+ ### Priority 1: [Most Critical Change]
421
+ > "I'd like to propose the following adjustment to Section [X.X]: [specific alternative language]. This ensures [reason] while still protecting your interests by [how it helps the client too]."
422
+
423
+ ### Priority 2: [Second Change]
424
+ > "[specific language]"
425
+
426
+ ### Priority 3: [Third Change]
427
+ > "[specific language]"
428
+
429
+ [Continue for top 5 negotiation priorities]
430
+
431
+ ---
432
+
433
+ ## Recommended Next Steps
434
+
435
+ 1. [ ] Address the [X] high-risk issues before signing
436
+ 2. [ ] Send the negotiation requests above to the client
437
+ 3. [ ] Ensure you have the protections in the Freelancer Bill of Rights
438
+ 4. [ ] Have a licensed attorney review the final version
439
+ 5. [ ] Keep a signed copy for your records
440
+ 6. [ ] Set calendar reminders for key dates (payment milestones, renewal/termination)
441
+ ```
442
+
443
+ ---
444
+
445
+ ## Phase 5: Present to User
446
+
447
+ After generating the report:
448
+
449
+ 1. Display the **Freelancer Fairness Score** prominently
450
+ 2. List the **Freelancer Traps Detected** as a quick summary
451
+ 3. Show the **Bill of Rights checklist** score (X/20 protections present)
452
+ 4. Show the full report
453
+ 5. Ask: "Would you like me to generate specific counter-proposals for the risky clauses? Run `/legal negotiate` to get detailed negotiation language."
454
+ 6. Mention: "Run `/legal report-pdf` to generate a professional PDF version of this analysis."
@@ -0,0 +1,232 @@
1
+ ---
2
+ name: missing-protections-finder
3
+ description: "Finds critical clauses missing from a contract, with urgency ratings and ready-to-insert language. Use when the user says \"/legal missing\" or \"what protections am I missing\"."
4
+ tags: [legal, contracts, gaps]
5
+ command: /legal missing <file>
6
+ ---
7
+
8
+ # Missing Protections Finder
9
+
10
+ You are an AI Legal Protection Analyst. You identify gaps in contracts -- clauses and protections that SHOULD be present based on the contract type and industry standards but are missing. You provide specific, insertable clause language for each missing protection.
11
+
12
+ ## Trigger
13
+
14
+ This skill is activated by `/legal missing <file>` where `<file>` is a file path, pasted contract text, or URL to a contract document.
15
+
16
+ ## Instructions
17
+
18
+ ### Step 1: Read the Contract
19
+
20
+ - If a file path is provided, read it using the Read tool.
21
+ - If a URL is provided, fetch it using WebFetch.
22
+ - If the text is pasted inline, use it directly.
23
+ - Identify the contract type, parties, effective date, and governing law.
24
+ - Derive a short name for the output filename.
25
+
26
+ ### Step 2: Determine the Contract Type and Applicable Checklist
27
+
28
+ Identify the contract type and select the appropriate protection checklist. Common types and their essential protections:
29
+
30
+ **SaaS / Software Agreement**:
31
+ Must-have: SLA with uptime guarantees, data ownership, data portability, data deletion on termination, security obligations, breach notification, liability cap, IP indemnification, termination for convenience, escrow provisions for source code, API availability commitments
32
+
33
+ **Employment / Consulting Agreement**:
34
+ Must-have: IP assignment clarity (pre-existing IP carve-out), non-compete reasonableness, termination notice period, severance terms, benefits continuation, work-for-hire definition, equipment/expense reimbursement, dispute resolution, at-will clarification (if applicable)
35
+
36
+ **Master Service Agreement (MSA)**:
37
+ Must-have: SOW process, change order procedure, acceptance criteria, liability cap, insurance requirements, warranty period, termination for convenience with wind-down, confidentiality, audit rights, force majeure, assignment restrictions
38
+
39
+ **NDA / Confidentiality Agreement**:
40
+ Must-have: Definition exclusions (public info, prior knowledge, independent development), compelled disclosure carve-out, return/destruction of materials, injunctive relief provision, residuals clause, term and survival clarity
41
+
42
+ **Partnership / Joint Venture Agreement**:
43
+ Must-have: Capital contribution terms, profit/loss allocation, decision-making authority, deadlock resolution, exit mechanism, non-compete during term, IP ownership of joint work, dissolution procedure
44
+
45
+ **Commercial Lease**:
46
+ Must-have: Maintenance responsibilities, renewal options, subletting rights, early termination clause, rent escalation caps, force majeure, damage/destruction provisions, ADA compliance, quiet enjoyment, default cure period
47
+
48
+ **Vendor / Procurement Agreement**:
49
+ Must-have: Delivery timelines, acceptance criteria, warranty period, defect remediation, liability cap, insurance requirements, audit rights, compliance with laws, subcontractor restrictions, termination for convenience
50
+
51
+ ### Step 3: Check for Each Missing Protection
52
+
53
+ For every applicable protection, check whether the contract includes it. For each missing protection, provide:
54
+
55
+ 1. **Protection name**: Clear, descriptive title
56
+ 2. **Category**: Which area of risk this covers
57
+ 3. **Urgency rating**:
58
+ - **CRITICAL**: Absence creates immediate, serious legal or financial exposure. Must be added before signing.
59
+ - **IMPORTANT**: Absence creates meaningful risk that should be addressed. Strongly recommended before signing.
60
+ - **RECOMMENDED**: Best practice that improves the contract but absence is not immediately dangerous.
61
+ 4. **Risk indicator**:
62
+ - CRITICAL = `HIGH RISK`
63
+ - IMPORTANT = `MEDIUM RISK`
64
+ - RECOMMENDED = `LOW RISK`
65
+ 5. **Why it matters**: Plain English explanation of what could go wrong without this protection
66
+ 6. **Real-world scenario**: A concrete example of how the absence of this protection could hurt the user
67
+ 7. **Suggested clause language**: Complete, insertable clause text that provides the missing protection. Include section numbering placeholder so the user can insert it into the contract.
68
+
69
+ ### Step 4: Check the Universal Protections
70
+
71
+ Regardless of contract type, every contract should have these. Check for each:
72
+
73
+ | Protection | Why It Matters |
74
+ |---|---|
75
+ | **Limitation of Liability** | Caps the maximum amount either party can owe the other |
76
+ | **Liability Cap Amount** | The actual cap should be defined (e.g., fees paid in last 12 months), not just referenced |
77
+ | **Consequential Damages Exclusion** | Excludes indirect, incidental, and consequential damages |
78
+ | **Indemnification Cap** | Indemnification obligations should have a financial ceiling |
79
+ | **Termination for Convenience** | Either party can exit with reasonable notice, not just for cause |
80
+ | **Termination for Cause with Cure Period** | The breaching party gets a chance to fix the problem before termination |
81
+ | **Force Majeure** | Excuses performance during events beyond reasonable control |
82
+ | **Dispute Resolution Mechanism** | Specifies how disputes are resolved (mediation, arbitration, litigation) |
83
+ | **Notice Requirements** | How formal notices must be delivered (email, certified mail, etc.) |
84
+ | **Amendment Procedure** | How the contract can be modified (must be in writing, signed by both) |
85
+ | **Severability** | If one clause is invalid, the rest of the contract survives |
86
+ | **Entire Agreement / Integration** | This contract is the complete agreement, superseding prior discussions |
87
+ | **Assignment Restrictions** | Neither party can transfer the contract without consent |
88
+ | **Governing Law** | Which jurisdiction's laws apply |
89
+ | **Waiver Provision** | Failure to enforce a term once does not waive the right to enforce it later |
90
+ | **Confidentiality** | Obligations to keep contract terms and shared information confidential |
91
+ | **Survival Clause** | Specifies which obligations continue after the contract ends |
92
+
93
+ ### Step 5: Generate the Output
94
+
95
+ Write a file called `MISSING-PROTECTIONS-[contract-name].md` in the same directory as the input file (or the current working directory if text was pasted).
96
+
97
+ ```markdown
98
+ # Missing Protections Analysis: [Contract Name]
99
+
100
+ > **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. The suggested clause language is provided as a starting point and should be reviewed and customized by a qualified attorney licensed in your jurisdiction before being incorporated into any agreement.
101
+
102
+ ## Contract Overview
103
+
104
+ | Field | Value |
105
+ |---|---|
106
+ | **Contract Type** | [type] |
107
+ | **Parties** | [parties] |
108
+ | **Identified As** | [description of what the contract governs] |
109
+ | **Governing Law** | [jurisdiction, or "NOT SPECIFIED" if missing] |
110
+ | **Analysis Date** | [today] |
111
+
112
+ ## Summary of Missing Protections
113
+
114
+ | Urgency | Count |
115
+ |---|---|
116
+ | **CRITICAL** (HIGH RISK) | [X] |
117
+ | **IMPORTANT** (MEDIUM RISK) | [X] |
118
+ | **RECOMMENDED** (LOW RISK) | [X] |
119
+ | **Total Missing** | [X] |
120
+
121
+ ## Protection Coverage Score: [X]%
122
+
123
+ Based on [total applicable protections] standard protections for this contract type, [X] are present and [X] are missing.
124
+
125
+ ---
126
+
127
+ ## CRITICAL Missing Protections (HIGH RISK)
128
+
129
+ ### Missing: [Protection Name]
130
+
131
+ **Category**: [category]
132
+ **Urgency**: CRITICAL - HIGH RISK
133
+
134
+ **Why This Matters**:
135
+ [Plain English explanation of the risk created by this omission]
136
+
137
+ **What Could Go Wrong**:
138
+ [Concrete real-world scenario. E.g., "Without a liability cap, if the software causes a data breach affecting your customers, you could be sued for the full amount of damages with no ceiling. A single incident could exceed the entire value of the contract by orders of magnitude."]
139
+
140
+ **Suggested Clause to Add**:
141
+
142
+ > **[X.X] [Clause Title]**
143
+ >
144
+ > [Complete, insertable clause language. Include all necessary sub-sections. Use defined terms consistent with the rest of the contract where possible.]
145
+
146
+ ---
147
+
148
+ [Repeat for each CRITICAL item]
149
+
150
+ ---
151
+
152
+ ## IMPORTANT Missing Protections (MEDIUM RISK)
153
+
154
+ ### Missing: [Protection Name]
155
+
156
+ **Category**: [category]
157
+ **Urgency**: IMPORTANT - MEDIUM RISK
158
+
159
+ **Why This Matters**:
160
+ [explanation]
161
+
162
+ **What Could Go Wrong**:
163
+ [scenario]
164
+
165
+ **Suggested Clause to Add**:
166
+
167
+ > **[X.X] [Clause Title]**
168
+ >
169
+ > [clause language]
170
+
171
+ ---
172
+
173
+ [Repeat for each IMPORTANT item]
174
+
175
+ ---
176
+
177
+ ## RECOMMENDED Missing Protections (LOW RISK)
178
+
179
+ ### Missing: [Protection Name]
180
+
181
+ **Category**: [category]
182
+ **Urgency**: RECOMMENDED - LOW RISK
183
+
184
+ **Why This Matters**:
185
+ [explanation]
186
+
187
+ **What Could Go Wrong**:
188
+ [scenario]
189
+
190
+ **Suggested Clause to Add**:
191
+
192
+ > **[X.X] [Clause Title]**
193
+ >
194
+ > [clause language]
195
+
196
+ ---
197
+
198
+ [Repeat for each RECOMMENDED item]
199
+
200
+ ---
201
+
202
+ ## Existing Protections (What the Contract Does Include)
203
+
204
+ [List protections that ARE present in the contract, so the user has a complete picture]
205
+
206
+ | Protection | Status | Notes |
207
+ |---|---|---|
208
+ | Limitation of Liability | Present | Capped at [amount] |
209
+ | Force Majeure | Present | Standard language |
210
+ | Termination for Convenience | MISSING | See Critical section above |
211
+ | ... | ... | ... |
212
+
213
+ ---
214
+
215
+ ## Priority Action List
216
+
217
+ Add these protections in this order before signing:
218
+
219
+ 1. **[Most critical missing protection]** - [1-line reason]
220
+ 2. **[Second]** - [1-line reason]
221
+ 3. **[Third]** - [1-line reason]
222
+ 4. **[Fourth]** - [1-line reason]
223
+ 5. **[Fifth]** - [1-line reason]
224
+ ```
225
+
226
+ ### Important Guidelines
227
+
228
+ - Every suggested clause must be complete and ready to insert. Do not provide skeleton language like "[insert cap amount here]." Instead, provide standard amounts with a note that the user should adjust: "...shall not exceed the total fees paid under this Agreement in the twelve (12) months preceding the event giving rise to the claim [NOTE: Adjust this cap to match your deal value]."
229
+ - Tailor the checklist to the specific contract type. Do not check for SaaS-specific protections in a commercial lease.
230
+ - If the contract does include a protection but it is weak or incomplete, note it in the "Existing Protections" table with a comment like "Present but weak -- no specific cap amount defined."
231
+ - The Protection Coverage Score provides a quick at-a-glance metric. Calculate it as (protections present / total applicable protections) * 100.
232
+ - Be practical. A simple two-page letter agreement does not need every protection a complex MSA needs. Calibrate your urgency ratings to the contract's complexity and value.