Skill / SKILL.md

Custom Blocks

modem-dev/ossrules

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)`.
1 views 66 repository starsUpdated Nov 28, 2026
Overview

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)`.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/modem-dev/ossrules' skill-source

Use the complete skill-source/public/files/diffusers/.ai/skills/custom-blocks directory with your client’s skill installer.

  • public/files/diffusers/.ai/skills/custom-blocks

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory public/files/diffusers/.ai/skills/custom-blocks

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
f2019a3f86a48b85da4eed59f5c0003e7dae0bf096c9806a8b00ab4263cb5826
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills