К основному содержанию
скилл CX Codex

se-dev-plugin — скилл для Claude Code: что делает и как установить

Скилл se-dev-plugin помогает разрабатывать плагины для Space Engineers 1: ищет примеры кода в PluginHub и MagnetarHub и даёт руководства по патчам Harmony.

MIT 1 установок ★ 12 обновлён 2026-10-24

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add CometWorks/skills --skill se-dev-plugin -a claude-code
Открыть на GitHub

Что делает se-dev-plugin

Скилл ориентирован на разработку клиентских дополнений для загрузчика Pulsar и серверных модулей под Magnetar. Внутри настроена интеграция со скриптами на Python через uv: поиск по кодовой базе существующих плагинов (search_plugins.py), выгрузка репозиториев и построение графа связей через Graphify. Для работы с чужим кодом есть документация по Harmony — от базовых префиксов и постфиксов до транспайлеров IL и инъекций параметров вроде __instance и __result.

Команды выполняются строго в синтаксисе UNIX shell. На Windows запуск идёт через BusyBox, поэтому стандартный синтаксис cmd.exe вызовет ошибку.

Перед поиском нужно обязательно выполнить начальную подготовку скриптом Prepare.bat или prepare.sh: без созданного маркера Prepare.DONE локальные утилиты не найдут распакованные исходники. При выпуске релизов скилл напоминает обновлять версию сразу в двух местах — файле Version.Build.props и атрибутах сборки в Plugin.cs.

Какие задачи решает

  • найти примеры хуков и патчей в открытых плагинах Space Engineers
  • настроить проект клиента на базе Pulsar или серверную часть для Magnetar
  • разобрать IL-код и написать транспайлер с помощью Harmony
  • синхронизировать версии сборки в Version.Build.props и исходниках

Примеры запросов агенту

  • Выполни первоначальную настройку окружения через se-dev-plugin prepare
  • Найди примеры реализации компонентов в чужих плагинах: se-dev-plugin search MySessionComponent
  • Покажи справку по доступным командам скилла: se-dev-plugin

Как установить se-dev-plugin

1Через Skills CLI (Vercel)

npx skills add CometWorks/skills --skill se-dev-plugin -a claude-code

2Вручную: положить файлы

~/.claude/skills/se-dev-plugin/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/se-dev-plugin/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о se-dev-plugin

Как установить se-dev-plugin в Claude Code?

Выполните команду npx skills add CometWorks/skills --skill se-dev-plugin -a claude-code в терминале.

Зачем запускать шаг prepare?

Скрипт prepare.sh (или Prepare.bat) скачивает открытые исходники плагинов из каталогов PluginHub и MagnetarHub, после чего создаёт файл Prepare.DONE, необходимый для локального поиска.

Почему команды падают в командной строке Windows?

Инструмент ожидает синтаксис Bash. На Windows среда использует BusyBox, поэтому команды вроде if exist не сработают — пишите в формате test -f.

Исходный текст

SKILL.md · MIT
---
name: se-dev-plugin
description: Plugin development for Space Engineers version 1. Search plugin code from PluginHub (client) and MagnetarHub (server) for examples and patterns.
license: MIT
allowed-tools: Read, Bash(*Prepare.bat*), Bash(*prepare.sh*), Bash(*Clean.bat*), Bash(*clean.sh*), Bash(*dotnet build*), Bash(*dotnet clean*), Bash(*uv run search_plugins.py *), Bash(*uv run index_plugins.py*), Bash(*uv run list_plugins.py*), Bash(*uv run download_plugin_source.py *), Bash(*uv run download_pluginhub.py*), Bash(*uv run download_magnetarhub.py*), Bash(command -v graphify*), Bash(graphify*), Bash(*busybox* grep *), Bash(*busybox* find *), Bash(*busybox* cat *), Bash(*busybox* head *), Bash(*busybox* tail *), Bash(*busybox* ls*), Bash(*busybox* wc *), Bash(*busybox* sort *), Bash(*busybox* uniq *), Bash(*busybox* tree*)
---

# SE Dev Plugin Skill

Plugin development for Space Engineers version 1.

**⚠️ CRITICAL: Commands run in UNIX shell. Use bash syntax. On Windows this is BusyBox; on Linux use native shell.**

Examples:
- ✅ `test -f file.txt && echo exists`
- ✅ `ls -la | head -10`
- ❌ `if exist file.txt (echo exists)` - Will NOT work

**Actions:**

- **prepare**: Run one-time preparation (`Prepare.bat` on Windows, `prepare.sh` on Linux)
- **bash**: Run UNIX shell commands via busybox
- **search**: Search plugin code using `search_plugins.py`

## Routing Decision

Check these patterns **in order** - first match wins:

