nelson CLAUDE.md

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

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.

agentmods
npx agentmods add instructions/aspegio/nelson/claude-md
Clone the repo
git clone --depth 1 https://github.com/Aspegio/nelson
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. Scan, not verified.
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 $0.00904 $0.00904
Opus 5 $0.00452 $0.00452
Sonnet 5 $0.00181 $0.00181
Haiku 4.5 $0.00090 $0.00090

Measured 3d ago against content hash f18e5c6d19f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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

  • Linterruff 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.

  • Formatterruff 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-commitpre-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. 3d 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 (415 stars, last pushed 2mo ago), licensed MIT. It adds 904 tokens to every session, about $0.0045 per session on Opus 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