/sarj-skills:data-contractsfrom sarj-skills
Applies the audit protocol to establish and enforce data contracts with runtime validation, preserving evidence across admission, mutation, and versioning boundaries.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /sarj-skills:data-contracts still runs it.
Apply protocol.
Show producer, admitted invalid value and failing consumer before strengthening
a contract. Preserve parsed evidence; generic maps/trusted values need no
duplicate parsing. Correlate proven variants without erasing drafts, partial
updates, unknown variants or extension keys. Omission/null/value can differ;
brands, casts, frozen fields and TypedDict provide no runtime validation.
Establish stable configuration invariants when publishing constructed or updated values as valid for their role and schema version. Trace every admission, write and mutation path; publish the checked, normalized result. Readers can reuse established evidence while those guarantees hold. Preserve legitimate drafts, partial updates, historical representations and error timing. Hydrating untrusted or differently versioned data remains an admission boundary; current time, authorization and mutable external state can require checks at use.
Prefer domain types and declarative constraints. Extract cohesive validation helpers where they clarify ownership or enable reuse, with thin framework bindings. Preserve validator mode, order, context, evaluation count and object lifetimes. Method names and line counts do not establish redundant validation or justify moving it.
Preserve coercions, aliases, defaults, extras, error locations, Python/JSON paths, fields-set, construction/identity and collection protocols. Pydantic tagged dispatch precedes variant validators/defaults; boolean literals can admit integers. TypeScript unions need forbidden members only for required exactness.
Check validator order and mutation: assignment failure need not roll back,
model_copy(update=...) skips validation, and revalidation may preserve identity.
For lasting cross-field invariants, validate a complete replacement; round trips
can lose private/excluded state. Trace both predicate branches and generic-result
evidence; preserve genuine narrowing, caller ownership and public/stateful APIs.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
11 commands in this plugin
/authn-and-authzAuthentication and authorizationApply [protocol](../skills/audit-protocol/SKILL.md)./concurrency-and-performanceConcurrency and performanceApply [protocol](../skills/audit-protocol/SKILL.md)./database-schemas-and-migrationsDatabase schemas and migrationsApply [protocol](../skills/audit-protocol/SKILL.md).npx claudepluginhub sarj-ai/code-standards --plugin sarj-skills