Guide for designing Definition resources in OptAIC (the "Law"). Use when creating PipelineDef, StoreDef, AccessorDef, OpDef, MLModuleDef, or PortfolioOptimizerDef. Covers interface_spec, input/output schemas, compatibility rules, and embedded guardrail contracts.
Guide for designing Definition resources that serve as reusable plugin templates. Definitions are the "Law" that Instances must follow.
When to Use
Apply when:
Creating new plugin types (PipelineDef, StoreDef, etc.)
Designing the interface contract a plugin must implement
Specifying input/output schemas for validation
Defining compatibility rules for upstream/downstream connections
Embedding guardrail contracts that enforce data quality
Core Concept: The Law
Definition resources contain the rules that Instance resources must follow:
Definition = The Law
├── interface_spec # Abstract interface to implement
├── input_schema # Expected input format
├── output_schema # Expected output format
├── compatibility_rules # What can connect upstream/downstream
└── guardrail_contracts # Validation rules (enforced by Engine)
Run npx skillmds add majiayu000/definition-resource-design in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Guide for designing Definition resources in OptAIC (the "Law"). Use when creating PipelineDef, StoreDef, AccessorDef, OpDef, MLModuleDef, or PortfolioOptimizerDef. Covers interface_spec, input/output schemas, compatibility rules, and embedded guardrail contracts. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.