nelson
CLAUDE.md421 starsChanged 8 months agoMITView on GitHub
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. 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. - Linter — ruff check. Config in…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Aspegio/nelsonword for word, first seen Apr 10, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Aspegio/nelson★ 416100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
If a threshold (max-complexity, max-args, line-length, etc.) needs to go up project-wide, change it in pyproject.toml and add a comment …
- Distinctive: line 64
Why this matters: every suppress-with-reason line and every threshold-bump comment is itself a *review anchor*.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- docs/project_structure.md — full repository layout
- README.md — user-facing overview and quick start
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 inpyproject.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 withruff formatbefore 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 withpre-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), ...],
...,
)Naked suppressions (no -- reason) are not acceptable — they're noise and
they hide the next regression. If you find existing naked suppressions,
treat them as a mini code-review task: add a reason or remove the
suppression.
If a threshold (max-complexity, max-args, line-length, etc.) needs to
go up project-wide, change it in pyproject.toml and add a comment
explaining the trade-off. Don't disable the rule entirely — leaving the
rule active means it will catch the next drift.
Why this matters: every suppress-with-reason line and every threshold-bump comment is itself a review anchor. With a sensor-aware workflow, those lines are the durable record of "we considered this, and here's why we accepted it." Write the reasons accordingly: aim for the next reader can decide whether this is still a good idea, not I want the lint to stop yelling.
Brownfield complexity backlog
The largest functions carry # noqa: C901, PLR0912, PLR0915 suppressions
pointing to beads issue nelson-e6j. When you touch one of those
functions, check whether your edit reduces complexity below the
threshold. If yes, drop the noqa. If no, leave the noqa and the backlog
entry in place — the refactor stays opportunistic, not blocking. The
goal is to avoid the perverse incentive to leave flagged functions
untouched.
When sensors disagree with you
Sensors are heuristics, not laws. If you genuinely believe a rule is wrong for a particular file or function, propose the threshold change or per-directory override explicitly — don't reach for a suppression as a shortcut. Discussion in a comment / PR description beats a silent disable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

