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.
npx skills add shinpr/claude-code-workflows --skill coding-principlesgit clone --depth 1 https://github.com/shinpr/claude-code-workflowsWrote 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.
[](https://agentmods.dev/skills/shinpr/claude-code-workflows/coding-principles)<a href="https://agentmods.dev/skills/shinpr/claude-code-workflows/coding-principles"><img src="https://agentmods.dev/badge/skills/shinpr/claude-code-workflows/coding-principles/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.
<a href="https://agentmods.dev/skills/shinpr/claude-code-workflows/coding-principles"><img src="https://agentmods.dev/badge/skills/shinpr/claude-code-workflows/coding-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01909 |
| Opus 5.5 | $0.00014 | $0.00764 |
| Sonnet 5.5 | $0.00007 | $0.00382 |
| Haiku 4.5 | $0.00003 | $0.00191 |
Grade A, and why
coding-principles 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Language-Agnostic Coding Principles
Core Philosophy
- Final State over Effort: Minimize the complexity and size of what remains after the change — code, tests, concepts, and what a later change must know — not the work spent reaching it. The product keeps changing after this session and a future agent maintains whatever is left, so take on the larger change now when it leaves less behind. Do not choose a route because it needs fewer steps, edits, or tokens; effort only breaks a tie between results of equal final complexity.
- Design Convergence: Deliver the current required outcome with the least design surface in the final code. Selecting persistent state, public or cross-boundary contracts, behavioral modes, reusable abstractions, or component splits carries enough surface to justify the full convergence process first.
- Structure for Local Edits: The next change here will be made by an agent that reads only the code around it, so what a change must agree with belongs where that agent cannot miss it: a single definition, a type, an exhaustive branch, or a check that fails. For the code a change adds or extends, shape state so only valid combinations can be expressed, advance each state through its existing owner, and when a compiler, type, or lint check fails on the new code, change the structure so the check passes, suppressing it only when no such change exists.
- Explicit over Implicit: Make intentions clear through code structure and naming
- Delete over Comment: Remove unused code instead of commenting it out
Code Quality
Continuous Improvement
- Refactor related code inside the accepted outcome and governing boundaries when it reduces the change's risk or maintenance cost
- Improve code structure incrementally
- Keep the codebase lean and focused
- Delete code proven obsolete by the requested change after checking its callers
Readability
- Use meaningful, descriptive names drawn from the problem domain
- Use full words in names; abbreviations are acceptable only when widely recognized in the domain
- Use descriptive names; single-letter names are acceptable only for loop counters or well-known conventions (i, j, x, y)
- Extract magic numbers and strings into named constants. Take each value from an existing requirement, contract, measurement, or repository value for the same purpose; when none of these determines it, mark the constant as an assumed value in a comment
- Keep code self-documenting where possible
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 6d ago Changed · -25 lines d1c003ace7c4
- 7d ago Changed · +1 lines 14e7dff33659
- 19d ago Changed · +6 lines 5b24edb2db76
- 1mo ago Changed · -6 lines c9824dcf3345
- 2mo ago Changed · +1 lines 9c763aaf131c
- 3mo ago First seen · 169 lines · 34 tokens per session scan A 70a48db26609
coding-principles is a skill published in the GitHub repository shinpr/claude-code-workflows (725 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,909 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.
coding-principles compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coding-principlesshinpr/claude-code-workflows | Skill | 725 | today | MIT | A | 34 | Claude Code |
| handoffreidemeister94/development-skills | Skill | 12 | 18d ago | MIT | A | 22 | Claude Code |
| releasehyhmrright/brooks-lint | Skill | 1.6k | today | MIT | A | 135 | Claude Code, Codex |
| new-skillhyhmrright/brooks-lint | Skill | 1.6k | today | MIT | A | 145 | Claude Code, Codex |
| brooks-sweephyhmrright/brooks-lint | Skill | 1.6k | today | MIT | A | 178 | Claude Code |
| brooks-testhyhmrright/brooks-lint | Skill | 1.6k | today | MIT | A | 161 | Claude Code |
| spike-consumer-adversarialtestdouble/han | Skill | 362 | 18d ago | MIT | A | 0 | Claude Code |