cratis-arc-command

cratis-arc-command is a skill for Claude Code, Codex from Cratis/AI. It costs 90 tokens per session (3,127 once invoked), scanned A, original, MIT.

A coding guide for defining commands in Cratis Arc, a .NET application framework. It covers the command record, its handler, optional input preparation, returned results, and the generated TypeScript client proxy.

In plain words
What is it for?
It is for adding Arc commands, choosing handler return values, controlling values passed through the causation chain, and wiring frontend actions to them.
Why use it?
It removes guesswork when connecting user actions such as forms or buttons to an Arc backend and deciding how command results become events or responses.

Skill for Claude CodeCodex

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

Good fit It is for adding Arc commands, choosing handler return values, controlling values passed through the causation chain, and wiring frontend actions to them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-arc-command
View source ↗ Cratis/AI
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-arc-command
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-arc-command

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-command.svg)](https://agentmods.dev/skills/cratis/ai/cratis-arc-command)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-command"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-command.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,127 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.00090 $0.03127
Opus 5 $0.00045 $0.01563
Sonnet 5 $0.00018 $0.00625
Haiku 4.5 $0.00009 $0.00313

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

Security

Grade A, and why

cratis-arc-command 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.

skills/cratis-arc-command/SKILL.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Define an Arc command

A command is a record that carries the user's intent and owns its own handler. Arc discovers it, runs authorization and validation, calls Handle(), and turns whatever Handle() returns into appended events, a response, or both.

Verified product sources

Package Version Purpose
Cratis.Arc.Core 22.10.4 Cratis.Arc.Commands.ModelBound.CommandAttribute, CommandResult, CommandValidator<T>
Cratis.Arc.Chronicle 22.10.4 event append handling, Cratis.Arc.Chronicle.Commands.NotAuditedAttribute
Cratis.Arc.ProxyGenerator.Build 22.10.4 CratisProxiesOutputPath MSBuild integration
Cratis.Fundamentals 7.18.2 Cratis.Monads.Result<TResult, TError>
Cratis.Chronicle 16.39.1 EventTypeAttribute, EventForEventSourceId, ICanProvideEventSourceId
@cratis/arc 22.10.4 ICommand, CommandResult, ValidationResult

Reverify before claiming support for another version. Arc without Chronicle is a supported setup; everything on this page that appends events needs Chronicle.

Declare the command

// Copyright (c) Cratis. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Cratis.Arc.Commands.ModelBound;
using Cratis.Chronicle.Events;

namespace <NamespaceRoot>.<Feature>;

[Command]
public record <ImperativeName>(<ConceptType> <Name>, <ConceptType> <Name>)
{
    public <EventType> Handle() => new(<Name>);
}

[EventType]
public record <EventType>(<ConceptType> <Name>);

Rules the framework actually enforces:

  • [Command] is Cratis.Arc.Commands.ModelBound.CommandAttribute and applies to a class declaration only. A type counts as a command when it carries [Command] and declares a Handle method; either one alone is not enough.
  • Handle is found by name on the command type itself. ARC0003 is an error when another class defines Handle for a command, and ARC0004 is an error when a [Command] type has no public instance Handle.
  • ARC0002 warns when a type has Handle but no [Command]; ARC0007 warns when a command is a class rather than a record.
  • Name the command as the action — OpenDebitAccount, not OpenDebitAccountCommand.
  • Handle parameters are resolved from DI, so ask for services there rather than through a constructor.
  • Never inject IEventLog into Handle to append the command's own events — ARCCHR0007 warns, and it bypasses Arc's append pipeline. Express the append through the return type.

Read the full file on GitHub · 287 lines

Files

What ships with it

5 files 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.

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 First seen · 287 lines · 90 tokens per session scan A 4ab431463afa

Subscribe to this mod's changes

cratis-arc-command is a skill published in the GitHub repository Cratis/AI (2 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 3,127 once invoked, about $0.0005 per session on Opus 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-09-06.