跳转到主要内容

custom-blocks

星标34,300
分支4,047
更新时间2026年7月22日 20:17

Use when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to package it into a Hub-uploadable directory. Covers the workflow from a single `block.py` file to a published custom-block repo that consumers can load via `ModularPipeline.from_pretrained(<repo>, trust_remote_code=True)`.

· 实时索引

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

想先保存到本地?可下载 RuleHub 当前索引到的 GitHub 仓库压缩包。

下载 Zip
文件资源管理器2 个文件
SKILL.mdreadonly
namecustom-blocks
descriptionUse when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to...

custom-blocks

Use when the user has written (or wants to write) a ModularPipelineBlocks subclass in a local Python file and needs to package it into a Hub-uploadable directory. Covers the workflow from a single block.py file to a published custom-block repo that consumers can load via ModularPipeline.from_pretrained(<repo>, trust_remote_code=True).

When to use

Use this skill when the user needs help with tasks related to custom blocks.

Guidelines

  • Follow repository conventions in huggingface/diffusers
  • Prefer minimal, focused changes
  • Validate outputs before finishing