agentleFS
mauriciovieiramauriciovieira/groundwork/skills/why/SKILL.md

why

Skill0 starsChanged 4 months agoMITView on GitHub

Use when someone asks why the code is the way it is - "why do we do it this way", "who decided this", "is this intentional or an accident". Recovers the reasoning behind a decision from the ADRs first, then git history, the tracker, and the out-of-scope record. Read-only.

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

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

  • 0

    Common

    Most of the 106 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Look in the ADRs before anything else:

    line 16
  2. Very specific:

    prd.md: - if the answer is "because the product needs it", this is where that lives

    line 28
  3. Very specific:

    .out-of-scope/: - if the question is why something *isn't* there, this is the record of concepts that were deliberately rejected, and it …

    line 29
  4. Very specific:

    glossary.md: - when the confusion is really about what a term means

    line 34
  5. Very specific:

    If the answer turns out to be "decided, but the decision was never written down", offer to capture it as an ADR through survey.

    line 49

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

groundwork:why

Recover the reasoning behind something, and be honest when the reasoning is not recoverable.

This is cheap in a groundwork repository because the artifacts already exist. Recording decisions is what ADRs are for; this is the skill that spends them.

1. Read the decisions first

Look in the ADRs before anything else:

  • docs/groundwork/adr/ - project-wide decisions, including the implementation stack
  • docs/groundwork/features/NNNN-slug/adr/ - decisions scoped to one feature

An ADR's Context is usually the actual answer, and its Consequences say what the project signed up for. Check the Status: a Superseded ADR explains what someone used to think, and the ADR that superseded it explains what changed their mind. Both are worth reporting, in that order - the reversal is often the most useful part.

2. Then the rest, in descending order of reliability

  • prd.md - if the answer is "because the product needs it", this is where that lives
  • .out-of-scope/ - if the question is why something isn't there, this is the record of concepts that were deliberately rejected, and it exists precisely so the same idea does not get re-litigated
  • git log and git blame - the commit that introduced it, and the PR it came from
  • the tracker - the issue behind that PR, and any discussion on it
  • glossary.md - when the confusion is really about what a term means

3. Answer, and grade your own certainty

Say what the reason was and where you found it. Then say how confident you are, in these terms:

  • Decided - an accepted ADR says so. Quote it.
  • Recorded - a PRD, issue, or commit message states it, though nobody wrote it up as a decision.
  • Inferred - you reconstructed it from the code and the history. Say so plainly, and say what would confirm it.
  • Lost - nothing explains it. Say that instead of constructing a plausible story. An invented rationale is worse than an admitted gap, because it gets repeated.

If the answer turns out to be "decided, but the decision was never written down", offer to capture it as an ADR through survey. That is how a Lost becomes a Decided for the next person to ask.

This skill writes nothing on its own.

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.