opcode_management

Synchronize game opcode definitions across Rust, Python, and JavaScript codebases.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/trioskosmos/rabukasim --skill opcode-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opcode_management
Source: https://github.com/trioskosmos/rabukasim/tree/main/.agent/skills/opcode_management
Command: npx skills add https://github.com/trioskosmos/rabukasim --skill opcode-management

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a unified workflow to ensure that game mechanics (opcodes), conditions, and triggers are consistently defined and synchronized across the game's Rust engine, Python compiler, and JavaScript frontend.

Core Features & Use Cases

  • Centralized Definition: All opcode definitions are managed in a single data/metadata.json file.
  • Cross-Language Synchronization: Automatically updates Rust, Python, and JavaScript codebases when definitions change.
  • Parameter Bit-Packing Standards: Details on how parameters are packed into bitfields for efficiency.
  • Migration and Maintenance: Guides for shifting bit allocations and synchronizing card IDs.
  • Test Rigor Audit: Framework for assessing the quality of opcode tests.

Quick Start

Use the opcode_management skill to add a new effect opcode by editing data/metadata.json and running the sync script.

Frequently Asked Questions about opcode_management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I synchronize game opcodes across Rust, Python, and JavaScript codebases?

Synchronize game opcodes across Rust, Python, and JavaScript by centralizing definitions in a single metadata.json file and running a sync script to propagate changes. This ensures cross-language parity for engine, compiler, and UI components.

What is the best way to manage game mechanic definitions consistently across multiple programming languages?

Managing game mechanic definitions consistently requires a centralized metadata.json file that automatically updates Rust, Python, and JavaScript codebases. This approach maintains cross-language parity for triggers, targets, and conditions.

How does parameter bit-packing work for game opcodes and when should I use it?

Parameter bit-packing packs opcode parameters into bitfields for memory efficiency. It is used when defining game mechanics in metadata to ensure standardized, compact data transmission across Rust, Python, and JavaScript engine components.

Can I migrate ID assignments and shift bit allocations for existing game opcodes?

Yes, you can migrate ID assignments and shift bit allocations for game opcodes. The workflow includes maintenance guides for safely shifting bit allocations and synchronizing card IDs within the centralized metadata structure.

How do I add a new effect opcode to a cross-language game engine?

To add a new effect opcode, edit the data/metadata.json file with the new definition and run the synchronization script. This automatically updates the Rust, Python, and JavaScript codebases with the new game mechanic.

How do I assess the quality of opcode tests for synchronized game mechanics?

Assess opcode test quality using a provided test rigor audit framework. This framework evaluates the testing standards for game mechanics defined in the centralized metadata and synchronized across codebases.