mds-component-spec

Validate MDS component specifications against a canonical JSON schema.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/eboody/eran.codes --skill mds-component-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mds-component-spec
Source: https://github.com/eboody/eran.codes/tree/main/.codex/skills/mds-component-spec
Command: npx skills add https://github.com/eboody/eran.codes --skill mds-component-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized JSON schema and contract for defining component specifications, ensuring consistency and enabling code generation across MDS agents.

Core Features & Use Cases

  • Schema Enforcement: Validates component specifications against a canonical JSON Schema.
  • Contract Definition: Enforces requirements for content, UI, state, events, and backend interactions.
  • Code Generation: Provides the blueprint for generating Rust Maud components and associated code.
  • Use Case: A new MDS agent needs to define a reusable UI component. It uses this Skill's schema to structure its component_spec.json, ensuring all necessary fields like meta, content, ui, and state are correctly defined for downstream processing and code generation.

Quick Start

Use the mds-component-spec skill to validate a new component specification file against the canonical schema.

Frequently Asked Questions about mds-component-spec

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

FAQPage Schema
How do I define a JSON schema for component specifications to enable consistent code generation?

You can define a component specification using a canonical JSON schema that governs UI, state, events, and backend interactions to enforce quality and enable consistent code generation. This contract ensures downstream agents process reusable components uniformly.

What is a component contract and how does it work with MDS agents?

A component contract is a standardized JSON schema defining UI, state, and backend interactions. It works with MDS agents by enforcing field requirements and cross-reference invariants, ensuring agents generate valid Rust Maud components.

How do I validate a component specification file against a canonical schema?

You validate a component specification by checking it against the canonical JSON schema, which enforces detailed field requirements for meta, content, ui, and state. This ensures all necessary cross-reference invariants are met before downstream processing.

Does the component spec schema support generating Rust Maud components?

Yes, the component spec schema provides the blueprint for generating Rust Maud components. By defining content, UI, state, events, and backend interactions, the schema enforces the protocol adherence needed for automated code generation.

What are the limitations of using JSON schema for component contract definition?

The schema requires strict adherence to detailed field requirements and cross-reference invariants. Components failing these validations cannot proceed to code generation, meaning specifications must comprehensively define UI, state, events, and backend interactions without missing fields.