orkcore-reflection

Explain Orkid's C++ reflection system with RTTI macros and serialization.

35|16|Updated Feb 10, 2013
One-click install
npx skills add https://github.com/tweakoz/orkid --skill orkcore-reflection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orkcore-reflection
Source: https://github.com/tweakoz/orkid/tree/main/.claude/skills/orkcore-reflection
Command: npx skills add https://github.com/tweakoz/orkid --skill orkcore-reflection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a focused developer reference to help engineers understand and navigate Orkid's C++ reflection and object system so they can correctly register properties, implement RTTI, and serialize objects without guessing where patterns and hooks live.

Core Features & Use Cases

  • Key file mappings: Identifies the primary headers and source files for RTTI macros, Object and ObjectClass, property types, and serialization.
  • Property registration patterns: Describes directProperty, accessorProperty, enum/map/object properties, and editor annotations for metadata.
  • Serialization and lifecycle guidance: Explains the serdes node model, JSON serializer/deserializer, lifecycle hooks, cloning, and how signals/slots and factories integrate with the reflection system.
  • Use cases: Locating where to register new properties, debugging serialization issues, adding editor annotations, and implementing or extending object factories.

Quick Start

Ask the assistant to explain how to register a property in Describe(), where that registration lives in the codebase, and how it will be serialized.

Frequently Asked Questions about orkcore-reflection

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

FAQPage Schema
How do I register a property in Orkid C++ reflection using the Describe() method?

Orkid C++ reflection registers properties inside the Describe() method using directProperty, accessorProperty, enum, map, and object property patterns. You can also attach editor annotations to provide metadata for the registered property types.

How does object serialization work in the Orkid C++ reflection system?

Orkid serialization uses a serdes node model with JSON serializer and deserializer components to serialize and deserialize objects. The system integrates lifecycle hooks and object factories to manage the serialization process.

Where are the RTTI macros and property registration headers located in ork.core?

The Skill provides specific file mappings to the primary headers and source files for RTTI macros, Object and ObjectClass definitions, property types, and serialization within the ork.core codebase.

Can I integrate signals and slots with the Orkid C++ reflection system?

Yes, signals and slots integrate directly with the Orkid reflection system. The Skill explains how this mechanism connects to RTTI, property registration, and object factories within the framework.

How do I debug C++ serialization issues when using Orkid reflection?

Debugging Orkid serialization issues involves inspecting the serdes node model and verifying lifecycle hooks during object serialization and deserialization. The Skill identifies relevant source files to trace property registration and JSON serializer behavior.