agentleFS
cdvelcdvel/architecture-skills/skills/brief/SKILL.md

brief

Skill4 starsChanged 52 days agoMITView on GitHub

Gives an architect's brief of a codebase in chat: a one-paragraph verdict, an ASCII picture of the main parts, one request traced end to end, where to start reading, and a short assessment labeled as opinion. Built from the ARCHITECTURE.md that the architecture-md skill writes; it does not explore the code and writes no files. Use when someone wants the big picture, an overview or an architect's brief of a repo, for example 'give me an architect's brief of this repo', 'what's the big picture here before I review it', 'summarize how this codebase is put together, keep it short', 'walk me through the architecture'. Not for a specific question about how one piece of code works, for writing or updating ARCHITECTURE.md (architecture-md), for recording a decision (adr-md), or for the project glossary (glossary-md).

88 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use strategy, capture 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.
  • EpistatesSkill

    strategy

    Plan weekly or monthly X content strategy. Use when the user wants to plan their content calendar, set growth goals, build a content pipeline, or think strategically about their X presence.

    Also in 4 projects that use this

  • toneron2Skill

    capture

    Capture thoughts to inbox with automatic classification

    Also in 6 projects that use this

  • aleksander-dytkoSkill

    decision

    Make a product decision with full context from the vault and available sources

    Also in 3 projects that use this

  • howellsSkill

    reconcile

    Audit a project against current plugin conventions and offer to update structure.

    Also in 3 projects that use this

  • Google CloudSkill

    ingest

    Extracts, distills, and compiles raw sources (PPTX slide decks, PDFs, Word docs, Excel sheets, web URLs, transcripts, codebases, or raw/ directories) into persistent, structured Knowledge Compiler markdown wikis following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy LLM-Wiki standard. Use when the user invokes /ingest, asks to ingest raw files or a target path, compile knowledge, update the wiki, or extract unstructured files into markdown knowledge bases. Don't use for retrospectively compiling the active chat conversation without external files (use distill-session) or for read-only vault lookups (use vault-query).

    Also in 7 projects that use this

  • dirienSkill

    decide

    Three-agent adversarial debate protocol for strategic decisions. Two advocates steelman opposing positions while a moderator identifies risks and synthesizes a binding consensus. Use when choosing between alternatives, evaluating tradeoffs, or making high-stakes decisions.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 6

    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. Very specific:

    Not for: writing or updating ARCHITECTURE.md (architecture-md), recording decisions (adr-md), the glossary (glossary-md), or a specific …

    line 14
  2. Very specific:

    Use the path the user names.

    line 18
  3. Very specific:

    Read the frontmatter. The doc counts as written by architecture-md only if generator starts with architecture-md.

    line 22
  4. Distinctive:

    Read the frontmatter and Summary first, then only the sections each part of the brief draws on (see Layout).

    line 45
  5. Distinctive:

    When the doc has nothing for a part, keep the heading with one line naming the missing section.

    line 67
  6. Distinctive:

    When the user asks for a short brief, keep the verdict, source line, picture and assessment, and cut the rest.

    line 68
  7. Distinctive:

    Keep the whole brief under about 120 lines.

    line 69
  8. Distinctive:

    Prose: only where a diagram or table does not fit.

    line 76
  9. Distinctive:

    Keep the doc's own markings: what it marks as inferred stays inferred, and its gaps stay gaps.

    line 82

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

brief

An architect's brief in chat, built from the repo's ARCHITECTURE.md (written by the architecture-md skill): what the system is, how it is built, and an opinion on it, in plain language with diagrams and tables that read well in a terminal.

Scope

  • Reads ARCHITECTURE.md, the ADR index and the glossary when they exist, and git (read-only, for the staleness check).
  • Writes no files and runs no builds or tests. Never explores source code, even when the doc is missing.
  • Not for: writing or updating ARCHITECTURE.md (architecture-md), recording decisions (adr-md), the glossary (glossary-md), or a specific question about one piece of code (answer that directly, not as a brief).

Find the doc

Use the path the user names. Otherwise look for docs/ARCHITECTURE.md, then ARCHITECTURE.md at the repo root. If both exist, use the one whose generator starts with architecture-md (the docs/ one if both do) and mention the other.

Check its origin

