forge-pipeline-library
Use the forge-gpu asset pipeline library — a Python package installed via uv for scanning, fingerprinting, processing, and bundling game assets with a plugin…
от Nebulavenus★ 51 звезда на GitHub
Установить forge-pipeline-library в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
forge-pipeline-library
The forge asset pipeline is a Python package at the repo root (pipeline/),
installed via uv sync. It processes raw game assets (textures, meshes, animations)
into GPU-ready formats with incremental builds driven by content hashing.
When to use this skill
- Writing or modifying pipeline code in
pipeline/ - Creating a new asset plugin (texture, mesh, animation, or custom)
- Processing assets with the
forge-pipelineCLI - Bundling processed assets into
.forgepakarchives - Debugging pipeline configuration or plugin discovery
- Extending the pipeline with new file types or processing steps
- Loading pipeline-processed assets in C/GPU code
- Writing tests for pipeline modules
Installation
# Install all dependencies from the lockfile (including dev extras)
uv sync --extra dev
# Verify
uv run forge-pipeline --help
The package is defined in pyproject.toml at the repo root. The CLI entry
point is forge-pipeline, which maps to pipeline.__main__:main.
Package structure
pipeline/
├── __init__.py # Package version (__version__ = "0.1.0")
├── __main__.py # CLI entry point — argparse, scan, process, bundle
├── atlas.py # Texture atlas packing (guillotine + shelf algorithms)
├── bundler.py # .forgepak bundle writer/reader, dependency graph
├── config.py # TOML config loader → PipelineConfig dataclass
├── import_settings.py # Per-asset import settings (TOML sidecars, three-layer merge)
├── plugin.py # AssetPlugin base class, PluginRegistry, discovery
├── scanner.py # File scanning, SHA-256 fingerprinting, cache
├── server.py # Web UI backend (FastAPI)
└── plugins/
├── __init__.py
├── animation.py # AnimationPlugin — glTF animation → .fanim binary
├── atlas.py # AtlasPlugin — texture atlas packing
├── mesh.py # MeshPlugin — deduplicate, optimize, tangents, LOD
├── scene.py # ScenePlugin — glTF scene hierarchy → .fscene binary
└── texture.py # TexturePlugin — resize, mipmaps, GPU compression
Core modules
config.py — Configuration
from pipeline.config import load_config, default_config, PipelineConfig, ConfigError
# Load from TOML file
config = load_config(Path("pipeline.toml"))
# Use defaults if no file exists
config = default_config()
# Access typed fields
config.source_dir # Path — where raw assets live
config.output_dir # Path — where processed files go
config.cache_dir # Path — fingerprint cache location
config.plugin_settings # dict[str, dict] — per-plugin config sections
config.raw # dict — full parsed TOML for forward-compatibility
TOML structure:
[pipeline]
source_dir = "assets/raw"
output_dir = "assets/processed"
cache_dir = ".forge-cache"
[texture]
max_size = 2048
generate_mipmaps = true
output_format = "png"
compression = "none" # none, basisu, or astc
[mesh]
deduplicate = true
optimize = true
generate_tangents = true
lod_levels = [1.0, 0.5, 0.25]
[animation]
tool_path = "" # override forge-anim-tool location
Per-plugin sections (everything except [pipeline]) are passed to plugins
as the settings dict in their process() method.
plugin.py — Plugin system
from pipeline.plugin import AssetPlugin, AssetResult, PluginRegistry
# Base class — subclass this to create a new plugin
class MyPlugin(AssetPlugin):
name = "my-type"
extensions = [".xyz", ".abc"]
def process(self, source: Path, output_dir: Path, settings: dict) -> AssetResult:
output = output_dir / f"{source.stem}.processed"
# ... do work ...
return AssetResult(source=source, output=output, metadata={"key": "val"})
# Registry — discovers and stores plugins
registry = PluginRegistry()
registry.register(MyPlugin()) # manual registration
count = registry.discover(Path("plugins/")) # file-based discovery
# Lookup
plugins = registry.get_by_extension(".xyz") # returns list[AssetPlugin]
plugin = registry.get_by_name("my-type") # returns AssetPlugin | None
all_exts = registry.supported_extensions # set[str]
all_plugins = registry.plugins # list[AssetPlugin]
Discovery rules:
- Scans
*.pyfiles in a directory (skips_-prefixed files) - Imports each module, finds
AssetPluginsubclasses with a non-emptyname - Only registers classes defined in that module (not imported base classes)
- Multiple plugins can handle the same extension (all are invoked)
scanner.py — Fingerprinting and change detection
from pipeline.scanner import scan, fingerprint_file, FingerprintCache, FileStatus, ScannedFile
# Fingerprint a single file
digest = fingerprint_file(Path("texture.png")) # SHA-256 hex string
# Load or create a cache
cache = FingerprintCache(Path(".forge-cache/fingerprints.json"))
cached_hash = cache.get(Path("textures/brick.png")) # str | N
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл forge-pipeline-library?
Use the forge-gpu asset pipeline library — a Python package installed via uv for scanning, fingerprinting, processing, and bundling game assets with a plugin architecture. Use when working with pipeline code, writing plugins, processing textures/meshes/animations, bundling assets, or extending the pipeline CLI.
Как установить скилл forge-pipeline-library?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл forge-pipeline-library запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…