yaml-schema
Skill119 starsChanged 5 months agoMITView on GitHub
Loading agent.yml, defining schema models, and validating the specification (definitions, hierarchy, security). Primary task is tasks/0002-yaml-schema-and-validation.md.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- code-reviewSkill
- documentationSkill
- git-workflowSkill
- mcp-toolsSkill
- project-architectureSkill
- prompt-renderingSkill
- refactoringSkill
- runtime-engineSkill
- senior-python-engineeringSkill
- sidecar-auth-contextSkill
- skill-authoringSkill
- testingSkill
- vercel-react-best-practicesSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Do not edit this file directly.
- Very specific: line 18
Use this when working on loading YAML configs, defining schema models, or validating the Agent Engine specification.
- Distinctive: line 47
Keep schema/validation separate from the compiler.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
This file is generated by tools/skills.
Do not edit this file directly.
Edit .ai/skills/yaml-schema.md and run `make generate-ai`.
-->Skill: YAML Schema & Validation
When to use this skill
Use this when working on loading YAML configs, defining schema models, or
validating the Agent Engine specification. Primary task:
tasks/0002-yaml-schema-and-validation.md.
Files to read first
AGENTS.mddocs/YAML_SPEC.mdexamples/agents.ymlexamples/config.schema.jsondocs/adr/0002-yaml-is-compiled-not-executed-directly.md
Architecture rules
- YAML is declarative data, never code.
- The spec has two halves: flat declarations and
graphtopology. - Validation must happen before compilation.
- Runtime layers consume only validated/compiled models, never raw YAML dicts.
- Secrets are never values in YAML.
Implementation rules
- Define typed schema models in
src/agentplatform/spec. - Validation belongs in
src/agentplatform/validation. - Report all validation errors with useful locations.
- Enforce: required
systemandgraph; one graph root; graph ids exist inorchestratorsoragents; no cycles; referenced resolvers/tools/MCPs exist; orchestrators haveprompts.orchestrator; model overrides are complete; protected nodes require the access plugin at startup. - Keep schema/validation separate from the compiler.
Validation checklist
- Schema models cover
docs/YAML_SPEC.md. examples/agents.ymlvalidates successfully.- Dangling references, missing/multiple roots, and cycles fail clearly.
- Unknown keys and hardcoded secrets are rejected.
- Tests cover valid and invalid specs.
make checkpasses.
Common mistakes to avoid
- Mixing validation with compilation or runtime logic.
- Failing fast on the first error instead of collecting all errors.
- Reintroducing the old
definitions/hierarchyshape. - Letting unknown/typo'd keys pass silently.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

