cratis-specifications-exercise-backend

cratis-specifications-exercise-backend is a skill for Claude Code, Codex from Cratis/AI. It costs 56 tokens per session (1,029 once invoked), scanned A, original, MIT.

A guide for testing an Arc command and the projection that builds a stored row from an event. Arc is the application's command and event framework; a projection turns recorded events into a state view.

In plain words
What is it for?
Use it to test accepted and refused commands, check validation such as an empty author name, test event-to-row mapping, and choose between in-process or running-store scenarios.
Why use it?
It helps distinguish a direct handler test from a test of validation, authorization, event appending, or projected state. That keeps each test focused on the part of the system it is meant to verify.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test accepted and refused commands, check validation such as an empty author name, test event-to-row mapping, and choose between in-process or running-store scenarios.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-specifications-exercise-backend
Install

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.

Any agent
npx skills add Cratis/AI --skill cratis-specifications-exercise-backend
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for cratis-specifications-exercise-backend

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-exercise-backend/github.svg)](https://agentmods.dev/skills/cratis/ai/cratis-specifications-exercise-backend)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-specifications-exercise-backend"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-exercise-backend/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.

agentmods 80×15 button for cratis-specifications-exercise-backend

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-specifications-exercise-backend"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-exercise-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.01029
Opus 5.5 $0.00022 $0.00412
Sonnet 5.5 $0.00011 $0.00206
Haiku 4.5 $0.00006 $0.00103

Measured today against content hash a4078770b863, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cratis-specifications-exercise-backend 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.

.cratis/ai/skills/cratis-specifications-exercise-backend/SKILL.md · 53 lines

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.

Test the backend promise at its owner

Pick the harness by the guarantee the spec has to prove, not by the artifact's name:

  • Pipeline scenario (default). Use it for authorization, validation and command or query outcomes exercised by the selected SDK. A recorded append proves what the command tried to write, not that a kernel would accept it.
  • Model or reaction scenario. Where the SDK provides one, use it to check the row a projection or reducer produces, or the effect a reactor returns, from given events.
  • Running kernel or HTTP host. Use a kernel for persistence, discovery, delivery, or any store guarantee the SDK substitute omits, such as unsupported constraint shapes or concurrency rules. Use a hosted HTTP request for transport binding: passing a typed argument to the pipeline does not test JSON binding.

If the decision can be invoked without the pipeline, call it directly. For .NET examples, see cratis-specifications-isolate-behavior (in cratis/specifications/dotnet).

Commit one spec per uncovered consequential rule, and add the accepted case only when the handler decides something. See the case defaults under Verify in the general rule; do not repeat a decision that a direct spec already covers. Use the specs rule to distinguish contract coverage from proposed cases. Both rules are installed with every Cratis profile.

Write the spec

  1. Seed only the history or state the rule depends on, before the action. Seed an unrelated record as well when the spec must tell earlier history from this command's work.
  2. Act once.
  3. On refusal, assert the specific reason (the rule, member, constraint or authorization). For an event-writing command also assert that nothing was appended. A refusal alone passes when the caller was unauthorized or a required read model was missing, so the rule under test may never have run.
  4. For an accepted event-writing command, assert the event, source and values. For a response-only command or query, assert the promised response fields or rows instead.
  5. Await every assertion that returns a task, future or promise. Otherwise the runner can finish before a failing assertion completes.
  6. For delivery, wait on the completion signal the SDK returns, never on a fixed sleep: a sleep cannot tell a slow observer from a failed one.

Read the full file on GitHub · 53 lines

Changes

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.

  1. today Changed · -53 lines · +6 tokens per session a4078770b863
  2. 2d ago First seen · 106 lines · 50 tokens per session scan A 5dbaa4e04b0e

Subscribe to this mod's changes

cratis-specifications-exercise-backend is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 1,029 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.

Related

cratis-specifications-exercise-backend compared with skills from other repositories

cratis-specifications-exercise-backend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cratis-specifications-exercise-backendCratis/AISkill4todayMITA56Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code