flow-detector

flow-detector is a skill for Claude Code, Codex from smicolon/ai-kit. It costs 92 tokens per session (1,799 once invoked), scanned A, original, MIT.

A flow-analysis tool that turns vague task descriptions into possible end-to-end workflows through a codebase.

In plain words
What is it for?
Working out candidate flows for tasks involving sending, notifying, syncing, handling, processing, or integrating.
Why use it?
It clarifies missing details such as what starts an action, which entity is involved, and who receives the result.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/smicolon/ai-kit/flow-detector.svg)](https://agentmods.dev/skills/smicolon/ai-kit/flow-detector)
Your own site
<a href="https://agentmods.dev/skills/smicolon/ai-kit/flow-detector"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/flow-detector.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,799 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00092 $0.01799
Opus 5 $0.00046 $0.00899
Sonnet 5 $0.00018 $0.00360
Haiku 4.5 $0.00009 $0.00180

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

Security

Grade A, and why

flow-detector 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 4d 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.

packs/clarify/skills/flow-detector/SKILL.md · 155 lines

How it starts

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

Flow Detector

Detect end-to-end flows for a vague task. Output is structured candidates, not questions.

Activation Triggers

This skill activates when:

  • The user runs /clarify "<task>" or invokes @clarifier.
  • The user describes a task using vague verbs: send, notify, sync, handle, process, integrate, support, fire, dispatch, push, alert, log.
  • The user mentions a ticket reference and the description doesn't fully pin down the implementation surface.

Core Principle

Every candidate flow is a complete answer, not a piece of one. The user picks between whole flows, not between individual dimensions. Do not emit candidates that differ only in trivial parameters (timeout values, log level, retry count) — those are defaults inside one flow.

Process

1. Read the task description

Extract:

  • The verb (what is being done)
  • Any explicit entity mention (User, Tenant, Order, etc.)
  • Any explicit trigger mention (on signup, after payment, etc.)
  • Any explicit recipient mention (to the user, to the team, etc.)

2. Ground in the codebase

Before generating candidates, scan the repo for evidence:

  • Entities: search for likely model files — User, Tenant, Org, Account, Workspace, Team, Member. Note which exist.
  • Auth surfaces: search for sign-in, signin, login, signup, register, authenticate, auth/, /api/auth. Note routes/handlers.
  • Notification channels: search for email senders (sendgrid, ses, resend, mailer), push (fcm, apns, expo), in-app (notifications table/service), SMS (twilio).
  • Async infrastructure: queues (bullmq, celery, sidekiq), background jobs, event buses.
  • Failure infrastructure: retry libs, dead-letter queues, error reporters (sentry, bugsnag).

Anchor every candidate in symbols you found. A candidate that mentions infrastructure the repo doesn't have is a defect — either reframe the candidate as "build new X" or drop it.

3. Generate candidates

Read the full file on GitHub · 155 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. 4d ago First seen · 155 lines · 92 tokens per session scan A 78dbacf0092d

Subscribe to this mod's changes

flow-detector is a skill published in the GitHub repository smicolon/ai-kit (6 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 1,799 once invoked, about $0.0005 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.