| Priority | Pattern | Example | Route |
|----------|---------|---------|-------|
| 1 | Empty or bare invocation | `se-dev-plugin` | Show help |
| 2 | Prepare keywords | `se-dev-plugin prepare`, `se-dev-plugin setup`, `se-dev-plugin init` | prepare |
| 3 | Bash/shell keywords | `se-dev-plugin bash`, `se-dev-plugin grep`, `se-dev-plugin cat` | bash |
| 4 | Search keywords | `se-dev-plugin search`, `se-dev-plugin find class`, `se-dev-plugin lookup` | search |

## Getting Started

**⚠️ CRITICAL: Before running ANY commands, read [CommandExecution.md](CommandExecution.md) to avoid common mistakes that cause command failures.**

If `Prepare.DONE` file missing in this folder, you MUST run one-time preparation steps first. See [prepare action](./actions/prepare.md).

## Essential Documentation

- **[CommandExecution.md](CommandExecution.md)** - ⚠️ **READ THIS FIRST** - Windows command execution details; on Linux keep bash syntax and use `prepare.sh`

## Plugin Development Documentation

Read appropriate documents for further details:
- [Plugin.md](Plugin.md) Plugin development (shared skills for both client and server)
- [ClientPlugin.md](ClientPlugin.md) Client plugin development (relevant on client side)
- [ServerPlugin.md](ServerPlugin.md) Server plugin development (relevant on server side)
- [`se-dev-plugin-guide`](../se-dev-plugin-guide/SKILL.md) skill: use it to answer questions about the plugin development process in general (templates, local testing, manifest XML, hub submission).
- [Publicizer.md](Publicizer.md) How to use Krafs publicizer to access internal, protected or private members in original game code (optional).
- [OtherPluginsAsExamples.md](OtherPluginsAsExamples.md) How to look into source code of other plugins as examples.

## Harmony Patching Documentation

Progressive documentation for Harmony patching (start with basics, then read advanced topics as needed):

1. **[Patching.md](Patching.md)** - Start here: patch types, prefix/postfix basics, common patterns
2. **[PatchInjections.md](PatchInjections.md)** - Special parameters: `__instance`, `__result`, `___fields`, `__state`
3. **[AccessTools.md](AccessTools.md)** - Reflection utilities to find methods, fields, and types
4. **[TranspilerPatching.md](TranspilerPatching.md)** - IL-level patching for complex modifications
5. **[PatchingSpecialCases.md](PatchingSpecialCases.md)** - Finalizers, reverse patches, auxiliary methods, priority
6. **[PreloaderPatching.md](PreloaderPatching.md)** - Pre-JIT patching (Mono.Cecil, client only)

## Targets: Client and Server

