nelson: Instructions file for Claude Code

CLAUDE.md

nelson CLAUDE.md is an instructions file for Claude Code from Aspegio/nelson. It costs 904 tokens per session, scanned A, original, MIT.

Project instructions for the Nelson agent-coordination system, including repository guidance and automated code checks.

In plain words
What is it for?
Use them when changing Nelson to understand its files, run its checks, and maintain consistent code quality.
Why use it?
They tell agents how the project is structured and which linting, formatting, and test checks must pass.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aspegio/nelson/claude-md"><img src="https://agentmods.dev/badge/instructions/aspegio/nelson/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 904 This file is loaded in full into every session.
When invoked 904 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00904 $0.00904
Opus 5.5 $0.00362 $0.00362
Sonnet 5.5 $0.00181 $0.00181
Haiku 4.5 $0.00090 $0.00090

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

Security

Grade A, and why

nelson CLAUDE.md scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run( # noqa: S603 -- args are repo-internal paths, sys.executable is trusted
CLAUDE.md · 87 lines

How it starts

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

Nelson

Nelson is a Claude Code skill for coordinating agent work using Royal Navy terminology. It provides an eight-step operational framework: Sailing Orders, The Estimate, Battle Plan, Form the Squadron, Get Permission to Sail, Quarterdeck Rhythm, Action Stations, and Stand Down.

Key references

Maintainability sensors

This repo has automated sensors that you (the agent) should run and read carefully before considering a task done. They're how the codebase gives you fast feedback about whether your changes are maintainable.

Active sensors

  • Linter — ruff check. Config in pyproject.toml. AI-targeted thresholds (max-args=5, max-branches=10, max-statements=50, max-complexity=10, line-length=120). Each violation message is feedback — read it, don't just look at the line. Many rules accept a suppress-with-reason or threshold-bump instead of forcing a fix.

  • Formatter — ruff format --check. Apply with ruff format before committing.

  • Tests — run separately per directory because each has its own conftest.py:

    pytest skills/nelson/scripts/ -v
    pytest hooks/ -v
    pytest scripts/ -v
    
  • Pre-commit — pre-commit run --all-files. Includes secret scanning (Gitleaks), Ruff, and standard hygiene. Install once with pre-commit install. If a hook fails, fix the underlying issue rather than passing --no-verify.

  • CI — the same checks re-run on clean infra after push (see .github/workflows/ci.yml). Green locally + red in CI usually means environment drift (Python version, env vars, OS-specific paths).

Suppressing or bumping a sensor

You may suppress a rule or bump a threshold when the rule is clearly wrong for the situation. The reason is mandatory.

result = subprocess.run(  # noqa: S603 -- args are repo-internal paths, sys.executable is trusted
    [sys.executable, str(_SCRIPT), ...],
    ...,
)

Read the full file on GitHub · 87 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 · 87 lines · 904 tokens per session scan A f18e5c6d19f8

Subscribe to this mod's changes

nelson CLAUDE.md is an instructions file published in the GitHub repository Aspegio/nelson (423 stars, last pushed 3mo ago), licensed MIT. It adds 904 tokens to every session, about $0.0036 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories