memory-architecture

memory-architecture is a skill for Claude Code from sefaertunc/Worclaude. It costs 19 tokens per session (1,574 once invoked), scanned A, original, MIT.

A system for storing project knowledge across several kinds of memory, including shared team instructions, personal notes, captured learnings, and the assistant's automatic memory.

In plain words
What is it for?
Use it to route new rules and discoveries to the right memory layer, keep shared instructions separate from personal notes, and decide when a temporary learning should become a lasting project rule.
Why use it?
It helps each fact live where the right people and future sessions can find it, without mixing team rules with private machine-specific information.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it to route new rules and discoveries to the right memory…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sefaertunc/worclaude/memory-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 sefaertunc/Worclaude --skill memory-architecture
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

Made for: Claude Code.

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 memory-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/sefaertunc/worclaude/memory-architecture.svg)](https://agentmods.dev/skills/sefaertunc/worclaude/memory-architecture)
Your own site
<a href="https://agentmods.dev/skills/sefaertunc/worclaude/memory-architecture"><img src="https://agentmods.dev/badge/skills/sefaertunc/worclaude/memory-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,574 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.00019 $0.01574
Opus 5 $0.00010 $0.00787
Sonnet 5 $0.00004 $0.00315
Haiku 4.5 $0.00002 $0.00157

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

Security

Grade A, and why

memory-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 6d 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.

.claude/skills/memory-architecture/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory Architecture

Worclaude projects use five distinct memory layers. Each has a different scope, owner, and lifecycle. Routing a fact to the correct layer is a load-bearing decision — the wrong layer means the fact is invisible when needed, or noisy when not.

The Five Layers

Layer Scope Owner Lifecycle
CLAUDE.md Team Manual (humans + Claude via /update-claude-md) Stable, lean (target ~200 lines)
.claude/rules/ Team Manual, topic-organized Stable; optionally path-scoped (deferred — see BACKLOG)
.claude/learnings/ Team Hook-captured (learn-capture.cjs) Append-only; transient inputs to promotion
CLAUDE.local.md Personal Manual; gitignored Per-machine sandbox; never shared
Claude Code auto memory Personal Autonomous (Claude) Active, self-pruning

The line between team and personal is the most important boundary. Team layers are committed and shared with collaborators; personal layers stay on the local machine.

Routing Contract

When a fact, rule, or pattern surfaces during a session, route it like this:

Source Destination
A team-relevant rule the user wants enforced — typed [LEARN] block or /learn invocation .claude/learnings/<category>.md (via hook)
A personal preference (workflow, tone, naming whim) Claude Code auto memory (Claude does this autonomously when noticed)
A machine-local sandbox value (paths, secrets, dev URLs) CLAUDE.local.md (manual; gitignored)
A topic that has accreted multiple learnings AND is stable Promote to CLAUDE.md via /update-claude-md

Read the full file on GitHub · 116 lines

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. 6d ago First seen · 116 lines · 19 tokens per session scan A 3ee1cdc2f825

Subscribe to this mod's changes

memory-architecture is a skill published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 27d ago), licensed MIT. It adds 19 tokens to every session and 1,574 once invoked, about $0.0001 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

raytsystem-save

Stage a cited synthesis as a typed raytsystem DRAFT bundle and escaped preview. Use for SAVE, preserving a verified query answer, preparing a knowledge proposal, or creating a reviewable draft; never treat SAVE as canonical promotion or publication.

romarayt/raytsystem-public-os · 53 tokens

handoff

Emit a paste-ready two-part handoff for a fresh session: a ## Goal statement hard-capped under 4000 characters (produced by the /goal skill), plus an unbounded ## Full prompt carrying cwd, ordered reading list, hard rules, pitfalls, and deliverables. Runs with or without a git repository — branch and PR facts are…

dryvist/claude-code-plugins · 116 tokens

diagnose-with-memory

A bug-diagnosis workflow that uses records of earlier failures, decisions, and lessons. It checks whether past findings still apply to the current version and environment before investigating the code.

ezBuilder/code-brain · 32 tokens

tdd-with-memory

A test-first implementation workflow that recalls past decisions, conventions, and lessons before coding. TDD, or test-driven development, means writing a failing test first, then implementing the code and finally cleaning it up.

ezBuilder/code-brain · 35 tokens

fable-context-thrift

Use at the start of any multi-step task and during exploration — before reading files, searching, or re-checking completed work, especially when tempted to read whole files, re-verify known facts, or run independent lookups one at a time.

DizzyMii/fable-skills · 56 tokens

remarkable-memory

Turns handwritten reMarkable notes into a queryable semantic memory. Syncs pages from a reMarkable tablet (via the reMarkable MCP server, rmapi, or a USB/SSH bridge), renders each page to an image and reads the handwriting with Claude vision — no OCR key — then extracts each page into confidence-scored, human-editable…

mostafa-drz/claude-skills · 194 tokens