Forge Import Settings Editor logo

Forge Import Settings Editor

Community
Nebulavenus
forge-import-settings-editor

Add per-asset import settings with TOML sidecar files, three-layer merge (schema → global → per-asset), a settings editor form with type-specific controls, and single-asset re-processing from the web UI. Use when someone needs configurable per-file processing overrides, settings UI, or sidecar-based configuration.

Overview

PublisherNebulavenus
Repositoryforge-gpu
Skill nameforge-import-settings-editor
Stars
46
Forks
7
Bundled files
Instructions only
LicenseZlib
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Nebulavenus on GitHub. Read the source before you install it.

Installation

Install the Forge Import Settings Editor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/forge-import-settings-editor
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Nebulavenus/forge-gpu.git /tmp/forge-gpu
mkdir -p .claude/skills
cp -r /tmp/forge-gpu/.claude/skills/forge-import-settings-editor .claude/skills/forge-import-settings-editor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Forge Import Settings Editor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Forge Import Settings Editor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Forge Import Settings Editor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

forge-import-settings-editor

Add per-asset import settings to a pipeline web UI. Assets get individual .import.toml sidecar files that override global config, and a browser-based editor form renders type-specific controls for each setting.

When to use this skill

  • Adding per-asset configuration overrides to a processing pipeline
  • Building a settings editor form driven by a schema definition
  • Implementing three-layer settings merge (defaults → global → per-item)
  • Adding TOML sidecar file I/O without a third-party TOML writer
  • Triggering single-item re-processing from a web UI

Key functions and endpoints

ComponentFunction / RoutePurpose
import_settings.pysidecar_path(source)Return .import.toml path for a source file
import_settings.pyload_sidecar(source)Parse sidecar TOML, empty dict if missing
import_settings.pysave_sidecar(source, settings)Write settings to sidecar file
import_settings.pydelete_sidecar(source)Remove sidecar (revert to defaults)
import_settings.pymerge_settings(global, per_asset)Two-layer overlay merge
import_settings.pyget_effective_settings(plugin, global, per_asset)Three-layer merge with schema defaults
import_settings.pyget_schema(plugin_name)Return schema dict for a plugin type
server.pyGET /api/assets/{id}/settingsRead schema + global + per-asset + effective
server.pyPUT /api/assets/{id}/settingsSave per-asset overrides as .import.toml
server.pyDELETE /api/assets/{id}/settingsRemove sidecar (revert to defaults)
server.pyPOST /api/assets/{id}/processRe-process with effective settings

Architecture

Three-layer settings merge:

text
Schema Defaults ──> Global Config (pipeline.toml) ──> Per-Asset (.import.toml)
       │                      │                              │
       └──────────────────────┴──────────────────────────────┘
                                    │
                              get_effective_settings()
                                    │
                              Effective Settings

Each layer overrides the previous. get_effective_settings() starts with schema defaults, overlays global settings, then per-asset overrides.

Correct order

Backend

  1. Define settings schemas in import_settings.py — one dict per plugin type with type, label, description, default, and optional constraints
  2. Implement sidecar CRUD — sidecar_path, load_sidecar, save_sidecar, delete_sidecar
  3. Implement merge functions — merge_settings, get_effective_settings
  4. Add API endpoints to server.py — GET, PUT, DELETE for settings, POST for process
  5. Integrate sidecars into CLI processing — load sidecars in _process_files(), include settings in fingerprint cache key

Frontend

  1. Add TypeScript types for ImportSettingsResponse, SettingsSchemaField, ProcessResponse in api.ts
  2. Add API functions — fetchImportSettings, saveImportSettings, deleteImportSettings, processAsset
  3. Add UI primitives — Label, Select, Switch, Separator in components/ui/
  4. Build ImportSettings component with schema-driven form rendering
  5. Mount on the asset detail page below the preview panel
  6. Wire TanStack Query cache invalidation on mutations

Settings schema definition

Each plugin type has a schema dict describing its configurable fields:

python
TEXTURE_SETTINGS_SCHEMA: dict[str, dict] = {
    "max_size": {
        "type": "int",           # Control type: bool, int, float, str, list[float]
        "label": "Max size",     # Human-readable label
        "description": "Clamp width and height to this limit (pixels).",
        "default": 2048,         # Schema default value
        "min": 1,                # Optional: numeric minimum
        "max": 8192,             # Optional: numeric maximum
    },
    "compression": {
        "type": "str",
        "label": "GPU compression",
        "description": "GPU block-compression codec.",
        "default": "none",
        "options": ["none", "basisu", "astc"],  # Optional: enum values
    },
    "normal_map": {
        "type": "bool",
        "label": "Normal map",
        "description": "Treat as a normal map (BC5, linear color space).",
        "default": False,
    },
}

