| 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.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add thedixitjain/the-mega-skill-library --skill repo-architecture --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Repo Architecture?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/thedixitjain-repo-architecture)More formats (shields.io, HTML) on the badges page.
---
name: repo-architecture
description: "| 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."
allowed-tools: "search get_page list_pages"
category: engineering-core
source_repo: garrytan/gbrain
source_path: "skills/repo-architecture/SKILL.md"
source_url: https://github.com/garrytan/gbrain/blob/HEAD/skills/repo-architecture/SKILL.md
---
# 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
- Using `sources/` for anything except raw data dumps
---
**Source:** [`garrytan/gbrain`](https://github.com/garrytan/gbrain) → `skills/repo-architecture/SKILL.md`
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!