Skip to content

traits.dev

Profile-driven personality infrastructure for production AI systems.

Show, Then Explain

You should not need to read a schema before seeing the value.
Start with the Interactive Showcase: one prompt, three profiles, side by side.

  • haven: healthcare-safe, high-empathy communication
  • resolve: customer-resolution language with ownership framing
  • architect: terse, code-first technical execution voice

What traits.dev does

  • Defines personality as versioned YAML rather than ad hoc prompt strings
  • Validates safety and structure before compile (S001 to S007)
  • Compiles model-aware prompt blocks for Claude and GPT placement
  • Evaluates response adherence with reproducible tiered scoring

Build Workflow

bash
pnpm exec traits init --template resolve my-profile.yaml
pnpm exec traits validate my-profile.yaml --strict
pnpm exec traits compile my-profile.yaml --model gpt-4o
pnpm exec traits eval my-profile.yaml --tier 1

Learn Fast

  1. Interactive Showcase
  2. Schema Reference (v1.4)
  3. Write Your First Profile
  4. API Reference (@traits-dev/core)