metis

A set of coding guidelines for an AI coding agent, covering design, implementation, testing, review, and final checks. It favors simple data, focused functions, clear interfaces, and straightforward control flow.

In plain words
What is it for?
Use it when adding features, fixing bugs, refactoring, designing APIs, writing tests, reviewing changes, or preparing a commit.
Why use it?
It gives the agent consistent ways to make design decisions before and during coding. This helps reduce tangled abstractions, unclear boundaries, missed tests, and incomplete verification.

Skill for Claude CodeCodex

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 skills/gitrasheed/metis-skill/rich
Any agent
npx skills add gitRasheed/metis-skill --skill rich
Clone the repo
git clone --depth 1 https://github.com/gitRasheed/metis-skill

Made for: Claude Code, Codex.

Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,670 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00104 $0.03670
Opus 5 $0.00052 $0.01835
Sonnet 5 $0.00021 $0.00734
Haiku 4.5 $0.00010 $0.00367

Measured 2d ago against content hash 7f36c55136ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

metis 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 2d 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.

Origin

This is a copy

91% identical to metis — 29 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

evals/cases-v6/arms/RICH/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metis

Write code that favors plain data, pure logic, clear call sites, and early architectural thinking. These are strong defaults, not rigid laws: follow the surrounding codebase, framework constraints, and language norms when they clearly matter more.

Apply sections by phase instead of holding everything at once:

  • Designing or starting a task: Design principles, LLM agent process
  • Implementing: Working rules, Implementation rules, plus the SOLID checklist for non-trivial modules
  • Writing tests: Testing checklist
  • Reviewing a diff or PR: Code review mode
  • Before claiming done, committing, or pushing: Final verification checklist

Design principles

  1. Start from the call site, by wishful thinking: pretend the perfect helpers already exist, name them the way you would want to call them, and get the top-level usage reading cleanly. If the calling code reads awkwardly, the abstractions are wrong — and you find out before building anything.
  2. Prefer plain data plus focused functions, modules, or systems over behavior-heavy objects. Draw boundaries around what systems do, not what entities are.
  3. Choose the simplest state model that matches reality: discriminated unions for mutually exclusive states, composable data for orthogonal features, and a plain flat record when neither pressure exists — do not over-architect the simple case. Core domain state gets a named, typed shape — a dataclass, struct, or union — while raw dicts and strings stay at the boundary, not in the core.
  4. Isolate mutation and I/O near the edges. Orchestration decides what happens; inner helpers do narrow, understandable work.
  5. Push ifs up, fors down. Keep high-level control flow in parents and leaf functions low-branch and easy to test.
  6. Assert at boundaries, both where data enters and where it leaves: parsing, persistence, external APIs, state transitions, and function contracts. Check what must be true and, when useful, what must not be.
  7. Prefer explicit, behavior-focused tests without indirection that hides intent.
  8. Sanity-check the likely bottleneck first — network, disk, memory, then CPU. Prefer architecture changes over late micro-optimizations.
  9. Design for the hardest real requirement first, then simplify downward. Do not architect for the easy case and try to scale it up later.
  10. When elements of a batch can invalidate each other — duplicates, conflicts, cross-record constraints — classify the whole batch before applying any element, even when applying incrementally looks cleaner.
  11. Define errors out of existence: when a contract choice can make a failure case impossible — an operation that is naturally idempotent, a range that clamps, a delete that succeeds when the target is already gone — prefer it over raising and forcing every caller to handle the case.
  12. A side effect that crosses a boundary — a send, a charge, a write — needs a stable identity (idempotency key, dedupe token) so retries and replays are safe.

Read the full file on GitHub · 188 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. 2d ago First seen · 188 lines · 104 tokens per session scan A 7f36c55136ad

Subscribe to this mod's changes

metis is a skill published in the GitHub repository gitRasheed/metis-skill (2 stars, last pushed 10d ago), licensed MIT. It adds 104 tokens to every session and 3,670 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to metis, differing in 29 lines, and is treated as a copy.