agentleFS
CodeWithBehnamCodeWithBehnam/cc-docs/skills/explain/SKILL.md

explain

Skill2 starsChanged 9 months agoMITView on GitHub

Explain code using ASCII diagrams, analogies, and step-by-step walkthroughs. Use when the user asks "how does this work?", "explain this code", "walk me through this", "what does this do?", or "help me understand this".

144 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use debug-fix, root-cause and 8 more.

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.
  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 3 projects that use this

  • Ingramradical235Skill

    root-cause

    Structured root cause analysis using WHERE (MECE decomposition) then WHY (causal structure diagrams) pipeline. Includes coin-flip detection, logical-leap detection, and vicious cycle intervention. Use when buffer enters YELLOW/RED, when metrics stall, or when Actions execute but don't produce results.

    Also in 5 projects that use this

  • ralphkraussSkill

    resolve-conflicts

    Resolve git merge conflicts or re-apply changes from a stale branch onto current main. Use when user says "resolve conflicts", "merge conflicts", "rebase branch", "branch is behind", "re-apply changes", "port branch", or a branch is too far behind main to merge cleanly.

    Also in 4 projects that use this

  • neurofooSkill

    socratic

    Socratic questioning to examine beliefs, uncover assumptions, and develop deeper understanding. Use to challenge thinking, evaluate proposals, or teach without lecturing.

    Also in 4 projects that use this

  • AntaresYuanSkill

    iterate

    Meta-skill for skill self-improvement. After another skill finishes a run, /iterate analyzes the run's logs (friction events, retries, sub-agent rejections, pacing mismatches, bugs), produces a structured retrospective report, accumulates per-class friction counts, and — when a class crosses the configured threshold — opens a PR to that skill's open-source repo with a proposed SKILL.md diff. NEVER auto-merges; the human always reviews. Target skills opt in by declaring an `iteration:` block in their frontmatter. Invoke when the user says "iterate this skill", "iterate /devloop", "run a retro on the last skill run", "/iterate <skill-name>", or when a target skill auto-hands-off at end of its run.

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 128 edited versions we read keep these.

  • 2

    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 relevant source file(s) fully.

    line 21
  2. Distinctive:

    Keep the tone conversational.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 128 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

Context

  • Current file or symbol: $ARGUMENTS
  • Repository root: !git rev-parse --show-toplevel 2>/dev/null || pwd

Task

Explain the code identified by $ARGUMENTS (or the most recently discussed code if no argument is given):

  1. Read the relevant source file(s) fully. Follow imports and dependencies one level deep to understand the full picture.
  2. Identify what the code does at a high level before diving into details.
  3. Structure the explanation as follows:

The Analogy

Compare the code to something from everyday life. A cache is like a sticky note on your monitor. A message queue is like a restaurant ticket rail. Pick the most fitting analogy and explain it in 2-3 sentences.

The Big Picture (ASCII Diagram)

Draw an ASCII diagram showing the structure, data flow, or component relationships. Use arrows (-->, ==>) to show direction. Keep it under 30 lines. Examples:

Request --> [Auth Middleware] --> [Router] --> [Handler] --> DB
                |                                  |
             401 Denied                       [Cache] --> Redis

Step-by-Step Walkthrough

Walk through the code in execution order, not file order. For each significant step:

  • What happens
  • Why it happens (the design intent)
  • What could go wrong (edge cases or assumptions)

The Gotcha

One common mistake or misconception about this code that even experienced developers get wrong. Be specific.

Key Files

List the most important files for understanding this area, with one-line descriptions.

Keep the tone conversational. Prefer short sentences. Avoid jargon unless it is defined. If the target is not found, say so clearly and suggest what the user might look for instead.

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.