repo-architecture

repo-architecture is a skill for Claude Code, Codex from timurgaleev/memex. It costs 34 tokens per session (444 once invoked), scanned A, original, MIT.

A set of rules for deciding where new pages belong in a knowledge base, based on their main subject.

In plain words
What is it for?
Use it when creating pages about people, companies, ideas, meetings, media, or imported source data, especially when the correct category is unclear.
Why use it?
It prevents notes from being filed by accident under the wrong category, such as storing every PDF in one place regardless of its topic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating pages about people, companies, ideas, meetings, media, or imported source data, especially when the correct category is unclear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timurgaleev/memex/repo-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add timurgaleev/memex --skill repo-architecture
Clone the repo
git clone --depth 1 https://github.com/timurgaleev/memex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repo-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/timurgaleev/memex/repo-architecture/github.svg)](https://agentmods.dev/skills/timurgaleev/memex/repo-architecture)
Your own site
<a href="https://agentmods.dev/skills/timurgaleev/memex/repo-architecture"><img src="https://agentmods.dev/badge/skills/timurgaleev/memex/repo-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repo-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/timurgaleev/memex/repo-architecture"><img src="https://agentmods.dev/badge/skills/timurgaleev/memex/repo-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 444 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00444
Opus 5 $0.00017 $0.00222
Sonnet 5 $0.00007 $0.00089
Haiku 4.5 $0.00003 $0.00044

Measured 10d ago against content hash d7655ef4619c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

repo-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

deploy/skills/repo-architecture/SKILL.md · 54 lines

What it actually says

Repo Architecture — Filing Rules

Full filing rules: See _brain-filing-rules.md (via get_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

  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}
    • 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}
  3. Cross-link. Use link from related pages; check backlinks on the new slug.
  4. Check notability. See conventions/quality.md notability gate (via get_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 (search first, then page_get)
  • Using sources/ for anything except raw data dumps
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 54 lines · 34 tokens per session scan A d7655ef4619c

Subscribe to this mod's changes

repo-architecture is a skill published in the GitHub repository timurgaleev/memex (8 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 444 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

kb

Set up, evolve, or operate a hraness/kb local-first Markdown knowledge base for coding-agent memory. Use when a user asks to design KB conventions or a recurring KB ritual; search or query a KB or Obsidian vault; load or recover repository context, plans, decisions, concepts, backlinks, semantic search, or Git…

hraness/kb · 155 tokens

grounded-knowledge-workflow

Use Grounded Knowledge Engine to select an isolated workspace, answer from local evidence, resume an explicitly identified project, create an explicit project checkpoint, and retain durable knowledge. Trigger when a user asks about their documents, workspace or client context, previous research, project state…

dimosgit/grounded-knowledge-engine · 91 tokens

weasley-deepmind

A reference for using weasley-deepmind, a server that stores and retrieves an AI agent’s long-term memories between sessions. It describes memory storage, search, language processing, and related tools.

potatohoney-p/weasley-deepmind · 0 tokens

gbrain-ingest

Ingest meetings, articles, docs, and conversations into the brain. Updates existing pages with new info, creates pages for new entities, maintains cross-references.

imphillip/gbrain-openclaw · 37 tokens

gbrain-maintain

Periodic brain maintenance. Finds contradictions, stale info, orphan pages, and missing cross-references to keep the knowledge graph healthy.

imphillip/gbrain-openclaw · 30 tokens

gbrain-query

Answer questions from the brain using FTS5 + semantic search + structured queries. Synthesizes across multiple pages with citations.

imphillip/gbrain-openclaw · 29 tokens