/repo-architecture
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.
$ npx -y skills add garrytan/gbrain --skill repo-architecture --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/repo-architecture
Context preview
The summary Claude sees to decide when to auto-load this skill.
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.
SKILL.md
repo-architecture.SKILL.mdname: repo-architecture
version: 1.0.0
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.
triggers:
- "where does this go"
- "filing rules"
- "create new page"
- "which directory"
tools:
- search
- get_page
- list_pages
mutating: false
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
Read more
name: repo-architecture version: 1.0.0 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. triggers: - "where does this go" - "filing rules" - "create new page" - "which directory" tools: - search - get_page - list_pages mutating: false
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
Search gives you raw pages. GBrain gives you the answer. It's the brain layer your AI agent has been missing — the only one that does synthesis, graph traversal, and gap analysis in one box.
Repo: garrytan/gbrain
Other skills on gbrain.
- /voice-persona-mars
Route to Mars (introspective thought partner / demo showman voice persona). Used when the operator wants depth, meaning, or impressive social demos rather than logistics. Mars handles SOLO mode (philosophy, presence, patterns) and DEMO mode (tool-driven showmanship)
Open skill - /voice-persona-venus
Route to Venus (sharp executive-assistant voice persona). Used for logistics — calendar, tasks, recent messages, brain lookups — at sub-second phone-call latency. The default voice persona unless DEFAULT_PERSONA=mars is set.
Open skill - /voice-post-call
Post-call handling for a voice session — turn the transcript into a brain page, post the summary to the operator's messaging surface, archive the audio. Belt-and-suspenders: fires both from a tool the voice persona can call mid-call AND from the automatic call-end handler in
Open skill - /retrieval-reflex
When/what to retrieve — open the brain page for a salient entity before answering from memory.
Open skill - /academic-verify
Verify a research claim or academic citation by tracing it through publication → methodology → raw data → independent replication. Routes through perplexity-research for the actual web lookup, then formats results as a citation-checked brain page. Use when a
Open skill - /archive-crawler
Universal archivist for personal file archives (Dropbox/B2/Gmail-takeout/local-mount/hard-drive-dump). Filters for high-value content (the user's own writing, ideas, relationships) and surfaces it interactively. REFUSES TO RUN without an explicit gbrain.yml
Open skill

