Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Cratis/AI --skill cratis-specifications-isolate-behaviorgit clone --depth 1 https://github.com/Cratis/AIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cratis/ai/cratis-specifications-isolate-behavior)<a href="https://agentmods.dev/skills/cratis/ai/cratis-specifications-isolate-behavior"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-isolate-behavior/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cratis/ai/cratis-specifications-isolate-behavior"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-isolate-behavior.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00697 |
| Opus 5.5 | $0.00018 | $0.00279 |
| Sonnet 5.5 | $0.00009 | $0.00139 |
| Haiku 4.5 | $0.00005 | $0.00070 |
Grade A, and why
cratis-specifications-isolate-behavior scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Check a computed loan due date
Choose a direct spec when the handler decides something without the pipeline. For example, a library grants seven days for a short loan and 21 days otherwise, measured from the supplied borrowing date:
public record BorrowBook(DateOnly BorrowedOn, bool ShortLoan)
{
public BookBorrowed Handle() => new(BorrowedOn.AddDays(ShortLoan ? 7 : 21));
}
Here BookBorrowed carries a DateOnly DueOn. Use the actual rule in the feature; don't introduce a rule just to test a handler. If Handle only copies input into the event, write no direct spec. If binding or commitment is itself a consequential promise, one pipeline spec (cratis-specifications-exercise-backend skill in cratis/application) covers it.
Commit the spec at the decision
- Use the repository's spec project with its application reference,
Cratis.Specifications.XUnit.v3and xUnit v3 setup. The Cratis adapter bringsCratis.Specifications. - Arrange a fixed input in
Establish; invokeHandleonce inBecause. Add agivencontext only for shared setup. - Assert the calculated date, not how the handler calculated it. For the seven-day rule, use
for_BorrowBook/when_borrowing_on_a_short_loan.cs:
using System;
using Cratis.Specifications;
using Library.Features.Books.Borrowing;
using Xunit;
namespace Library.Specs.for_BorrowBook;
public class when_borrowing_on_a_short_loan : Specification
{
BorrowBook _command = null!;
BookBorrowed _event = null!;
void Establish() => _command = new(new DateOnly(2026, 1, 29), ShortLoan: true);
void Because() => _event = _command.Handle();
[Fact] public void should_be_due_in_seven_days() => _event.DueOn.ShouldEqual(new DateOnly(2026, 2, 5));
}
Facts observe the arranged instance and the result of Because; don't run a second action in a fact. If the decision depends on a pipeline-supplied value, configure it in a pipeline scenario instead. Don't duplicate the rule at both layers.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +1 lines · -8 tokens per session 8e174998d743
- 2d ago First seen · 52 lines · 54 tokens per session scan A d4c1f11997b5
cratis-specifications-isolate-behavior is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 697 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
cratis-specifications-isolate-behavior compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cratis-specifications-isolate-behaviorCratis/AI | Skill | 4 | today | MIT | A | 46 | Claude Code, Codex |
| author-testAzure/azure-sdk-for-net | Skill | 6.1k | yesterday | MIT | A | 68 | Claude Code, Codex |
| migrate-xunit-to-xunit-v3managedcode/dotnet-skills | Skill | 527 | 16d ago | MIT | A | 149 | Claude Code, Codex |
| dotnet-testing-bogus-fake-datakevintsengtw/dotnet-testing-agent-skills | Skill | 30 | 1mo ago | MIT | A | 131 | Claude Code, Codex |
| dotnet-testing-autofixture-bogus-integrationkevintsengtw/dotnet-testing-agent-skills | Skill | 30 | 1mo ago | MIT | A | 153 | Claude Code, Codex |
| dotnet-testing-complex-object-comparisonkevintsengtw/dotnet-testing-agent-skills | Skill | 30 | 1mo ago | MIT | A | 157 | Claude Code, Codex |
| dotnet-testing-test-output-loggingkevintsengtw/dotnet-testing-agent-skills | Skill | 30 | 1mo ago | MIT | A | 163 | Claude Code, Codex |