se-dev-torch
Original:🇺🇸 English
Translated
10 scripts
Torch plugin development for Space Engineers version 1. Search TorchAPI/Torch source code, plugin API, managers, commands, and server UI patterns.
25installs
Sourcecometworks/skills
Added on
NPX Install
npx skill4agent add cometworks/skills se-dev-torchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →SE Dev Torch Skill
Torch plugin development for Space Engineers version 1.
This skill is for Torch framework itself: plugin lifecycle, manifests, commands, managers, patch helpers, and server UI integration. Use or alongside it when task crosses into Keen internals.
se-dev-game-codese-dev-server-codeCompatibility: Plugins built with this skill target Torch only — not compatible with Magnetar, which uses different patcher and SDK. For Magnetar server plugins use and skills. When starting from se-server-plugin-template, use its tag as basis, not current (which dropped Torch target). See TorchPlugin.md.
se-dev-pluginse-dev-plugin-sdklast-torch-compatiblemainCRITICAL: Commands run in a UNIX shell. Use bash syntax. On Windows this is BusyBox; on Linux/macOS use the native shell.
Examples:
test -f Prepare.DONE && echo readyTORCH_ROOT=/path/to/Torch ./Prepare.shif exist Prepare.DONE echo ready
Actions:
- prepare: Run one-time preparation (on Windows,
Prepare.baton Linux/macOS, orPrepare.shas wrapper)run_prepare.sh - bash: Run UNIX shell commands via busybox
- search: Search indexed Torch source using
search_torch.py
Routing Decision
Check these patterns in order:
| Priority | Pattern | Example | Route |
|---|---|---|---|
| 1 | Empty or bare invocation | | Show this help |
| 2 | Prepare keywords | | prepare |
| 3 | Bash/shell keywords | | bash |
| 4 | Search keywords | | search |
Requirements
Host system must have following on :
PATH- Python 3.11 or newer
- git command line client
If user already has local Torch checkout, set to that repository root before preparation. Otherwise skill clones into its persistent data folder.
TORCH_ROOThttps://github.com/TorchAPI/TorchGetting Started
CRITICAL: Before running ANY commands, read CommandExecution.md.
If file missing in this folder, run one-time preparation first. See Prepare.md.
Prepare.DONEEssential Documentation
- CommandExecution.md - command execution rules and quick start
- QuickStart.md - first searches and common task entry points
- TorchPlugin.md - Torch plugin authoring patterns
- Architecture.md - where to inspect each subsystem in Torch source tree
- CodeSearch.md - complete code search reference
- Troubleshooting.md - common failure modes and what to check
Quick Search Examples
bash
# Find the base plugin class
uv run search_torch.py class declaration TorchPluginBase
# Find the Torch plugin API interfaces
uv run search_torch.py interface declaration ITorchPlugin -n Torch.API.Plugins
# Inspect command definitions
uv run search_torch.py class declaration CommandModule -n Torch.Commands
uv run search_torch.py method signature RegisterPluginCommands
# Inspect manager usage patterns
uv run search_torch.py class declaration DependencyManager -n Torch.Managers
uv run search_torch.py interface declaration ITorchSessionManager -n Torch.API.Session
# Find patching infrastructure
uv run search_torch.py namespace declaration PatchManager
uv run search_torch.py class declaration PatchContext -n Torch.Managers.PatchManagerGeneral Rules
- Search only indexed Torch repository selected during preparation.
- Prefer metadata over
manifest.xml;[PluginAttribute]is obsolete in Torch.PluginAttribute - Prefer or
torch.Managers.GetManager<T>()over obsoletesession.Managers.GetManager<T>().ITorchBase.GetManager<T>() - Use as normal starting point unless task clearly needs lower-level implementation.
TorchPluginBase - If task is about Space Engineers game behavior rather than Torch framework behavior, use or
se-dev-game-codeas companion skill.se-dev-server-code - Preparation builds a separate Graphify graph for the selected Torch checkout (or
). With the fast Rust clustering backend (Python 3.12 via
SE_DEV_TORCH_PLUGIN_ROOT, provisioned automatically) prepare builds it automatically (~1 minute for a Torch checkout). Where the fast backend is unavailable it stays opt-in withuv;SE_DEV_GRAPHIFY=1disables it. Read on demand — build via GraphifyPrepare.md, query via GraphifyUsage.md.SE_DEV_GRAPHIFY=0
Remarks
Original source of this skill: https://github.com/CometWorks/skills