agentleFS
programmerrajaprogrammerraja/claude-code-toolbox/skills/explainer/SKILL.md

explainer

Skill1 starsChanged 11 days agoMITView on GitHub

Explains how a feature, flow, or function works end to end as a narrative walkthrough that builds a durable mental map — covering execution order, the reasoning behind each step, table and column design, concrete shapes of complex objects, and the failure modes that reading the code alone won't reveal. Use when asked how a feature/flow/pipeline works, to trace a request end to end, to explain what a function does across services, or to onboard onto an unfamiliar area of the codebase.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ugc-ads.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AdviblySkill

    ugc-ads

    Generate complete multi-shot UGC video ads end to end with the Advibly MCP tools. Takes a brand plus an ad angle and produces a realistic AI creator image (gpt-image-2), a 5-shot direct response script, a user-approved storyboard of start frames, and one video clip per shot animated from its frame (Gemini Omni Flash with native spoken dialogue), then assembles the clips into a finished vertical ad. Use whenever the user wants a UGC ad, a creator-style video ad, a product-in-hand testimonial video, or asks to turn a product into a TikTok/Reels-style ad. Also trigger on phrases like "UGC video," "creator ad," "testimonial ad," or "make an ad for my product" when the Advibly MCP is connected.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the actual code. Verify every claim against real files.

    line 13
  2. Distinctive:

    No mermaid diagrams, no ASCII art, no tables of line numbers, no step-numbered bullet lists as the main structure.

    line 23
  3. Distinctive:

    Never invent placeholder IDs in the prose.

    line 27
  4. Distinctive:

    Never describe a complex object in prose alone.

    line 59
  5. Distinctive:

    When the same logical field holds a different kind of value at different hops, show it at each hop so the difference is visible.

    line 73
  6. Distinctive:

    When a shape has variants, show the common one and note how the others differ.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Flow Explainer

Produce an explanation that leaves the reader able to reason about the system on their own — not a summary they have to re-read next time.

Before writing

Read the actual code. Verify every claim against real files; never describe what the code presumably does. Where something was inferred rather than confirmed, say so explicitly and name the file that would settle it.

Output format

Format matters as much as content.

  • Plain narrative prose. Write like a senior developer walking a new teammate through the system at a whiteboard.
  • No mermaid diagrams, no ASCII art, no tables of line numbers, no step-numbered bullet lists as the main structure.
  • Short prose sections with headers. Real function, table, column, queue, and S3-prefix names inline in the text.
  • Never invent placeholder IDs in the prose. Realistic sample values belong only inside the shape examples described below, where the point is the shape.

Structure

  1. Open by naming the single central function or handler the whole feature revolves around, and list every way it can be triggered. Say which trigger is the real one in production and which are edge cases, so the reader knows where to focus.
  2. Walk the main path in execution order. For each meaningful step explain both what it does and why it exists — what breaks, or what business case forced it. The "why" is the part that can't be recovered from reading the code.
  3. Then cover the other trigger paths, describing only how they differ from the main one. Don't repeat the shared parts.

Database operations

For every database operation, cover:

  • The table's purpose in one line — what one row means in business terms.
  • The columns that matter here, what each holds, and why it's shaped that way (why JSON instead of a column, why a loose string instead of an enum, why a synthetic key).
  • Which relationships are real foreign keys versus bare UUIDs with nothing enforcing them, and what goes wrong when a bare one dangles.
  • Unique constraints and idempotency keys: the exact key format, and what concurrency or retry problem it was added to solve.
  • Whether the table is shared with other features, and any column whose name doesn't match how this flow uses it.

Complex objects — show the shape

Never describe a complex object in prose alone. On reaching a queue message, JSON metadata column, config blob, LLM input or output, nested API payload, or anything the reader would otherwise have to picture in their head, stop and show a small concrete example of what it actually looks like, then continue the narrative.

Rules for these examples:

  • Take the shape from the real type definition or a real write in the code, not from imagination. Cite where the shape came from.
  • Fill in realistic values, not "string" or "foo" — a policy list should look like real policy entries, a status like a real status value.
  • Trim to the fields that matter for this flow and mark the rest as elided, rather than pasting a giant object.
  • When the same logical field holds a different kind of value at different hops, show it at each hop so the difference is visible.
  • When a shape has variants, show the common one and note how the others differ.

The difference this is aiming at: instead of only saying "policies come from the asset metadata," show what one entry in that metadata actually looks like; instead of only saying "outputs land in the summary and child tables," show a trimmed example of one produced result row.

Always call out

These are what the reader cannot get from reading the code themselves:

  • Failures that are swallowed or logged-and-continued, and the corrupt or partial state they leave behind.
  • Anything ordered by timers, sleeps, or delays rather than a real signal, and what happens when the race is lost.
  • Work scheduled in-process that dies with the pod.
  • Guards that make retries silent no-ops, including cases where a half-failed first attempt can never be retried.
  • Distinct ID spaces that get confused with each other, especially the same field name carrying a different ID at different hops.
  • Duplicated or near-duplicate implementations of the same logic that have quietly drifted apart.
  • Fields written and never read, or read from a stale or misleading name.
  • Design decisions inherited from an older use case that don't fit this one.

Closing

At each major boundary, state what has not been created yet, and what would be lost with no trace if the process died right there.

End with what this flow will never handle — the gaps where something falls through and nothing sweeps it up later.

Optional emphasis

Adjust when the reader states their intent:

  • Debugging — focus on where the flow produces a wrong or empty result rather than an outright error.
  • Changing it — also identify which parts are load-bearing for other features, so the reader knows what they'd break.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.