tribunal-kit 9.2.1 → 9.2.4

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 (1164) hide show
  1. package/.agent/.tribunal/session.jsonl +15 -0
  2. package/.agent/ARCHITECTURE.md +4 -4
  3. package/.agent/agents/agent-shield-auditor.md +18 -0
  4. package/.agent/agents/harness-manager.md +49 -0
  5. package/.agent/agents/human-gate-negotiator.md +22 -0
  6. package/.agent/agents/kernel-scheduler.md +56 -0
  7. package/.agent/agents/memory-archivist.md +37 -0
  8. package/.agent/agents/orchestrator.md +7 -0
  9. package/.agent/agents/project-planner.md +5 -0
  10. package/.agent/agents/security-auditor.md +5 -0
  11. package/.agent/config/claude.json +1 -1
  12. package/.agent/config/plugin.json +1 -1
  13. package/.agent/history/architecture-explorer.html +352 -0
  14. package/.agent/history/architecture-graph.yaml +181 -1
  15. package/.agent/history/graph-cache.json +323 -13
  16. package/.agent/history/integrity_manifest.json +3937 -299
  17. package/.agent/history/memory/.memory.idx +50 -50
  18. package/.agent/history/snapshots/.opencode__plugins__tribunal.js.json +12 -0
  19. package/.agent/history/snapshots/.pi__extensions__tribunal.ts.json +12 -0
  20. package/.agent/history/snapshots/bin__adapter-install.js.json +1 -1
  21. package/.agent/history/snapshots/bin__mcp-server.js.json +4 -2
  22. package/.agent/history/snapshots/bin__proxy-server.js.json +1 -1
  23. package/.agent/history/snapshots/bin__spawn-agent.js.json +1 -1
  24. package/.agent/history/snapshots/bin__wrapper.js.json +1 -1
  25. package/.agent/history/snapshots/eslint.config.js.json +1 -1
  26. package/.agent/history/snapshots/hooks__session-start.js.json +11 -0
  27. package/.agent/history/snapshots/scripts__apply-version.js.json +11 -0
  28. package/.agent/history/snapshots/scripts__audit_skill_sdo.js.json +11 -0
  29. package/.agent/history/snapshots/scripts__clean-pycache.js.json +11 -0
  30. package/.agent/history/snapshots/scripts__context_compiler.js.json +17 -0
  31. package/.agent/history/snapshots/scripts__modernize_skills.js.json +11 -0
  32. package/.agent/history/snapshots/scripts__package-cores.js.json +12 -0
  33. package/.agent/history/snapshots/scripts__skill_enhancement_engine.js.json +11 -0
  34. package/.agent/history/snapshots/scripts__sync-skills.js.json +11 -0
  35. package/.agent/history/snapshots/scripts__telemetry_gc.js.json +11 -0
  36. package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -1
  37. package/.agent/history/snapshots/test__integration__browser_cli.test.js.json +12 -0
  38. package/.agent/history/snapshots/test__integration__sync_status.test.js.json +1 -1
  39. package/.agent/history/snapshots/test__unit__ast_context_loader.test.js.json +12 -0
  40. package/.agent/history/snapshots/test__unit__browser_case_bridge.test.js.json +11 -0
  41. package/.agent/history/snapshots/test__unit__browser_discovery.test.js.json +10 -0
  42. package/.agent/history/snapshots/test__unit__browser_idpi.test.js.json +10 -0
  43. package/.agent/history/snapshots/test__unit__browser_sentinel.test.js.json +11 -0
  44. package/.agent/history/snapshots/test__unit__browser_synapse.test.js.json +10 -0
  45. package/.agent/history/snapshots/test__unit__browser_trimmer.test.js.json +10 -0
  46. package/.agent/history/snapshots/test__unit__context_compiler.test.js.json +26 -0
  47. package/.agent/history/snapshots/test__unit__init.test.js.json +1 -1
  48. package/.agent/history/snapshots/test__unit__learn.test.js.json +1 -1
  49. package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +1 -1
  50. package/.agent/history/snapshots/test__unit__platform_download_audit.test.js.json +11 -0
  51. package/.agent/history/snapshots/test__unit__prompt_compiler.test.js.json +10 -0
  52. package/.agent/history/snapshots/test__unit__sdd_integration.test.js.json +12 -0
  53. package/.agent/history/snapshots/test__unit__stress.test.js.json +1 -1
  54. package/.agent/history/snapshots/test__unit__token_budget_broker.test.js.json +10 -0
  55. package/.agent/history/snapshots/test__unit__tui.test.js.json +10 -0
  56. package/.agent/routing_index.json +1 -1
  57. package/.agent/rules/GEMINI.md +1 -1
  58. package/.agent/rules/kernel.md +86 -0
  59. package/.agent/scripts/_utils.js +79 -1
  60. package/.agent/scripts/checklist.js +1 -1
  61. package/.agent/scripts/context_broker.js +0 -8
  62. package/.agent/scripts/context_compiler.js +1106 -3
  63. package/.agent/scripts/guardrail_engine.js +48 -11
  64. package/.agent/scripts/harness_manager.js +60 -0
  65. package/.agent/scripts/lint_runner.js +1 -1
  66. package/.agent/scripts/mcp_server.js +181 -0
  67. package/.agent/scripts/memory_archivist.js +97 -0
  68. package/.agent/scripts/memory_consolidator.js +37 -0
  69. package/.agent/scripts/memory_engine.js +526 -325
  70. package/.agent/scripts/pipeline_engine.js +45 -107
  71. package/.agent/scripts/session_logger.js +115 -0
  72. package/.agent/scripts/session_manager.js +10 -0
  73. package/.agent/scripts/swarm_dispatcher.js +197 -49
  74. package/.agent/scripts/syscall_registry.js +105 -0
  75. package/.agent/scripts/test_runner.js +1 -1
  76. package/.agent/scripts/verify_all.js +2 -2
  77. package/.agent/skill_topic_map.json +98 -22
  78. package/.agent/skills/12-principles-of-animation/SKILL.md +1 -76
  79. package/.agent/skills/60fps-animation/SKILL.md +1 -76
  80. package/.agent/skills/accessible-animation/SKILL.md +1 -76
  81. package/.agent/skills/adapt/SKILL.md +1 -76
  82. package/.agent/skills/advanced-rag-pipelines/SKILL.md +1 -76
  83. package/.agent/skills/agent-organizer/SKILL.md +1 -76
  84. package/.agent/skills/agent-syscall-guidelines/SKILL.md +25 -0
  85. package/.agent/skills/agentic-patterns/SKILL.md +1 -76
  86. package/.agent/skills/agentic-workflows-2026/SKILL.md +6 -73
  87. package/.agent/skills/agentshield-security/SKILL.md +26 -0
  88. package/.agent/skills/ai-app-hardening/SKILL.md +1 -76
  89. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +1 -76
  90. package/.agent/skills/animation-on-scroll/SKILL.md +1 -76
  91. package/.agent/skills/animation-systems/SKILL.md +1 -76
  92. package/.agent/skills/antfu-conventions/SKILL.md +0 -75
  93. package/.agent/skills/api-patterns/SKILL.md +1 -76
  94. package/.agent/skills/api-security-auditor/SKILL.md +1 -76
  95. package/.agent/skills/app-builder/SKILL.md +1 -76
  96. package/.agent/skills/appflow-wireframe/SKILL.md +1 -76
  97. package/.agent/skills/apple-design/SKILL.md +1 -76
  98. package/.agent/skills/architecture/SKILL.md +1 -76
  99. package/.agent/skills/audit-and-fix/SKILL.md +41 -77
  100. package/.agent/skills/authentication-best-practices/SKILL.md +1 -76
  101. package/.agent/skills/backend-security-expert/SKILL.md +1 -76
  102. package/.agent/skills/baseline-ui/SKILL.md +1 -76
  103. package/.agent/skills/bash-linux/SKILL.md +1 -76
  104. package/.agent/skills/behavioral-modes/SKILL.md +1 -76
  105. package/.agent/skills/better-colors/SKILL.md +1 -76
  106. package/.agent/skills/better-typography/SKILL.md +1 -76
  107. package/.agent/skills/better-ui/SKILL.md +1 -76
  108. package/.agent/skills/bolder/SKILL.md +1 -76
  109. package/.agent/skills/brainstorming/SKILL.md +1 -76
  110. package/.agent/skills/browser-audit/SKILL.md +1 -76
  111. package/.agent/skills/browser-native-ai/SKILL.md +1 -76
  112. package/.agent/skills/build-primitive/SKILL.md +1 -76
  113. package/.agent/skills/building-native-ui/SKILL.md +1 -76
  114. package/.agent/skills/cicd-pro/SKILL.md +1 -76
  115. package/.agent/skills/clarify/SKILL.md +1 -76
  116. package/.agent/skills/clean-code/SKILL.md +1 -76
  117. package/.agent/skills/cloud-architect/SKILL.md +1 -76
  118. package/.agent/skills/cobejs/SKILL.md +1 -76
  119. package/.agent/skills/code-review-checklist/SKILL.md +1 -76
  120. package/.agent/skills/codebase-design/SKILL.md +1 -76
  121. package/.agent/skills/colorize/SKILL.md +1 -76
  122. package/.agent/skills/compact-landing/SKILL.md +1 -76
  123. package/.agent/skills/company-logos/SKILL.md +1 -76
  124. package/.agent/skills/config-validator/SKILL.md +1 -76
  125. package/.agent/skills/containerization-pro/SKILL.md +1 -76
  126. package/.agent/skills/context-engineering-pro/SKILL.md +5 -73
  127. package/.agent/skills/create-design-md/SKILL.md +1 -76
  128. package/.agent/skills/critique/SKILL.md +1 -76
  129. package/.agent/skills/csharp-developer/SKILL.md +1 -76
  130. package/.agent/skills/data-validation-schemas/SKILL.md +1 -76
  131. package/.agent/skills/database-design/SKILL.md +1 -76
  132. package/.agent/skills/delight/SKILL.md +1 -76
  133. package/.agent/skills/deployment-procedures/SKILL.md +1 -76
  134. package/.agent/skills/design-lab/SKILL.md +1 -76
  135. package/.agent/skills/devops-engineer/SKILL.md +1 -76
  136. package/.agent/skills/devops-incident-responder/SKILL.md +1 -76
  137. package/.agent/skills/diagnosing-bugs/SKILL.md +1 -76
  138. package/.agent/skills/distill/SKILL.md +1 -76
  139. package/.agent/skills/documentation-templates/SKILL.md +1 -76
  140. package/.agent/skills/domain-modeling/SKILL.md +1 -76
  141. package/.agent/skills/duckdb-analytical-sql/SKILL.md +1 -76
  142. package/.agent/skills/edge-ai-mobile/SKILL.md +1 -76
  143. package/.agent/skills/edge-computing/SKILL.md +1 -76
  144. package/.agent/skills/emil-design-eng/SKILL.md +1 -76
  145. package/.agent/skills/error-resilience/SKILL.md +1 -76
  146. package/.agent/skills/expo-router-v4/SKILL.md +1 -76
  147. package/.agent/skills/extract-design-system/SKILL.md +1 -76
  148. package/.agent/skills/fabel-protocol/SKILL.md +3 -73
  149. package/.agent/skills/fixing-accessibility/SKILL.md +1 -76
  150. package/.agent/skills/fixing-metadata/SKILL.md +1 -76
  151. package/.agent/skills/fixing-motion-performance/SKILL.md +1 -76
  152. package/.agent/skills/framer-motion-expert/SKILL.md +1 -76
  153. package/.agent/skills/frontend-design/SKILL.md +1 -76
  154. package/.agent/skills/frontend-security-expert/SKILL.md +1 -76
  155. package/.agent/skills/game-design-expert/SKILL.md +1 -76
  156. package/.agent/skills/game-engineering-expert/SKILL.md +1 -76
  157. package/.agent/skills/generative-ui-expert/SKILL.md +1 -76
  158. package/.agent/skills/geo-fundamentals/SKILL.md +1 -76
  159. package/.agent/skills/git-pro/SKILL.md +1 -76
  160. package/.agent/skills/github-operations/SKILL.md +1 -76
  161. package/.agent/skills/gpt-taste/SKILL.md +1 -76
  162. package/.agent/skills/graph-engineering/SKILL.md +28 -0
  163. package/.agent/skills/gsap-core/SKILL.md +1 -76
  164. package/.agent/skills/gsap-frameworks/SKILL.md +1 -76
  165. package/.agent/skills/gsap-performance/SKILL.md +1 -76
  166. package/.agent/skills/gsap-plugins/SKILL.md +1 -76
  167. package/.agent/skills/gsap-react/SKILL.md +1 -76
  168. package/.agent/skills/gsap-scrolltrigger/SKILL.md +1 -76
  169. package/.agent/skills/gsap-timeline/SKILL.md +1 -76
  170. package/.agent/skills/gsap-utils/SKILL.md +1 -76
  171. package/.agent/skills/harden/SKILL.md +1 -76
  172. package/.agent/skills/harness-protocol/SKILL.md +6 -73
  173. package/.agent/skills/hf-cli/SKILL.md +239 -0
  174. package/.agent/skills/hf-cloud-aws-context-discovery/SKILL.md +74 -0
  175. package/.agent/skills/hf-cloud-python-env-setup/SKILL.md +90 -0
  176. package/.agent/skills/hf-cloud-python-env-setup/requirements.txt +17 -0
  177. package/.agent/skills/hf-cloud-python-env-setup/scripts/check_versions.py +29 -0
  178. package/.agent/skills/hf-cloud-python-env-setup/scripts/setup_env.py +143 -0
  179. package/.agent/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +90 -0
  180. package/.agent/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +102 -0
  181. package/.agent/skills/hf-cloud-sagemaker-iam-preflight/references/minimum-permissions.json +47 -0
  182. package/.agent/skills/hf-cloud-sagemaker-iam-preflight/references/trust-policy.json +12 -0
  183. package/.agent/skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py +184 -0
  184. package/.agent/skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py +118 -0
  185. package/.agent/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +419 -0
  186. package/.agent/skills/hf-cloud-sagemaker-production-defaults/references/deployment-template.md +59 -0
  187. package/.agent/skills/hf-cloud-sagemaker-production-defaults/scripts/_common.py +148 -0
  188. package/.agent/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy.py +327 -0
  189. package/.agent/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_async.py +434 -0
  190. package/.agent/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_ic.py +506 -0
  191. package/.agent/skills/hf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py +180 -0
  192. package/.agent/skills/hf-cloud-sagemaker-production-defaults/scripts/teardown.py +246 -0
  193. package/.agent/skills/hf-cloud-serving-image-selection/SKILL.md +220 -0
  194. package/.agent/skills/hf-cloud-serving-image-selection/references/model-to-image.md +111 -0
  195. package/.agent/skills/hf-cloud-serving-image-selection/scripts/mirror_image.py +145 -0
  196. package/.agent/skills/hf-mem/SKILL.md +79 -0
  197. package/.agent/skills/huggingface-best/SKILL.md +134 -0
  198. package/.agent/skills/huggingface-community-evals/SKILL.md +207 -0
  199. package/.agent/skills/huggingface-community-evals/examples/.env.example +3 -0
  200. package/.agent/skills/huggingface-community-evals/examples/USAGE_EXAMPLES.md +101 -0
  201. package/.agent/skills/huggingface-community-evals/scripts/inspect_eval_uv.py +104 -0
  202. package/.agent/skills/huggingface-community-evals/scripts/inspect_vllm_uv.py +306 -0
  203. package/.agent/skills/huggingface-community-evals/scripts/lighteval_vllm_uv.py +297 -0
  204. package/.agent/skills/huggingface-datasets/SKILL.md +107 -0
  205. package/.agent/skills/huggingface-gradio/SKILL.md +298 -0
  206. package/.agent/skills/huggingface-gradio/examples.md +613 -0
  207. package/.agent/skills/huggingface-llm-trainer/SKILL.md +738 -0
  208. package/.agent/skills/huggingface-llm-trainer/references/gguf_conversion.md +296 -0
  209. package/.agent/skills/huggingface-llm-trainer/references/hardware_guide.md +283 -0
  210. package/.agent/skills/huggingface-llm-trainer/references/hub_saving.md +364 -0
  211. package/.agent/skills/huggingface-llm-trainer/references/local_training_macos.md +231 -0
  212. package/.agent/skills/huggingface-llm-trainer/references/reliability_principles.md +371 -0
  213. package/.agent/skills/huggingface-llm-trainer/references/trackio_guide.md +191 -0
  214. package/.agent/skills/huggingface-llm-trainer/references/training_methods.md +150 -0
  215. package/.agent/skills/huggingface-llm-trainer/references/training_patterns.md +203 -0
  216. package/.agent/skills/huggingface-llm-trainer/references/troubleshooting.md +282 -0
  217. package/.agent/skills/huggingface-llm-trainer/references/unsloth.md +313 -0
  218. package/.agent/skills/huggingface-llm-trainer/scripts/convert_to_gguf.py +424 -0
  219. package/.agent/skills/huggingface-llm-trainer/scripts/dataset_inspector.py +417 -0
  220. package/.agent/skills/huggingface-llm-trainer/scripts/estimate_cost.py +150 -0
  221. package/.agent/skills/huggingface-llm-trainer/scripts/hf_benchmarks.py +659 -0
  222. package/.agent/skills/huggingface-llm-trainer/scripts/train_dpo_example.py +106 -0
  223. package/.agent/skills/huggingface-llm-trainer/scripts/train_grpo_example.py +89 -0
  224. package/.agent/skills/huggingface-llm-trainer/scripts/train_sft_example.py +122 -0
  225. package/.agent/skills/huggingface-llm-trainer/scripts/unsloth_sft_example.py +512 -0
  226. package/.agent/skills/huggingface-local-models/SKILL.md +113 -0
  227. package/.agent/skills/huggingface-local-models/references/hardware.md +38 -0
  228. package/.agent/skills/huggingface-local-models/references/hub-discovery.md +178 -0
  229. package/.agent/skills/huggingface-local-models/references/quantization.md +256 -0
  230. package/.agent/skills/huggingface-lora-space-builder/SKILL.md +394 -0
  231. package/.agent/skills/huggingface-lora-space-builder/references/adapting-to-the-lora.md +113 -0
  232. package/.agent/skills/huggingface-lora-space-builder/references/base-models/krea-2.md +63 -0
  233. package/.agent/skills/huggingface-lora-space-builder/references/base-models/ltx.md +205 -0
  234. package/.agent/skills/huggingface-lora-space-builder/references/base-models/qwen-image.md +144 -0
  235. package/.agent/skills/huggingface-lora-space-builder/references/creative-mode.md +262 -0
  236. package/.agent/skills/huggingface-lora-space-builder/references/tasks.md +124 -0
  237. package/.agent/skills/huggingface-lora-space-builder/references/zerogpu-and-publishing.md +196 -0
  238. package/.agent/skills/huggingface-paper-publisher/SKILL.md +624 -0
  239. package/.agent/skills/huggingface-paper-publisher/examples/example_usage.md +326 -0
  240. package/.agent/skills/huggingface-paper-publisher/references/quick_reference.md +216 -0
  241. package/.agent/skills/huggingface-paper-publisher/scripts/paper_manager.py +606 -0
  242. package/.agent/skills/huggingface-paper-publisher/templates/arxiv.md +299 -0
  243. package/.agent/skills/huggingface-paper-publisher/templates/ml-report.md +358 -0
  244. package/.agent/skills/huggingface-paper-publisher/templates/modern.md +319 -0
  245. package/.agent/skills/huggingface-paper-publisher/templates/standard.md +201 -0
  246. package/.agent/skills/huggingface-papers/SKILL.md +239 -0
  247. package/.agent/skills/huggingface-spaces/README.md +9 -0
  248. package/.agent/skills/huggingface-spaces/SKILL.md +242 -0
  249. package/.agent/skills/huggingface-spaces/references/3d-cuda-extensions.md +109 -0
  250. package/.agent/skills/huggingface-spaces/references/3d-generation.md +98 -0
  251. package/.agent/skills/huggingface-spaces/references/3d-gsplat.md +53 -0
  252. package/.agent/skills/huggingface-spaces/references/3d-models.md +227 -0
  253. package/.agent/skills/huggingface-spaces/references/3d-outputs.md +114 -0
  254. package/.agent/skills/huggingface-spaces/references/buckets.md +89 -0
  255. package/.agent/skills/huggingface-spaces/references/debugging.md +236 -0
  256. package/.agent/skills/huggingface-spaces/references/gradio.md +200 -0
  257. package/.agent/skills/huggingface-spaces/references/grants.md +63 -0
  258. package/.agent/skills/huggingface-spaces/references/inference-providers.md +97 -0
  259. package/.agent/skills/huggingface-spaces/references/known-errors.md +232 -0
  260. package/.agent/skills/huggingface-spaces/references/requirements.md +169 -0
  261. package/.agent/skills/huggingface-spaces/references/zerogpu.md +349 -0
  262. package/.agent/skills/huggingface-tool-builder/SKILL.md +120 -0
  263. package/.agent/skills/huggingface-tool-builder/references/baseline_hf_api.py +57 -0
  264. package/.agent/skills/huggingface-tool-builder/references/baseline_hf_api.sh +40 -0
  265. package/.agent/skills/huggingface-tool-builder/references/baseline_hf_api.tsx +57 -0
  266. package/.agent/skills/huggingface-tool-builder/references/find_models_by_paper.sh +230 -0
  267. package/.agent/skills/huggingface-tool-builder/references/hf_enrich_models.sh +96 -0
  268. package/.agent/skills/huggingface-tool-builder/references/hf_model_card_frontmatter.sh +188 -0
  269. package/.agent/skills/huggingface-tool-builder/references/hf_model_papers_auth.sh +171 -0
  270. package/.agent/skills/huggingface-trackio/SKILL.md +142 -0
  271. package/.agent/skills/huggingface-trackio/references/alerts.md +196 -0
  272. package/.agent/skills/huggingface-trackio/references/logging_metrics.md +212 -0
  273. package/.agent/skills/huggingface-trackio/references/retrieving_metrics.md +251 -0
  274. package/.agent/skills/huggingface-vision-trainer/SKILL.md +593 -0
  275. package/.agent/skills/huggingface-vision-trainer/references/finetune_sam2_trainer.md +254 -0
  276. package/.agent/skills/huggingface-vision-trainer/references/hub_saving.md +618 -0
  277. package/.agent/skills/huggingface-vision-trainer/references/image_classification_training_notebook.md +279 -0
  278. package/.agent/skills/huggingface-vision-trainer/references/object_detection_training_notebook.md +700 -0
  279. package/.agent/skills/huggingface-vision-trainer/references/reliability_principles.md +310 -0
  280. package/.agent/skills/huggingface-vision-trainer/references/timm_trainer.md +91 -0
  281. package/.agent/skills/huggingface-vision-trainer/scripts/dataset_inspector.py +814 -0
  282. package/.agent/skills/huggingface-vision-trainer/scripts/estimate_cost.py +217 -0
  283. package/.agent/skills/huggingface-vision-trainer/scripts/image_classification_training.py +383 -0
  284. package/.agent/skills/huggingface-vision-trainer/scripts/object_detection_training.py +710 -0
  285. package/.agent/skills/huggingface-vision-trainer/scripts/sam_segmentation_training.py +382 -0
  286. package/.agent/skills/huggingface-zerogpu/SKILL.md +289 -0
  287. package/.agent/skills/huggingface-zerogpu/references/concurrency.md +79 -0
  288. package/.agent/skills/huggingface-zerogpu/references/cuda-and-deps.md +66 -0
  289. package/.agent/skills/huggingface-zerogpu/references/how-quota-works.md +74 -0
  290. package/.agent/skills/huggingface-zerogpu/references/how-zerogpu-works.md +50 -0
  291. package/.agent/skills/human-gate-negotiation/SKILL.md +30 -0
  292. package/.agent/skills/i18n-localization/SKILL.md +1 -76
  293. package/.agent/skills/impeccable/SKILL.md +1 -76
  294. package/.agent/skills/improve-codebase-architecture/SKILL.md +1 -76
  295. package/.agent/skills/improve-ui/SKILL.md +1 -76
  296. package/.agent/skills/intelligent-routing/SKILL.md +9 -89
  297. package/.agent/skills/knowledge-graph/SKILL.md +1 -76
  298. package/.agent/skills/landing-page/SKILL.md +1 -76
  299. package/.agent/skills/lint-and-validate/SKILL.md +1 -76
  300. package/.agent/skills/llm-engineering/SKILL.md +1 -76
  301. package/.agent/skills/local-first/SKILL.md +1 -76
  302. package/.agent/skills/local-first-architecture/SKILL.md +1 -76
  303. package/.agent/skills/lottie-animation/SKILL.md +1 -76
  304. package/.agent/skills/marquee-loop/SKILL.md +1 -76
  305. package/.agent/skills/masked-reveal/SKILL.md +1 -76
  306. package/.agent/skills/mcp-builder/SKILL.md +1 -76
  307. package/.agent/skills/micro-interaction/SKILL.md +1 -76
  308. package/.agent/skills/mobile-design/SKILL.md +1 -76
  309. package/.agent/skills/monorepo-management/SKILL.md +1 -76
  310. package/.agent/skills/morphing-icons/SKILL.md +1 -76
  311. package/.agent/skills/motion-engineering/SKILL.md +1 -76
  312. package/.agent/skills/nextjs-react-expert/SKILL.md +1 -76
  313. package/.agent/skills/nodejs-best-practices/SKILL.md +1 -76
  314. package/.agent/skills/observability/SKILL.md +1 -76
  315. package/.agent/skills/opentelemetry-observability/SKILL.md +1 -76
  316. package/.agent/skills/page-transition-animation/SKILL.md +1 -76
  317. package/.agent/skills/parallel-agents/SKILL.md +1 -76
  318. package/.agent/skills/performance-profiling/SKILL.md +1 -76
  319. package/.agent/skills/plan-writing/SKILL.md +1 -76
  320. package/.agent/skills/platform-engineer/SKILL.md +1 -76
  321. package/.agent/skills/platform-engineering-opentofu/SKILL.md +1 -76
  322. package/.agent/skills/playwright-ai-e2e/SKILL.md +1 -76
  323. package/.agent/skills/playwright-best-practices/SKILL.md +1 -76
  324. package/.agent/skills/polish/SKILL.md +1 -76
  325. package/.agent/skills/powershell-windows/SKILL.md +1 -76
  326. package/.agent/skills/pricing-page/SKILL.md +1 -76
  327. package/.agent/skills/product-aware-heuristics/SKILL.md +1 -76
  328. package/.agent/skills/progressive-blur/SKILL.md +1 -76
  329. package/.agent/skills/project-idioms/SKILL.md +1 -76
  330. package/.agent/skills/property-based-testing/SKILL.md +1 -76
  331. package/.agent/skills/python-patterns/SKILL.md +1 -76
  332. package/.agent/skills/python-pro/SKILL.md +1 -76
  333. package/.agent/skills/quieter/SKILL.md +1 -76
  334. package/.agent/skills/react-doctor/SKILL.md +1 -76
  335. package/.agent/skills/react-specialist/SKILL.md +1 -76
  336. package/.agent/skills/readme-builder/SKILL.md +1 -76
  337. package/.agent/skills/realtime-patterns/SKILL.md +1 -76
  338. package/.agent/skills/red-team-tactics/SKILL.md +1 -76
  339. package/.agent/skills/redesign-skill/SKILL.md +1 -76
  340. package/.agent/skills/review-animations/SKILL.md +1 -76
  341. package/.agent/skills/rust-pro/SKILL.md +1 -76
  342. package/.agent/skills/semantic-filesystem-navigation/SKILL.md +24 -0
  343. package/.agent/skills/seo-fundamentals/SKILL.md +1 -76
  344. package/.agent/skills/server-management/SKILL.md +1 -76
  345. package/.agent/skills/session-log-interrogation/SKILL.md +29 -0
  346. package/.agent/skills/shadcn-ui-expert/SKILL.md +1 -76
  347. package/.agent/skills/shape/SKILL.md +1 -76
  348. package/.agent/skills/skill-creator/SKILL.md +124 -90
  349. package/.agent/skills/soft-skill/SKILL.md +1 -76
  350. package/.agent/skills/sounds-on-the-web/SKILL.md +1 -76
  351. package/.agent/skills/sql-pro/SKILL.md +1 -76
  352. package/.agent/skills/subagent-driven-development/SKILL.md +32 -0
  353. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +1 -76
  354. package/.agent/skills/svg-animation/SKILL.md +1 -76
  355. package/.agent/skills/swiftui-expert/SKILL.md +1 -76
  356. package/.agent/skills/swiss-design/SKILL.md +1 -76
  357. package/.agent/skills/system-design-pro/SKILL.md +1 -76
  358. package/.agent/skills/systematic-debugging/SKILL.md +3 -73
  359. package/.agent/skills/tailwind-patterns/SKILL.md +1 -76
  360. package/.agent/skills/taste-skill/SKILL.md +1 -76
  361. package/.agent/skills/tdd-workflow/SKILL.md +1 -76
  362. package/.agent/skills/test-result-analyzer/SKILL.md +1 -76
  363. package/.agent/skills/testing-patterns/SKILL.md +1 -76
  364. package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
  365. package/.agent/skills/thinking-protocol/SKILL.md +1 -78
  366. package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
  367. package/.agent/skills/train-sentence-transformers/SKILL.md +109 -0
  368. package/.agent/skills/train-sentence-transformers/references/base_model_selection.md +79 -0
  369. package/.agent/skills/train-sentence-transformers/references/dataset_formats.md +128 -0
  370. package/.agent/skills/train-sentence-transformers/references/evaluators_cross_encoder.md +116 -0
  371. package/.agent/skills/train-sentence-transformers/references/evaluators_multi_vector_encoder.md +101 -0
  372. package/.agent/skills/train-sentence-transformers/references/evaluators_sentence_transformer.md +151 -0
  373. package/.agent/skills/train-sentence-transformers/references/evaluators_sparse_encoder.md +121 -0
  374. package/.agent/skills/train-sentence-transformers/references/hardware_guide.md +105 -0
  375. package/.agent/skills/train-sentence-transformers/references/hf_jobs_execution.md +173 -0
  376. package/.agent/skills/train-sentence-transformers/references/losses_cross_encoder.md +137 -0
  377. package/.agent/skills/train-sentence-transformers/references/losses_multi_vector_encoder.md +100 -0
  378. package/.agent/skills/train-sentence-transformers/references/losses_sentence_transformer.md +246 -0
  379. package/.agent/skills/train-sentence-transformers/references/losses_sparse_encoder.md +106 -0
  380. package/.agent/skills/train-sentence-transformers/references/model_architectures.md +178 -0
  381. package/.agent/skills/train-sentence-transformers/references/prompts_and_instructions.md +160 -0
  382. package/.agent/skills/train-sentence-transformers/references/training_args.md +270 -0
  383. package/.agent/skills/train-sentence-transformers/references/troubleshooting.md +225 -0
  384. package/.agent/skills/train-sentence-transformers/scripts/mine_hard_negatives.py +199 -0
  385. package/.agent/skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py +254 -0
  386. package/.agent/skills/train-sentence-transformers/scripts/train_cross_encoder_example.py +253 -0
  387. package/.agent/skills/train-sentence-transformers/scripts/train_cross_encoder_listwise_example.py +282 -0
  388. package/.agent/skills/train-sentence-transformers/scripts/train_multi_vector_encoder_example.py +240 -0
  389. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_distillation_example.py +303 -0
  390. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_example.py +227 -0
  391. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_make_multilingual_example.py +308 -0
  392. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_matryoshka_example.py +212 -0
  393. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_multi_dataset_example.py +258 -0
  394. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py +273 -0
  395. package/.agent/skills/train-sentence-transformers/scripts/train_sentence_transformer_with_lora_example.py +275 -0
  396. package/.agent/skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py +262 -0
  397. package/.agent/skills/train-sentence-transformers/scripts/train_sparse_encoder_example.py +237 -0
  398. package/.agent/skills/transformers-js/SKILL.md +692 -0
  399. package/.agent/skills/transformers-js/references/CACHE.md +339 -0
  400. package/.agent/skills/transformers-js/references/CONFIGURATION.md +438 -0
  401. package/.agent/skills/transformers-js/references/EXAMPLES.md +620 -0
  402. package/.agent/skills/transformers-js/references/MODEL_ARCHITECTURES.md +167 -0
  403. package/.agent/skills/transformers-js/references/MODEL_REGISTRY.md +197 -0
  404. package/.agent/skills/transformers-js/references/PIPELINE_OPTIONS.md +557 -0
  405. package/.agent/skills/transformers-js/references/TEXT_GENERATION.md +315 -0
  406. package/.agent/skills/transitions-dev/SKILL.md +1 -76
  407. package/.agent/skills/trend-researcher/SKILL.md +1 -76
  408. package/.agent/skills/tribunal-instincts-memory/SKILL.md +31 -0
  409. package/.agent/skills/trl-training/SKILL.md +318 -0
  410. package/.agent/skills/typescript-advanced/SKILL.md +1 -76
  411. package/.agent/skills/typeset/SKILL.md +1 -76
  412. package/.agent/skills/ui-reasoning-engine/SKILL.md +1 -76
  413. package/.agent/skills/ui-skill-packs/SKILL.md +1 -76
  414. package/.agent/skills/ui-skills-root/SKILL.md +1 -76
  415. package/.agent/skills/ui-ux-pro-max/SKILL.md +1 -76
  416. package/.agent/skills/ui-ux-researcher/SKILL.md +1 -76
  417. package/.agent/skills/vector-search-pgvector/SKILL.md +1 -76
  418. package/.agent/skills/verification-before-completion/SKILL.md +1 -76
  419. package/.agent/skills/vue-expert/SKILL.md +1 -76
  420. package/.agent/skills/vulnerability-scanner/SKILL.md +1 -76
  421. package/.agent/skills/web-accessibility-auditor/SKILL.md +1 -76
  422. package/.agent/skills/web-design-guidelines/SKILL.md +1 -76
  423. package/.agent/skills/web-quality-audit/SKILL.md +1 -76
  424. package/.agent/skills/webapp-testing/SKILL.md +1 -76
  425. package/.agent/skills/webgpu-performance/SKILL.md +1 -76
  426. package/.agent/skills/whimsy-injector/SKILL.md +1 -76
  427. package/.agent/skills/workflow-optimizer/SKILL.md +1 -76
  428. package/.agent/skills/zero-trust-passkeys/SKILL.md +1 -76
  429. package/.agent/workflows/assimilate.md +21 -0
  430. package/.agent/workflows/audit.md +5 -0
  431. package/.agent/workflows/generate.md +6 -1
  432. package/.agent/workflows/htop.md +22 -0
  433. package/.agent/workflows/marathon.md +5 -0
  434. package/.agent/workflows/orchestrate.md +1 -1
  435. package/.agent/workflows/resume.md +20 -0
  436. package/.agent/workflows/review-ai.md +1 -1
  437. package/.agent/workflows/skill-enhancement-engine.md +6 -10
  438. package/.agent/workflows/swarm.md +1 -1
  439. package/.agent/workflows/team-mode.md +22 -0
  440. package/.agent/workflows/tribunal-backend.md +1 -1
  441. package/.agent/workflows/tribunal-cicd.md +1 -1
  442. package/.agent/workflows/tribunal-database.md +1 -1
  443. package/.agent/workflows/tribunal-frontend.md +1 -1
  444. package/.agent/workflows/tribunal-full.md +9 -9
  445. package/.agent/workflows/tribunal-mobile.md +1 -1
  446. package/.agent/workflows/tribunal-speed.md +1 -1
  447. package/.agent/workflows/tribunal-ui.md +1 -1
  448. package/.agents/skills/12-principles-of-animation/SKILL.md +1 -76
  449. package/.agents/skills/60fps-animation/SKILL.md +1 -76
  450. package/.agents/skills/accessible-animation/SKILL.md +1 -76
  451. package/.agents/skills/adapt/SKILL.md +1 -76
  452. package/.agents/skills/advanced-rag-pipelines/SKILL.md +1 -76
  453. package/.agents/skills/agent-organizer/SKILL.md +1 -76
  454. package/.agents/skills/agent-syscall-guidelines/SKILL.md +25 -0
  455. package/.agents/skills/agentic-patterns/SKILL.md +1 -76
  456. package/.agents/skills/agentic-workflows-2026/SKILL.md +6 -73
  457. package/.agents/skills/agentshield-security/SKILL.md +26 -0
  458. package/.agents/skills/ai-app-hardening/SKILL.md +1 -76
  459. package/.agents/skills/ai-prompt-injection-defense/SKILL.md +1 -76
  460. package/.agents/skills/animation-on-scroll/SKILL.md +1 -76
  461. package/.agents/skills/animation-systems/SKILL.md +1 -76
  462. package/.agents/skills/antfu-conventions/SKILL.md +0 -75
  463. package/.agents/skills/api-patterns/SKILL.md +1 -76
  464. package/.agents/skills/api-security-auditor/SKILL.md +1 -76
  465. package/.agents/skills/app-builder/SKILL.md +1 -76
  466. package/.agents/skills/appflow-wireframe/SKILL.md +1 -76
  467. package/.agents/skills/apple-design/SKILL.md +1 -76
  468. package/.agents/skills/architecture/SKILL.md +1 -76
  469. package/.agents/skills/audit-and-fix/SKILL.md +41 -77
  470. package/.agents/skills/authentication-best-practices/SKILL.md +1 -76
  471. package/.agents/skills/backend-security-expert/SKILL.md +1 -76
  472. package/.agents/skills/baseline-ui/SKILL.md +1 -76
  473. package/.agents/skills/bash-linux/SKILL.md +1 -76
  474. package/.agents/skills/behavioral-modes/SKILL.md +1 -76
  475. package/.agents/skills/better-colors/SKILL.md +1 -76
  476. package/.agents/skills/better-typography/SKILL.md +1 -76
  477. package/.agents/skills/better-ui/SKILL.md +1 -76
  478. package/.agents/skills/bolder/SKILL.md +1 -76
  479. package/.agents/skills/brainstorming/SKILL.md +1 -76
  480. package/.agents/skills/browser-audit/SKILL.md +1 -76
  481. package/.agents/skills/browser-native-ai/SKILL.md +1 -76
  482. package/.agents/skills/build-primitive/SKILL.md +1 -76
  483. package/.agents/skills/building-native-ui/SKILL.md +1 -76
  484. package/.agents/skills/cicd-pro/SKILL.md +1 -76
  485. package/.agents/skills/clarify/SKILL.md +1 -76
  486. package/.agents/skills/clean-code/SKILL.md +1 -76
  487. package/.agents/skills/cloud-architect/SKILL.md +1 -76
  488. package/.agents/skills/cobejs/SKILL.md +1 -76
  489. package/.agents/skills/code-review-checklist/SKILL.md +1 -76
  490. package/.agents/skills/codebase-design/SKILL.md +1 -76
  491. package/.agents/skills/colorize/SKILL.md +1 -76
  492. package/.agents/skills/compact-landing/SKILL.md +1 -76
  493. package/.agents/skills/company-logos/SKILL.md +1 -76
  494. package/.agents/skills/config-validator/SKILL.md +1 -76
  495. package/.agents/skills/containerization-pro/SKILL.md +1 -76
  496. package/.agents/skills/context-engineering-pro/SKILL.md +5 -73
  497. package/.agents/skills/create-design-md/SKILL.md +1 -76
  498. package/.agents/skills/critique/SKILL.md +1 -76
  499. package/.agents/skills/csharp-developer/SKILL.md +1 -76
  500. package/.agents/skills/data-validation-schemas/SKILL.md +1 -76
  501. package/.agents/skills/database-design/SKILL.md +1 -76
  502. package/.agents/skills/delight/SKILL.md +1 -76
  503. package/.agents/skills/deployment-procedures/SKILL.md +1 -76
  504. package/.agents/skills/design-lab/SKILL.md +1 -76
  505. package/.agents/skills/devops-engineer/SKILL.md +1 -76
  506. package/.agents/skills/devops-incident-responder/SKILL.md +1 -76
  507. package/.agents/skills/diagnosing-bugs/SKILL.md +1 -76
  508. package/.agents/skills/distill/SKILL.md +1 -76
  509. package/.agents/skills/documentation-templates/SKILL.md +1 -76
  510. package/.agents/skills/domain-modeling/SKILL.md +1 -76
  511. package/.agents/skills/duckdb-analytical-sql/SKILL.md +1 -76
  512. package/.agents/skills/edge-ai-mobile/SKILL.md +1 -76
  513. package/.agents/skills/edge-computing/SKILL.md +1 -76
  514. package/.agents/skills/emil-design-eng/SKILL.md +1 -76
  515. package/.agents/skills/error-resilience/SKILL.md +1 -76
  516. package/.agents/skills/expo-router-v4/SKILL.md +1 -76
  517. package/.agents/skills/extract-design-system/SKILL.md +1 -76
  518. package/.agents/skills/fabel-protocol/SKILL.md +3 -73
  519. package/.agents/skills/fixing-accessibility/SKILL.md +1 -76
  520. package/.agents/skills/fixing-metadata/SKILL.md +1 -76
  521. package/.agents/skills/fixing-motion-performance/SKILL.md +1 -76
  522. package/.agents/skills/framer-motion-expert/SKILL.md +1 -76
  523. package/.agents/skills/frontend-design/SKILL.md +1 -76
  524. package/.agents/skills/frontend-security-expert/SKILL.md +1 -76
  525. package/.agents/skills/game-design-expert/SKILL.md +1 -76
  526. package/.agents/skills/game-engineering-expert/SKILL.md +1 -76
  527. package/.agents/skills/generative-ui-expert/SKILL.md +1 -76
  528. package/.agents/skills/geo-fundamentals/SKILL.md +1 -76
  529. package/.agents/skills/git-pro/SKILL.md +1 -76
  530. package/.agents/skills/github-operations/SKILL.md +1 -76
  531. package/.agents/skills/gpt-taste/SKILL.md +1 -76
  532. package/.agents/skills/graph-engineering/SKILL.md +28 -0
  533. package/.agents/skills/gsap-core/SKILL.md +1 -76
  534. package/.agents/skills/gsap-frameworks/SKILL.md +1 -76
  535. package/.agents/skills/gsap-performance/SKILL.md +1 -76
  536. package/.agents/skills/gsap-plugins/SKILL.md +1 -76
  537. package/.agents/skills/gsap-react/SKILL.md +1 -76
  538. package/.agents/skills/gsap-scrolltrigger/SKILL.md +1 -76
  539. package/.agents/skills/gsap-timeline/SKILL.md +1 -76
  540. package/.agents/skills/gsap-utils/SKILL.md +1 -76
  541. package/.agents/skills/harden/SKILL.md +1 -76
  542. package/.agents/skills/harness-protocol/SKILL.md +6 -73
  543. package/.agents/skills/hf-cli/SKILL.md +239 -0
  544. package/.agents/skills/hf-cloud-aws-context-discovery/SKILL.md +74 -0
  545. package/.agents/skills/hf-cloud-python-env-setup/SKILL.md +90 -0
  546. package/.agents/skills/hf-cloud-python-env-setup/requirements.txt +17 -0
  547. package/.agents/skills/hf-cloud-python-env-setup/scripts/check_versions.py +29 -0
  548. package/.agents/skills/hf-cloud-python-env-setup/scripts/setup_env.py +143 -0
  549. package/.agents/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +90 -0
  550. package/.agents/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +102 -0
  551. package/.agents/skills/hf-cloud-sagemaker-iam-preflight/references/minimum-permissions.json +47 -0
  552. package/.agents/skills/hf-cloud-sagemaker-iam-preflight/references/trust-policy.json +12 -0
  553. package/.agents/skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py +184 -0
  554. package/.agents/skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py +118 -0
  555. package/.agents/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +419 -0
  556. package/.agents/skills/hf-cloud-sagemaker-production-defaults/references/deployment-template.md +59 -0
  557. package/.agents/skills/hf-cloud-sagemaker-production-defaults/scripts/_common.py +148 -0
  558. package/.agents/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy.py +327 -0
  559. package/.agents/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_async.py +434 -0
  560. package/.agents/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_ic.py +506 -0
  561. package/.agents/skills/hf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py +180 -0
  562. package/.agents/skills/hf-cloud-sagemaker-production-defaults/scripts/teardown.py +246 -0
  563. package/.agents/skills/hf-cloud-serving-image-selection/SKILL.md +220 -0
  564. package/.agents/skills/hf-cloud-serving-image-selection/references/model-to-image.md +111 -0
  565. package/.agents/skills/hf-cloud-serving-image-selection/scripts/mirror_image.py +145 -0
  566. package/.agents/skills/hf-mem/SKILL.md +79 -0
  567. package/.agents/skills/huggingface-best/SKILL.md +134 -0
  568. package/.agents/skills/huggingface-community-evals/SKILL.md +207 -0
  569. package/.agents/skills/huggingface-community-evals/examples/.env.example +3 -0
  570. package/.agents/skills/huggingface-community-evals/examples/USAGE_EXAMPLES.md +101 -0
  571. package/.agents/skills/huggingface-community-evals/scripts/inspect_eval_uv.py +104 -0
  572. package/.agents/skills/huggingface-community-evals/scripts/inspect_vllm_uv.py +306 -0
  573. package/.agents/skills/huggingface-community-evals/scripts/lighteval_vllm_uv.py +297 -0
  574. package/.agents/skills/huggingface-datasets/SKILL.md +107 -0
  575. package/.agents/skills/huggingface-gradio/SKILL.md +298 -0
  576. package/.agents/skills/huggingface-gradio/examples.md +613 -0
  577. package/.agents/skills/huggingface-llm-trainer/SKILL.md +738 -0
  578. package/.agents/skills/huggingface-llm-trainer/references/gguf_conversion.md +296 -0
  579. package/.agents/skills/huggingface-llm-trainer/references/hardware_guide.md +283 -0
  580. package/.agents/skills/huggingface-llm-trainer/references/hub_saving.md +364 -0
  581. package/.agents/skills/huggingface-llm-trainer/references/local_training_macos.md +231 -0
  582. package/.agents/skills/huggingface-llm-trainer/references/reliability_principles.md +371 -0
  583. package/.agents/skills/huggingface-llm-trainer/references/trackio_guide.md +191 -0
  584. package/.agents/skills/huggingface-llm-trainer/references/training_methods.md +150 -0
  585. package/.agents/skills/huggingface-llm-trainer/references/training_patterns.md +203 -0
  586. package/.agents/skills/huggingface-llm-trainer/references/troubleshooting.md +282 -0
  587. package/.agents/skills/huggingface-llm-trainer/references/unsloth.md +313 -0
  588. package/.agents/skills/huggingface-llm-trainer/scripts/convert_to_gguf.py +424 -0
  589. package/.agents/skills/huggingface-llm-trainer/scripts/dataset_inspector.py +417 -0
  590. package/.agents/skills/huggingface-llm-trainer/scripts/estimate_cost.py +150 -0
  591. package/.agents/skills/huggingface-llm-trainer/scripts/hf_benchmarks.py +659 -0
  592. package/.agents/skills/huggingface-llm-trainer/scripts/train_dpo_example.py +106 -0
  593. package/.agents/skills/huggingface-llm-trainer/scripts/train_grpo_example.py +89 -0
  594. package/.agents/skills/huggingface-llm-trainer/scripts/train_sft_example.py +122 -0
  595. package/.agents/skills/huggingface-llm-trainer/scripts/unsloth_sft_example.py +512 -0
  596. package/.agents/skills/huggingface-local-models/SKILL.md +113 -0
  597. package/.agents/skills/huggingface-local-models/references/hardware.md +38 -0
  598. package/.agents/skills/huggingface-local-models/references/hub-discovery.md +178 -0
  599. package/.agents/skills/huggingface-local-models/references/quantization.md +256 -0
  600. package/.agents/skills/huggingface-lora-space-builder/SKILL.md +394 -0
  601. package/.agents/skills/huggingface-lora-space-builder/references/adapting-to-the-lora.md +113 -0
  602. package/.agents/skills/huggingface-lora-space-builder/references/base-models/krea-2.md +63 -0
  603. package/.agents/skills/huggingface-lora-space-builder/references/base-models/ltx.md +205 -0
  604. package/.agents/skills/huggingface-lora-space-builder/references/base-models/qwen-image.md +144 -0
  605. package/.agents/skills/huggingface-lora-space-builder/references/creative-mode.md +262 -0
  606. package/.agents/skills/huggingface-lora-space-builder/references/tasks.md +124 -0
  607. package/.agents/skills/huggingface-lora-space-builder/references/zerogpu-and-publishing.md +196 -0
  608. package/.agents/skills/huggingface-paper-publisher/SKILL.md +624 -0
  609. package/.agents/skills/huggingface-paper-publisher/examples/example_usage.md +326 -0
  610. package/.agents/skills/huggingface-paper-publisher/references/quick_reference.md +216 -0
  611. package/.agents/skills/huggingface-paper-publisher/scripts/paper_manager.py +606 -0
  612. package/.agents/skills/huggingface-paper-publisher/templates/arxiv.md +299 -0
  613. package/.agents/skills/huggingface-paper-publisher/templates/ml-report.md +358 -0
  614. package/.agents/skills/huggingface-paper-publisher/templates/modern.md +319 -0
  615. package/.agents/skills/huggingface-paper-publisher/templates/standard.md +201 -0
  616. package/.agents/skills/huggingface-papers/SKILL.md +239 -0
  617. package/.agents/skills/huggingface-spaces/README.md +9 -0
  618. package/.agents/skills/huggingface-spaces/SKILL.md +242 -0
  619. package/.agents/skills/huggingface-spaces/references/3d-cuda-extensions.md +109 -0
  620. package/.agents/skills/huggingface-spaces/references/3d-generation.md +98 -0
  621. package/.agents/skills/huggingface-spaces/references/3d-gsplat.md +53 -0
  622. package/.agents/skills/huggingface-spaces/references/3d-models.md +227 -0
  623. package/.agents/skills/huggingface-spaces/references/3d-outputs.md +114 -0
  624. package/.agents/skills/huggingface-spaces/references/buckets.md +89 -0
  625. package/.agents/skills/huggingface-spaces/references/debugging.md +236 -0
  626. package/.agents/skills/huggingface-spaces/references/gradio.md +200 -0
  627. package/.agents/skills/huggingface-spaces/references/grants.md +63 -0
  628. package/.agents/skills/huggingface-spaces/references/inference-providers.md +97 -0
  629. package/.agents/skills/huggingface-spaces/references/known-errors.md +232 -0
  630. package/.agents/skills/huggingface-spaces/references/requirements.md +169 -0
  631. package/.agents/skills/huggingface-spaces/references/zerogpu.md +349 -0
  632. package/.agents/skills/huggingface-tool-builder/SKILL.md +120 -0
  633. package/.agents/skills/huggingface-tool-builder/references/baseline_hf_api.py +57 -0
  634. package/.agents/skills/huggingface-tool-builder/references/baseline_hf_api.sh +40 -0
  635. package/.agents/skills/huggingface-tool-builder/references/baseline_hf_api.tsx +57 -0
  636. package/.agents/skills/huggingface-tool-builder/references/find_models_by_paper.sh +230 -0
  637. package/.agents/skills/huggingface-tool-builder/references/hf_enrich_models.sh +96 -0
  638. package/.agents/skills/huggingface-tool-builder/references/hf_model_card_frontmatter.sh +188 -0
  639. package/.agents/skills/huggingface-tool-builder/references/hf_model_papers_auth.sh +171 -0
  640. package/.agents/skills/huggingface-trackio/SKILL.md +142 -0
  641. package/.agents/skills/huggingface-trackio/references/alerts.md +196 -0
  642. package/.agents/skills/huggingface-trackio/references/logging_metrics.md +212 -0
  643. package/.agents/skills/huggingface-trackio/references/retrieving_metrics.md +251 -0
  644. package/.agents/skills/huggingface-vision-trainer/SKILL.md +593 -0
  645. package/.agents/skills/huggingface-vision-trainer/references/finetune_sam2_trainer.md +254 -0
  646. package/.agents/skills/huggingface-vision-trainer/references/hub_saving.md +618 -0
  647. package/.agents/skills/huggingface-vision-trainer/references/image_classification_training_notebook.md +279 -0
  648. package/.agents/skills/huggingface-vision-trainer/references/object_detection_training_notebook.md +700 -0
  649. package/.agents/skills/huggingface-vision-trainer/references/reliability_principles.md +310 -0
  650. package/.agents/skills/huggingface-vision-trainer/references/timm_trainer.md +91 -0
  651. package/.agents/skills/huggingface-vision-trainer/scripts/dataset_inspector.py +814 -0
  652. package/.agents/skills/huggingface-vision-trainer/scripts/estimate_cost.py +217 -0
  653. package/.agents/skills/huggingface-vision-trainer/scripts/image_classification_training.py +383 -0
  654. package/.agents/skills/huggingface-vision-trainer/scripts/object_detection_training.py +710 -0
  655. package/.agents/skills/huggingface-vision-trainer/scripts/sam_segmentation_training.py +382 -0
  656. package/.agents/skills/huggingface-zerogpu/SKILL.md +289 -0
  657. package/.agents/skills/huggingface-zerogpu/references/concurrency.md +79 -0
  658. package/.agents/skills/huggingface-zerogpu/references/cuda-and-deps.md +66 -0
  659. package/.agents/skills/huggingface-zerogpu/references/how-quota-works.md +74 -0
  660. package/.agents/skills/huggingface-zerogpu/references/how-zerogpu-works.md +50 -0
  661. package/.agents/skills/human-gate-negotiation/SKILL.md +30 -0
  662. package/.agents/skills/i18n-localization/SKILL.md +1 -76
  663. package/.agents/skills/impeccable/SKILL.md +1 -76
  664. package/.agents/skills/improve-codebase-architecture/SKILL.md +1 -76
  665. package/.agents/skills/improve-ui/SKILL.md +1 -76
  666. package/.agents/skills/intelligent-routing/SKILL.md +9 -89
  667. package/.agents/skills/knowledge-graph/SKILL.md +1 -76
  668. package/.agents/skills/landing-page/SKILL.md +1 -76
  669. package/.agents/skills/lint-and-validate/SKILL.md +1 -76
  670. package/.agents/skills/llm-engineering/SKILL.md +1 -76
  671. package/.agents/skills/local-first/SKILL.md +1 -76
  672. package/.agents/skills/local-first-architecture/SKILL.md +1 -76
  673. package/.agents/skills/lottie-animation/SKILL.md +1 -76
  674. package/.agents/skills/marquee-loop/SKILL.md +1 -76
  675. package/.agents/skills/masked-reveal/SKILL.md +1 -76
  676. package/.agents/skills/mcp-builder/SKILL.md +1 -76
  677. package/.agents/skills/micro-interaction/SKILL.md +1 -76
  678. package/.agents/skills/mobile-design/SKILL.md +1 -76
  679. package/.agents/skills/monorepo-management/SKILL.md +1 -76
  680. package/.agents/skills/morphing-icons/SKILL.md +1 -76
  681. package/.agents/skills/motion-engineering/SKILL.md +1 -76
  682. package/.agents/skills/nextjs-react-expert/SKILL.md +1 -76
  683. package/.agents/skills/nodejs-best-practices/SKILL.md +1 -76
  684. package/.agents/skills/observability/SKILL.md +1 -76
  685. package/.agents/skills/opentelemetry-observability/SKILL.md +1 -76
  686. package/.agents/skills/page-transition-animation/SKILL.md +1 -76
  687. package/.agents/skills/parallel-agents/SKILL.md +1 -76
  688. package/.agents/skills/performance-profiling/SKILL.md +1 -76
  689. package/.agents/skills/plan-writing/SKILL.md +1 -76
  690. package/.agents/skills/platform-engineer/SKILL.md +1 -76
  691. package/.agents/skills/platform-engineering-opentofu/SKILL.md +1 -76
  692. package/.agents/skills/playwright-ai-e2e/SKILL.md +1 -76
  693. package/.agents/skills/playwright-best-practices/SKILL.md +1 -76
  694. package/.agents/skills/polish/SKILL.md +1 -76
  695. package/.agents/skills/powershell-windows/SKILL.md +1 -76
  696. package/.agents/skills/pricing-page/SKILL.md +1 -76
  697. package/.agents/skills/product-aware-heuristics/SKILL.md +1 -76
  698. package/.agents/skills/progressive-blur/SKILL.md +1 -76
  699. package/.agents/skills/project-idioms/SKILL.md +1 -76
  700. package/.agents/skills/property-based-testing/SKILL.md +1 -76
  701. package/.agents/skills/python-patterns/SKILL.md +1 -76
  702. package/.agents/skills/python-pro/SKILL.md +1 -76
  703. package/.agents/skills/quieter/SKILL.md +1 -76
  704. package/.agents/skills/react-doctor/SKILL.md +1 -76
  705. package/.agents/skills/react-specialist/SKILL.md +1 -76
  706. package/.agents/skills/readme-builder/SKILL.md +1 -76
  707. package/.agents/skills/realtime-patterns/SKILL.md +1 -76
  708. package/.agents/skills/red-team-tactics/SKILL.md +1 -76
  709. package/.agents/skills/redesign-skill/SKILL.md +1 -76
  710. package/.agents/skills/review-animations/SKILL.md +1 -76
  711. package/.agents/skills/rust-pro/SKILL.md +1 -76
  712. package/.agents/skills/semantic-filesystem-navigation/SKILL.md +24 -0
  713. package/.agents/skills/seo-fundamentals/SKILL.md +1 -76
  714. package/.agents/skills/server-management/SKILL.md +1 -76
  715. package/.agents/skills/session-log-interrogation/SKILL.md +29 -0
  716. package/.agents/skills/shadcn-ui-expert/SKILL.md +1 -76
  717. package/.agents/skills/shape/SKILL.md +1 -76
  718. package/.agents/skills/skill-creator/SKILL.md +124 -90
  719. package/.agents/skills/soft-skill/SKILL.md +1 -76
  720. package/.agents/skills/sounds-on-the-web/SKILL.md +1 -76
  721. package/.agents/skills/sql-pro/SKILL.md +1 -76
  722. package/.agents/skills/subagent-driven-development/SKILL.md +32 -0
  723. package/.agents/skills/supabase-postgres-best-practices/SKILL.md +1 -76
  724. package/.agents/skills/svg-animation/SKILL.md +1 -76
  725. package/.agents/skills/swiftui-expert/SKILL.md +1 -76
  726. package/.agents/skills/swiss-design/SKILL.md +1 -76
  727. package/.agents/skills/system-design-pro/SKILL.md +1 -76
  728. package/.agents/skills/systematic-debugging/SKILL.md +3 -73
  729. package/.agents/skills/tailwind-patterns/SKILL.md +1 -76
  730. package/.agents/skills/taste-skill/SKILL.md +1 -76
  731. package/.agents/skills/tdd-workflow/SKILL.md +1 -76
  732. package/.agents/skills/test-result-analyzer/SKILL.md +1 -76
  733. package/.agents/skills/testing-patterns/SKILL.md +1 -76
  734. package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
  735. package/.agents/skills/thinking-protocol/SKILL.md +1 -78
  736. package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
  737. package/.agents/skills/train-sentence-transformers/SKILL.md +109 -0
  738. package/.agents/skills/train-sentence-transformers/references/base_model_selection.md +79 -0
  739. package/.agents/skills/train-sentence-transformers/references/dataset_formats.md +128 -0
  740. package/.agents/skills/train-sentence-transformers/references/evaluators_cross_encoder.md +116 -0
  741. package/.agents/skills/train-sentence-transformers/references/evaluators_multi_vector_encoder.md +101 -0
  742. package/.agents/skills/train-sentence-transformers/references/evaluators_sentence_transformer.md +151 -0
  743. package/.agents/skills/train-sentence-transformers/references/evaluators_sparse_encoder.md +121 -0
  744. package/.agents/skills/train-sentence-transformers/references/hardware_guide.md +105 -0
  745. package/.agents/skills/train-sentence-transformers/references/hf_jobs_execution.md +173 -0
  746. package/.agents/skills/train-sentence-transformers/references/losses_cross_encoder.md +137 -0
  747. package/.agents/skills/train-sentence-transformers/references/losses_multi_vector_encoder.md +100 -0
  748. package/.agents/skills/train-sentence-transformers/references/losses_sentence_transformer.md +246 -0
  749. package/.agents/skills/train-sentence-transformers/references/losses_sparse_encoder.md +106 -0
  750. package/.agents/skills/train-sentence-transformers/references/model_architectures.md +178 -0
  751. package/.agents/skills/train-sentence-transformers/references/prompts_and_instructions.md +160 -0
  752. package/.agents/skills/train-sentence-transformers/references/training_args.md +270 -0
  753. package/.agents/skills/train-sentence-transformers/references/troubleshooting.md +225 -0
  754. package/.agents/skills/train-sentence-transformers/scripts/mine_hard_negatives.py +199 -0
  755. package/.agents/skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py +254 -0
  756. package/.agents/skills/train-sentence-transformers/scripts/train_cross_encoder_example.py +253 -0
  757. package/.agents/skills/train-sentence-transformers/scripts/train_cross_encoder_listwise_example.py +282 -0
  758. package/.agents/skills/train-sentence-transformers/scripts/train_multi_vector_encoder_example.py +240 -0
  759. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_distillation_example.py +303 -0
  760. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_example.py +227 -0
  761. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_make_multilingual_example.py +308 -0
  762. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_matryoshka_example.py +212 -0
  763. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_multi_dataset_example.py +258 -0
  764. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py +273 -0
  765. package/.agents/skills/train-sentence-transformers/scripts/train_sentence_transformer_with_lora_example.py +275 -0
  766. package/.agents/skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py +262 -0
  767. package/.agents/skills/train-sentence-transformers/scripts/train_sparse_encoder_example.py +237 -0
  768. package/.agents/skills/transformers-js/SKILL.md +692 -0
  769. package/.agents/skills/transformers-js/references/CACHE.md +339 -0
  770. package/.agents/skills/transformers-js/references/CONFIGURATION.md +438 -0
  771. package/.agents/skills/transformers-js/references/EXAMPLES.md +620 -0
  772. package/.agents/skills/transformers-js/references/MODEL_ARCHITECTURES.md +167 -0
  773. package/.agents/skills/transformers-js/references/MODEL_REGISTRY.md +197 -0
  774. package/.agents/skills/transformers-js/references/PIPELINE_OPTIONS.md +557 -0
  775. package/.agents/skills/transformers-js/references/TEXT_GENERATION.md +315 -0
  776. package/.agents/skills/transitions-dev/SKILL.md +1 -76
  777. package/.agents/skills/trend-researcher/SKILL.md +1 -76
  778. package/.agents/skills/tribunal-instincts-memory/SKILL.md +31 -0
  779. package/.agents/skills/trl-training/SKILL.md +318 -0
  780. package/.agents/skills/typescript-advanced/SKILL.md +1 -76
  781. package/.agents/skills/typeset/SKILL.md +1 -76
  782. package/.agents/skills/ui-reasoning-engine/SKILL.md +1 -76
  783. package/.agents/skills/ui-skill-packs/SKILL.md +1 -76
  784. package/.agents/skills/ui-skills-root/SKILL.md +1 -76
  785. package/.agents/skills/ui-ux-pro-max/SKILL.md +1 -76
  786. package/.agents/skills/ui-ux-researcher/SKILL.md +1 -76
  787. package/.agents/skills/vector-search-pgvector/SKILL.md +1 -76
  788. package/.agents/skills/verification-before-completion/SKILL.md +1 -76
  789. package/.agents/skills/vue-expert/SKILL.md +1 -76
  790. package/.agents/skills/vulnerability-scanner/SKILL.md +1 -76
  791. package/.agents/skills/web-accessibility-auditor/SKILL.md +1 -76
  792. package/.agents/skills/web-design-guidelines/SKILL.md +1 -76
  793. package/.agents/skills/web-quality-audit/SKILL.md +1 -76
  794. package/.agents/skills/webapp-testing/SKILL.md +1 -76
  795. package/.agents/skills/webgpu-performance/SKILL.md +1 -76
  796. package/.agents/skills/whimsy-injector/SKILL.md +1 -76
  797. package/.agents/skills/workflow-optimizer/SKILL.md +1 -76
  798. package/.agents/skills/zero-trust-passkeys/SKILL.md +1 -76
  799. package/CONTRIBUTING.md +2 -2
  800. package/README.md +242 -542
  801. package/bin/adapter-install.js +263 -263
  802. package/bin/mcp-server.js +72 -47
  803. package/bin/wrapper.js +10 -1
  804. package/dist/commands/init.js +25 -11
  805. package/dist/tui/banner.js +1 -1
  806. package/gemini-extension.json +1 -1
  807. package/mcp_config.json +1 -1
  808. package/package.json +13 -10
  809. package/plugin.json +1 -1
  810. package/scripts/context_compiler.js +49 -0
  811. package/scripts/skill_enhancement_engine.js +11 -37
  812. package/scripts/telemetry_gc.js +3 -1
  813. package/scripts/validate-payload.js +1 -6
  814. package/skills/12-principles-of-animation/SKILL.md +1 -76
  815. package/skills/60fps-animation/SKILL.md +1 -76
  816. package/skills/accessible-animation/SKILL.md +1 -76
  817. package/skills/adapt/SKILL.md +1 -76
  818. package/skills/advanced-rag-pipelines/SKILL.md +1 -76
  819. package/skills/agent-organizer/SKILL.md +1 -76
  820. package/skills/agent-syscall-guidelines/SKILL.md +25 -0
  821. package/skills/agentic-patterns/SKILL.md +1 -76
  822. package/skills/agentic-workflows-2026/SKILL.md +6 -73
  823. package/skills/agentshield-security/SKILL.md +26 -0
  824. package/skills/ai-app-hardening/SKILL.md +1 -76
  825. package/skills/ai-prompt-injection-defense/SKILL.md +1 -76
  826. package/skills/animation-on-scroll/SKILL.md +1 -76
  827. package/skills/animation-systems/SKILL.md +1 -76
  828. package/skills/antfu-conventions/SKILL.md +0 -75
  829. package/skills/api-patterns/SKILL.md +1 -76
  830. package/skills/api-security-auditor/SKILL.md +1 -76
  831. package/skills/app-builder/SKILL.md +1 -76
  832. package/skills/appflow-wireframe/SKILL.md +1 -76
  833. package/skills/apple-design/SKILL.md +1 -76
  834. package/skills/architecture/SKILL.md +1 -76
  835. package/skills/audit-and-fix/SKILL.md +41 -77
  836. package/skills/authentication-best-practices/SKILL.md +1 -76
  837. package/skills/backend-security-expert/SKILL.md +1 -76
  838. package/skills/baseline-ui/SKILL.md +1 -76
  839. package/skills/bash-linux/SKILL.md +1 -76
  840. package/skills/behavioral-modes/SKILL.md +1 -76
  841. package/skills/better-colors/SKILL.md +1 -76
  842. package/skills/better-typography/SKILL.md +1 -76
  843. package/skills/better-ui/SKILL.md +1 -76
  844. package/skills/bolder/SKILL.md +1 -76
  845. package/skills/brainstorming/SKILL.md +1 -76
  846. package/skills/browser-audit/SKILL.md +1 -76
  847. package/skills/browser-native-ai/SKILL.md +1 -76
  848. package/skills/build-primitive/SKILL.md +1 -76
  849. package/skills/building-native-ui/SKILL.md +1 -76
  850. package/skills/cicd-pro/SKILL.md +1 -76
  851. package/skills/clarify/SKILL.md +1 -76
  852. package/skills/clean-code/SKILL.md +1 -76
  853. package/skills/cloud-architect/SKILL.md +1 -76
  854. package/skills/cobejs/SKILL.md +1 -76
  855. package/skills/code-review-checklist/SKILL.md +1 -76
  856. package/skills/codebase-design/SKILL.md +1 -76
  857. package/skills/colorize/SKILL.md +1 -76
  858. package/skills/compact-landing/SKILL.md +1 -76
  859. package/skills/company-logos/SKILL.md +1 -76
  860. package/skills/config-validator/SKILL.md +1 -76
  861. package/skills/containerization-pro/SKILL.md +1 -76
  862. package/skills/context-engineering-pro/SKILL.md +5 -73
  863. package/skills/create-design-md/SKILL.md +1 -76
  864. package/skills/critique/SKILL.md +1 -76
  865. package/skills/csharp-developer/SKILL.md +1 -76
  866. package/skills/data-validation-schemas/SKILL.md +1 -76
  867. package/skills/database-design/SKILL.md +1 -76
  868. package/skills/delight/SKILL.md +1 -76
  869. package/skills/deployment-procedures/SKILL.md +1 -76
  870. package/skills/design-lab/SKILL.md +1 -76
  871. package/skills/devops-engineer/SKILL.md +1 -76
  872. package/skills/devops-incident-responder/SKILL.md +1 -76
  873. package/skills/diagnosing-bugs/SKILL.md +1 -76
  874. package/skills/distill/SKILL.md +1 -76
  875. package/skills/documentation-templates/SKILL.md +1 -76
  876. package/skills/domain-modeling/SKILL.md +1 -76
  877. package/skills/duckdb-analytical-sql/SKILL.md +1 -76
  878. package/skills/edge-ai-mobile/SKILL.md +1 -76
  879. package/skills/edge-computing/SKILL.md +1 -76
  880. package/skills/emil-design-eng/SKILL.md +1 -76
  881. package/skills/error-resilience/SKILL.md +1 -76
  882. package/skills/expo-router-v4/SKILL.md +1 -76
  883. package/skills/extract-design-system/SKILL.md +1 -76
  884. package/skills/fabel-protocol/SKILL.md +3 -73
  885. package/skills/fixing-accessibility/SKILL.md +1 -76
  886. package/skills/fixing-metadata/SKILL.md +1 -76
  887. package/skills/fixing-motion-performance/SKILL.md +1 -76
  888. package/skills/framer-motion-expert/SKILL.md +1 -76
  889. package/skills/frontend-design/SKILL.md +1 -76
  890. package/skills/frontend-security-expert/SKILL.md +1 -76
  891. package/skills/game-design-expert/SKILL.md +1 -76
  892. package/skills/game-engineering-expert/SKILL.md +1 -76
  893. package/skills/generative-ui-expert/SKILL.md +1 -76
  894. package/skills/geo-fundamentals/SKILL.md +1 -76
  895. package/skills/git-pro/SKILL.md +1 -76
  896. package/skills/github-operations/SKILL.md +1 -76
  897. package/skills/gpt-taste/SKILL.md +1 -76
  898. package/skills/graph-engineering/SKILL.md +28 -0
  899. package/skills/gsap-core/SKILL.md +1 -76
  900. package/skills/gsap-frameworks/SKILL.md +1 -76
  901. package/skills/gsap-performance/SKILL.md +1 -76
  902. package/skills/gsap-plugins/SKILL.md +1 -76
  903. package/skills/gsap-react/SKILL.md +1 -76
  904. package/skills/gsap-scrolltrigger/SKILL.md +1 -76
  905. package/skills/gsap-timeline/SKILL.md +1 -76
  906. package/skills/gsap-utils/SKILL.md +1 -76
  907. package/skills/harden/SKILL.md +1 -76
  908. package/skills/harness-protocol/SKILL.md +6 -73
  909. package/skills/hf-cli/SKILL.md +239 -0
  910. package/skills/hf-cloud-aws-context-discovery/SKILL.md +74 -0
  911. package/skills/hf-cloud-python-env-setup/SKILL.md +90 -0
  912. package/skills/hf-cloud-python-env-setup/requirements.txt +17 -0
  913. package/skills/hf-cloud-python-env-setup/scripts/check_versions.py +29 -0
  914. package/skills/hf-cloud-python-env-setup/scripts/setup_env.py +143 -0
  915. package/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +90 -0
  916. package/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +102 -0
  917. package/skills/hf-cloud-sagemaker-iam-preflight/references/minimum-permissions.json +47 -0
  918. package/skills/hf-cloud-sagemaker-iam-preflight/references/trust-policy.json +12 -0
  919. package/skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py +184 -0
  920. package/skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py +118 -0
  921. package/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +419 -0
  922. package/skills/hf-cloud-sagemaker-production-defaults/references/deployment-template.md +59 -0
  923. package/skills/hf-cloud-sagemaker-production-defaults/scripts/_common.py +148 -0
  924. package/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy.py +327 -0
  925. package/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_async.py +434 -0
  926. package/skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_ic.py +506 -0
  927. package/skills/hf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py +180 -0
  928. package/skills/hf-cloud-sagemaker-production-defaults/scripts/teardown.py +246 -0
  929. package/skills/hf-cloud-serving-image-selection/SKILL.md +220 -0
  930. package/skills/hf-cloud-serving-image-selection/references/model-to-image.md +111 -0
  931. package/skills/hf-cloud-serving-image-selection/scripts/mirror_image.py +145 -0
  932. package/skills/hf-mem/SKILL.md +79 -0
  933. package/skills/huggingface-best/SKILL.md +134 -0
  934. package/skills/huggingface-community-evals/SKILL.md +207 -0
  935. package/skills/huggingface-community-evals/examples/.env.example +3 -0
  936. package/skills/huggingface-community-evals/examples/USAGE_EXAMPLES.md +101 -0
  937. package/skills/huggingface-community-evals/scripts/inspect_eval_uv.py +104 -0
  938. package/skills/huggingface-community-evals/scripts/inspect_vllm_uv.py +306 -0
  939. package/skills/huggingface-community-evals/scripts/lighteval_vllm_uv.py +297 -0
  940. package/skills/huggingface-datasets/SKILL.md +107 -0
  941. package/skills/huggingface-gradio/SKILL.md +298 -0
  942. package/skills/huggingface-gradio/examples.md +613 -0
  943. package/skills/huggingface-llm-trainer/SKILL.md +738 -0
  944. package/skills/huggingface-llm-trainer/references/gguf_conversion.md +296 -0
  945. package/skills/huggingface-llm-trainer/references/hardware_guide.md +283 -0
  946. package/skills/huggingface-llm-trainer/references/hub_saving.md +364 -0
  947. package/skills/huggingface-llm-trainer/references/local_training_macos.md +231 -0
  948. package/skills/huggingface-llm-trainer/references/reliability_principles.md +371 -0
  949. package/skills/huggingface-llm-trainer/references/trackio_guide.md +191 -0
  950. package/skills/huggingface-llm-trainer/references/training_methods.md +150 -0
  951. package/skills/huggingface-llm-trainer/references/training_patterns.md +203 -0
  952. package/skills/huggingface-llm-trainer/references/troubleshooting.md +282 -0
  953. package/skills/huggingface-llm-trainer/references/unsloth.md +313 -0
  954. package/skills/huggingface-llm-trainer/scripts/convert_to_gguf.py +424 -0
  955. package/skills/huggingface-llm-trainer/scripts/dataset_inspector.py +417 -0
  956. package/skills/huggingface-llm-trainer/scripts/estimate_cost.py +150 -0
  957. package/skills/huggingface-llm-trainer/scripts/hf_benchmarks.py +659 -0
  958. package/skills/huggingface-llm-trainer/scripts/train_dpo_example.py +106 -0
  959. package/skills/huggingface-llm-trainer/scripts/train_grpo_example.py +89 -0
  960. package/skills/huggingface-llm-trainer/scripts/train_sft_example.py +122 -0
  961. package/skills/huggingface-llm-trainer/scripts/unsloth_sft_example.py +512 -0
  962. package/skills/huggingface-local-models/SKILL.md +113 -0
  963. package/skills/huggingface-local-models/references/hardware.md +38 -0
  964. package/skills/huggingface-local-models/references/hub-discovery.md +178 -0
  965. package/skills/huggingface-local-models/references/quantization.md +256 -0
  966. package/skills/huggingface-lora-space-builder/SKILL.md +394 -0
  967. package/skills/huggingface-lora-space-builder/references/adapting-to-the-lora.md +113 -0
  968. package/skills/huggingface-lora-space-builder/references/base-models/krea-2.md +63 -0
  969. package/skills/huggingface-lora-space-builder/references/base-models/ltx.md +205 -0
  970. package/skills/huggingface-lora-space-builder/references/base-models/qwen-image.md +144 -0
  971. package/skills/huggingface-lora-space-builder/references/creative-mode.md +262 -0
  972. package/skills/huggingface-lora-space-builder/references/tasks.md +124 -0
  973. package/skills/huggingface-lora-space-builder/references/zerogpu-and-publishing.md +196 -0
  974. package/skills/huggingface-paper-publisher/SKILL.md +624 -0
  975. package/skills/huggingface-paper-publisher/examples/example_usage.md +326 -0
  976. package/skills/huggingface-paper-publisher/references/quick_reference.md +216 -0
  977. package/skills/huggingface-paper-publisher/scripts/paper_manager.py +606 -0
  978. package/skills/huggingface-paper-publisher/templates/arxiv.md +299 -0
  979. package/skills/huggingface-paper-publisher/templates/ml-report.md +358 -0
  980. package/skills/huggingface-paper-publisher/templates/modern.md +319 -0
  981. package/skills/huggingface-paper-publisher/templates/standard.md +201 -0
  982. package/skills/huggingface-papers/SKILL.md +239 -0
  983. package/skills/huggingface-spaces/README.md +9 -0
  984. package/skills/huggingface-spaces/SKILL.md +242 -0
  985. package/skills/huggingface-spaces/references/3d-cuda-extensions.md +109 -0
  986. package/skills/huggingface-spaces/references/3d-generation.md +98 -0
  987. package/skills/huggingface-spaces/references/3d-gsplat.md +53 -0
  988. package/skills/huggingface-spaces/references/3d-models.md +227 -0
  989. package/skills/huggingface-spaces/references/3d-outputs.md +114 -0
  990. package/skills/huggingface-spaces/references/buckets.md +89 -0
  991. package/skills/huggingface-spaces/references/debugging.md +236 -0
  992. package/skills/huggingface-spaces/references/gradio.md +200 -0
  993. package/skills/huggingface-spaces/references/grants.md +63 -0
  994. package/skills/huggingface-spaces/references/inference-providers.md +97 -0
  995. package/skills/huggingface-spaces/references/known-errors.md +232 -0
  996. package/skills/huggingface-spaces/references/requirements.md +169 -0
  997. package/skills/huggingface-spaces/references/zerogpu.md +349 -0
  998. package/skills/huggingface-tool-builder/SKILL.md +120 -0
  999. package/skills/huggingface-tool-builder/references/baseline_hf_api.py +57 -0
  1000. package/skills/huggingface-tool-builder/references/baseline_hf_api.sh +40 -0
  1001. package/skills/huggingface-tool-builder/references/baseline_hf_api.tsx +57 -0
  1002. package/skills/huggingface-tool-builder/references/find_models_by_paper.sh +230 -0
  1003. package/skills/huggingface-tool-builder/references/hf_enrich_models.sh +96 -0
  1004. package/skills/huggingface-tool-builder/references/hf_model_card_frontmatter.sh +188 -0
  1005. package/skills/huggingface-tool-builder/references/hf_model_papers_auth.sh +171 -0
  1006. package/skills/huggingface-trackio/SKILL.md +142 -0
  1007. package/skills/huggingface-trackio/references/alerts.md +196 -0
  1008. package/skills/huggingface-trackio/references/logging_metrics.md +212 -0
  1009. package/skills/huggingface-trackio/references/retrieving_metrics.md +251 -0
  1010. package/skills/huggingface-vision-trainer/SKILL.md +593 -0
  1011. package/skills/huggingface-vision-trainer/references/finetune_sam2_trainer.md +254 -0
  1012. package/skills/huggingface-vision-trainer/references/hub_saving.md +618 -0
  1013. package/skills/huggingface-vision-trainer/references/image_classification_training_notebook.md +279 -0
  1014. package/skills/huggingface-vision-trainer/references/object_detection_training_notebook.md +700 -0
  1015. package/skills/huggingface-vision-trainer/references/reliability_principles.md +310 -0
  1016. package/skills/huggingface-vision-trainer/references/timm_trainer.md +91 -0
  1017. package/skills/huggingface-vision-trainer/scripts/dataset_inspector.py +814 -0
  1018. package/skills/huggingface-vision-trainer/scripts/estimate_cost.py +217 -0
  1019. package/skills/huggingface-vision-trainer/scripts/image_classification_training.py +383 -0
  1020. package/skills/huggingface-vision-trainer/scripts/object_detection_training.py +710 -0
  1021. package/skills/huggingface-vision-trainer/scripts/sam_segmentation_training.py +382 -0
  1022. package/skills/huggingface-zerogpu/SKILL.md +289 -0
  1023. package/skills/huggingface-zerogpu/references/concurrency.md +79 -0
  1024. package/skills/huggingface-zerogpu/references/cuda-and-deps.md +66 -0
  1025. package/skills/huggingface-zerogpu/references/how-quota-works.md +74 -0
  1026. package/skills/huggingface-zerogpu/references/how-zerogpu-works.md +50 -0
  1027. package/skills/human-gate-negotiation/SKILL.md +30 -0
  1028. package/skills/i18n-localization/SKILL.md +1 -76
  1029. package/skills/impeccable/SKILL.md +1 -76
  1030. package/skills/improve-codebase-architecture/SKILL.md +1 -76
  1031. package/skills/improve-ui/SKILL.md +1 -76
  1032. package/skills/intelligent-routing/SKILL.md +9 -89
  1033. package/skills/knowledge-graph/SKILL.md +1 -76
  1034. package/skills/landing-page/SKILL.md +1 -76
  1035. package/skills/lint-and-validate/SKILL.md +1 -76
  1036. package/skills/llm-engineering/SKILL.md +1 -76
  1037. package/skills/local-first/SKILL.md +1 -76
  1038. package/skills/local-first-architecture/SKILL.md +1 -76
  1039. package/skills/lottie-animation/SKILL.md +1 -76
  1040. package/skills/marquee-loop/SKILL.md +1 -76
  1041. package/skills/masked-reveal/SKILL.md +1 -76
  1042. package/skills/mcp-builder/SKILL.md +1 -76
  1043. package/skills/micro-interaction/SKILL.md +1 -76
  1044. package/skills/mobile-design/SKILL.md +1 -76
  1045. package/skills/monorepo-management/SKILL.md +1 -76
  1046. package/skills/morphing-icons/SKILL.md +1 -76
  1047. package/skills/motion-engineering/SKILL.md +1 -76
  1048. package/skills/nextjs-react-expert/SKILL.md +1 -76
  1049. package/skills/nodejs-best-practices/SKILL.md +1 -76
  1050. package/skills/observability/SKILL.md +1 -76
  1051. package/skills/opentelemetry-observability/SKILL.md +1 -76
  1052. package/skills/page-transition-animation/SKILL.md +1 -76
  1053. package/skills/parallel-agents/SKILL.md +1 -76
  1054. package/skills/performance-profiling/SKILL.md +1 -76
  1055. package/skills/plan-writing/SKILL.md +1 -76
  1056. package/skills/platform-engineer/SKILL.md +1 -76
  1057. package/skills/platform-engineering-opentofu/SKILL.md +1 -76
  1058. package/skills/playwright-ai-e2e/SKILL.md +1 -76
  1059. package/skills/playwright-best-practices/SKILL.md +1 -76
  1060. package/skills/polish/SKILL.md +1 -76
  1061. package/skills/powershell-windows/SKILL.md +1 -76
  1062. package/skills/pricing-page/SKILL.md +1 -76
  1063. package/skills/product-aware-heuristics/SKILL.md +1 -76
  1064. package/skills/progressive-blur/SKILL.md +1 -76
  1065. package/skills/project-idioms/SKILL.md +1 -76
  1066. package/skills/property-based-testing/SKILL.md +1 -76
  1067. package/skills/python-patterns/SKILL.md +1 -76
  1068. package/skills/python-pro/SKILL.md +1 -76
  1069. package/skills/quieter/SKILL.md +1 -76
  1070. package/skills/react-doctor/SKILL.md +1 -76
  1071. package/skills/react-specialist/SKILL.md +1 -76
  1072. package/skills/readme-builder/SKILL.md +1 -76
  1073. package/skills/realtime-patterns/SKILL.md +1 -76
  1074. package/skills/red-team-tactics/SKILL.md +1 -76
  1075. package/skills/redesign-skill/SKILL.md +1 -76
  1076. package/skills/review-animations/SKILL.md +1 -76
  1077. package/skills/rust-pro/SKILL.md +1 -76
  1078. package/skills/semantic-filesystem-navigation/SKILL.md +24 -0
  1079. package/skills/seo-fundamentals/SKILL.md +1 -76
  1080. package/skills/server-management/SKILL.md +1 -76
  1081. package/skills/session-log-interrogation/SKILL.md +29 -0
  1082. package/skills/shadcn-ui-expert/SKILL.md +1 -76
  1083. package/skills/shape/SKILL.md +1 -76
  1084. package/skills/skill-creator/SKILL.md +124 -90
  1085. package/skills/soft-skill/SKILL.md +1 -76
  1086. package/skills/sounds-on-the-web/SKILL.md +1 -76
  1087. package/skills/sql-pro/SKILL.md +1 -76
  1088. package/skills/subagent-driven-development/SKILL.md +32 -0
  1089. package/skills/supabase-postgres-best-practices/SKILL.md +1 -76
  1090. package/skills/svg-animation/SKILL.md +1 -76
  1091. package/skills/swiftui-expert/SKILL.md +1 -76
  1092. package/skills/swiss-design/SKILL.md +1 -76
  1093. package/skills/system-design-pro/SKILL.md +1 -76
  1094. package/skills/systematic-debugging/SKILL.md +3 -73
  1095. package/skills/tailwind-patterns/SKILL.md +1 -76
  1096. package/skills/taste-skill/SKILL.md +1 -76
  1097. package/skills/tdd-workflow/SKILL.md +1 -76
  1098. package/skills/test-result-analyzer/SKILL.md +1 -76
  1099. package/skills/testing-patterns/SKILL.md +1 -76
  1100. package/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
  1101. package/skills/thinking-protocol/SKILL.md +1 -78
  1102. package/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
  1103. package/skills/train-sentence-transformers/SKILL.md +109 -0
  1104. package/skills/train-sentence-transformers/references/base_model_selection.md +79 -0
  1105. package/skills/train-sentence-transformers/references/dataset_formats.md +128 -0
  1106. package/skills/train-sentence-transformers/references/evaluators_cross_encoder.md +116 -0
  1107. package/skills/train-sentence-transformers/references/evaluators_multi_vector_encoder.md +101 -0
  1108. package/skills/train-sentence-transformers/references/evaluators_sentence_transformer.md +151 -0
  1109. package/skills/train-sentence-transformers/references/evaluators_sparse_encoder.md +121 -0
  1110. package/skills/train-sentence-transformers/references/hardware_guide.md +105 -0
  1111. package/skills/train-sentence-transformers/references/hf_jobs_execution.md +173 -0
  1112. package/skills/train-sentence-transformers/references/losses_cross_encoder.md +137 -0
  1113. package/skills/train-sentence-transformers/references/losses_multi_vector_encoder.md +100 -0
  1114. package/skills/train-sentence-transformers/references/losses_sentence_transformer.md +246 -0
  1115. package/skills/train-sentence-transformers/references/losses_sparse_encoder.md +106 -0
  1116. package/skills/train-sentence-transformers/references/model_architectures.md +178 -0
  1117. package/skills/train-sentence-transformers/references/prompts_and_instructions.md +160 -0
  1118. package/skills/train-sentence-transformers/references/training_args.md +270 -0
  1119. package/skills/train-sentence-transformers/references/troubleshooting.md +225 -0
  1120. package/skills/train-sentence-transformers/scripts/mine_hard_negatives.py +199 -0
  1121. package/skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py +254 -0
  1122. package/skills/train-sentence-transformers/scripts/train_cross_encoder_example.py +253 -0
  1123. package/skills/train-sentence-transformers/scripts/train_cross_encoder_listwise_example.py +282 -0
  1124. package/skills/train-sentence-transformers/scripts/train_multi_vector_encoder_example.py +240 -0
  1125. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_distillation_example.py +303 -0
  1126. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_example.py +227 -0
  1127. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_make_multilingual_example.py +308 -0
  1128. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_matryoshka_example.py +212 -0
  1129. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_multi_dataset_example.py +258 -0
  1130. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py +273 -0
  1131. package/skills/train-sentence-transformers/scripts/train_sentence_transformer_with_lora_example.py +275 -0
  1132. package/skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py +262 -0
  1133. package/skills/train-sentence-transformers/scripts/train_sparse_encoder_example.py +237 -0
  1134. package/skills/transformers-js/SKILL.md +692 -0
  1135. package/skills/transformers-js/references/CACHE.md +339 -0
  1136. package/skills/transformers-js/references/CONFIGURATION.md +438 -0
  1137. package/skills/transformers-js/references/EXAMPLES.md +620 -0
  1138. package/skills/transformers-js/references/MODEL_ARCHITECTURES.md +167 -0
  1139. package/skills/transformers-js/references/MODEL_REGISTRY.md +197 -0
  1140. package/skills/transformers-js/references/PIPELINE_OPTIONS.md +557 -0
  1141. package/skills/transformers-js/references/TEXT_GENERATION.md +315 -0
  1142. package/skills/transitions-dev/SKILL.md +1 -76
  1143. package/skills/trend-researcher/SKILL.md +1 -76
  1144. package/skills/tribunal-instincts-memory/SKILL.md +31 -0
  1145. package/skills/trl-training/SKILL.md +318 -0
  1146. package/skills/typescript-advanced/SKILL.md +1 -76
  1147. package/skills/typeset/SKILL.md +1 -76
  1148. package/skills/ui-reasoning-engine/SKILL.md +1 -76
  1149. package/skills/ui-skill-packs/SKILL.md +1 -76
  1150. package/skills/ui-skills-root/SKILL.md +1 -76
  1151. package/skills/ui-ux-pro-max/SKILL.md +1 -76
  1152. package/skills/ui-ux-researcher/SKILL.md +1 -76
  1153. package/skills/vector-search-pgvector/SKILL.md +1 -76
  1154. package/skills/verification-before-completion/SKILL.md +1 -76
  1155. package/skills/vue-expert/SKILL.md +1 -76
  1156. package/skills/vulnerability-scanner/SKILL.md +1 -76
  1157. package/skills/web-accessibility-auditor/SKILL.md +1 -76
  1158. package/skills/web-design-guidelines/SKILL.md +1 -76
  1159. package/skills/web-quality-audit/SKILL.md +1 -76
  1160. package/skills/webapp-testing/SKILL.md +1 -76
  1161. package/skills/webgpu-performance/SKILL.md +1 -76
  1162. package/skills/whimsy-injector/SKILL.md +1 -76
  1163. package/skills/workflow-optimizer/SKILL.md +1 -76
  1164. package/skills/zero-trust-passkeys/SKILL.md +1 -76