Read the frontmatter. The doc counts as written by architecture-md only if generator starts with architecture-md.

  • No doc: say no ARCHITECTURE.md was found and where you looked, suggest running the architecture-md skill to write one, and stop.
  • Doc not written by architecture-md: say so, suggest running architecture-md, and ask whether to brief from this doc anyway (in plain text, or with the harness's question tool if it has one). If the user says yes, or the request already said to go ahead, brief from it and say up front what changes: facts are limited to what this doc says, parts it does not cover are marked as gaps, and staleness is checked only if it records a commit.

Check staleness

From the repo root, where <commit> is the doc's commit and <doc> its path:

git merge-base --is-ancestor <commit> HEAD
git rev-list --count <commit>..HEAD -- . ':(exclude)<doc>'

The count leaves out commits that only changed the doc itself, so committing the doc does not make it look stale.

  • 0: the source line says the doc matches HEAD.
  • N above 0: the source line says the doc is N commits behind HEAD and suggests regenerating it with architecture-md. Continue with the brief.
  • Commit not an ancestor of HEAD, or unknown (another branch, a rebase, a shallow clone): say its age cannot be measured from this checkout and suggest regenerating.
  • No git, or no commit field: say staleness was not checked.

Read

Read the frontmatter and Summary first, then only the sections each part of the brief draws on (see Layout). For a long doc, read section by section.

If they exist, also read the ADR index (README.md in docs/adr, docs/decisions, adr or doc/adr) and the glossary (GLOSSARY.md or TERMINOLOGY.md, at the root or in docs/). Read a single ADR only to check the reason for a choice you are about to criticize. Use glossary definitions when you define terms.

Reasons before criticism

Before calling a choice a weakness, look for its reason: the key decisions table in Summary, reasons from code comments that the doc quotes in Components, and ADRs. If a reason exists, state it and say whether it still holds given what the doc shows. If none is recorded, say so: a missing reason is an open question, not proof of a mistake.

Layout

The reply's first line is the verdict paragraph itself. Nothing comes before it: no heading, no greeting, no sentence about what follows. Then the parts below, in order, each under a short heading.

PartFormDraws on
VerdictOne paragraph: what the system is and for whom, how it is built, and an overall judgment in its last sentence, worded as opinion ("In my view ...")Summary
SourceOne line: doc path, generator version, generated date, short commit, stalenessFrontmatter, git
PictureASCII diagram of users, main parts, data stores and external systemsDiagrams, Summary
PartsTable: part, what it does, where it livesComponents
A request, end to end4 to 8 numbered steps for the main user action, or a short ASCII sequenceData flows
Where to start reading3 to 5 files, one line each on whyQuick reference, Components
Assessment (opinion)Strengths, risks, open questionsAll of the above, ADRs
  • When the doc has nothing for a part, keep the heading with one line naming the missing section.
  • When the user asks for a short brief, keep the verdict, source line, picture and assessment, and cut the rest.
  • Keep the whole brief under about 120 lines.

Representation

  • Diagrams: plain ASCII (+ - | > < v ^) in a code block, at most 80 columns wide and about 25 lines. Label arrows with what moves (HTTPS, SQL, queue message). Redraw from the doc's diagrams, keeping only what the verdict needs.
  • Tables: 2 to 4 columns, short cells, under about 12 rows. Group minor parts into one row.
  • Request path: name the request (for example "place an order"), then one line per step: which part acts and what it does.
  • Prose only where a diagram or table does not fit.
  • Plain language: define every term and acronym on first use in a few words, for example "outbox (a table of events waiting to be sent)".

Facts and opinions

  • Facts come from the doc, the ADRs and the glossary only. Cite the source in square brackets: the doc section, for example [Data flows], or the ADR id, for example [ADR-0003]. One citation per part when the whole part comes from one section; inline otherwise.
  • Keep the doc's own markings: what it marks as inferred stays inferred, and its gaps stay gaps.
  • Opinions sit only in the verdict's last sentence and under the heading "Assessment (opinion)", worded as opinions ("I would", "this looks"). Under that heading, one line per item, about 3 per label:
    • Strengths: what the design gets right, and why it matters here.
    • Risks: each with the reason found and whether it still holds, or "no recorded reason".
    • Open questions: what a reviewer would ask that the doc does not answer.
  • Pick what matters most; do not restate the doc's threat table or open-work list.

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.