Repo Architecture — Filing Rules
Full filing rules: See
_brain-filing-rules.md(viaget_skill _brain-filing-rules)
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
- Identify the primary subject. What would you search for to find this page?
- Walk the decision tree:
- About a person →
people/{name-slug} - About a company →
companies/{name-slug} - A reusable concept/framework →
concepts/{slug} - An original idea →
originals/{slug} - A meeting →
meetings/{slug} - Media content →
media/{type}/{slug} - Raw data import →
sources/{slug}
- About a person →
- Cross-link. Use
linkfrom related pages; checkbacklinkson the new slug. - Check notability. See
conventions/quality.mdnotability gate (viaget_skill conventions/quality).
Output Format
Advisory: "File this at {type}/{slug} 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 (
searchfirst, thenpage_get) - Using
sources/for anything except raw data dumps