Skip to content
Skillv1.0.0

prefabs

This directory contains authored JSON prefab bundles.

by QM-Code(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from QM-Code/karma (examples/assets/prefabs/AGENTS.md). Install upstream with npx skills add QM-Code/karma --skill prefabs. Copyright stays with the author.

Prefab Asset Notes

This directory contains authored JSON prefab bundles.

For particle-heavy prefabs:

  • Keep prefab.json responsible for entity composition, scene hierarchy, component data, and playback defaults.
  • Keep .kpeffect responsible for emitter tuning.
  • Prefer enabled/playing defaults plus ParticleEmitterComponent.start_delay for direct-load one-shot staged effects.
  • Save separate JSON prefabs for data variants, or instantiate and modify components in C++.
  • If a prefab needs texture assets or effect registration for direct path-only instantiation, add assets.package.json beside prefab.json.

Reference particle-heavy effects:

  • examples/assets/prefabs/explosion/prefab.json
  • examples/assets/prefabs/energy_orb/prefab.json
  • docs/EXPLOSION_PREFAB.md

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/qm-code-karma-prefabs/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

qm-code-karma-prefabs.ocm.jsonjson
{
  "ocm": "1",
  "id": "qm-code-karma-prefabs",
  "kind": "skill",
  "name": "prefabs",
  "description": "This directory contains authored JSON prefab bundles.",
  "publisher": "QM-Code",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "This directory contains authored JSON prefab bundles."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/QM-Code/karma",
      "path": "examples/assets/prefabs/AGENTS.md",
      "ref": "9f1daaa1e89225b8e889e614daab23563a6d6af6",
      "url": "https://github.com/QM-Code/karma/blob/9f1daaa1e89225b8e889e614daab23563a6d6af6/examples/assets/prefabs/AGENTS.md",
      "key": "QM-Code/karma/examples/assets/prefabs/AGENTS.md"
    }
  },
  "instructions": "# Prefab Asset Notes\n\nThis directory contains authored JSON prefab bundles.\n\nFor particle-heavy prefabs:\n\n- Keep `prefab.json` responsible for entity composition, scene hierarchy,\n  component data, and playback defaults.\n- Keep `.kpeffect` responsible for emitter tuning.\n- Prefer enabled/playing defaults plus `ParticleEmitterComponent.start_delay`\n  for direct-load one-shot staged effects.\n- Save separate JSON prefabs for data variants, or instantiate and modify\n  components in C++.\n- If a prefab needs texture assets or effect registration for direct path-only\n  instantiation, add `assets.pack",
  "cost": {
    "context_tokens": 199
  }
}

Fetch it by URL: GET /api/v1/registry/qm-code-karma-prefabs/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.