agentleFS
Beskars-CodeBeskars-Code/Skills/skills/why/SKILL.md

why

Skill0 starsChanged 5 days agoMITView on GitHub

Use when the user asks why something was built this way or what the design rationale is. Answers in chat with sources and found, inferred, or unknown evidence; writes no tickets or code. Questions about how it works go to how.

112 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware and 10 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.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the code that embodies it.

    line 31
  2. Very specific:

    Run source control on those paths: git log, git blame, and gh for recent commits and pull requests.

    line 32
  3. Distinctive:

    Only then cover the other categories below.

    line 33
  4. Distinctive:

    Every search, including ones that returned nothing.

    line 69

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

Why

Answer "why is it this way?" with evidence. A fact, an inference, and a gap are different sentences.

/how answers how it works. /analyze writes the broader memo. This skill does not write tickets or code, and it does not start a build. The selected execution skill owns any later build.

The evidence tiers are adapted from poteto's pstack /why (MIT). The steps below are this pack's.

Read when

  • About to search history or read large files? Open main-context.md. Skip it and raw logs bury the reason.
  • About to judge whether the shape is still the right one? Open code-quality.md and code-structure.md. Skip them and the rationale endorses a messy layout.
  • About to reply? Open Plain language and Unslop. Skip them and the answer sounds more certain than the evidence.
  • About to ask the user anything? Open Asking the user. Skip it and you ask what git already answers.

Contract

  • Anchor in the code before any parallel search: paths, symbols, then recent commits and pull requests (git, gh).
  • A missing connector is a gap. Do not invent tickets, chat, metrics, or errors.
  • Label every inference. Confidence matches the evidence.

Process

  1. Name the decision you are explaining: a shape, a name, or a rejected alternative.
  2. Read the code that embodies it. Record paths and symbols.
  3. Run source control on those paths: git log, git blame, and gh for recent commits and pull requests. This category always runs.
  4. Only then cover the other categories below. Parallel lookups are fine after the anchor. Use the shared roles and selection policy: explorers retrieve history; analyzers judge the evidence. Choose effort from the actual uncertainty, not the label "research".
  5. Standalone, write the answer below. Nested, follow nested capabilities and return the bounded decision rationale without a full standalone answer. Preserve Found / Inferred / Unknown, confidence, and source evidence in either mode. List every search you ran, including the empty ones. Keep each lookup tied to the named historical decision; do not widen into a new design investigation.

Evidence categories

Cover every row. When this session has no connector for a category, write "no connector" in Sources consulted. Do not skip the row and do not fill it.

CategoryWhere to look when a tool exists
Source controlgit and gh on the anchoring paths. Always.
Issue trackerThe connected tracker (GitHub issues, Linear, or whatever this session can query)
Long-form docsADRs, RFCs, and design docs in the repo or a connected doc tool
Team chatThe connected chat tool
Infra observabilityConnected logs, traces, or dashboards
Error trackingThe connected error tracker
Product analyticsThe connected analytics tool

Answer

Why

The decision, in a few sentences. Each sentence is a fact or is labeled as an inference.

Evidence

  • Found: paths, symbols, commit subjects, pull request numbers, issue ids. Something you opened.
  • Inferred: the conclusion, and the found facts it rests on.
  • Unknown: what would change the answer, and was not available.

Sources consulted

Every search, including ones that returned nothing. Name the tool and the query. A category with no connector is "no connector".

Confidence

High, medium, or low, and the one reason.

If this is a precursor to a change

Optional. Omit when the user only wanted the history.

  • Preserve: what the evidence says to keep
  • Change: what the evidence says is safe to change
  • Avoid: the approach the history already rejected
  • Risk: what the evidence does not cover

Anti-patterns

  • A why with no path or symbol
  • Treating an inference as a fact
  • Filling a gap with a plausible story
  • Starting Slack, tickets, or metrics before the code anchor
  • Writing a ticket or editing code

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.