code-principles

code-principles is a skill for Claude Code from doodledood/manifest-dev. It costs 54 tokens per session (547 once invoked), scanned A, original, MIT.

A set of coding rules for the manifest-dev project, covering tests, scripts, verification tools, and the code skills themselves. It explains how to reshape difficult code safely and keep shared logic predictable in tests and replays.

In plain words
What is it for?
Use it when planning, designing, building, or reviewing code in manifest-dev, especially when changing shared modules, effects, tests, or verification tools.
Why use it?
It helps developers make changes that are easier to review, less repetitive, and less likely to behave differently in tests than in real use.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when planning, designing, building, or reviewing code in manifest-dev, especially when changing shared modules, effects, tests, or verification tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/doodledood/manifest-dev/code-principles
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.

Any agent
npx skills add doodledood/manifest-dev --skill code-principles
Clone the repo
git clone --depth 1 https://github.com/doodledood/manifest-dev

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 code-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/doodledood/manifest-dev/code-principles/github.svg)](https://agentmods.dev/skills/doodledood/manifest-dev/code-principles)
Your own site
<a href="https://agentmods.dev/skills/doodledood/manifest-dev/code-principles"><img src="https://agentmods.dev/badge/skills/doodledood/manifest-dev/code-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.

agentmods 80×15 button for code-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/doodledood/manifest-dev/code-principles"><img src="https://agentmods.dev/badge/skills/doodledood/manifest-dev/code-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 547 The whole file, excluding the scripts and references it only reads on demand.
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.00054 $0.00547
Opus 5.5 $0.00022 $0.00219
Sonnet 5.5 $0.00011 $0.00109
Haiku 4.5 $0.00005 $0.00055

Measured 12d ago against content hash 8e18f4675f19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-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 12d 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.

.claude/skills/code-principles/SKILL.md · 21 lines

What it actually says

Edit rule: each line is a principle with its reason and when it yields. Decisions go to the decision records, rules a check can hold go to the check, and a line is added only on a person's yes, after sharpening an existing line is ruled out.

  • When the code a change must build on resists it, a separate step reshapes that code first without changing its behavior, held by tests, as part of what the change owes, and the change follows — work layered on a tangle inherits the tangle, and a step that changes no behavior is easy to review. Yields when that code is not expected to change again.
  • A module offers a small interface over a substantial job — callers have little to learn and much to gain, and a later change touches one place instead of several. Yields for a module whose job is to expose a whole interface it does not own, such as a client for an outside service.
  • Shared logic works only from what it is handed, the clock included, and hands back what it makes, while effects happen at the entry point that asked for them — such code behaves identically in tests and replays, where an effect would fire for no one. Yields where the effect is itself the behavior being shared.
  • A test drives behavior through the interface its callers use — a test that still passes once the behavior is gone proves nothing. Yields for a unit that has no caller-facing interface yet, which is tested at its own edge.
  • A test's expected values are written out, not derived the way the code derives them — a test that computes its answer as the code does repeats the code's mistakes. Yields where an independent reference implementation serves as the oracle.
  • A bug fix comes with a test seen to fail on the code before the fix, and that failing run is shown with the change — the failing run is the evidence that the cause was understood. Yields when no automated test can reproduce the bug; then it is reproduced in a real run, and that run is shown.

Before calling code work done, check it against these principles from a fresh start — a new session, or a reviewer who did not do the work. Fix what departs unless the person chose the departure, and check again only after a fix, until a check finds none. Name each departure kept, with the principle and why.

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. 12d ago First seen · 21 lines · 54 tokens per session scan A 8e18f4675f19

Subscribe to this mod's changes

code-principles is a skill published in the GitHub repository doodledood/manifest-dev (80 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 547 once invoked, about $0.0002 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-19.

Related

code-principles compared with skills from other repositories

code-principles next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-principlesdoodledood/manifest-devSkill80yesterdayMITA54Claude Code
great_ctoavelikiy/great_ctoSkill11714d agoMITA32Claude Code
opportunity-solution-treeavelikiy/great_ctoSkill11714d agoMITA71Claude Code
skeptical-triageavelikiy/great_ctoSkill11714d agoMITA49Claude Code
mobile-releaseavelikiy/great_ctoSkill11714d agoMITA131Claude Code
reference-lockavelikiy/great_ctoSkill11714d agoMITA102Claude Code
anti-patternsavelikiy/great_ctoSkill11714d agoMITA59Claude Code