code-flow-quality

A code-quality reporting tool that examines a saved map of how project code connects and reports design problems with file-and-line evidence. It checks ideas such as avoiding duplication, keeping code simple, and assigning responsibilities sensibly.

In plain words
What is it for?
Use it to review the findings in a project's Code_Flows directory, optionally confirm them against the current source, and document violations of the project's written rules.
Why use it?
It helps find repeated logic, unnecessary complexity, unreachable code, awkward dependencies, and costly interfaces without changing the source code.

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

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,094 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.00049 $0.10094
Opus 5 $0.00024 $0.05047
Sonnet 5 $0.00010 $0.02019
Haiku 4.5 $0.00005 $0.01009

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

Security

Grade A, and why

code-flow-quality 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.

templates/shared/code-flow-quality/SKILL.md · 704 lines

How it starts

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

Code Flow — Quality Report

Read the map this project has already written under Code_Flows/ and report where it shows duplicated intent, needless complexity, code that nothing reaches, responsibilities and dependencies that sit wrong, and modules whose interface costs a caller more than the implementation behind it hides.

This skill never edits source code. code-flow-map adds missing docstrings as it traces; this one writes documents and stops. Consolidating duplicates and deleting suspected-dead code carry real blast radius, and that call is the user's.

User Input

The user's request carries two optional flags, --read-code and --rules. Step 1 reads them.

Instructions

Follow these steps exactly.

1. Read the Arguments

The user's request carries two optional flags:

  • --read-code — after deriving candidate findings from the map, open the files those candidates cite and confirm each against current source. Off by default. It requires the source tree to be present and current, not merely the artifacts under Code_Flows/. It also decides two of step 3's detectors outright: open-closed and liskov-substitution cannot be settled from the map and do not run without it.
  • --rules [source ...] — also check the map against rules this project has already written down. Off by default. A source is a path to a document, the word auto, or a rule written inline in quotes; several may be given, separated by spaces or commas, and --rules with no value means auto. Step 2 loads them and step 3's last detector checks them. This is how a project's own standard — a CLAUDE.md, an AGENTS.md, a Spec Kit constitution, a team style guide — gets reported with the same evidence and the same honesty as DRY, KISS and YAGNI, instead of being a thing everyone agreed to and nobody checks.

There is no feature name to parse: this command analyzes the whole map. If the input contains anything else, say what you read, ignore it, and carry on — do not treat it as a filter, a path, or a flow name.

Read the full file on GitHub · 704 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 704 lines · 49 tokens per session scan A 77677aca466d

Subscribe to this mod's changes

code-flow-quality is a skill published in the GitHub repository plearaj/code-flow-skill (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 49 tokens to every session and 10,094 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-31.