CLIKontract
← CLI Reference

Keep specs ahead of code.

Use these tasks to activate guidance, validate API schema, async schema, or shared schema sources, and regenerate configured artifacts without hand-editing generated files.

Choose the smallest command that matches the job.

  • Activate contract authoring guidance.
  • Validate configured schema sources.
  • Generate configured contract artifacts.
terminal
sumr kontract --help# show available commands

Prompt examples

Your AI assistant

Work from the spec, then regenerate.

Kontract guidance helps an assistant edit schema sources first, validate them, and generate configured contract artifacts from the approved spec.

Activate guidanceInitialize Kontract guidance in this repo and show me the spec workflow.

Use when a repo needs contract authoring rules before API changes.

Update a specUpdate the API schema, async schema, or shared schema source for [change], then validate the spec.

Use when API behavior changes and the contract should lead the code.

Regenerate artifactsGenerate configured contract artifacts after the spec change and summarize validation evidence.

Use after the spec is reviewed and generated outputs need to be refreshed.