/fused-render:fused-render-custom-templatesfrom Fused Render
Registers custom preview templates for file extensions, overrides built-in template modes, and configures conditional template visibility via registry.json and condition.py.
Ships in Fused Render. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Each extension resolves to ordered mode list (first = default; >1 shows switcher). This skill = registration only. Writing template.html/reader .py → fused-render-authoring (its "Preview templates" section IS a custom template). "Template" that's really long-running server → fused-render-background-apps.
~/.fused-render/templates/
├── registry.json extension → mode list
└── <name>/ folder name IS public name (registry ref, _mode value)
├── template.html required entry point
├── reader.py optional siblings, referenced relatively
├── condition.py optional per-file gate
├── pyproject.toml optional: [tool.fused-render.template] stream = [".parquet"] — template reads `_file=s3://…` itself
└── icon.svg optional switcher icon (monochrome, currentColor, square, legible 16px)
Name resolution: user folder wins, else built-in — resolved from staged copy ~/.fused-render/.core-templates/<name>/ (packaged fused_render/templates/ tree copied there at server startup; repo tree is source only). Naming after built-in shadows it deliberately (built-in names = every staged folder with template.html; also Templates → Library). Folder names: single segment, no dots, no leading _. Folder without registry entry = inert draft.
Flat object; same key grammar as built-in fused_render/templates/registry.json. Values: list of names (full ordered mode list — replace semantics, no merge; re-list built-in modes you keep), string (single-mode shorthand), or null/[] (disable templating for extension).
.tar.gz > .gz; literal > * at equal length). * = exactly one whole segment. Trailing / binds directory (.zarr/). Any extension allowed, .html included (rebind ["code", "_render"] → source becomes default)._-prefixed names = shell sentinels; referenceable: _render, _listing. Other _name invalid → dropped, template_error set, rest of list works.def main(path) -> bool beside template.html — show this template for this file? No file = always shown. Runs after registry resolution, evaluated in background (GET /api/fs/conditions?path=…), verdicts cached ~60 s; multiple gates for one extension run concurrently (cost = slowest gate, all still run). May read file, keep reads bounded (headers/footers). Broken gate = template dropped, reason in error on conditions response. Gated template never default while ungated one exists. Shows "conditional" badge in Templates → Library.
pyproject.toml beside template.html, [tool.fused-render.template] stream = [".parquet"] = template opens bucket objects of those extensions WITHOUT download (duckdb: .parquet; geotiff: .tif, .tiff; vector: its OGR formats, .parquet and .tif/.tiff). Explorer passes _file=s3://bucket/key to it for an uncached object; every other mode bound to the file shows a download card in its pane and opens on the downloaded copy. No key = never sees s3:// (download fallback is automatic). Template must take BOTH forms of _file: an s3:// address (streamed) and a local path (an object already downloaded opens from its cached copy, like any local file). Read it itself: fused.s3.sign(addr) (JS) / fused_s3.sign(addr) (Python, templates/shared) → {url, expires_at} HTTPS URL, Range works. Keep address as identity (fused.params, cache keys); sign in the page and pass the URL to runPython/daemon (duckdb, geotiff), or let a long-lived process sign itself (fused_s3). Read only what the view needs — refuse/point to Download when a view would read most of a big file (duckdb: STREAM_SCAN_BUDGET; geotiff: zoom-in only without overviews); the explorer's "Streaming from S3" bar has the Download button. Not honoured for native templates. A conditional template that streams gets the signed https:// URL as its gate's main(path) (read it or return False); other gated modes show only once the object is cached. Examples: duckdb/ (DuckDB httpfs on the signed URL), geotiff/ (GDAL /vsicurl/ on the signed URL, in the tile daemon), vector/ (/vsicurl/, and pyarrow row groups for GeoParquet and H3 cell tables).
Templates run on every open, server privileges, inside packaged app. Readers/conditions: no subprocess/os.system/system binaries — bundled libraries in-process only (list in fused-render-authoring; more → folder pyproject). Html: filesystem only via window.fused helpers, never raw /api/fs/* or external script/data hosts.
mkdir -p ~/.fused-render/templates/<name> (or Templates → Library → New).fused-render-authoring (_file param = target; UI state in normal params).…/explorer/view/<abs template.html>?_file=<abs sample> — drafts are plain fused pages. Saves live-reload.{} if absent).?_mode=<name> opens specific one.template_error on fused.stat(path).null/[] not errors.error on /api/fs/conditions.fused-render-authoring.What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/fused-render-aiUse when page or .py calls fused.ai (text/image/video/speech/transcribe/embed/decide/vision), picks model/provider, or AI call rejects./fused-render-api-migrationUse when migrating app to current fused page API — Migrate task, stale/missing fused-api-version meta, "fused.ai is not a function" after upgrade./fused-render-app-doctorUse when reviewing or sharing an app — checking for secrets, hardcoded paths, stray generated files, missing structure, or a stale API version.npx claudepluginhub fusedio/fused-render --plugin fused-renderOther plugins' skills for the same job