CO

config-contracts

Provides structural schema and validation rules for critical TOML configuration files used by the system.

Install

mkdir -p .claude/skills/config-contracts && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15951" && unzip -o skill.zip -d .claude/skills/config-contracts && rm skill.zip

Installs to .claude/skills/config-contracts

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

TOML config structure and validation rules. Use when creating or modifying config files (global_rubric.toml, role_archetypes.toml, settings.toml), updating config validation, or loading config in the indexer.
208 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Validate the structure of `global_rubric.toml`
  • Validate the structure of `role_archetypes.toml`
  • Validate the structure of `settings.toml`
  • Report actionable errors for missing or malformed TOML files
  • Apply default values for missing settings like `negative_weight`
  • Check if `global_rubric_path` exists

How it works

This skill validates TOML config files against predefined rules, checking for file existence, correct TOML syntax, and specific field constraints.

Inputs & outputs

You give it
TOML config files (`global_rubric.toml`, `role_archetypes.toml`, `settings.toml`)
You get back
validation results, including actionable errors or graceful handling of missing data

When to use config-contracts

  • Modifying configuration files
  • Updating validation logic
  • Validating TOML structure

About this skill

Config Contracts — TOML Structure & Validation Rules

When This Skill Applies

When creating or modifying config files (global_rubric.toml, role_archetypes.toml, settings.toml), updating config validation in config.py, or loading config in the indexer.


Config File Overview

Three TOML config files with full structure examples in toml-schemas.md:

  • config/global_rubric.toml — 8 dimensions (altitude, humane_culture, etc.) with description, signals_positive, signals_negative
  • config/role_archetypes.toml[[archetypes]] array with name, description, signals_positive, signals_negative
  • config/settings.toml[scoring] section with weights, base_salary, thresholds

Validation Rules

global_rubric.toml

CheckError
File missingActionableError naming path + "create the file with at least one dimension"
Malformed TOMLActionableError with syntax error details + file path

role_archetypes.toml

CheckError
File missingActionableError naming path + recovery steps
Malformed TOMLActionableError with syntax error + file path
Empty archetypes listActionableError advising to add entries before search
Archetype without signals_positiveGraceful — embed description only
Archetype without signals_negativeGraceful — no negative document for this archetype

settings.tomlnegative_weight

CheckError
MissingDefault to 0.4
Out of range (< 0.0 or > 1.0)ActionableError naming field + valid range

settings.tomlculture_weight

CheckError
MissingDefault to 0.2
Out of range (< 0.0 or > 1.0)ActionableError naming field + valid range

settings.tomlglobal_rubric_path

CheckError
Missing from settingsDefault to "config/global_rubric.toml"
Path does not existActionableError naming path + creation guidance

When not to use it

  • When the user wants to modify config files that are not `global_rubric.toml`, `role_archetypes.toml`, or `settings.toml`

Limitations

  • It only applies to `global_rubric.toml`, `role_archetypes.toml`, and `settings.toml`
  • It defaults `negative_weight` to 0.4 if missing
  • It defaults `culture_weight` to 0.2 if missing

How it compares

This skill provides structured validation and error reporting for specific TOML configuration files, unlike a generic TOML parser that might not enforce domain-specific rules or provide actionable feedback.

Compared to similar skills

config-contracts side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
config-contracts (this skill)05moNo flagsBeginner
common-technical-practices23moNo flagsIntermediate
graceful-degradation17moNo flagsIntermediate
domain-cloud-native16moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry