agentleFS
Gord1yGord1y/countersign-skills/skills/how-it-works/SKILL.md

how-it-works

Skill2 starsChanged 40 days agoMITView on GitHub

Explain how a part of the codebase works for the person about to change it: what it is, its moving parts, the flow with file:line refs and a diagram, where to start, traps.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oh-my-issues, what-the and 7 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.
  • tuliosalustiano27Skill

    oh-my-issues

    Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix PRs that close clusters atomically. Use when an issue tracker has accumulated dozens of reports that share underlying defects, when asked to triage / consolidate / cluster / dedupe issues, when asked to build a plan series or roadmap from open issues, or when routing a new incoming bug into an existing plan.

    Also in 3 projects that use this

  • tuliosalustiano27Skill

    what-the

    What the? Use when the user wants a plain-English breakdown of something technical — the who, what, where, why, and when.

    Also in 3 projects that use this

  • thedotmackSkill

    pathfinder

    Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.

    Also in 4 projects that use this

  • magnusrodsethSkill

    learn-codebase

    Understand a codebase by reading its actual source, on GitHub or on disk: how a pattern is really implemented, an org's conventions, how two things are wired. Use for \"how does <repo> do X\". For published API docs prefer find-docs.

    Also in 4 projects that use this

  • barrelcSkill

    mem-search

    Search kimi-mneme's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", "what did we do yesterday?", or needs work from previous sessions.

    Also in 3 projects that use this

  • TrecekSkill

    make-plan

    Create implementation plans through deep codebase understanding. Use when user asks to create, devise, or write a plan. Leverages subagents to explore approaches, understand systems, and design aligned solutions.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read what the Repo facts row lists for the area.

    line 34
  2. Very specific:

    Write it yourself, no writer subagent.

    line 57
  3. Very specific:

    Prefer concrete names: "JobQueue.retry() re-enqueues with a delay", not "the queue handles retries".

    line 73
  4. Very specific:

    If local.md exists next to this file, read it.

    line 77

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

How it works

Repo facts

This skill needs the facts below. Look each one up in the repo's CLAUDE.md (or AGENTS.md) and the files it imports or points to (of a repo-facts file, only this skill's section: sed -n '/^## how-it-works$/,/^## /p' <file>), then in local.md next to this file. If neither has it, ask the user once, then suggest the one line to add to CLAUDE.md so the next run finds it.

FactExample
Docs and skills to read first, per areaforms: docs/forms.md; API shapes: the api-schemas skill; e2e: e2e/README.md

Purpose

Give an experienced engineer new to this area a working mental model before they change it: its purpose, parts, how a request or event moves through it, where to start, what bites. Not an annotated source listing.

Scope

Restate the question as one line naming the subsystem and its boundary. When it is ambiguous, take the narrowest reading that still answers it, say which in the answer's first line, and go on. Do not ask.

Read the docs first

Read what the Repo facts row lists for the area. A doc may answer the question or name the entry points.

Size the job

Narrow: one module or one flow, and the files are known or one search finds them. Read the code yourself, no subagents. This is the default when unsure.

Wide: several directories, services or layers, or the entry point is unknown. Split into 2-4 slices that do not overlap, for example trigger and entry; core processing; storage and outbound effects; failure and retry. Spawn one researcher per slice, all in one message, with model: "haiku" and effort: "low", or Explore with the same where researcher is not installed. Give each references/slice-brief.md filled in. Agents without subagents (Codex, Antigravity) read the slices themselves, one after another.

Confirm before writing

Open the 2-3 files the flow hinges on yourself. Settle conflicts between slice reports by reading the code. Never write from slice reports alone.

Write the explanation

Write it yourself, no writer subagent. Use these ### sections in order. Drop empty ones.

  • What it is: 2-4 sentences: purpose, why it exists, what is in and out of scope.
  • Moving parts: each type, module, service or table needed, one line and path each.
  • The flow: numbered steps from trigger to result. Each names the function and its file:line, and the data handed on. Add a mermaid diagram when three or more parts exchange messages or data passes through stages; skip it otherwise. Prose, not pseudocode. Quote code only when a point depends on exact syntax, about 10 lines at most.
  • Where to start: the 3-6 files to open first, each with why.
  • Traps: what surprises a newcomer, such as ordering, implicit defaults, caching, legacy paths, or a misleading name. Only traps found in the code.
  • Not traced: what this run could not confirm. Never guess to fill a gap.

Rules

  • Cite only paths and lines seen in this run.
  • Prefer concrete names: "JobQueue.retry() re-enqueues with a delay", not "the queue handles retries".
  • Length follows complexity: a narrow question gets a short answer.

If local.md exists next to this file, read it; where it disagrees with this file, it wins.

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.