SETTINGS_SCHEMAS: dict[str, dict[str, dict]] = {
    "texture": TEXTURE_SETTINGS_SCHEMA,
    "mesh": MESH_SETTINGS_SCHEMA,
}

TOML sidecar format

Sidecars are flat key-value TOML files. Only overridden keys are present:

toml
normal_map = true
compression = "basisu"
basisu_quality = 200

Write TOML with string formatting — no third-party serializer needed for flat tables. Check isinstance(value, bool) before isinstance(value, int) since bool is a subclass of int in Python.

Frontend control mapping

Schema typeUI controlNotes
boolSwitch toggleonCheckedChange callback
str with optionsSelect dropdownRenders <option> per entry
intInput type="number"Uses min/max from schema
floatInput type="number"step={0.01}
list[float]Input type="text"Comma-separated, parsed on change

Common mistakes

  1. Forgetting bool-before-int check in TOML formatting. Python's bool is a subclass of int, so isinstance(True, int) is True. Always check isinstance(value, bool) first.

  2. Not including settings in the fingerprint cache key. If only the content hash is cached, changing a sidecar does not trigger reprocessing. Combine the content hash with a JSON digest of the merged settings.

  3. Mutating the global settings dict during merge. merge_settings() must return a new dict — never .update() the input.

  4. Not invalidating the right TanStack Query keys. After processing, both ["asset", id] and ["assets"] (list) must be invalidated so the status badge and preview update.

  5. Missing error handling for malformed sidecars. load_sidecar() should catch TOMLDecodeError and raise a clear ValueError. The CLI should log a warning and fall back to global settings; the API should return 400.

Ready-to-use template

import_settings.py — core pattern

python
from pathlib import Path
import tomllib

SIDECAR_SUFFIX = ".import.toml"

def sidecar_path(source: Path) -> Path:
    return source.parent / (source.name + SIDECAR_SUFFIX)

def load_sidecar(source: Path) -> dict:
    path = sidecar_path(source)
    if not path.is_file():
        return {}
    try:
        with path.open("rb") as f:
            return tomllib.load(f)
    except tomllib.TOMLDecodeError as exc:
        raise ValueError(f"Malformed sidecar {path}: {exc}") from exc

def get_effective_settings(plugin_name: str, global_s: dict, per_asset: dict) -> dict:
    schema = SETTINGS_SCHEMAS.get(plugin_name, {})
    result = {key: spec["default"] for key, spec in schema.items()}
    result.update(global_s)
    result.update(per_asset)
    return result

API endpoint pattern

python
@app.get("/api/assets/{asset_id}/settings")
async def get_import_settings(asset_id: str):
    asset = _get_cached_asset(asset_id)
    plugin_name = _plugin_name_for_type(asset.asset_type)
    schema = get_schema(plugin_name)
    global_settings = config.plugin_settings.get(plugin_name, {})
    per_asset = load_sidecar(Path(asset.source_path))
    effective = get_effective_settings(plugin_name, global_settings, per_asset)
    return {
        "schema_fields": schema,
        "global_settings": global_settings,
        "per_asset": per_asset,
        "effective": effective,
        "has_overrides": bool(per_asset),
    }

React component pattern

tsx
const { data: settings } = useQuery({
  queryKey: ["settings", assetId],
  queryFn: () => fetchImportSettings(assetId),
})

const saveMutation = useMutation({
  mutationFn: (overrides) => saveImportSettings(assetId, overrides),
  onSuccess: () => {
    queryClient.invalidateQueries({ queryKey: ["settings", assetId] })
  },
})

Frequently asked questions

What does the Forge Import Settings Editor AI skill do?

Add per-asset import settings with TOML sidecar files, three-layer merge (schema → global → per-asset), a settings editor form with type-specific controls, and single-asset re-processing from the web UI. Use when someone needs configurable per-file processing overrides, settings UI, or sidecar-based configuration.

Why use Forge Import Settings Editor on TypingMind?

Because you install it once and use it with any model. Forge Import Settings Editor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Forge Import Settings Editor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/forge-import-settings-editor. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Forge Import Settings Editor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Forge Import Settings Editor?

As many as you like. As long as a model supports skills, you can use Forge Import Settings Editor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Forge Import Settings Editor AI skill free?

Yes. It is published on GitHub by Nebulavenus under the Zlib license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