code-flow-map

code-flow-map is a skill for Claude Code, Codex from plearaj/code-flow-skill. It costs 31 tokens per session (9,930 once invoked), scanned A, original, Apache-2.0.

A documentation tool that follows how a requested feature moves through a codebase. It creates a Markdown document and an interactive HTML page with diagrams and function reference tables.

In plain words
What is it for?
Use it to document one feature or an entire codebase, with selectable detail, frontend handling, tracing, and output formats. It can also add missing docstrings to source files.
Why use it?
It turns scattered source-code relationships into a readable map. This helps developers understand where a feature starts, what it calls, and how the pieces connect.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Good fit Use it to document one feature or an entire codebase, with selectable detail, frontend handling, tracing, and output formats. It can also add missing docstrings to source files.

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

Made for: Claude Code, Codex.

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 code-flow-map

README.md
[![agentmods](https://agentmods.dev/badge/skills/plearaj/code-flow-skill/code-flow-map/github.svg)](https://agentmods.dev/skills/plearaj/code-flow-skill/code-flow-map)
Your own site
<a href="https://agentmods.dev/skills/plearaj/code-flow-skill/code-flow-map"><img src="https://agentmods.dev/badge/skills/plearaj/code-flow-skill/code-flow-map/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 code-flow-map

Your own site · 80×15
<a href="https://agentmods.dev/skills/plearaj/code-flow-skill/code-flow-map"><img src="https://agentmods.dev/badge/skills/plearaj/code-flow-skill/code-flow-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,930 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.00031 $0.09930
Opus 5.5 $0.00012 $0.03972
Sonnet 5.5 $0.00006 $0.01986
Haiku 4.5 $0.00003 $0.00993

Measured 1mo ago against content hash 91a3499dc39f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-flow-map 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 1mo 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.

templates/shared/code-flow-map/SKILL.md · 675 lines

How it starts

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

Code Flow — Documentation Generator

Analyze the codebase and generate flow documentation for the requested functionality.

Before you write anything

Name the flow you are about to map and wait for the user to confirm it, unless their own request already named it. This skill writes files under Code_Flows/ and adds docstrings to source files that lack them. Some hosts start a skill because a conversation drifted near its description rather than because anyone asked for it, and on those hosts this paragraph is the only thing standing between that drift and an edit to the user's code.

User Input

The user's request says what to map, and may carry five option flags — --whole-code-base, --detail thin|standard|verbose, --output files|bundle|both, --frontend auto|react|vue|angular|svelte|off and --tracer auto|on|off. Step 1 reads them.

Instructions

1. Identify the Target Flow

The user's request says what to document. Read it first for its option flags. They are options, not part of the feature name — strip them out before you derive any filename from what is left.

  • --whole-code-base — map the whole repository instead of one feature. If it is present, skip the rest of this section and everything through step 7, and follow Whole-Codebase Mode at the end of this document instead.
  • --detail thin|standard|verbose — how much evidence each catalogued function carries. Default standard. It only changes anything in whole-codebase mode; if it appears without --whole-code-base, accept it silently rather than erroring. If it appears with a value that is not one of those three, tell the user what you read, use standard, and carry on.
  • --output files|bundle|both chooses which HTML gets written, default files. files writes index.html, one page per flow, and the quality report page, exactly as before. both adds Code_Flows/code-flow.html, a single self-contained page carrying every flow. bundle writes that page and no other HTML. If its value is not one of those three, say what you read, use files, and carry on. --output never suppresses the JSON artifacts — index.json, <functionality_name>.json and inventory.json are written in every mode, because /code-flow-quality reads them and a run that skipped them would break it silently. Unlike --detail, it changes behavior in both modes: in whole-codebase mode it governs the bundle exactly as it does here — see Whole-Codebase Mode's Pass 1 and Pass 2 for where that applies.
  • --frontend auto|react|vue|angular|svelte|off — whether to map UI components as well as functions. Default auto: detect the frameworks this repository actually uses and map their components too. Naming one forces that framework; off maps functions only. Frontend Component Mapping below says what it changes. If its value is not one of those, say what you read, use auto, and carry on.
  • --tracer auto|on|off — whether to run the installed static tracers before tracing anything. Default auto: run each tracer whose language this repository contains and whose interpreter this machine has, and read source yourself where none applies. on means say so and stop when no tracer could run, since a user who asked for a traced map would otherwise get a slower one silently. off never runs one. Automated Tracing below says what they produce and how far to trust it. If its value is not one of those three, say what you read, use auto, and carry on.

Read the full file on GitHub · 675 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. 1mo ago Changed · -1 lines 91a3499dc39f
  2. 1mo ago First seen · 676 lines · 31 tokens per session scan A 76e351805cbc

Subscribe to this mod's changes

code-flow-map is a skill published in the GitHub repository plearaj/code-flow-skill (2 stars, last pushed 24d ago), licensed Apache-2.0. It adds 31 tokens to every session and 9,930 once invoked, about $0.0001 per session on Opus 5.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

plugin-creator

Create and scaffold plugin directories for Codex with a required .codex-plugin/plugin.json, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries…

openinterpreter/openinterpreter · 86 tokens

cw-gates

Use before claiming any Codewhale change is done, green, or ready to land: the focused-to-broad verification ladder, the budget checks CI enforces, and the rules for what counts as a passing test.

Hmbown/Codewhale · 48 tokens

memory-system

A guide to giving an AI agent persistent, user-specific memory across conversations. It covers what to remember, how to store it, how to update or compress it, and when to use memory instead of a shared knowledge base.

bojieli/ai-agent-book · 95 tokens

eval-dataset-design

A guide to creating reliable test sets for AI agents. Each evaluation task includes the request, the simulated user's behaviour, a reset starting state, and a success check that can be independently verified.

bojieli/ai-agent-book · 138 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

interview

Ask one useful structured question at a time only when material product/implementation choices are genuinely missing; remember answers and produce a brief/spec. Discoverable facts should be investigated instead of asked.

Hmbown/CodeWhale · 40 tokens