repo-architecture skillA
repo-architecture is agent-read markdown (skill) from garrytan/gbrain: Where new brain files go. Decision protocol for filing brain pages by primary subject, not by format or source. Reference for all brain-writing skills..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Repo Architecture — Filing Rules
> **Full filing rules:** See `skills/_brain-filing-rules.md`
## Contract
This skill guarantees:
- Every new page is filed by primary subject (not format, not source)
- The decision protocol is followed for ambiguous cases
- Common misfiling patterns are caught
## Phases
1. **Identify the primary subject.** What would you search for to find this page?
2. **Walk the decision tree:**
- About a person → `people/{name-slug}.md`
- About a company → `companies/{name-slug}.md`
- A reusable concept/framework → `concepts/{slug}.md`
- An original idea → `originals/{slug}.md`
- A meeting → `meetings/{slug}.md`
- Media content → `media/{type}/{slug}.md`
- Raw data import → `sources/{slug}.md`
3. **Cross-link.** Link from related directories.
4. **Check notability.** See `skills/conventions/quality.md` notability gate.
## Output Format
Advisory: "File this at `{type}/{slug}.md` because the primary subject is {reason}."
## Anti-Patterns
- Filing by format ("it's a PDF so it goes in sources/")
- Filing by source ("it came from email so it goes in sources/")
- Creating pages without checking if one already exists
…Read the whole file at its exact version.
How to install
mdr add garrytan/gbrain/repo-architecture@v1.0.0mdr add garrytan/gbrain/repo-architecture@sha256:4ec2b8f45d168aaaPin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_7ipxthtipwnbbs2g)
0 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (1628 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
garrytan/gbrain · 30,275 stars · license MIT · pushed 2026-09-23 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_7ipxthtipwnbbs2g GET https://markdownregistry.com/api/v1/resolve?ref=garrytan/gbrain/repo-architecture GET https://markdownregistry.com/api/v1/blob/4ec2b8f45d168aaa55f17ecd1ed404ab04217a75c2317f0710c71705846f5394
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.