# Type Contract Auditor

> Audit public TypeScript types against src/planning/spec-v0.3.md, flag mismatches, and enforce acceptance criteria (build, no circular imports). Use when this capability is needed.

- Skill: `tomevault-io/type-contract-auditor` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/type-contract-auditor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/type-contract-auditor/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/type-contract-auditor

---


# Type Contract Auditor

Use this skill when asked to validate the public type contracts against `src/planning/spec-v0.3.md` or to report discrepancies.

## Workflow

1. Review the type list in `src/planning/spec-v0.3.md` and compare with `src/types`.
2. Check for missing types, duplicate union members, or mismatched optionals.
3. Verify supporting types like `RawColor` and `OutputOptions` align with spec notes.
4. Flag acceptance criteria issues: build failure risk or circular imports.

## Common checks

- Duplicated union members (e.g., `ColorState`).
- Optional fields that spec marks required (or vice versa).
- Extra types are acceptable if non-breaking; call them out as deltas.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/claushaas) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

