What it is
A behavior-verification framework for agent skills, built on given / when / then.
Why it exists
A skill can change without anyone knowing whether it still behaves correctly. Prompt edits have no test suite, so quality regressions slip into every harness.
How to use it
Toolchain
uv + Python 3.11+
# zero core dependenciesDefine a case
result = (
new_case("commit-skill")
.given(context(files="fixtures/dirty_repo"))
.when(trigger("/commit"))
.then(text_similar("..."))
)For other agents
Run Smelt in CI. Deterministic replay emits canned responses in order, so assertions are reproducible without calling a live model. Reach and restraint checks prove whether the agent read what it should — and nothing more.