component-validator
Component Validator
Audit a single Datex Studio component file against its type-specific authoring rules — the final read-only gate after a creator skill has finished writing or modifying a component, and before the change is upserted to the branch. This skill is a generic dispatcher: it reads the component file, picks the matching creator skill's reference document by file suffix, and runs the checklist from that document. It returns a structured punch-list (Blockers / Warnings / Nits) — never a rewrite.
See also:
grid-validator— grid files (*-grid.json) carry several gotchas the generic dispatcher does not catch (envelope-vs-body shape, text-display coercion, five-location invariant). For grids, prefergrid-validatorand treat this skill as a fall-back ifgrid-validatoris unavailable.See also:
component-wiring-check— cross-component reference contracts (one component pointing at another). This validator only audits a single file in isolation; it flags obvious wiring drift it can see in that one file (e.g. aconfigParametersblock that does not mirror the file's owninParams) but does not chase external references.
References
- ../datex-studio-conventions/file-format.md —
configurationTypeIdtable, single-line minified JSON rule, TypeScript-expression encoding - ../datex-studio-conventions/naming-conventions.md — Suffix table,
referenceName↔ file-stem rule, snake_case vs camelCase guidance - ../datex-studio-conventions/defaults.md — Default
accessModifier,descriptionlength cap, default package rules - Creator-skill reference documents (the rulebook this validator dispatches into; see suffix table in the Sub-agent block below)