@@ -0,0 +1,239 @@
1
+ ---
2
+ name: hf-cli
3
+ description: "Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingface-cli`."
4
+ ---
5
+
6
+ Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`.
7
+
8
+ The Hugging Face Hub CLI tool `hf` is available. IMPORTANT: The `hf` command replaces the deprecated `huggingface-cli` command.
9
+
10
+ Use `hf --help` to view available functions. Note that auth commands are now all under `hf auth` e.g. `hf auth whoami`.
11
+
12
+ Generated with `huggingface_hub v2.0.0`. Run `hf skills add --force` to regenerate.
13
+
14
+ ## Commands
15
+
16
+ - `hf cp SRC` — Copy files between local paths, repositories, and buckets. `[--format [auto|human|agent|json|quiet]]`
17
+ - `hf download REPO_ID` — Download files from the Hub. `[--type [model|dataset|space|kernel] --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --max-workers INTEGER --format [auto|human|agent|json|quiet]]`
18
+ - `hf env` — Print information about the environment. `[--format [auto|human|agent|json|quiet]]`
19
+ - `hf sync` — Sync files between local directory and a bucket. `[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]]`
20
+ - `hf update` — Update the `hf` CLI to the latest version. `[--format [auto|human|agent|json|quiet]]`
21
+ - `hf upload REPO_ID` — Upload a file or a folder to the Hub. Recommended for single-commit uploads. `[--type [model|dataset|space|kernel] --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --format [auto|human|agent|json|quiet]]`
22
+ - `hf version` — Print information about the hf version. `[--format [auto|human|agent|json|quiet]]`
23
+
24
+ ### `hf auth` — Manage authentication (login, logout, etc.).
25
+
26
+ - `hf auth list` — List all stored access tokens. `[--format [auto|human|agent|json|quiet]]`
27
+ - `hf auth login` — Login from your browser, or using a token from huggingface.co/settings/tokens. `[--add-to-git-credential --force --format [auto|human|agent|json|quiet]]`
28
+ - `hf auth logout` — Logout from a specific token. `[--token-name TEXT --format [auto|human|agent|json|quiet]]`
29
+ - `hf auth switch` — Switch between access tokens. `[--token-name TEXT --add-to-git-credential --format [auto|human|agent|json|quiet]]`
30
+ - `hf auth token` — Print the current access token to stdout. `[--format [auto|human|agent|json|quiet]]`
31
+ - `hf auth whoami` — Find out which huggingface.co account you are logged in as. `[--format [auto|human|agent|json|quiet]]`
32
+
33
+ ### `hf buckets` — Commands to interact with buckets.
34
+
35
+ - `hf buckets cp SRC` — Copy files between local paths, repositories, and buckets. `[--format [auto|human|agent|json|quiet]]`
36
+ - `hf buckets create BUCKET_ID` — Create a new bucket. `[--private --region [us|eu] --exist-ok --format [auto|human|agent|json|quiet]]`
37
+ - `hf buckets delete BUCKET_ID` — Delete a bucket. `[--yes --missing-ok --format [auto|human|agent|json|quiet]]`
38
+ - `hf buckets info BUCKET_ID` — Get info about a bucket. `[--format [auto|human|agent|json|quiet]]`
39
+ - `hf buckets list` — List buckets or files in a bucket. `[--human-readable --tree --recursive --search TEXT --format [auto|human|agent|json|quiet]]`
40
+ - `hf buckets move FROM_ID TO_ID` — Move (rename) a bucket to a new name or namespace. `[--format [auto|human|agent|json|quiet]]`
41
+ - `hf buckets remove ARGUMENT` — Remove files from a bucket. `[--recursive --yes --dry-run --include TEXT --exclude TEXT --format [auto|human|agent|json|quiet]]`
42
+ - `hf buckets settings BUCKET_ID` — Update bucket settings (visibility). `[--private --public --format [auto|human|agent|json|quiet]]`
43
+ - `hf buckets sync` — Sync files between local directory and a bucket. `[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]]`
44
+
45
+ ### `hf cache` — Manage local cache directory.
46
+
47
+ - `hf cache list` — List cached repositories or revisions. `[--cache-dir TEXT --revisions --filter TEXT --sort [accessed|accessed:asc|accessed:desc|modified|modified:asc|modified:desc|name|name:asc|name:desc|size|size:asc|size:desc] --limit INTEGER --show-warnings --format [auto|human|agent|json|quiet]]`
48
+ - `hf cache prune` — Remove detached revisions and incomplete downloads from the cache. `[--cache-dir TEXT --yes --dry-run --format [auto|human|agent|json|quiet]]`
49
+ - `hf cache rm TARGETS` — Remove cached repositories, revisions or files. `[--cache-dir TEXT --yes --dry-run --format [auto|human|agent|json|quiet]]`
50
+ - `hf cache verify REPO_ID` — Verify checksums for a single repo revision from cache or a local directory. `[--type [model|dataset|space|kernel] --revision TEXT --cache-dir TEXT --local-dir TEXT --fail-on-missing-files --fail-on-extra-files --format [auto|human|agent|json|quiet]]`
51
+
52
+ ### `hf collections` — Interact with collections on the Hub.
53
+
54
+ - `hf collections add-item COLLECTION_SLUG ITEM_ID ITEM_TYPE` — Add an item to a collection. `[--note TEXT --exists-ok --format [auto|human|agent|json|quiet]]`
55
+ - `hf collections create TITLE` — Create a new collection on the Hub. `[--namespace TEXT --description TEXT --private --exists-ok --format [auto|human|agent|json|quiet]]`
56
+ - `hf collections delete COLLECTION_SLUG` — Delete a collection from the Hub. `[--missing-ok --format [auto|human|agent|json|quiet]]`
57
+ - `hf collections delete-item COLLECTION_SLUG ITEM_OBJECT_ID` — Delete an item from a collection. `[--missing-ok --format [auto|human|agent|json|quiet]]`
58
+ - `hf collections info COLLECTION_SLUG` — Get info about a collection on the Hub. `[--format [auto|human|agent|json|quiet]]`
59
+ - `hf collections list` — List collections on the Hub. `[--owner TEXT --item TEXT --sort [lastModified|trending|upvotes] --limit INTEGER --format [auto|human|agent|json|quiet]]`
60
+ - `hf collections update COLLECTION_SLUG` — Update a collection's metadata on the Hub. `[--title TEXT --description TEXT --position INTEGER --private --theme TEXT --format [auto|human|agent|json|quiet]]`
61
+ - `hf collections update-item COLLECTION_SLUG ITEM_OBJECT_ID` — Update an item in a collection. `[--note TEXT --position INTEGER --format [auto|human|agent|json|quiet]]`
62
+
63
+ ### `hf datasets` — Interact with datasets on the Hub.
64
+
65
+ - `hf datasets card DATASET_ID` — Get the dataset card (README) for a dataset on the Hub. `[--metadata --text --format [auto|human|agent|json|quiet]]`
66
+ - `hf datasets info DATASET_ID` — Get info about a dataset on the Hub. `[--revision TEXT --expand TEXT --format [auto|human|agent|json|quiet]]`
67
+ - `hf datasets leaderboard DATASET_ID` — List model scores from a dataset leaderboard. This command helps find the best models for a task or compare models by benchmark scores. Use 'hf datasets ls --filter benchmark:official' to list available leaderboards. `[--limit INTEGER --format [auto|human|agent|json|quiet]]`
68
+ - `hf datasets list` — List datasets on the Hub, or files in a dataset repo. `[--search TEXT --author TEXT --filter TEXT --sort [created_at|downloads|last_modified|likes|trending_score] --limit INTEGER --expand TEXT --human-readable --tree --recursive --revision TEXT --format [auto|human|agent|json|quiet]]`
69
+ - `hf datasets parquet DATASET_ID` — List parquet file URLs available for a dataset. `[--subset TEXT --split TEXT --format [auto|human|agent|json|quiet]]`
70
+ - `hf datasets sql SQL` — Execute a raw SQL query with DuckDB against dataset parquet URLs. `[--format [auto|human|agent|json|quiet]]`
71
+
72
+ ### `hf discussions` — Manage discussions and pull requests on the Hub.
73
+
74
+ - `hf discussions close REPO_ID NUM` — Close a discussion or pull request. `[--comment TEXT --yes --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
75
+ - `hf discussions comment REPO_ID NUM` — Comment on a discussion or pull request. `[--body TEXT --body-file PATH --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
76
+ - `hf discussions create REPO_ID --title TEXT` — Create a new discussion or pull request on a repo. `[--body TEXT --body-file PATH --pull-request --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
77
+ - `hf discussions diff REPO_ID NUM` — Show the diff of a pull request. `[--type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
78
+ - `hf discussions edit REPO_ID NUM COMMENT_ID` — Edit an existing comment on a discussion or pull request. `[--body TEXT --body-file PATH --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
79
+ - `hf discussions info REPO_ID NUM` — Get info about a discussion or pull request. `[--type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
80
+ - `hf discussions list REPO_ID` — List discussions and pull requests on a repo. `[--status [open|closed|merged|draft|all] --kind [all|discussion|pull_request] --author TEXT --limit INTEGER --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
81
+ - `hf discussions merge REPO_ID NUM` — Merge a pull request. `[--comment TEXT --yes --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
82
+ - `hf discussions rename REPO_ID NUM NEW_TITLE` — Rename a discussion or pull request. `[--type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
83
+ - `hf discussions reopen REPO_ID NUM` — Reopen a closed discussion or pull request. `[--comment TEXT --yes --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
84
+
85
+ ### `hf endpoints` — Manage Hugging Face Inference Endpoints.
86
+
87
+ - `hf endpoints catalog deploy --repo TEXT` — Deploy an Inference Endpoint from the Model Catalog. `[--name TEXT --accelerator TEXT --namespace TEXT --format [auto|human|agent|json|quiet]]`
88
+ - `hf endpoints catalog list` — List available Catalog models. `[--format [auto|human|agent|json|quiet]]`
89
+ - `hf endpoints delete NAME` — Delete an Inference Endpoint permanently. `[--namespace TEXT --yes --format [auto|human|agent|json|quiet]]`
90
+ - `hf endpoints deploy NAME --repo TEXT --framework TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --region TEXT --vendor TEXT` — Deploy an Inference Endpoint from a Hub repository. `[--namespace TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric [pendingRequests|hardwareUsage] --scaling-threshold FLOAT --revision TEXT --custom-image TEXT --engine [custom|hf-serve|llamacpp|sglang|tei|tgi|tgi-neuron|vllm|vllm-neuron] --health-route TEXT --port INTEGER --container-registry-username TEXT --container-registry-password TEXT --tensor-parallel-size INTEGER --data-parallel-size INTEGER --container-command TEXT --container-args TEXT --env TEXT --env-file TEXT --secrets TEXT --secrets-file TEXT --type [public|authenticated|private] --format [auto|human|agent|json|quiet]]`
91
+ - `hf endpoints describe NAME` — Get information about an existing endpoint. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
92
+ - `hf endpoints hardware` — List the hardware available to deploy an Inference Endpoint on. `[--namespace TEXT --vendor TEXT --region TEXT --accelerator TEXT --instance-type TEXT --all --format [auto|human|agent|json|quiet]]`
93
+ - `hf endpoints list` — Lists all Inference Endpoints for the given namespace. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
94
+ - `hf endpoints pause NAME` — Pause an Inference Endpoint. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
95
+ - `hf endpoints resume NAME` — Resume an Inference Endpoint. `[--namespace TEXT --fail-if-already-running --format [auto|human|agent|json|quiet]]`
96
+ - `hf endpoints scale-to-zero NAME` — Scale an Inference Endpoint to zero. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
97
+ - `hf endpoints update NAME` — Update an existing endpoint. `[--namespace TEXT --repo TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --framework TEXT --revision TEXT --task TEXT --custom-image TEXT --engine [custom|hf-serve|llamacpp|sglang|tei|tgi|tgi-neuron|vllm|vllm-neuron] --health-route TEXT --port INTEGER --tensor-parallel-size INTEGER --data-parallel-size INTEGER --container-command TEXT --container-args TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric [pendingRequests|hardwareUsage] --scaling-threshold FLOAT --format [auto|human|agent|json|quiet]]`
98
+
99
+ ### `hf extensions` — Manage hf CLI extensions.
100
+
101
+ - `hf extensions exec NAME` — Execute an installed extension.
102
+ - `hf extensions install REPO_ID` — Install an extension from a public GitHub repository. `[--force --format [auto|human|agent|json|quiet]]`
103
+ - `hf extensions list` — List installed extension commands. `[--format [auto|human|agent|json|quiet]]`
104
+ - `hf extensions remove NAME` — Remove an installed extension. `[--format [auto|human|agent|json|quiet]]`
105
+ - `hf extensions search` — Search extensions available on GitHub (tagged with 'hf-extension' topic). `[--format [auto|human|agent|json|quiet]]`
106
+ - `hf extensions update` — Update installed extension(s) to their latest version. `[--format [auto|human|agent|json|quiet]]`
107
+
108
+ ### `hf jobs` — Run and manage Jobs on the Hub.
109
+
110
+ - `hf jobs cancel JOB_ID` — Cancel a Job `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
111
+ - `hf jobs hardware` — List available hardware options for Jobs `[--format [auto|human|agent|json|quiet]]`
112
+ - `hf jobs inspect JOB_IDS` — Display detailed information on one or more Jobs `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
113
+ - `hf jobs labels JOB_ID` — Update labels on a Job. Passing --label replaces all existing labels; passing --name alone keeps them. `[--name TEXT --label TEXT --clear --namespace TEXT --format [auto|human|agent|json|quiet]]`
114
+ - `hf jobs list` — List Jobs. `[--all --status [COMPLETED|CANCELED|ERROR|DELETED|SCHEDULING|RUNNING] --label TEXT --name TEXT --limit INTEGER --namespace TEXT --format [auto|human|agent|json|quiet]]`
115
+ - `hf jobs logs JOB_ID` — Fetch the logs of a Job. `[--follow --tail INTEGER --namespace TEXT --format [auto|human|agent|json|quiet]]`
116
+ - `hf jobs run IMAGE COMMAND` — Run a Job. `[--env TEXT --secrets TEXT --name TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor [cpu-basic|cpu-upgrade|cpu-performance|cpu-xl|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8|h200|h200x2|h200x4|h200x8|rtx-pro-6000|rtx-pro-6000x2|rtx-pro-6000x4|rtx-pro-6000x8] --timeout TEXT --detach --dry-run --expose INTEGER --ssh --network-group TEXT --network-alias TEXT --resource-group-id TEXT --namespace TEXT --format [agent|auto|human|json|quiet] --json --quiet]`
117
+ - `hf jobs scheduled delete SCHEDULED_JOB_ID` — Delete a scheduled Job. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
118
+ - `hf jobs scheduled inspect SCHEDULED_JOB_IDS` — Display detailed information on one or more scheduled Jobs `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
119
+ - `hf jobs scheduled labels SCHEDULED_JOB_ID` — Update labels on a scheduled Job. Passing --label replaces all existing labels; passing --name alone keeps them. `[--name TEXT --label TEXT --clear --namespace TEXT --format [auto|human|agent|json|quiet]]`
120
+ - `hf jobs scheduled list` — List scheduled Jobs. `[--all --status [active|suspended] --label TEXT --name TEXT --namespace TEXT --format [auto|human|agent|json|quiet]]`
121
+ - `hf jobs scheduled resume SCHEDULED_JOB_ID` — Resume (unpause) a scheduled Job. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
122
+ - `hf jobs scheduled run SCHEDULE IMAGE COMMAND` — Schedule a Job. `[--suspend --concurrency --env TEXT --secrets TEXT --name TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor [cpu-basic|cpu-upgrade|cpu-performance|cpu-xl|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8|h200|h200x2|h200x4|h200x8|rtx-pro-6000|rtx-pro-6000x2|rtx-pro-6000x4|rtx-pro-6000x8] --timeout TEXT --dry-run --expose INTEGER --resource-group-id TEXT --namespace TEXT --format [agent|auto|human|json|quiet] --json --quiet]`
123
+ - `hf jobs scheduled suspend SCHEDULED_JOB_ID` — Suspend (pause) a scheduled Job. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
124
+ - `hf jobs scheduled trigger SCHEDULED_JOB_ID` — Trigger a scheduled Job to run immediately (does not change the schedule). `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
125
+ - `hf jobs scheduled uv run SCHEDULE SCRIPT` — Run a UV script (local file or URL) on HF infrastructure `[--suspend --concurrency --image TEXT --flavor [cpu-basic|cpu-upgrade|cpu-performance|cpu-xl|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8|h200|h200x2|h200x4|h200x8|rtx-pro-6000|rtx-pro-6000x2|rtx-pro-6000x4|rtx-pro-6000x8] --env TEXT --secrets TEXT --name TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --dry-run --expose INTEGER --resource-group-id TEXT --namespace TEXT --with TEXT --python TEXT --format [agent|auto|human|json|quiet] --json --quiet]`
126
+ - `hf jobs ssh JOB_ID` — SSH into a running Job. `[--identity-file PATH --dry-run --namespace TEXT --format [auto|human|agent|json|quiet]]`
127
+ - `hf jobs stats` — Fetch the resource usage statistics and metrics of Jobs `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
128
+ - `hf jobs uv run SCRIPT` — Run a UV script (local file or URL) on HF infrastructure `[--image TEXT --flavor [cpu-basic|cpu-upgrade|cpu-performance|cpu-xl|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8|h200|h200x2|h200x4|h200x8|rtx-pro-6000|rtx-pro-6000x2|rtx-pro-6000x4|rtx-pro-6000x8] --env TEXT --secrets TEXT --name TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --detach --dry-run --expose INTEGER --ssh --network-group TEXT --network-alias TEXT --resource-group-id TEXT --namespace TEXT --with TEXT --python TEXT --format [agent|auto|human|json|quiet] --json --quiet]`
129
+ - `hf jobs wait JOB_IDS` — Wait for one or more Jobs to reach a terminal state. `[--timeout TEXT --namespace TEXT --format [auto|human|agent|json|quiet]]`
130
+
131
+ ### `hf models` — Interact with models on the Hub.
132
+
133
+ - `hf models card MODEL_ID` — Get the model card (README) for a model on the Hub. `[--metadata --text --format [auto|human|agent|json|quiet]]`
134
+ - `hf models info MODEL_ID` — Get info about a model on the Hub. `[--revision TEXT --expand TEXT --format [auto|human|agent|json|quiet]]`
135
+ - `hf models list` — List models on the Hub, or files in a model repo. `[--search TEXT --author TEXT --filter TEXT --pipeline-tag TEXT --gated --apps TEXT --num-parameters TEXT --inference-provider [baseten|cerebras|cohere|deepinfra|fal-ai|featherless-ai|fireworks-ai|groq|hf-inference|novita|nscale|openai|ovhcloud|publicai|replicate|scaleway|together|wavespeed|zai-org] --warm --sort [created_at|downloads|last_modified|likes|trending_score] --limit INTEGER --expand TEXT --human-readable --tree --recursive --revision TEXT --format [auto|human|agent|json|quiet]]`
136
+
137
+ ### `hf papers` — Interact with papers on the Hub.
138
+
139
+ - `hf papers info PAPER_ID` — Get info about a paper on the Hub. `[--format [auto|human|agent|json|quiet]]`
140
+ - `hf papers list` — List daily papers on the Hub. `[--date TEXT --week TEXT --month TEXT --submitter TEXT --sort [publishedAt|trending] --limit INTEGER --format [auto|human|agent|json|quiet]]`
141
+ - `hf papers read PAPER_ID` — Read a paper as markdown. `[--format [auto|human|agent|json|quiet]]`
142
+ - `hf papers search QUERY` — Search papers on the Hub. `[--limit INTEGER --format [auto|human|agent|json|quiet]]`
143
+
144
+ ### `hf repos` — Manage repos on the Hub.
145
+
146
+ - `hf repos branch create REPO_ID BRANCH` — Create a new branch for a repo on the Hub. `[--revision TEXT --type [model|dataset|space|kernel] --exist-ok --format [auto|human|agent|json|quiet]]`
147
+ - `hf repos branch delete REPO_ID BRANCH` — Delete a branch from a repo on the Hub. `[--type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
148
+ - `hf repos cp SRC` — Copy files between local paths, repositories, and buckets. `[--format [auto|human|agent|json|quiet]]`
149
+ - `hf repos create REPO_ID` — Create a new repo on the Hub. `[--type [model|dataset|space|kernel] --sdk TEXT --template TEXT --private --public --protected --exist-ok --resource-group-id TEXT --region [us|eu] --flavor [cpu-basic|cpu-upgrade|zero-a10g|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8] --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT --volume TEXT --format [auto|human|agent|json|quiet]]`
150
+ - `hf repos delete REPO_ID` — Delete a repo from the Hub. This is an irreversible operation. `[--type [model|dataset|space|kernel] --missing-ok --yes --format [auto|human|agent|json|quiet]]`
151
+ - `hf repos delete-files REPO_ID PATTERNS` — Delete files from a repo on the Hub. `[--type [model|dataset|space|kernel] --revision TEXT --commit-message TEXT --commit-description TEXT --create-pr --format [auto|human|agent|json|quiet]]`
152
+ - `hf repos duplicate FROM_ID` — Duplicate a repo on the Hub (model, dataset, or Space). `[--type [model|dataset|space|kernel] --private --public --protected --exist-ok --flavor [cpu-basic|cpu-upgrade|zero-a10g|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8] --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT --volume TEXT --format [auto|human|agent|json|quiet]]`
153
+ - `hf repos list` — List all repos (models, datasets, spaces, buckets) with storage info. `[--namespace TEXT --type [model|dataset|space|bucket] --search TEXT --limit INTEGER --explore --format [auto|human|agent|json|quiet]]`
154
+ - `hf repos move FROM_ID TO_ID` — Move a repository from a namespace to another namespace. `[--type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
155
+ - `hf repos settings REPO_ID` — Update the settings of a repository. `[--gated [auto|manual|false] --private --public --protected --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
156
+ - `hf repos tag create REPO_ID TAG` — Create a tag for a repo. `[--message TEXT --revision TEXT --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
157
+ - `hf repos tag delete REPO_ID TAG` — Delete a tag for a repo. `[--yes --type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
158
+ - `hf repos tag list REPO_ID` — List tags for a repo. `[--type [model|dataset|space|kernel] --format [auto|human|agent|json|quiet]]`
159
+
160
+ ### `hf sandbox` — Run and manage experimental sandboxes on Hugging Face Jobs.
161
+
162
+ - `hf sandbox cp SRC DST` — Copy a file between the local machine and a sandbox (docker-style). `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
163
+ - `hf sandbox create` — Create a sandbox: a dedicated VM by default, or a cheap shared one with `--pool`. `[--pool TEXT --flavor [cpu-basic|cpu-upgrade|cpu-performance|cpu-xl|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8|h200|h200x2|h200x4|h200x8|rtx-pro-6000|rtx-pro-6000x2|rtx-pro-6000x4|rtx-pro-6000x8] --idle-timeout TEXT --env TEXT --secrets TEXT --label TEXT --env-file TEXT --secrets-file TEXT --volume TEXT --namespace TEXT --forward-hf-token --format [auto|human|agent|json|quiet]]`
164
+ - `hf sandbox exec SANDBOX_ID COMMAND` — Run a command in a sandbox, streaming output. Exits with the command's exit code. `[--workdir TEXT --env TEXT --env-file TEXT --timeout FLOAT --namespace TEXT]`
165
+ - `hf sandbox kill` — Terminate a sandbox, a whole shared host, or everything (--all). `[--all --yes --namespace TEXT --format [auto|human|agent|json|quiet]]`
166
+ - `hf sandbox pool create` — Warm a pool: boot one host VM now, tagged so it can be found later by its pool id. `[--flavor [cpu-basic|cpu-upgrade|cpu-performance|cpu-xl|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8|h200|h200x2|h200x4|h200x8|rtx-pro-6000|rtx-pro-6000x2|rtx-pro-6000x4|rtx-pro-6000x8] --per-host INTEGER RANGE --max-hosts INTEGER RANGE --idle-timeout TEXT --namespace TEXT --format [auto|human|agent|json|quiet]]`
167
+ - `hf sandbox pool delete POOL_ID` — Terminate every host VM of a pool (and therefore all its sandboxes). `[--yes --namespace TEXT --format [auto|human|agent|json|quiet]]`
168
+ - `hf sandbox pool ls` — List running sandbox pools (grouped from their host VMs). `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
169
+ - `hf sandbox process kill SANDBOX_ID PID` — Stop a background process running in a sandbox. `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
170
+ - `hf sandbox process ls SANDBOX_ID` — List the background processes running in a sandbox (started with `hf sandbox spawn`). `[--namespace TEXT --format [auto|human|agent|json|quiet]]`
171
+ - `hf sandbox spawn SANDBOX_ID COMMAND` — Start a long-running command in the background and return its pid (don't wait). `[--workdir TEXT --env TEXT --env-file TEXT --namespace TEXT]`
172
+
173
+ ### `hf skills` — Manage skills for AI assistants.
174
+
175
+ - `hf skills add` — Install a Hugging Face skill for an AI assistant. `[--global --dest PATH --force --format [auto|human|agent|json|quiet]]`
176
+ - `hf skills list` — List available skills from the Hugging Face marketplace. `[--format [auto|human|agent|json|quiet]]`
177
+ - `hf skills preview` — Print the generated `hf-cli` SKILL.md to stdout. `[--format [auto|human|agent|json|quiet]]`
178
+ - `hf skills update` — Update installed Hugging Face marketplace skills. `[--global --dest PATH --format [auto|human|agent|json|quiet]]`
179
+
180
+ ### `hf spaces` — Interact with spaces on the Hub.
181
+
182
+ - `hf spaces card SPACE_ID` — Get the Space card (README) for a Space on the Hub. `[--metadata --text --format [auto|human|agent|json|quiet]]`
183
+ - `hf spaces dev-mode SPACE_ID` — Enable or disable dev mode on a Space. `[--stop --format [auto|human|agent|json|quiet]]`
184
+ - `hf spaces hardware` — List available hardware options for Spaces. `[--format [auto|human|agent|json|quiet]]`
185
+ - `hf spaces hot-reload SPACE_ID` — Hot-reload any Python file of a Space without a full rebuild + restart. `[--local-file PATH --skip-checks --skip-summary --format [auto|human|agent|json|quiet]]`
186
+ - `hf spaces info SPACE_ID` — Get info about a space on the Hub. `[--revision TEXT --expand TEXT --format [auto|human|agent|json|quiet]]`
187
+ - `hf spaces list` — List spaces on the Hub, or files in a space repo. `[--search TEXT --author TEXT --filter TEXT --sort [created_at|last_modified|likes|trending_score] --limit INTEGER --expand TEXT --human-readable --tree --recursive --revision TEXT --format [auto|human|agent|json|quiet]]`
188
+ - `hf spaces logs SPACE_ID` — Fetch the run or build logs of a Space. `[--build --follow --tail INTEGER --format [auto|human|agent|json|quiet]]`
189
+ - `hf spaces pause SPACE_ID` — Pause a Space. `[--format [auto|human|agent|json|quiet]]`
190
+ - `hf spaces restart SPACE_ID` — Restart a Space. `[--factory-reboot --format [auto|human|agent|json|quiet]]`
191
+ - `hf spaces search QUERY` — Search spaces on the Hub using semantic search. `[--filter TEXT --sdk TEXT --include-non-running --description --limit INTEGER --format [auto|human|agent|json|quiet]]`
192
+ - `hf spaces secrets add SPACE_ID` — Add or update secrets for a Space. `[--secrets TEXT --secrets-file TEXT --format [auto|human|agent|json|quiet]]`
193
+ - `hf spaces secrets delete SPACE_ID KEY` — Remove a secret from a Space. `[--yes --format [auto|human|agent|json|quiet]]`
194
+ - `hf spaces secrets list SPACE_ID` — List secrets for a Space. Secret values are write-only and not returned. `[--format [auto|human|agent|json|quiet]]`
195
+ - `hf spaces settings SPACE_ID` — Update the settings of a Space. `[--sleep-time INTEGER --hardware [cpu-basic|cpu-upgrade|zero-a10g|t4-small|t4-medium|l4x1|l4x4|l40sx1|l40sx4|l40sx8|a10g-small|a10g-large|a10g-largex2|a10g-largex4|a100-large|a100x4|a100x8] --format [auto|human|agent|json|quiet]]`
196
+ - `hf spaces ssh SPACE_ID` — SSH into a Space's Dev Mode container. `[--identity-file PATH --dry-run --auto --format [auto|human|agent|json|quiet]]`
197
+ - `hf spaces templates` — List the available Space templates. `[--format [auto|human|agent|json|quiet]]`
198
+ - `hf spaces variables add SPACE_ID` — Add or update environment variables for a Space. `[--env TEXT --env-file TEXT --format [auto|human|agent|json|quiet]]`
199
+ - `hf spaces variables delete SPACE_ID KEY` — Remove an environment variable from a Space. `[--yes --format [auto|human|agent|json|quiet]]`
200
+ - `hf spaces variables list SPACE_ID` — List environment variables for a Space. `[--format [auto|human|agent|json|quiet]]`
201
+ - `hf spaces volumes delete SPACE_ID` — Remove all volumes from a Space. `[--yes --format [auto|human|agent|json|quiet]]`
202
+ - `hf spaces volumes list SPACE_ID` — List volumes mounted in a Space. `[--format [auto|human|agent|json|quiet]]`
203
+ - `hf spaces volumes set SPACE_ID` — Set (replace) volumes for a Space. `[--volume TEXT --format [auto|human|agent|json|quiet]]`
204
+ - `hf spaces wait SPACE_ID` — Wait for a Space to finish building/starting. `[--timeout TEXT --format [auto|human|agent|json|quiet]]`
205
+
206
+ ### `hf webhooks` — Manage webhooks on the Hub.
207
+
208
+ - `hf webhooks create --watch TEXT` — Create a new webhook. `[--url TEXT --job-id TEXT --domain [repo|discussions] --secret TEXT --format [auto|human|agent|json|quiet]]`
209
+ - `hf webhooks delete WEBHOOK_ID` — Delete a webhook permanently. `[--yes --format [auto|human|agent|json|quiet]]`
210
+ - `hf webhooks disable WEBHOOK_ID` — Disable an active webhook. `[--format [auto|human|agent|json|quiet]]`
211
+ - `hf webhooks enable WEBHOOK_ID` — Enable a disabled webhook. `[--format [auto|human|agent|json|quiet]]`
212
+ - `hf webhooks info WEBHOOK_ID` — Show full details for a single webhook. `[--format [auto|human|agent|json|quiet]]`
213
+ - `hf webhooks list` — List all webhooks for the current user. `[--format [auto|human|agent|json|quiet]]`
214
+ - `hf webhooks update WEBHOOK_ID` — Update an existing webhook. Only provided options are changed. `[--url TEXT --watch TEXT --domain [repo|discussions] --secret TEXT --format [auto|human|agent|json|quiet]]`
215
+
216
+ ## Common options
217
+
218
+ - `--format` — Output format: `--format json` (or `--json`) or `--format table` (default).
219
+ - `-q / --quiet` — Quiet output (one ID per line). Equivalent to '--format quiet'.
220
+ - `--revision` — Git revision id which can be a branch name, a tag, or a commit hash.
221
+ - `--token` — Use a User Access Token. Prefer setting `HF_TOKEN` env var instead of passing `--token`.
222
+ - `--type` — The type of repository (model, dataset, space, or kernel).
223
+
224
+ ## Mounting repos as local filesystems
225
+
226
+ To mount Hub repositories or buckets as local filesystems — no download, no copy, no waiting — use `hf-mount`. Files are fetched on demand. GitHub: https://github.com/huggingface/hf-mount
227
+
228
+ Install: `brew install hf-mount`, or download a binary from https://github.com/huggingface/hf-mount/releases
229
+
230
+ Some command examples:
231
+ - `hf-mount start repo openai-community/gpt2 /tmp/gpt2` — mount a repo (read-only)
232
+ - `hf-mount start --hf-token $HF_TOKEN bucket myuser/my-bucket /tmp/data` — mount a bucket (read-write)
233
+ - `hf-mount status` / `hf-mount stop /tmp/data` — list or unmount
234
+
235
+ ## Tips
236
+
237
+ - Use `hf <command> --help` for full options, descriptions, usage, and real-world examples
238
+ - Authenticate with `HF_TOKEN` env var (recommended) or with `--token`
239
+ - Update the CLI with `hf update` (uses the correct command for the detected install method)
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: hf-cloud-aws-context-discovery
3
+ description: Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like "use my AWS account", "deploy to AWS", "use my profile", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.
4
+ ---
5
+
6
+ # AWS Context Discovery
7
+
8
+ Before doing any AWS work, read the user's local AWS config. Don't guess the region, and don't ask the user for things their config already answers.
9
+
10
+ ## What to discover
11
+
12
+ Run these at the start of the AWS work and remember the results for the rest of the session.
13
+
14
+ ### 1. Active profile
15
+
16
+ `AWS_PROFILE` env var, else `default`. If the user mentioned a profile in their prompt, that overrides. If the named profile doesn't exist in `~/.aws/config`, surface that clearly.
17
+
18
+ ### 2. Region
19
+
20
+ Resolution order — stop at the first one that produces a value:
21
+ 1. Region the user explicitly named in this conversation
22
+ 2. `AWS_REGION` env var
23
+ 3. `AWS_DEFAULT_REGION` env var
24
+ 4. `region` field on the active profile in `~/.aws/config`
25
+ 5. Ask the user — but only after the first four have failed
26
+
27
+ Do not fall back to `us-east-1` or any other hardcoded default.
28
+
29
+ ### 3. Credentials, account ID, caller ARN
30
+
31
+ ```bash
32
+ aws sts get-caller-identity --profile <profile> --region <region>
33
+ ```
34
+
35
+ Three purposes in one call: confirms credentials are valid (stop if not), returns the `Account` ID (needed for ARN construction), returns the `Arn` of the caller.
36
+
37
+ ### 4. Identify SSO / assumed-role principals
38
+
39
+ The `Arn` field tells you what kind of principal this is. The pattern matters because it determines what IAM operations the caller can do.
40
+
41
+ | ARN pattern | Type | IAM write capability |
42
+ |---|---|---|
43
+ | `arn:aws:iam::<acct>:user/<name>` | IAM user | Depends on attached policies |
44
+ | `arn:aws:sts::<acct>:assumed-role/AWSReservedSSO_<...>/<email>` | **SSO assumed-role** | Typically **none** — can't create/modify IAM roles |
45
+ | `arn:aws:sts::<acct>:assumed-role/<role>/<session>` | Regular assumed-role | Depends on the role |
46
+
47
+ **If the caller is SSO**, surface this immediately before later skills hit `iam:CreateRole` and fail:
48
+
49
+ > Heads up: you're authenticated via SSO (`AWSReservedSSO_<PermissionSet>_...`). SSO principals usually can't create IAM roles directly. If we need a SageMaker execution role, I'll look for an existing one first — if none exists, you'll need to ask whoever manages your AWS access to create one.
50
+
51
+ This is the highest-leverage thing this skill does. Surfacing it now turns a confusing mid-deployment error into a five-second conversation.
52
+
53
+ ## Commands to run
54
+
55
+ ```bash
56
+ # Effective profile and region (faster than parsing config files)
57
+ aws configure list
58
+
59
+ # Validate credentials and get identity
60
+ aws sts get-caller-identity
61
+ aws sts get-caller-identity --profile <profile-name> # if a profile was named
62
+ ```
63
+
64
+ `aws configure list` handles env-var overrides and shows the resolved effective values. Prefer it over parsing `~/.aws/config` yourself. If you need to read raw config (e.g. to list profiles), `~/.aws/config` and `~/.aws/credentials` are plain INI files — read-only.
65
+
66
+ ## What to report back
67
+
68
+ One or two lines, not a wall of text:
69
+
70
+ > Working with profile `my-profile` in `eu-west-1`, account `123456789012`. You're authenticated via SSO, so we'll need to use an existing IAM role rather than create one.
71
+
72
+ Don't ask the user to confirm the region you just read from their config — they configured it; that is the confirmation.
73
+
74
+ If something is wrong (credentials expired, profile doesn't exist, no region anywhere), stop and surface the specific error before continuing.
@@ -0,0 +1,90 @@
1
+ ---
2
+ name: hf-cloud-python-env-setup
3
+ description: 'Set up an isolated Python environment for SageMaker / AWS work, with the right Python version and current boto3. Use this skill whenever Python code will be executed for a SageMaker deployment, training job, or any AWS automation — including when about to run `pip install`, when about to invoke `boto3`, when creating or activating a virtualenv, or when the user asks to "set up the environment". Never use system Python and never `pip install` into it. Always isolate. This skill prevents the most common failure modes: wrong Python version, dependency conflicts, and stale SDKs.'
4
+ ---
5
+
6
+ # Python Environment Setup for SageMaker
7
+
8
+ Most SageMaker deployment failures that look like AWS problems are actually Python environment problems: wrong Python version, broken dependency resolution, stale SDK that doesn't know about a current API. This skill makes env setup boring and correct.
9
+
10
+ ## Core rules
11
+
12
+ 1. **Never use the system Python.** Always work inside an isolated environment.
13
+ 2. **Pin the Python version, not the package versions.** Use 3.10, 3.11, or 3.12. Avoid 3.13+ — ML libraries lag on wheel availability and dependency resolution breaks in confusing ways.
14
+ 3. **Install the latest of each package.** Don't defensively pin `boto3` or `awscli`. Newer ones have current API surfaces and security fixes. Only pin if the user explicitly requires a specific version.
15
+ 4. **Check installed versions correctly.** Use `importlib.metadata.version("package-name")`, never `module.__version__`. The latter is inconsistent across packages.
16
+ 5. **The bundled scripts use `boto3` directly.** The SageMaker Python SDK is a valid alternative — see "boto3 vs the SageMaker SDK" below.
17
+
18
+ ## boto3 vs the SageMaker SDK
19
+
20
+ The bundled deploy scripts (`deploy.py`, `deploy_async.py`, `teardown.py`) use `boto3` directly and read image URIs from [AWS's published Deep Learning Containers catalog](https://aws.github.io/deep-learning-containers/reference/available_images/). That fits this workflow's explicit-stages design — each skill produces a concrete value (region, role ARN, image URI) that the next one consumes — and `boto3` is the stable underlying API client.
21
+
22
+ The SageMaker Python SDK (v3) is fine to use when the user prefers it or their project already does. Since [PR #5960](https://github.com/aws/sagemaker-python-sdk/pull/5960) (June 2026), `ModelBuilder` auto-routes HuggingFace models to the current containers (text-generation → HuggingFace vLLM, multimodal → vLLM-Omni, embeddings → TEI). Don't avoid the SDK over stale-image or wrong-container concerns — that routing is fixed.
23
+
24
+ Two specific SDK cases that still need care:
25
+
26
+ - **Generative rerankers**: the SDK routes the `text-ranking` task to TEI unconditionally, which is wrong for causal-LM rerankers like Qwen3-Reranker — those need vLLM (see `hf-cloud-serving-image-selection`). Pass the container explicitly for these models.
27
+ - **SSO assumed-role credentials**: v3 has had credential-resolution regressions in `ModelTrainer` / `FrameworkProcessor` under SSO profiles. If SDK calls fail with credential errors while `aws sts get-caller-identity` succeeds in the same shell, suspect this rather than your AWS config.
28
+
29
+ If you use the SDK, install it into the isolated env like everything else (`.venv/bin/python -m pip install sagemaker`). The bundled scripts don't require it.
30
+
31
+ ## How to set up
32
+
33
+ The fastest path is the bundled script — it's Python, so it runs the same on Windows, macOS, and Linux:
34
+
35
+ ```bash
36
+ python3 scripts/setup_env.py # macOS / Linux
37
+ python scripts/setup_env.py # Windows (PowerShell / cmd)
38
+ ```
39
+
40
+ This script detects `uv` and uses it if available (faster), falls back to the stdlib `venv` module, creates `.venv/` with Python 3.12 (override: `python3 setup_env.py .venv 3.11`), refuses unsupported Python versions, installs from the bundled `requirements.txt`, and is idempotent. It also prints the correct interpreter path for the host OS (see below).
41
+
42
+ Manual equivalent:
43
+
44
+ ```bash
45
+ # Preferred: uv
46
+ uv venv --python 3.12 .venv
47
+ uv pip install --python .venv/bin/python --upgrade boto3 awscli # Windows: .venv\Scripts\python.exe
48
+
49
+ # Fallback: stdlib venv
50
+ python3.12 -m venv .venv
51
+ .venv/bin/python -m pip install --upgrade pip boto3 awscli
52
+ ```
53
+
54
+ After setup, **invoke the env's Python explicitly** rather than activating the venv. The interpreter path differs by platform:
55
+
56
+ ```bash
57
+ .venv/bin/python deploy.py # macOS / Linux
58
+ .venv\Scripts\python.exe deploy.py # Windows
59
+ ```
60
+
61
+ This works the same in scripts, interactive shells, and agent tool calls. The rest of this skill writes `.venv/bin/python` for brevity — on Windows substitute `.venv\Scripts\python.exe`.
62
+
63
+ ## Verifying
64
+
65
+ ```bash
66
+ .venv/bin/python scripts/check_versions.py
67
+ ```
68
+
69
+ Prints versions of `boto3`, `botocore`, `awscli`. Uses `importlib.metadata.version()` so it works on every package, including ones without `__version__`. Pass arbitrary names: `... check_versions.py transformers huggingface_hub`.
70
+
71
+ ## Deployment-specific extras
72
+
73
+ Default `requirements.txt` covers SageMaker orchestration. Some deployments need extras (`huggingface_hub` for model inspection, `transformers` for tokenizer validation). Add these to a deployment-specific requirements file in the project, install with the env's Python, don't pin unless there's a reason.
74
+
75
+ ## Common pitfalls
76
+
77
+ **Mysterious `pip install` resolution errors**
78
+ Almost always Python 3.13+ trying to install packages without wheels yet, or installing into a polluted system Python. Recreate at 3.12: delete `.venv` and re-run `python3 setup_env.py .venv 3.12` (the script recreates the env when the version doesn't match, so you can also just re-run it).
79
+
80
+ **`pip install` succeeded but the script says "module not found"**
81
+ You installed into a different interpreter than the one running the script. Always invoke Python explicitly: `.venv/bin/python -m pip install ...` and `.venv/bin/python deploy.py`.
82
+
83
+ **Inline `python -c "..."` one-liners fail in PowerShell**
84
+ PowerShell's quoting rules mangle nested/escaped quotes in inline Python. Don't debug the quoting — write the snippet to a small `.py` file and run that. (All bundled helpers are files for exactly this reason.)
85
+
86
+ **boto3 call fails with "unknown parameter"**
87
+ Your boto3 is older than the API surface. Upgrade with `.venv/bin/python -m pip install --upgrade boto3`. Don't downgrade the script to match an old version.
88
+
89
+ **`sagemaker` (the SDK) installed but the bundled scripts fail**
90
+ The bundled scripts don't use the SDK — they only need `boto3`/`awscli` from `requirements.txt`. Installing `sagemaker` alongside is harmless, but it doesn't replace the requirements install.
@@ -0,0 +1,17 @@
1
+ # Core AWS dependencies for SageMaker deployment.
2
+ #
3
+ # No version pins. We want the latest of each — if scripts break against the
4
+ # latest, fix the script, not the version. Newer boto3/awscli have current
5
+ # API surfaces and security fixes.
6
+ #
7
+ # We do NOT depend on the SageMaker Python SDK (sagemaker / sagemaker-core /
8
+ # sagemaker-serve). The deployment scripts call boto3 directly, and image URIs
9
+ # are read from AWS's published catalog page rather than resolved via the SDK.
10
+ # See hf-cloud-python-env-setup SKILL.md ("Why no SageMaker SDK").
11
+ #
12
+ # Add per-deployment extras (huggingface_hub for model inspection, transformers
13
+ # for tokenizer validation) to a deployment-specific requirements file alongside
14
+ # this one. Do not pin versions here unless you have a documented reason.
15
+
16
+ boto3
17
+ awscli
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env python
2
+ """Report installed versions of key dependencies.
3
+
4
+ Uses importlib.metadata.version() (works for every installed package, unlike
5
+ the inconsistently-defined `module.__version__`).
6
+
7
+ Usage:
8
+ python check_versions.py
9
+ python check_versions.py boto3 botocore transformers
10
+ """
11
+
12
+ import sys
13
+ from importlib.metadata import PackageNotFoundError, version
14
+
15
+ DEFAULT_PACKAGES = ["boto3", "botocore", "awscli"]
16
+
17
+
18
+ def main() -> int:
19
+ packages = sys.argv[1:] if len(sys.argv) > 1 else DEFAULT_PACKAGES
20
+ for pkg in packages:
21
+ try:
22
+ print(f"{pkg}=={version(pkg)}")
23
+ except PackageNotFoundError:
24
+ print(f"{pkg}: NOT INSTALLED")
25
+ return 0
26
+
27
+
28
+ if __name__ == "__main__":
29
+ sys.exit(main())
@@ -0,0 +1,143 @@
1
+ #!/usr/bin/env python3
2
+ """Create an isolated Python environment for SageMaker work. Cross-platform.
3
+
4
+ Idempotent. Prefers uv, falls back to the stdlib venv module.
5
+
6
+ Handles the platform difference in venv layout: the interpreter lives at
7
+ `<venv>/bin/python` on macOS/Linux and `<venv>\\Scripts\\python.exe` on Windows.
8
+ The path it prints is the correct one for the host OS.
9
+
10
+ Usage:
11
+ python setup_env.py [VENV_DIR=.venv] [PYTHON_VERSION=3.12]
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import os
17
+ import shutil
18
+ import subprocess
19
+ import sys
20
+ from pathlib import Path
21
+
22
+ # 3.10-3.12 is the safe zone for modern boto3 + awscli. 3.13+ may work but ML
23
+ # libs lag on wheel availability.
24
+ SUPPORTED_MIN = (3, 10)
25
+ SUPPORTED_MAX = (3, 12)
26
+
27
+ IS_WINDOWS = os.name == "nt"
28
+
29
+
30
+ def log(msg: str) -> None:
31
+ print(f"[setup_env] {msg}", file=sys.stderr, flush=True)
32
+
33
+
34
+ def parse_version(v: str) -> tuple[int, int]:
35
+ try:
36
+ major, minor = (int(p) for p in v.split(".")[:2])
37
+ return (major, minor)
38
+ except ValueError:
39
+ log(f"ERROR: invalid Python version '{v}' (expected e.g. 3.12)")
40
+ sys.exit(1)
41
+
42
+
43
+ def venv_python(venv_dir: Path) -> Path:
44
+ """Path to the interpreter inside a venv, per platform."""
45
+ if IS_WINDOWS:
46
+ return venv_dir / "Scripts" / "python.exe"
47
+ return venv_dir / "bin" / "python"
48
+
49
+
50
+ def interpreter_version(python_path: Path) -> str | None:
51
+ if not python_path.exists():
52
+ return None
53
+ proc = subprocess.run(
54
+ [str(python_path), "-c",
55
+ "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')"],
56
+ capture_output=True, text=True,
57
+ )
58
+ return proc.stdout.strip() if proc.returncode == 0 else None
59
+
60
+
61
+ def find_base_python(version: str) -> str | None:
62
+ """Locate a base interpreter for the requested version for `python -m venv`."""
63
+ # Try `pythonX.Y` (Unix) / `pythonX.Y.exe`, then the Windows `py` launcher.
64
+ candidate = shutil.which(f"python{version}")
65
+ if candidate:
66
+ return candidate
67
+ if IS_WINDOWS and shutil.which("py"):
68
+ probe = subprocess.run(["py", f"-{version}", "--version"], capture_output=True, text=True)
69
+ if probe.returncode == 0:
70
+ return f"py -{version}" # sentinel; expanded by caller
71
+ return None
72
+
73
+
74
+ def main() -> int:
75
+ venv_dir = Path(sys.argv[1]) if len(sys.argv) > 1 else Path(".venv")
76
+ python_version = sys.argv[2] if len(sys.argv) > 2 else "3.12"
77
+
78
+ ver = parse_version(python_version)
79
+ if not (SUPPORTED_MIN <= ver <= SUPPORTED_MAX):
80
+ lo = ".".join(map(str, SUPPORTED_MIN))
81
+ hi = ".".join(map(str, SUPPORTED_MAX))
82
+ log(f"ERROR: Python {python_version} outside supported range {lo}-{hi}")
83
+ log("Use 3.10, 3.11, or 3.12.")
84
+ return 1
85
+
86
+ installer = "uv" if shutil.which("uv") else "venv"
87
+ if installer == "venv":
88
+ log("uv not found — falling back to python + venv. Consider: https://docs.astral.sh/uv/")
89
+
90
+ py = venv_python(venv_dir)
91
+
92
+ # Reuse existing env only if Python version matches.
93
+ current = interpreter_version(py)
94
+ if current == python_version:
95
+ log(f"Env exists at {venv_dir} with Python {current} — reusing")
96
+ else:
97
+ if current is not None:
98
+ log(f"Env at {venv_dir} uses Python {current} (wanted {python_version}) — recreating")
99
+ shutil.rmtree(venv_dir)
100
+
101
+ if installer == "uv":
102
+ uv = shutil.which("uv")
103
+ if subprocess.run([uv, "venv", "--python", python_version, str(venv_dir)]).returncode != 0:
104
+ log("ERROR: `uv venv` failed.")
105
+ return 1
106
+ else:
107
+ base = find_base_python(python_version)
108
+ if not base:
109
+ log(f"ERROR: python{python_version} not found on PATH.")
110
+ log("Install via pyenv/asdf/brew/system package manager, the Windows installer, or install uv.")
111
+ return 1
112
+ base_cmd = base.split() if base.startswith("py ") else [base]
113
+ if subprocess.run([*base_cmd, "-m", "venv", str(venv_dir)]).returncode != 0:
114
+ log("ERROR: `python -m venv` failed.")
115
+ return 1
116
+ log(f"Created env at {venv_dir}")
117
+
118
+ requirements = Path(__file__).resolve().parent.parent / "requirements.txt"
119
+ if not requirements.is_file():
120
+ log(f"ERROR: requirements.txt not found at {requirements}")
121
+ return 1
122
+
123
+ log(f"Installing from {requirements}")
124
+ if installer == "uv":
125
+ uv = shutil.which("uv")
126
+ rc = subprocess.run(
127
+ [uv, "pip", "install", "--python", str(py), "--upgrade", "-r", str(requirements)]
128
+ ).returncode
129
+ else:
130
+ subprocess.run([str(py), "-m", "pip", "install", "--upgrade", "pip"])
131
+ rc = subprocess.run(
132
+ [str(py), "-m", "pip", "install", "--upgrade", "-r", str(requirements)]
133
+ ).returncode
134
+ if rc != 0:
135
+ log("ERROR: dependency install failed.")
136
+ return 1
137
+
138
+ log(f"Done. Invoke directly: {py} <script>")
139
+ return 0
140
+
141
+
142
+ if __name__ == "__main__":
143
+ sys.exit(main())