agent-ethos

agent-ethos is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 37 tokens per session (458 once invoked), scanned A, original, MIT.

A set of rules for making small, focused code changes. It encourages removing unnecessary code, limiting file and function size, and avoiding solutions for problems that do not exist yet.

In plain words
What is it for?
Use it when writing or reviewing code changes, especially when you need to keep a fix minimal and control function length, nesting, arguments, file size, or pull-request size.
Why use it?
It helps prevent minor fixes from becoming large, difficult-to-review changes. The rules also make code easier to understand and debug later.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing code changes, especially when you need to keep a fix minimal and control function length, nesting, arguments, file size, or pull-request size.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/agent-ethos
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 Kevin-Liu-01/Agent-Machines --skill agent-ethos
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

Made for: Claude Code, Codex.

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 agent-ethos

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/agent-ethos/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/agent-ethos)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/agent-ethos"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/agent-ethos/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 agent-ethos

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/agent-ethos"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/agent-ethos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 458 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.00037 $0.00458
Opus 5 $0.00018 $0.00229
Sonnet 5 $0.00007 $0.00092
Haiku 4.5 $0.00004 $0.00046

Measured 11d ago against content hash 473d4b36a6b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

agent-ethos 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 11d 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.

knowledge/skills/agent-ethos/SKILL.md · 50 lines

What it actually says

Agent Ethos

You are a surgeon, not a painter. Your job is the minimal, correct intervention.

Before writing code

  1. Understand the full scope. Read the files. Trace the call graph. Map the territory.
  2. Find the minimal fix. The best change is the smallest one that solves the problem completely. If you can fix it by deleting code, that is better than adding code.
  3. Ask: does this need to exist? Every line you write is a line someone debugs at 3 AM.

While writing code

Fewer lines, not more. No speculative code: do not add abstractions, helpers, or flexibility for hypothetical future use. Build what is needed now.

Match the surrounding style. Read the file before editing it. If the file uses factories, use factories. If it avoids them, avoid them.

Hard limits

Limit Value
Function length 70 lines
File length 500 lines (excluding tests)
Nesting depth 3 levels
Argument count 5
PR size 200 changed LOC

If a function name contains "and", split it.

Elegance defined

Elegant is not clever. Can you debug this at 3 AM with a breakpoint on each logical step? Can a new engineer understand it without asking anyone? Does removing any part break something? Is every branch an explicit, named case?

If the reader says "obviously correct," you have achieved it.

Deletions are progress

Every deletion is a net positive unless it removes something needed. Writing more code to fix a bug may hide the bug further. The fix that deletes lines is almost always the right one.

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. 11d ago First seen · 50 lines · 37 tokens per session scan A 473d4b36a6b3

Subscribe to this mod's changes

agent-ethos is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (29 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 458 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

dx-roaster

Brutally honest developer-experience audit for a GitHub repo. Scores 10 DX dimensions (time-to-first-success, README clarity, visual proof, install, quick-start, docs, examples, community, trust, marketing), writes a shareable roast in the requested tone (brutal/honest/kind), produces a prioritized action plan ranked…

Varnan-Tech/opendirectory · 130 tokens

mcp-review

Review MCP server specifications and updates for compliance, security, and quality. Use when evaluating server.json files, PRs adding/updating servers, or assessing MCP server changes. NOT for creating new entries (use add-mcp-server instead).

stacklok/toolhive-catalog · 51 tokens

code-review

When the user wants a thorough code review of changes, a PR, a file, or a feature branch. Use when the user says "review this," "code review," "check my code," "what's wrong with this," "review my PR," "look over this," "critique this," "review before merge," or when submitting code for quality assessment. Performs…

ggg123124/vrchat-assistant · 96 tokens

holix-cron

Schedule recurring agent tasks via Holix built-in gateway cron (not crontab or custom scripts).

javded-itres/Holix · 25 tokens

quick-review

Review a code diff or file for correctness bugs, security issues, and clear simplifications. One finding per line, severity-tagged. Use when user wants fast, focused code review.

gyuch-an02/claude-omakase · 40 tokens

review-guidelines

Additional code review guidelines specific to this codebase. Auto-loaded by the review agent during PR reviews to enforce project conventions.

youdotcom-oss/dx-toolkit · 28 tokens