P14a-reviewpatch

A set of coding and review guidelines that favor simple data, focused functions, clear usage, early design decisions, and checking the result before declaring it finished.

In plain words
What is it for?
Use it when designing, implementing, testing, reviewing a code change, or completing a pull request.
Why use it?
It helps reduce tangled code, unclear interfaces, incomplete tests, and changes that appear finished but have not been verified.

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

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,290 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 77% 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.00000 $0.03290
Opus 5 $0.00000 $0.01645
Sonnet 5 $0.00000 $0.00658
Haiku 4.5 $0.00000 $0.00329

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

Security

Grade A, and why

P14a-reviewpatch 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

77% identical to metis — 36 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-v5/skill-permutations/P14a-reviewpatch/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 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.
  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.

Read the full file on GitHub · 179 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 · 179 lines · 0 tokens per session scan A a31ae87e7747

Subscribe to this mod's changes

P14a-reviewpatch is a skill published in the GitHub repository gitRasheed/metis-skill (2 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,290 tokens. A static security scan graded it A with 0 findings. It is 77% identical to metis, differing in 36 lines, and is treated as a copy.