trails-discriminate-union
OfficialClarify public Trails output discriminants.
Authoroutfitter-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Review Trails outputs that expose union-like shapes to agents or surfaces and supports deciding whether stable discriminants are required, or whether the issue is schema cleanup, advisory guidance, or Warden work.
Core Features & Use Cases
- Identify branch evidence across Zod schemas, JSON Schema projections, tests, and downstream surface behavior.
- Detect stable discriminants such as kind, mode, or type to determine whether consumers can reliably distinguish branches.
- Provide actionable recommendations (add a discriminant, keep private unions internal, or raise advisory follow-up) and indicate when Warden enforcement is safe.
- Reference authoritative sources and audits to guide governance decisions.
Quick Start
Review the public Trails output to determine whether a stable discriminant should be introduced.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: trails-discriminate-union Download link: https://github.com/outfitter-dev/trails/archive/main.zip#trails-discriminate-union Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.