code

A code-review skill that assesses source code using software-engineering principles, including design, security, performance, databases, and testing.

In plain words
What is it for?
Use it to review source files or directories and receive mentoring feedback on their implementation.
Why use it?
It helps identify unclear code, risky patterns, unnecessary complexity, and possible performance or security problems.

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/bromso/metapowers/code
Any agent
npx skills add bromso/metapowers --skill code
Clone the repo
git clone --depth 1 https://github.com/bromso/metapowers

Made for: Claude Code, Codex.

Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00009 $0.00377
Opus 5 $0.00005 $0.00188
Sonnet 5 $0.00002 $0.00075
Haiku 4.5 $0.00001 $0.00038

Measured yesterday against content hash 4fac93c0e3d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code 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 yesterday.

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.

plugins/coaching/skills/code/SKILL.md · 39 lines

What it actually says

Code Coaching

Review "$ARGUMENTS" through the lens of a senior software engineer. Provide mentorship feedback on code quality, architecture patterns, security, performance, and testing.

Prerequisites

None — this is a utility skill that can run anytime.

Process

  1. Read the target:

    • Read the source code files specified in "$ARGUMENTS"
    • If it's a directory, read the key files
    • Understand the context: what does this code do?
  2. Read reference material:

    • Read plugins/coaching/shared/code-principles.md for engineering principles
    • Read plugins/coaching/shared/feedback-format.md for output structure
  3. Evaluate against engineering principles:

    • SOLID: Single responsibility, open/closed, Liskov, interface segregation, dependency inversion
    • Clean code: Naming clarity, function size, abstraction levels, self-documenting code
    • DRY/YAGNI/KISS: Appropriate abstraction level, no premature optimization
    • Security: Input validation, injection prevention, secrets management, auth patterns
    • Performance: N+1 queries, appropriate data structures, caching, lazy loading
    • Database: Normalization, indexing, query patterns, transactions
    • Testing: Coverage, behavior vs. implementation testing, test quality
    • Error handling: Appropriate error types, no swallowed errors, graceful degradation
  4. Write the coaching report to .metapowers/coaching/$ARGUMENTS/code-review.md following the feedback format.

Output

The code coaching report written to .metapowers/coaching/$ARGUMENTS/code-review.md. Present the score and top 3 suggestions to the user.

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. yesterday First seen · 39 lines · 9 tokens per session scan A 4fac93c0e3d1

Subscribe to this mod's changes

code is a skill published in the GitHub repository bromso/metapowers (1 stars, last pushed 4mo ago), licensed MIT. It adds 9 tokens to every session and 377 once invoked, about $0.0000 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-31.

Related

Other skills, from other repositories

openspec-verify-change

Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.

Fission-AI/OpenSpec · 32 tokens

writing

将共享历史中的已验证事实和计算结果整理成符合受众、格式与长度约束的成稿。.

bojieli/ai-agent-book · 27 tokens

extract

Run the full Semantica semantic extraction pipeline on a file or selected text — NER, relations, events, coreference resolution, triplets, and validation. Clears result cache before each run. Returns Markdown tables with entity/relation/event/triplet results and inline validator warnings.

semantica-agi/semantica · 59 tokens

gsd-audit-milestone

Audit milestone completion against original intent before archiving.

open-gsd/gsd-core · 17 tokens

ccc

This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the…

cocoindex-io/cocoindex-code · 80 tokens

dependency-upgrade

Plan, batch, and verify dependency upgrades safely. Triages outdated packages into risk tiers, upgrades in order (dev/minor/patch first, runtime majors last), verifies each batch, and produces an auditable commit sequence. Use when asked to "upgrade deps", "bump packages", "update nodemodules", "fix vulnerabilities"…

open-gsd/gsd-pi · 90 tokens