flow-simplify

flow-simplify is a skill for Claude Code, Codex from pwdev-solucoes/pwdev-claude-marketplace. It costs 47 tokens per session (476 once invoked), scanned A, original, Apache-2.0.

A review step for finding safe ways to simplify code after a development phase. It proposes behavior-preserving changes and applies only the ones someone explicitly approves.

In plain words
What is it for?
Use it after implementation to inspect a diff, record simplification proposals, and apply approved changes with verification.
Why use it?
It helps remove duplication, dead code, and unnecessary complexity without turning the review into an open-ended rewrite.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the pwdev-flow plugin — 17 skills, 1 command shipped together

Good fit Use it after implementation to inspect a diff, record simplification proposals, and apply approved changes with verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify
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 pwdev-solucoes/pwdev-claude-marketplace --skill flow-simplify
Clone the repo
git clone --depth 1 https://github.com/pwdev-solucoes/pwdev-claude-marketplace

Made for: Claude Code, Codex.

Or install pwdev-flow, the plugin that ships this one along with the rest of its 17 skills, 1 command.

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 flow-simplify

README.md
[![agentmods](https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify/github.svg)](https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify)
Your own site
<a href="https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify"><img src="https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify/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 flow-simplify

Your own site · 80×15
<a href="https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify"><img src="https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/flow-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 476 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.00047 $0.00476
Opus 5 $0.00023 $0.00238
Sonnet 5 $0.00009 $0.00095
Haiku 4.5 $0.00005 $0.00048

Measured 6d ago against content hash 86e83997d0e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

flow-simplify 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 6d 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.

plugins/pwdev-flow/skills/flow-simplify/SKILL.md · 37 lines

How it starts

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

Simplify without changing behavior

Read execution, collaboration, memory, artifacts, and safety.

MODE: ANALYZE

  1. Resolve an explicit diff or current phase execution scope.
  2. Read quality criteria, prohibitions, repository conventions, relevant memories, tests, and the full diff.
  3. Do not edit code in ANALYZE mode.
  4. Propose only changes with at least 80% confidence that preserve observable behavior:
    • reuse an existing abstraction;
    • remove proven dead or duplicate code;
    • flatten needless control flow or indirection;
    • remove avoidable work with equivalent semantics.
  5. Exclude bug fixes, behavior changes, speculative abstractions, broad rewrites, and style-only churn.
  6. Write simplify-proposals.md with ID, confidence, kind, files, before/after sketch, evidence, risk, and verification command.
  7. Present proposals by ID and stop. MODE: APPLY requires explicit approval; never analyze and apply in one uninterrupted step.

MODE: APPLY

  1. Require explicit approval listing proposal IDs. Ignore unapproved proposals.
  2. Re-read the current diff and stop if proposal assumptions are stale.
  3. Apply one approved proposal at a time within its declared files.
  4. Run its focused verification immediately. On failure, restore only that proposal's edits when they can be isolated safely; otherwise stop and request direction.
  5. Run the broader affected suite after all successful proposals.
  6. Append applied, skipped, and evidence results to simplify-proposals.md.
  7. Mark prior review evidence stale and set REVIEW_REQUIRED.

Work inline by default. Use a worker only when the user explicitly requests delegation, and keep ANALYZE and APPLY as separate approval-gated actions.

Do not commit or change unrelated files. Return mode, proposal or application counts, report path, verification evidence, and next action.

Read the full file on GitHub · 37 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. 6d ago First seen · 37 lines · 47 tokens per session scan A 86e83997d0e1

Subscribe to this mod's changes

flow-simplify is a skill published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed 3d ago), licensed Apache-2.0. It adds 47 tokens to every session and 476 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-09-03.