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,236 @@
1
+ # Debugging and iteration
2
+
3
+ How to iterate cheaply, read logs, and smoke-test. Dev mode + SSH exists as a last resort (covered at the bottom).
4
+
5
+ ## The rung ladder
6
+
7
+ Pick the cheapest update mechanism that fits the change. Going one rung too high wastes 30 s – 15 min per cycle.
8
+
9
+ | Rung | When | Command | Cost |
10
+ |---|---|---|---|
11
+ | 1. Hot-reload | Pure Python edit on a Gradio Space (SDK 6.1+), **no new deps** | `hf spaces hot-reload <id> -f app.py` | seconds, no rebuild |
12
+ | 2. `hf upload` | Code-only change hot-reload can't handle (`gr.Server`, Streamlit, Docker entrypoint, non-Python file) | `hf upload <id> . --repo-type space --include '<file>'` | 30–90 s app restart |
13
+ | 3. Full rebuild | `requirements.txt`, `Dockerfile`, README frontmatter, or hardware change | `hf upload <id> . --repo-type space --exclude "**/__pycache__/**" && hf spaces logs <id> --build --follow` | 1–15 min |
14
+
15
+ `hf upload` defaults to a **model** repo — always pass `--repo-type space`, or it uploads to (and silently creates) a model repo of the same name. Also `--exclude "**/__pycache__/**"` so local bytecode caches don't get committed into the Space.
16
+ | 4. Factory reboot | Container in inconsistent state (broken pip env, etc.) | `hf spaces restart <id> --factory-reboot` | full rebuild + cold start |
17
+
18
+ ### How hot-reload works
19
+
20
+ `hf spaces hot-reload <id> -f app.py` patches the running Python process in place via `jurigged` (vendored inside the `spaces` package), then commits the change to the repo with a hot-reload marker that tells the platform to skip its usual restart. Seconds, no rebuild.
21
+
22
+ Applies cleanly to function-body changes and new top-level symbols. Does **not** rerun module-level imports or one-time init — the model was loaded when `app.py` first ran and jurigged won't re-execute that load. New pip deps, README frontmatter, `Dockerfile`, and hardware changes need a full rebuild (rung 3).
23
+
24
+ Independent of dev mode. Marked experimental in the CLI. Requires Gradio SDK 6.1+.
25
+
26
+ ### Footguns
27
+
28
+ - **Hot-reload poisons factory reboot.** A commit that's only a hot-reload leaves runtime metadata that's valid only while the hot process is alive. `--factory-reboot` on top of one can fail with `fatal: could not read Username for 'https://huggingface.co'`. Recovery: push any normal `hf upload` commit (even a one-line no-op) first, then restart.
29
+ - **`runtime.sha` lags repo SHA on restart.** `hf upload` succeeds → repo updates → `hf spaces info` keeps reporting the *previous* commit's SHA under `runtime` for several minutes while the new container loads. Poll `runtime.sha`, not just `stage`, and don't issue another restart until it flips.
30
+ - **Concurrent uploads or restart-while-uploading collide.** Wait for one to finish.
31
+ - **"Let me try locally first"** for anything that depends on the Space's Python / torch / CUDA env. The Space environment is the only one that matters. `python3 -m py_compile app.py` is the maximum local check worth doing before pushing.
32
+
33
+ ## Reading logs
34
+
35
+ ```bash
36
+ hf spaces info <id> --expand runtime # stage at a glance
37
+ hf spaces logs <id> --build --follow # build log, live
38
+ hf spaces logs <id> --follow # run log, live
39
+ hf spaces logs <id> --build --tail 500 # bigger window — default is small
40
+ ```
41
+
42
+ Find the **first** error in the build log, not the last. Cascading errors after the first are noise.
43
+
44
+ State machine (terminal states in bold):
45
+
46
+ ```
47
+ BUILDING → APP_STARTING → RUNNING
48
+ ↘ RUNTIME_ERROR
49
+ ↘ BUILD_ERROR
50
+ ↘ CONFIG_ERROR
51
+ ```
52
+
53
+ For stage-specific lookups, see [`known-errors.md`](known-errors.md).
54
+
55
+ ## Smoke-test patterns
56
+
57
+ A Space isn't done until a `gradio_client` call against the live URL exercises the endpoint end-to-end. Four steps in order — keep `hf spaces logs <id> --follow` running in another terminal throughout, so any silent fallback (model snapping to a different size, missing optional dep, dtype downgrade) surfaces.
58
+
59
+ ### A. Alive?
60
+
61
+ ```bash
62
+ hf spaces info <id> --expand runtime --format json \
63
+ | python3 -c "import json,sys; r=json.load(sys.stdin)['runtime']; \
64
+ print(r['stage'], r.get('hardware','?'))"
65
+ # expect: RUNNING zero-a10g
66
+ ```
67
+
68
+ If `requested_hardware` is `cpu-basic` when you wanted GPU, your `--flavor` was rejected silently. Fix with `hf spaces settings <id> --hardware zero-a10g`.
69
+
70
+ ### B. Logs clean post-boot?
71
+
72
+ ```bash
73
+ hf spaces logs <id> --tail 200
74
+ ```
75
+
76
+ Confirm the model finished loading, no import warnings, no "falling back to CPU" / dtype-downgrade messages, no failing health checks the platform forgave. Do this before calling the API — many silent failures (a config typo loading the wrong model, a missing optional dep, a one-time init that errored but didn't crash boot) are only visible here.
77
+
78
+ ### C. API actually functions?
79
+
80
+ Default — sync `gr.Interface` / `gr.Blocks` / `gr.ChatInterface` / `gr.Server` `@app.api`:
81
+
82
+ ```python
83
+ from gradio_client import Client, handle_file
84
+ import os
85
+
86
+ c = Client("<ns>/<name>", token=os.environ["HF_TOKEN"],
87
+ httpx_kwargs={"timeout": 600}) # ≥ @spaces.GPU duration + 60s
88
+
89
+ print(c.view_api()) # discover endpoints — don't guess api_name
90
+
91
+ result = c.predict(
92
+ handle_file("test.png"), # file inputs need handle_file()
93
+ "short prompt",
94
+ api_name="/generate", # matches @app.api(name=...) or the function name
95
+ )
96
+ ```
97
+
98
+ **Streaming endpoints** (function uses `yield` or `TextIteratorStreamer`) — `.predict()` returns only the final value. Iterate chunks via `.submit()`:
99
+
100
+ ```python
101
+ job = c.submit("short prompt", api_name="/chat")
102
+ for chunk in job: print(chunk, end="")
103
+ # or job.result() for the final value
104
+ ```
105
+
106
+ **`gr.Server` custom `@app.get/post(...)` routes** don't appear in `view_api()`. Hit them with plain HTTP:
107
+
108
+ ```python
109
+ import httpx
110
+ r = httpx.post(f"https://<subdomain>.hf.space/your_route",
111
+ json={...}, timeout=600,
112
+ headers={"Authorization": f"Bearer {os.environ['HF_TOKEN']}"})
113
+ ```
114
+
115
+ **OAuth-gated Spaces** (`hf_oauth: true` + `gr.LoginButton`) — anonymous `Client` can't authenticate. Test interactively after sign-in, or capture a session token and pass via `httpx_kwargs={"headers": {...}}`.
116
+
117
+ **MCP server mode** (`launch(mcp_server=True)`) — different protocol. Use an MCP client.
118
+
119
+ ### D. Output bytes AND logs look right?
120
+
121
+ HTTP 200 ≠ correct output. Sniff both the returned file and the run log emitted during the call.
122
+
123
+ ```python
124
+ head = open(path, "rb").read(16)
125
+ # b'glTF...' → glb
126
+ # b'\x89PNG' → png
127
+ # b'\xff\xd8' → jpeg
128
+ # b'RIFF...WEBP' → webp
129
+ # b'RIFF...WAVE' → wav
130
+ # head[4:8]==b'ftyp' → mp4
131
+ # b'ply\n' → ply
132
+ ```
133
+
134
+ For text: non-empty, not all `<think>...</think>` (thinking-model leak), length reasonable. For images: returned dimensions match what was requested (some models snap to nearest preset).
135
+
136
+ Look at the tailed run log alongside — silent fallbacks (model snapping resolution, missing optional dep falling back to a slower path, dtype downgrade) only show up there.
137
+
138
+ ### What NOT to do
139
+
140
+ - **Don't launch Playwright / headless browser** to verify backend logic. The Gradio UI calls the same API `gradio_client` does — one `predict` tests both.
141
+ - **Don't build mock-mode + local-server harnesses** before pushing. Local-green ≠ Space-green.
142
+ - **Don't smoke-test with full-budget inputs.** Smallest input that exercises the GPU code path — short prompt, small image, low step count. You're verifying wiring, not quality.
143
+
144
+ ## Iterating on the Space, not locally
145
+
146
+ The Space env is the only one that matters: Python, torch, CUDA, file paths, env vars, gradio version, the `spaces` hijack all differ from your laptop.
147
+
148
+ Workflow:
149
+
150
+ 1. Decide SDK + hardware. Write the smallest `app.py` / `Dockerfile` + `requirements.txt` + README frontmatter — just enough that the entry point loads.
151
+ 2. Push immediately. Don't build a Playwright / mock harness first.
152
+ 3. Once `RUNNING`: verify with `gradio_client` against the real Space. That's your test loop.
153
+ 4. Iterate via the cheapest rung.
154
+
155
+ `python3 -m py_compile app.py` is the maximum local check worth doing.
156
+
157
+ ## Last resort: dev mode + SSH
158
+
159
+ Use only when:
160
+
161
+ - A failure is non-deterministic (device-side asserts, OOM under specific shapes, race conditions).
162
+ - You need `CUDA_LAUNCH_BLOCKING=1` or `gdb` to localize a CUDA error.
163
+ - You'd burn 4+ build cycles trying variations from outside.
164
+
165
+ Reading logs + grepping [`known-errors.md`](known-errors.md) + a tight `gradio_client` smoke loop solves the vast majority of issues. Dev mode is a heavy hammer.
166
+
167
+ ### Prerequisites
168
+
169
+ 1. **PRO / Team / Enterprise plan** — dev mode is a paid feature.
170
+ 2. **An SSH key registered on the user's HF profile.** Without this, SSH refuses the connection. If the user doesn't have one yet, they need to:
171
+ - Generate a keypair locally: `ssh-keygen -t ed25519 -f ~/.ssh/hf_dev -N ''` (no passphrase keeps automation simple; user can pick differently if they prefer).
172
+ - Add the **public** key (`~/.ssh/hf_dev.pub`) at https://huggingface.co/settings/keys.
173
+ - Keep the **private** key (`~/.ssh/hf_dev`) on the machine they'll SSH from.
174
+ 3. **The Space must be in `RUNNING` or `RUNTIME_ERROR`** before dev mode lets you in — not `BUILD_ERROR`. If it's in build error, push a stub `app.py` that boots cleanly first (e.g. `import gradio as gr; gr.Interface(lambda: 'ok', None, 'text').launch()`), then enable dev mode.
175
+
176
+ ### Enable
177
+
178
+ No `huggingface_hub` Python wrapper yet — use the REST endpoint:
179
+
180
+ ```bash
181
+ curl -s -X POST \
182
+ -H "Authorization: Bearer $HF_TOKEN" \
183
+ -H "Content-Type: application/json" \
184
+ "https://huggingface.co/api/spaces/<ns>/<space>/dev-mode" \
185
+ -d '{"enabled": true}'
186
+ ```
187
+
188
+ ### SSH in
189
+
190
+ ```bash
191
+ ssh -i ~/.ssh/hf_dev -o BatchMode=yes -o StrictHostKeyChecking=accept-new \
192
+ <ns>-<space>@ssh.hf.space
193
+ ```
194
+
195
+ Username is `<namespace>-<space>` **lowercase**, with `-` replacing `/`. Dots in the Space name become hyphens too.
196
+
197
+ ### Inside the VM
198
+
199
+ It's a normal container at `/home/user/app/`. You can edit files, `pip install`, run repros, call `@spaces.GPU`-decorated functions interactively (they get a real GPU window).
200
+
201
+ **`nvidia-smi` in the bare terminal will fail** with `NVML: Unknown Error`. Expected — ZeroGPU only exposes the real GPU inside `@spaces.GPU` calls. Don't assume the GPU is broken.
202
+
203
+ **Edits in `/home/user/app/` don't survive** a restart, sleep, or dev-mode-disable. Only commits persist.
204
+
205
+ ### Smoke-test the fix inside the container
206
+
207
+ Before exiting dev mode, verify the fix actually works under a real GPU window:
208
+
209
+ ```bash
210
+ cat > /home/user/app/_devtest.py <<'PY'
211
+ import spaces, torch
212
+ from app import predict # or whatever your @spaces.GPU function is
213
+ print(predict(<realistic-args>))
214
+ PY
215
+ python3 _devtest.py
216
+ ```
217
+
218
+ ### Persist + exit
219
+
220
+ Commit + push from inside the container (`git config user.email / user.name` first; the HF git remote works). Then disable dev mode:
221
+
222
+ ```bash
223
+ curl -s -X POST -H "Authorization: Bearer $HF_TOKEN" \
224
+ -H "Content-Type: application/json" \
225
+ "https://huggingface.co/api/spaces/<ns>/<space>/dev-mode" \
226
+ -d '{"enabled": false}'
227
+ ```
228
+
229
+ **Factory-reboot** to apply the pushed state (in dev mode the Space won't rebuild on commits):
230
+
231
+ ```python
232
+ from huggingface_hub import HfApi
233
+ HfApi(token=HF_TOKEN).restart_space("<ns>/<space>", factory_reboot=True)
234
+ ```
235
+
236
+ Then re-run the outside-the-container smoke test. Dev-mode success does **not** guarantee post-rebuild success — different image, different process tree.
@@ -0,0 +1,200 @@
1
+ # Gradio for Spaces
2
+
3
+ Patterns and quirks specific to running Gradio inside a Space. Assumes you're already comfortable with stock Gradio components and `gr.Blocks` / `gr.Interface`.
4
+
5
+ For deeper Gradio API guidance — components, layouts, event listeners, chatbots, the Gradio 5→6 migration — use the dedicated `huggingface-gradio` skill. Install it with `hf skills add huggingface-gradio` (add `--claude --global` to also install for Claude Code, user-level).
6
+
7
+ For ZeroGPU-specific decorator + worker semantics, see [`zerogpu.md`](zerogpu.md).
8
+
9
+ ## Themes and layout
10
+
11
+ - Default theme preference: `gr.themes.Citrus()`. Alternatives: `gr.themes.Soft()` or no theme. Pick once and don't over-style.
12
+ - For apps that don't need full-width, constrain with CSS so they're readable on 4K displays:
13
+ ```python
14
+ CSS = """
15
+ #col-container { max-width: 1100px; margin: 0 auto; }
16
+ .dark .gradio-container { color: var(--body-text-color); }
17
+ """
18
+ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo: ...
19
+ ```
20
+ Always include the `.dark .gradio-container` override with `gr.themes.Citrus()` — without it Citrus's dark mode renders dark text on a dark background (text inherits unset colors). The same fix is harmless (and worth keeping) under other themes.
21
+ - Width-cap with `!important` if Gradio 6's own breakpoints fight you — target `main`, `.gradio-container`, and the inner fillable wrapper, otherwise the width caps but goes flush-left.
22
+
23
+ ## Minimal layout most demos converge to
24
+
25
+ ```python
26
+ with gr.Row():
27
+ prompt = gr.Textbox(show_label=False, placeholder="…", container=False, scale=4)
28
+ run = gr.Button("Run", variant="primary", scale=1)
29
+ output = gr.Image(...)
30
+ with gr.Accordion("Advanced settings", open=False):
31
+ ...
32
+ ```
33
+
34
+ `container=False` on the inline Textbox removes the default outer border for a tighter look.
35
+
36
+ ## `gr.Markdown` for the intro
37
+
38
+ Be succinct. Title, one-line description, a links section. Don't over-explain how it works — that's what the model card is for.
39
+
40
+ ## `gr.Examples`
41
+
42
+ **Add `gr.Examples` whenever it makes sense** (the app takes user input and representative inputs exist). It's the first thing a visitor clicks and it doubles as an instant smoke test. Prefer examples that mirror the **official examples from the original repo / model card** — the prompts, images, and settings the authors showcase — over inventing your own.
43
+
44
+ Keep each example row to the **few variables a user actually changes** (the prompt, the input image). Give the handler **default values for everything else** (steps, guidance, seed, …) so an example row is `["a cat on a windowsill"]`, not a wall of knobs. Design the signature so the interesting inputs come first and the rest default:
45
+
46
+ ```python
47
+ @spaces.GPU(duration=60)
48
+ def generate(prompt, seed=42, steps=28, guidance=5.0): # only `prompt` varies in examples
49
+ ...
50
+
51
+ gr.Examples(
52
+ examples=[
53
+ ["a cat sitting on a windowsill"],
54
+ ["mountains at sunset, photorealistic"],
55
+ ],
56
+ inputs=[prompt], # just the varied inputs; the rest use the handler defaults
57
+ outputs=output,
58
+ fn=generate,
59
+ cache_examples=True,
60
+ cache_mode="lazy",
61
+ )
62
+ ```
63
+
64
+ Why these flags:
65
+
66
+ - `cache_examples=True` makes example clicks instant (no re-inference per visitor).
67
+ - **`cache_mode="lazy"`** — caches on first user click for each example. **Required on ZeroGPU** (Gradio's default on ZeroGPU is already lazy via `GRADIO_CACHE_MODE=lazy`). Eager would pre-run every example at app startup, but ZeroGPU has no GPU attached at startup — it'd fail and burn the creator's daily quota.
68
+ - `cache_examples=True` silently disables `run_on_click` / `run_examples_on_click`. If your app relies on click-only behavior, set `cache_examples=False`.
69
+
70
+ The cache key is the **example row's file path**, not a content hash. Regenerating an asset in place serves the stale cached output forever. If you replace example files, bump a `cache_version` marker or wipe `.gradio/cached_examples/<id>/`.
71
+
72
+ Hot-reload (rung 1) does **not** rebuild the cache. A `cache_version` bump needs a real commit + restart.
73
+
74
+ ## Streaming and generators
75
+
76
+ `gr.Interface(fn=...)` and `.click(fn=...)` both accept generator functions. Each `yield` pushes a new value:
77
+
78
+ ```python
79
+ @spaces.GPU(duration=120)
80
+ def generate(prompt):
81
+ yield gr.update(value=None, label="Starting…")
82
+ for k in range(num_steps):
83
+ yield gr.update(value=preview(k), label=f"Step {k+1}/{num_steps}")
84
+ yield gr.update(value=final, label="Done")
85
+ ```
86
+
87
+ Use `gr.update(label=...)` for status narration — feels like a status line without a separate component.
88
+
89
+ **Caveat**: `gr.Progress(track_tqdm=True)` and `yield` partial outputs fight each other — pick one streaming mechanism.
90
+
91
+ ## Useful UX bits
92
+
93
+ - `progress=gr.Progress(track_tqdm=True)` in the GPU function gives a free tqdm-driven progress bar.
94
+ - Pair a "Randomize seed" checkbox with the seed input, and write the actually-used seed back so users can re-run deterministically:
95
+ ```python
96
+ randomize = gr.Checkbox(label="Randomize seed", value=True)
97
+ seed = gr.Number(label="Seed", value=0, precision=0)
98
+
99
+ @spaces.GPU
100
+ def gen(..., seed, randomize_seed):
101
+ if randomize_seed:
102
+ seed = random.randint(0, 2**31 - 1)
103
+ seed = int(seed)
104
+ yield ..., gr.update(value=seed) # write back into the Seed input
105
+ ...
106
+
107
+ run.click(gen, inputs=[..., seed, randomize], outputs=[..., seed])
108
+ ```
109
+
110
+ ## Custom HTML components
111
+
112
+ Stock Gradio components cover 95% of cases. When they don't, `gr.HTML(...)` lets you build contextual custom UI without leaving the Gradio Space (no need to switch to Docker).
113
+
114
+ Guide: https://www.gradio.app/guides/custom-HTML-components
115
+ Example with a 3D camera-angle picker that makes sense in context: https://huggingface.co/spaces/multimodalart/qwen-image-multiple-angles-3d-camera
116
+
117
+ Don't reach for this if a stock component covers the need.
118
+
119
+ ## Custom frontends — `gr.Server`
120
+
121
+ For fully custom frontends with their own HTML/JS, while keeping Gradio's queue + GPU scheduling:
122
+
123
+ ```python
124
+ from gradio import Server
125
+ from fastapi.responses import HTMLResponse
126
+
127
+ app = Server(title="my-app")
128
+
129
+ @spaces.GPU(duration=60)
130
+ def _run_gpu(prompt): return inference(prompt)
131
+
132
+ @app.api(name="generate", concurrency_limit=1, time_limit=180)
133
+ def generate(prompt: str) -> str:
134
+ return _run_gpu(prompt) # @app.api wraps, doesn't stack with @spaces.GPU
135
+
136
+ @app.get("/", response_class=HTMLResponse)
137
+ async def homepage():
138
+ return open("index.html").read()
139
+
140
+ demo = app # HF runtime expects `demo`
141
+ if __name__ == "__main__":
142
+ demo.launch(ssr_mode=False)
143
+ ```
144
+
145
+ Required for the custom `/` route to actually serve:
146
+
147
+ ```bash
148
+ hf spaces variables add <ns>/<name> --env GRADIO_SSR_MODE=false
149
+ ```
150
+
151
+ `launch(ssr_mode=False)` is ignored on HF — must be the env var.
152
+
153
+ Valid `@app.api` kwargs: `name`, `description`, `concurrency_limit`, `concurrency_id`, `queue`, `batch`, `max_batch_size`, `api_visibility`, `time_limit`, `stream_every`.
154
+
155
+ **Don't stack `@spaces.GPU` and `@app.api`** on the same function — silently breaks request flow. Keep them on separate functions.
156
+
157
+ **Two-ceiling coordination**: both `@spaces.GPU(duration=N)` and `@app.api(time_limit=M)` apply; the lower wins. Set `time_limit` to your max duration across modes — a too-low `time_limit` kills the request even if GPU duration would have allowed it.
158
+
159
+ Hot-reload (rung 1 in [`debugging.md`](debugging.md)) does **not** work with `gr.Server` — always `hf upload` or commit.
160
+
161
+ Reference Space: https://huggingface.co/spaces/huggingface-projects/rf-detr-realtime-webcam
162
+
163
+ ## Slow-startup Gradio (big-model Spaces)
164
+
165
+ For Spaces that take 10–20 min to load weights:
166
+
167
+ - Set `startup_duration_timeout: 1h` in README frontmatter (default 30 min).
168
+ - Disable SSR: `hf spaces variables add <id> --env GRADIO_SSR_MODE=false`. Otherwise the SSR health check times out before the app finishes loading.
169
+
170
+ ## Expose the Space as an MCP server
171
+
172
+ Launch with `demo.launch(mcp_server=True)` (Gradio 5+) so every API endpoint is also exposed as an MCP tool — free, and makes the Space usable by agents. For it to be useful:
173
+
174
+ - **Every API-triggered function needs a docstring and type hints.** Each Gradio event handler is auto-exposed over the API; Gradio turns the signature into the MCP tool's input schema and the docstring into its description. A function without them still works but surfaces as an opaque, unusable tool.
175
+ - Give the important endpoints stable names (`api_name="generate"` on the `.click(...)`, or `@app.api(name=...)`), so tool names don't churn.
176
+ - MCP mode can pull in extra deps (`gradio[mcp]`); if `launch` complains, see the pin note in [`known-errors.md`](known-errors.md).
177
+
178
+ ```python
179
+ @spaces.GPU(duration=60)
180
+ def generate(prompt: str, seed: int = 42) -> str:
181
+ """Generate an image from a text prompt.
182
+
183
+ Args:
184
+ prompt: what to generate.
185
+ seed: RNG seed for reproducibility.
186
+ """
187
+ ...
188
+
189
+ btn.click(generate, inputs=[prompt, seed], outputs=out, api_name="generate")
190
+ demo.launch(mcp_server=True)
191
+ ```
192
+
193
+ ## Don't
194
+
195
+ - `gr.Button(text="X")` — `text=` was removed; use `gr.Button("X")`.
196
+ - `gr.Button(type="button")` — drop the kwarg.
197
+ - `.click(..., _js=share_js)` — renamed to `js=`.
198
+ - `.style(height=...)` — removed in gradio 4+.
199
+ - `gr.ImageMask(brush_color=...)` — kwarg removed.
200
+ - `demo.launch(mcp_server=True)` on gradio 4.x — only valid on 5+.
@@ -0,0 +1,63 @@
1
+ # Community GPU grants
2
+
3
+ When a user has a good use case (open research demo, hobbyist project, educational tool, institutional showcase) and can't pay for the hardware it needs, they can request a free community grant from Hugging Face.
4
+
5
+ Free personal accounts already get 2 ZeroGPU Spaces, so a grant is now for the cases that go past that:
6
+
7
+ - a **dedicated GPU** ZeroGPU can't cover (non-PyTorch main model with heavy init, model too big for 96 GB, always-on serving);
8
+ - a **Gradio Space beyond the free 2-ZeroGPU cap**, without subscribing to PRO.
9
+
10
+ ## The flow
11
+
12
+ 1. **Build the Space.** If the user still has a free ZeroGPU slot, create it as `--flavor zero-a10g` and iterate normally with real inference before applying.
13
+
14
+ If they're out of slots, create a **Static** Space instead (`--space-sdk static` — free for everyone) and push the app there; the SDK can be switched to `gradio` in the README frontmatter once the grant lands. Code the app for ZeroGPU anyway — `import spaces`, `@spaces.GPU`, module-scope `.to("cuda")`. In this mode you **can't iterate-with-real-inference** before the grant, so just get the code in place and submit.
15
+
16
+ For a dedicated-GPU grant, get the app to BUILD cleanly and reach `RUNNING` (even if the runtime would OOM on real input), then submit.
17
+
18
+ 2. **Submit a Community Tab discussion** on the Space. Title:
19
+
20
+ ```
21
+ Apply for a GPU community grant: <Personal|Company|Academic> project
22
+ ```
23
+
24
+ Pick the closest fit. Body:
25
+
26
+ ```
27
+ Description of the app: one paragraph on what it does + who it's for.
28
+ Justification: one paragraph on why this should run on ZeroGPU
29
+ (open-source, research, educational, etc.).
30
+ ```
31
+
32
+ If the user didn't give you a justification, a reasonable default is "Public open-source demo, can't cover the hardware cost — happy to provide more context if helpful."
33
+
34
+ 3. **Wait.** Open and publicly-facing applications by researchers, tinkerers, and institutions are typically approved. Approval can take days.
35
+
36
+ 4. **Once approved**, the hardware is attached automatically — no code change needed (a Static holding Space still needs its `sdk:` flipped to `gradio`). The user comes back and you can iterate / refine with real GPU access.
37
+
38
+ ## When to suggest this
39
+
40
+ - The use case is a clear public ML demo (not a private tool) and the user is out of free ZeroGPU slots.
41
+ - The model needs more than ZeroGPU offers — beyond 48 GB `large` / 96 GB `xlarge`, or a non-PyTorch runtime — and the user can't pay.
42
+
43
+ ## When NOT to suggest this
44
+
45
+ - The user is on a free account and this is their 1st or 2nd Space — they can create it on ZeroGPU directly; no grant needed.
46
+ - Private / commercial / closed-source projects — push the user toward PRO instead.
47
+ - `canPay=True` users who just need paid hardware — they can attach it directly.
48
+
49
+ ## Posting the request programmatically
50
+
51
+ ```python
52
+ from huggingface_hub import HfApi
53
+
54
+ api = HfApi(token="hf_...")
55
+ api.create_discussion(
56
+ repo_id="<ns>/<space>",
57
+ repo_type="space",
58
+ title="Apply for a GPU community grant: Personal project",
59
+ description="<description and justification>",
60
+ )
61
+ ```
62
+
63
+ The Community Tab must be enabled on the Space (default — keep it on).
@@ -0,0 +1,97 @@
1
+ # Inference Providers — when not to host the model
2
+
3
+ Some Spaces don't need a GPU at all. If the model is available through HF Inference Providers (Cerebras, Fireworks, Together, Replicate, OpenRouter, etc.), the Space can be a thin Gradio shell that proxies to a hosted endpoint:
4
+
5
+ - Zero VRAM, no real work inside `@spaces.GPU`, no model download.
6
+ - Works for models too large to fit on ZeroGPU (120B+).
7
+ - No GPU at all — see [Hardware](#hardware) below for which flavor to pick.
8
+
9
+ ## When to use this pattern
10
+
11
+ - **Stateless chat or text completion** with a big model.
12
+ - **The user wants a public demo of a frontier-scale model** that obviously doesn't fit on a single 48 GB MIG.
13
+ - **The user wants to ship something fast** without worrying about quantization / sharding.
14
+
15
+ ## When NOT to use this pattern
16
+
17
+ - The model isn't available on any Inference Provider. Check with:
18
+ ```bash
19
+ curl "https://huggingface.co/api/models/<ns>/<repo>?expand[]=inferenceProviderMapping"
20
+ ```
21
+ - The Space needs **custom decoding** (special sampling, tool use, retrieval, anything stateful or interactive across calls).
22
+ - The Space needs **multimodal** beyond what the provider exposes.
23
+ - The user explicitly wants to own the inference stack (model loading, decoding, performance tuning).
24
+
25
+ For those, host the model yourself on ZeroGPU — see [`zerogpu.md`](zerogpu.md).
26
+
27
+ ## Two billing modes
28
+
29
+ Choose based on who pays for inference.
30
+
31
+ ### Mode A — Space creator pays (simple)
32
+
33
+ Set `HF_TOKEN` as a Space secret. The Space uses `InferenceClient` directly. Every visitor's call is billed to the Space creator's account.
34
+
35
+ ```python
36
+ import os, gradio as gr
37
+ from huggingface_hub import InferenceClient
38
+
39
+ client = InferenceClient(api_key=os.environ["HF_TOKEN"], provider="fireworks-ai")
40
+
41
+ def chat(msg, history):
42
+ return client.chat_completion(
43
+ model="<org>/<model>",
44
+ messages=[*history, {"role": "user", "content": msg}],
45
+ max_tokens=512,
46
+ ).choices[0].message.content
47
+
48
+ gr.ChatInterface(chat).launch()
49
+ ```
50
+
51
+ Use when you want users to "just click and try it" — no sign-in friction. Cost is on you.
52
+
53
+ ### Mode B — Visitor pays (recommended for public demos)
54
+
55
+ `gr.LoginButton` + `gr.load("models/...")` with `accept_token=button`. Each visitor signs in with their HF account; inference is billed to **their** account.
56
+
57
+ ```python
58
+ import gradio as gr
59
+
60
+ with gr.Blocks(fill_height=True) as demo:
61
+ with gr.Sidebar():
62
+ button = gr.LoginButton("Sign in")
63
+ gr.load("models/<org>/<model>", accept_token=button, provider="fireworks-ai")
64
+ demo.launch()
65
+ ```
66
+
67
+ README frontmatter needs:
68
+
69
+ ```yaml
70
+ hf_oauth: true
71
+ hf_oauth_scopes:
72
+ - inference-api
73
+ ```
74
+
75
+ This is the **recommended pattern for public demos** — sustainable cost-wise, and visitors get to use their own provider quotas (which most have paid for or get free).
76
+
77
+ ## Hardware
78
+
79
+ No GPU needed, so `cpu-basic` is the natural fit — but it requires a paid plan.
80
+
81
+ On a free account, create the Space with `--flavor zero-a10g` instead. ZeroGPU refuses to start without at least one decorated function, so add a no-op one and leave the provider calls outside it:
82
+
83
+ ```python
84
+ import spaces
85
+
86
+ @spaces.GPU(duration=1)
87
+ def _noop(): # ZeroGPU requires ≥1 decorated function; never called
88
+ pass
89
+ ```
90
+
91
+ Nothing ever requests a GPU, so no quota is burned. Just remember the Space still counts against the free 2-Space ZeroGPU cap — don't spend a slot here if the user is saving it for a real GPU demo.
92
+
93
+ ## Anti-pattern: `@spaces.GPU` wrapping a provider call
94
+
95
+ If you do use Inference Providers, do **not** wrap the call in `@spaces.GPU`. The decorator reserves a GPU slot on your Space for the full `duration=`, but the function does no GPU work — just an HTTP call out. You burn your own ZeroGPU quota for nothing.
96
+
97
+ Whatever hardware a provider-proxy Space sits on, no provider call belongs inside `@spaces.GPU`.