smriti: Skill for Claude Code

.agents/skills/design-contracts/SKILL.md

design-contracts is a skill for Claude Code, Codex from zero8dotdev/smriti. It costs 33 tokens per session (967 once invoked), scanned A, original, MIT.

A set of rules for smriti command handlers and JSON output covering dry runs, observability, and versioning. A dry run previews changes without writing to files, databases, or networks.

In plain words
What is it for?
Use it when adding or changing CLI commands, JSON output, telemetry or logging, and configuration defaults in smriti.
Why use it?
It prevents mutating commands from changing data when users only want a preview. It also keeps logs, telemetry, configuration changes, and JSON responses consistent with the project’s contracts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is zero8dotdev/smriti's own configuration. It tells Claude Code and Codex how to work on smriti itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything smriti configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zero8dotdev/smriti. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zero8dotdev/smriti/main/.agents/skills/design-contracts/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zero8dotdev/smriti

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 design-contracts

README.md
[![agentmods](https://agentmods.dev/badge/skills/zero8dotdev/smriti/design-contracts/github.svg)](https://agentmods.dev/skills/zero8dotdev/smriti/design-contracts)
Your own site
<a href="https://agentmods.dev/skills/zero8dotdev/smriti/design-contracts"><img src="https://agentmods.dev/badge/skills/zero8dotdev/smriti/design-contracts/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 design-contracts

Your own site · 80×15
<a href="https://agentmods.dev/skills/zero8dotdev/smriti/design-contracts"><img src="https://agentmods.dev/badge/skills/zero8dotdev/smriti/design-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 967 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00033 $0.00967
Opus 5.5 $0.00013 $0.00387
Sonnet 5.5 $0.00007 $0.00193
Haiku 4.5 $0.00003 $0.00097

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

Security

Grade A, and why

design-contracts 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 1mo ago.

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.

.agents/skills/design-contracts/SKILL.md · 117 lines

How it starts

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

smriti Design Contract Guardrails

This skill activates whenever you are adding or modifying a CLI command, changing JSON output, touching telemetry/logging code, or altering config defaults in the smriti project.


Contract 1 — Dry Run

Mutating commands MUST support --dry-run

The following commands write to disk, the database, or the network. Every one of them must honour --dry-run:

Command Expected guard pattern
ingest const dryRun = hasFlag(args, "--dry-run"); then no DB/file writes when true
embed same
categorize same
tag same
share same
sync same
context already implemented — keep it

When --dry-run is active:

  • stdout must describe what would happen (e.g. Would ingest N sessions).
  • stderr must note what was skipped (No changes were made (--dry-run)).
  • Exit code follows normal success/error rules — dry-run is NOT an error.
  • If --json is also set, the output envelope must include "meta": { "dry_run": true }.

Read-only commands MUST reject --dry-run

These commands never mutate state. If they receive --dry-run, they must print a usage error and process.exit(1):

search, recall, list, status, show, compare, projects, team, categories


Contract 2 — Observability / Telemetry

Never log user content

The following are forbidden in any console.log, console.error, or log/audit output:

Read the full file on GitHub · 117 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. 1mo ago First seen · 117 lines · 33 tokens per session scan A f5c2e1b8f94e

Subscribe to this mod's changes

design-contracts is a skill published in the GitHub repository zero8dotdev/smriti (39 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 967 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

sora-deep-research

A deep-research workflow that breaks a question into checks, searches for evidence, reads sources, and investigates missing information again. It records evidence, dates, and whether information was retrieved successfully.

ikenokazuki/Sora · 88 tokens

sora-client

A typed TypeScript client for calling Sora tools as functions from code. It can call tools for tasks such as search, fetching page text, addresses, and weather, then filter the results before returning selected fields.

ikenokazuki/Sora · 104 tokens

sora-client

A typed TypeScript client for calling Sora tools as functions from code. It can call tools for tasks such as search, fetching page text, addresses, and weather, then filter the results before returning selected fields.

ikenokazuki/Sora · 104 tokens

trelly-mcp

Configure and use the trelly MCP stdio server (trelloboardslist, trellocardcreate, trellosearch, trelloapiget, etc.). Use when wiring Cursor/Claude MCP, listing or showing Trello cards/todos, linking GitHub PRs/commits, or choosing MCP vs CLI.

brandonkramer/trelly · 72 tokens

trelly

Operate the trelly Trello CLI (npm trelly; bin trelly): auth setup/login, human vs --json output, boards/lists/cards, search, attachments, GitHub PR/commit links on cards, trelly ui, trelly api. Use when the user asks to run trelly commands, list or show Trello cards/todos, link a GitHub PR or commit to a card, or…

brandonkramer/trelly · 102 tokens

oma-scholar

Search academic literature and generate, validate, or compare Knows paper sidecars. Use for claim/evidence analysis and literature synthesis.

first-fluke/oh-my-agent · 30 tokens