magnus-bindings
БесплатноБез исполняемых скриптовНе проверенMagnus Ruby extensions from a Rust core: define_class, TryConvert/IntoValue, exception mapping, GVL release, TypedData, rake-compiler builds. Use when writing…
от Goldziher★ 182 звезды на GitHubОб этом скилле
- Use
magnuscrate for Ruby native extensions. Define classes withmagnus::define_class. - Map Rust types to Ruby using
TryConvertandIntoValuetraits. ReturnResult<T, magnus::Error>. - Use
magnus::function!macro for defining Ruby methods. Usemagnus::method!for instance methods. - Map Rust errors to specific Ruby exceptions:
magnus::Error::new(exception::runtime_error(), msg). - Build with
rb_syscrate andmagnus-buildfor compilation. Userake-compilerfor gem distribution. - Support Ruby 3.2+ with multiple ABI versions.
- Test bindings from Ruby using RSpec or Minitest. Test error handling and edge cases.
- Keep Ruby wrapper gem thin — business logic in Rust, Ruby provides idiomatic API.
- Handle Ruby's GVL (Global VM Lock) — release for CPU-intensive Rust code.
- Use
TypedDatafor wrapping Rust structs as Ruby objects with proper GC integration. - Anti-patterns: panics in Ruby methods,
unsafewithoutSAFETYcomments, manual memory management.
Установить magnus-bindings в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл magnus-bindings?
Magnus Ruby extensions from a Rust core: define_class, TryConvert/IntoValue, exception mapping, GVL release, TypedData, rake-compiler builds. Use when writing or reviewing Magnus bindings.
Как установить скилл magnus-bindings?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл magnus-bindings запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic