Finish with your AI coding agent
Give one instruction to your agent.
Copy the instruction below and paste it into your AI coding agent (Claude Code, Cursor, Codex, …). It installs the guard, follows the kiff-domains skill to author kiff.yaml and the executor bodies, runs kiff verify, and hands you the finished contract to activate here, as one task. Your codebase stays the record.
- 1 Pick the action from what your agent does
- 2 Hand it to your agent one instruction, below
- 3 Activate the verified contract, in shadow
Evolve my KIFF domain "accounts-payable" in this codebase.
Do the whole thing as one task:
1. Install the kiff-domains skill if you don't already have it, then follow it, it's the authority on modelling a KIFF domain. Skill: https://kiff.dev/skills/kiff-domains.md
2. Install the CLI: go install github.com/kiff/kiff/cmd/kiff@v0.7.0
3. Scaffold (or locate) the domain package in this repo, then complete kiff.yaml and the executor bodies:
- govern these observed actions:
· PAY_INVOICE (params: amount, currency), risk guess: high
· REQUEST_APPROVAL, risk guess: medium
· REJECT_INVOICE, risk guess: medium
- model the states and transitions, set the allowed states per action, and mark which actions need approval.
4. Ask me only for the business decisions you can't infer from the code, thresholds, risk bands, and who approves. Don't invent them.
5. Confirm it's sound: kiff verify
6. When it passes, print the finished kiff.yaml so I can paste it at https://app.kiff.dev/dashboard/build to validate and activate in shadow.
Keep the codebase the source of truth, KIFF governs the contract, it doesn't replace your code.Prefer to run the steps yourself?
- give your agent the skill:
mkdir -p ~/.claude/skills/kiff-domains && curl -fsSL https://kiff.dev/skills/kiff-domains.md -o ~/.claude/skills/kiff-domains/SKILL.md- or read the skill (Cursor / Codex / Gemini install in the docs) - install the CLI:
go install github.com/kiff/kiff/cmd/kiff@v0.7.0 - ↓ descriptor.json, your derived starting point
kiff scaffold -descriptor descriptor.json github.com/you/yourmodule- author / refine
kiff.yamland the executor bodies with your agent (it uses the skill) - confirm it's complete:
kiff verify