ecs-component-validator

Validate ECS component usage, storage patterns, and system registration in Katla's framework.

4|Updated Dec 26, 2019
One-click install
npx skills add https://github.com/Mik-pe/Katla --skill ecs-component-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ecs-component-validator
Source: https://github.com/Mik-pe/Katla/tree/main/.claude/skills/ecs-component-validator
Command: npx skills add https://github.com/Mik-pe/Katla --skill ecs-component-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validate ECS component usage, storage patterns, system registration, and query correctness in Katla's custom ECS framework.

Core Features & Use Cases

  • Validates derive(Component) or impl Component usage across katla_ecs and katla_app
  • Checks storage access is via query API, not direct storage calls
  • Detects common ECS issues and provides remediation guidance

Quick Start

Run the validator on your Katla project to identify ECS pattern violations and recommended fixes.

Frequently Asked Questions about ecs-component-validator

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

FAQPage Schema
How do I validate ECS component usage and query correctness in Rust?

To validate ECS component usage, check that components implement the Component trait and ensure storage access is handled via query APIs rather than direct storage calls to prevent common architectural violations.

What is the correct way to access ECS storage in a custom Rust framework?

Correct ECS storage access requires using the query API exclusively. Direct storage calls bypass system execution order checks and entity destruction cleanup, leading to data inconsistency and runtime errors.

How do I debug ECS system registration and execution order issues?

Debug ECS system registration by validating system execution order and ensuring entities undergo proper destruction cleanup. Check that new systems follow the framework's query-based access patterns to isolate registration conflicts.

Does the validator work with Katla's custom ECS framework?

Yes, the validator specifically targets Katla's ECS framework, checking component trait implementation and query correctness across katla_app and katla_ecs modules to identify storage pattern violations and provide remediation guidance.

Why does my ECS component fail validation when adding new systems?

ECS component validation fails when components lack derive(Component) or proper impl Component usage. The validator detects these missing implementations and identifies incorrect direct storage access during system registration.

When do I need to run an ECS pattern validator on my Rust project?

Run an ECS pattern validator when adding new components or systems and when debugging ECS issues. It enforces query-based storage access and checks entity destruction cleanup to maintain architectural integrity.