Plugins target one or both of:
- **Client** — runs inside game client, loaded by [Pulsar](https://github.com/SpaceGT/Pulsar), released on [PluginHub](https://github.com/StarCpt/PluginHub/).
- **Server** — runs inside dedicated server, loaded by [Magnetar](https://magnetar.se), released on [MagnetarHub](https://github.com/CometWorks/magnetar-hub). Server plugins declare their configuration through Magnetar's PluginSdk; use **`se-dev-plugin-sdk`** skill for that. Admins configure server plugins remotely via [Quasar](https://github.com/CometWorks/quasar), the Magnetar control plane.

A client-only plugin uses [client plugin template](https://github.com/CometWorks/client-plugin-template). A plugin that also needs server side companion (or is server-only) uses [server plugin template](https://github.com/CometWorks/server-plugin-template), which has `ClientPlugin` target, `ServerPlugin` target and `Shared` project. See [ServerPlugin.md](ServerPlugin.md).

## Plugin Distribution

Client plugins released exclusively on PluginHub. All client plugins must be open source, since they are compiled on
player's machine from GitHub source revision identified by its PluginHub registration. Plugins are
reviewed for safety and security on submission, but only on best effort basis, without any legal guarantees.
Plugins run native code and can do anything.

Plugins made from the templates set their version in two places. Bump both on every
release: `<Version>` in `Version.Build.props` and the `AssemblyVersion` and
`AssemblyFileVersion` attributes in `Plugin.cs` (`ClientPlugin/Plugin.cs`, and
`ServerPlugin/Plugin.cs` for a server plugin). Local builds define `LOCAL_BUILD` and take
the version from `Version.Build.props`. Pulsar and Magnetar compile the source without
`LOCAL_BUILD`, so the version shown in game and on the server comes from those attributes.
If only `Version.Build.props` is bumped, the old version keeps showing.

Use `se-dev-game-code` to read the exact code you call or patch. If the
`se-dev-game-book` handbook is installed, read it first to learn how a game system
works and which types take part; without it, search the game code for that too.
Server plugins use `se-dev-server-code` and `se-dev-server-book` the same way.

## Graphify Graph

Preparation builds a separate Graphify graph for downloaded plugin sources under
`Data/Sources` (or `SE_DEV_PLUGIN_PROJECT_ROOT`). With the fast Rust clustering backend
(Python 3.12 via `uv`, provisioned automatically) prepare builds it **automatically**; this
corpus is small so it is quick either way. Where the fast backend is unavailable it stays
**opt-in** with `SE_DEV_GRAPHIFY=1`; `SE_DEV_GRAPHIFY=0` disables it. Read on demand — skip
for normal search work: build via [GraphifyPrepare.md](../se-dev/GraphifyPrepare.md), query
via [GraphifyUsage.md](../se-dev/GraphifyUsage.md).

## References

- [Pulsar](https://github.com/SpaceGT/Pulsar) Plugin loader for Space Engineers game client
- [Pulsar Installer](https://github.com/StarCpt/Pulsar-Installer) Installer for Pulsar on Windows
- [PluginHub](https://github.com/StarCpt/PluginHub/) Public plugin registry for Pulsar
- [Magnetar](https://magnetar.se) Plugin loader for Space Engineers dedicated server
- [MagnetarHub](https://github.com/CometWorks/magnetar-hub) Public plugin registry for Magnetar

## Plugin Registries

Two registries are searched together, both using the same GitHub-plugin XML schema:

- **PluginHub** — client plugins (Pulsar). Older entries put `Owner/Repo` in `<Id>`; newer ones use a GUID `<Id>` and put the GitHub repo in `<RepoId>`.
- **MagnetarHub** — server plugins (Magnetar). `<Id>` is a GUID; the GitHub repo is in `<RepoId>`.

Preparation clones both into `Data/PluginHub` and `Data/MagnetarHub`. Refresh them with
`uv run download_pluginhub.py` and `uv run download_magnetarhub.py`. To point at a local
registry checkout instead of (or in addition to) the cloned ones, set
`SE_PLUGIN_REGISTRY_DIR` to a registry root (a folder containing `Plugins/*.xml`).
`list_plugins.py`, `download_plugin_source.py` and the indexer all read every configured
registry; `list_plugins.py` tags each entry with `[PluginHub]` or `[MagnetarHub]`.

## Plugin Code Search

Search source code of plugins from either registry for examples and patterns:

```bash
# List available plugins (tagged by registry), or search them
uv run list_plugins.py
uv run list_plugins.py --search "camera"

# Download a plugin's source (use the EXACT name, GUID/Id, or Owner/Repo from the list); skip the ones listed as [LOCAL]
uv run download_plugin_source.py "Tool Switcher"
uv run download_plugin_source.py CometWorks/essentials

# Index downloaded plugins (automatic after download)
uv run index_plugins.py

# Search plugin code
uv run search_plugins.py class declaration Plugin
uv run search_plugins.py method signature Patch

# Count results before viewing (useful for large result sets)
uv run search_plugins.py class usage Plugin --count

# Limit number of results
uv run search_plugins.py class usage IPlugin --limit 20
```

The registries contain descriptions of all available plugins. Download sources for plugins
that may help with your task, then index and search them.

See [search action](./actions/search.md) for complete documentation.

## Action References

Follow detailed instructions in:

- [prepare action](./actions/prepare.md) - One-time preparation
- [bash action](./actions/bash.md) - Run UNIX shell commands via busybox
- [search action](./actions/search.md) - Search plugin code for examples

## Remarks

Original source of this skill: https://github.com/CometWorks/skills

© CometWorks · MIT · CometWorks/skills

Похожие скиллы

Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →
godot-csharp gamedev-skills Скилл godot-csharp для Claude Code помогает писать и собирать C#-код для Godot 4.7 .NET. Запускается при работе с .cs-скриптами, переносе GDScript, ошибках сборки и экспорта. CX Codex +1 11 600установок c-sharp Mindrally Скилл c-sharp для Claude Code задаёт стиль кода на C#: именование, async, DI, тесты, Blazor и Unity. Описывает конвенции проекта на .NET, чтобы агент следовал им без повторных объяснений. CX Codex +1 812установок dotnet-backend-patterns Seth Hobson Скилл dotnet-backend-patterns для Claude Code даёт паттерны разработки на C# и .NET: async-код, DI, EF Core, кэширование и тестирование. Создаёт backend API и MCP-серверы, помогает рецензировать C#-код. CX Codex +1 19 076установок dotnet-best-practices официальный github Скилл dotnet-best-practices проверяет выделенный .NET/C# код по правилам проекта: от структуры и DI до тестов, логирования и безопасности. Нужен при ревью или доработке решения. CX Codex +1 15 752установок dotnet-design-pattern-review официальный github Скилл dotnet-design-pattern-review проверяет выбранный C#/.NET-код на применение паттернов проектирования и предлагает правки без изменения файлов. Подходит для ревью архитектуры проекта. CX Codex +1 11 609установок optimizing-ef-core-queries dotnet Скилл optimizing-ef-core-queries разбирает доступ к данным на EF Core в сервисах, репозиториях и фоновых заданиях и показывает, где запросы тормозят, дублируют строки или бьют по базе лишний раз. CX Codex +1 7 100установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой