Loading...
Loading...
Create, validate, and modify Infrahub schemas. Use when designing data models, creating schema nodes with attributes and relationships, validating schema definitions, or planning schema migrations for Infrahub.
npx skill4agent add opsmill/infrahub-skills infrahub-schema-creator| Priority | Category | Prefix | Description |
|---|---|---|---|
| CRITICAL | Naming | | Namespace, node, attribute naming |
| CRITICAL | Relationships | | IDs, peers, component/parent |
| HIGH | Attributes | | Defaults, dropdowns, deprecated |
| HIGH | Hierarchy | | Hierarchical generics, parent/children |
| HIGH | Display | | human_friendly_id, order_weight |
| MEDIUM | Extensions | | Cross-file via extensions block |
| MEDIUM | Uniqueness | | Constraint format, __value suffix |
| MEDIUM | Migration | | Add/remove attributes, state: absent |
| LOW | Validation | | Common errors, pre-check checklist |
---
# yaml-language-server: $schema=https://schema.infrahub.app/infrahub/schema/latest.json
version: "1.0"
generics: # Abstract base definitions (shared attributes/relationships)
- ...
nodes: # Concrete object types
- ...
extensions: # Add attributes/relationships to existing nodes from other files
nodes:
- ...$schemaversioninfrahubctl