Cougr: Instructions file for Claude Code

CLAUDE.md

Cougr CLAUDE.md is an instructions file for Claude Code from salazarsebas/Cougr. It costs 1,026 tokens per session, scanned A, original, MIT.

A repository instruction guide for AI coding assistants working on Cougr, including rules for Rust and Soroban smart-contract code. Soroban is Stellar's platform for running smart contracts.

In plain words
What is it for?
Use it as a project-specific reference when planning or reviewing Cougr code changes and documentation.
Why use it?
It tells an assistant which project documents and design rules to read before changing sensitive areas such as storage, public APIs, accounts, privacy, or on-chain logic.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is salazarsebas/Cougr's own configuration. It tells Claude Code how to work on Cougr 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 Cougr configures →

Reuse

Borrowing it

Nothing to install: this file belongs to salazarsebas/Cougr. 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/salazarsebas/Cougr/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/salazarsebas/Cougr

Made for: Claude Code.

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 Cougr CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/salazarsebas/cougr/claude-md/github.svg)](https://agentmods.dev/instructions/salazarsebas/cougr/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/salazarsebas/cougr/claude-md"><img src="https://agentmods.dev/badge/instructions/salazarsebas/cougr/claude-md/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 Cougr CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/salazarsebas/cougr/claude-md"><img src="https://agentmods.dev/badge/instructions/salazarsebas/cougr/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,026 This file is loaded in full into every session.
When invoked 1,026 The same file — it is already loaded in full.
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.01026 $0.01026
Opus 5.5 $0.00410 $0.00410
Sonnet 5.5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

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

Security

Grade A, and why

Cougr CLAUDE.md 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.

CLAUDE.md · 51 lines

How it starts

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

CLAUDE.md

Instructions for AI assistants (Claude Code and others) working in this repository. The goal is that a contribution written or assisted by an AI is indistinguishable in quality from one written by a maintainer who knows this codebase well.

Before writing code

Read the doc that governs the area you're touching, don't guess at Cougr's conventions from general Rust or general Soroban knowledge:

Touching... Read first
Any architectural choice (world backend, storage placement, entrypoint shape) docs/PATTERNS.md
Storage or query performance docs/PERFORMANCE.md
unsafe, or anything that feels like it might need it docs/UNSAFE_INVARIANTS.md, assume the answer is no
A new or modified examples/* project examples/EXAMPLE_STANDARD.md
A public API addition or change the Public API Checklist in CONTRIBUTING.md
Accounts, session keys, or passkeys docs/ACCOUNT_KERNEL.md
Hidden state, commit-reveal, or ZK circuits docs/PRIVACY_MODEL.md
What belongs on-chain at all docs/ONCHAIN_OFFCHAIN_BOUNDARY.md
Docs or example prose docs/VOICE_GUIDE.md

Soroban and contract code

  • #![no_std] is load-bearing, not a formality. Don't introduce a dependency or pattern that requires std.
  • Contract entrypoints stay thin: validate input, load state, call into a system or helper, persist state, return. Push actual gameplay logic into systems.rs / plugin systems, not into #[contractimpl] methods. See docs/PATTERNS.md § Default Entry Point.
  • Don't panic on reachable, caller-triggerable conditions. Validate and return a clear error instead; reserve panics for genuine invariant violations.
  • Every state-changing entrypoint that should be access-controlled must call require_auth (or the relevant AccessControl/Ownable check) before mutating state, not after.
  • Prefer the standards layer (Ownable, AccessControl, Pausable, ExecutionGuard, BatchExecutor, ...) over hand-rolling the same guard again. Check docs/STANDARDS_LAYER.md before writing a new one.
  • Choose SimpleWorld vs ArchetypeWorld, and table vs sparse storage, based on the actual query/mutation shape, not by default. See docs/PERFORMANCE.md.
  • Use impl_component_observed! for state a client needs to react to without polling; plain impl_component! otherwise. Don't emit events nobody consumes.
  • New examples depend on the published cougr-core from crates.io, not a path dependency, unless they exercise an API that genuinely isn't published yet, in which case follow the exception format in examples/EXAMPLE_STANDARD.md § 1.1.

Read the full file on GitHub · 51 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 First seen · 51 lines · 1,026 tokens per session scan A 1517138aef65

Subscribe to this mod's changes

Cougr CLAUDE.md is an instructions file published in the GitHub repository salazarsebas/Cougr (53 stars, last pushed 17d ago), licensed MIT. It adds 1,026 tokens to every session, about $0.0041 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-07.

Related

Cougr CLAUDE.md compared with instructions from other repositories

Cougr CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Cougr CLAUDE.mdsalazarsebas/CougrInstructions file5317d agoMITA1,026Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode