context-manager
Skill6 starsChanged 8 months agoMITView on GitHub
Use when the user asks about context organization, CLAUDE.md structure, where to store decisions or learnings, or when context feels bloated or ineffective. Teaches the 7 principles of context engineering and triages knowledge to the right destination automatically.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- felvieira/claude-skills-fvtheir own version, first seen Sep 2, 2026
- valsecchi75/project-scaffoldertheir own version, first seen Aug 3, 2026
- jshsakura/awesome-opencode-skillstheir own version, first seen Jul 8, 2026
- Mark393295827/third-brain-v7-skillstheir own version, first seen May 22, 2026
- EAIconsulting/cowork-skills-librarytheir own version, first seen Mar 27, 2026
- ai4brands-design/claude-skillstheir own version, first seen Mar 22, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- Mark393295827/third-brain-v7-skills★ 141same name
- gaoziman/claude-context-manager★ 84same name
- jshsakura/awesome-opencode-skills★ 29same name
- EAIconsulting/cowork-skills-library★ 26same name
- felvieira/claude-skills-fv★ 23same name
- belokonm/claude-supercode-skills★ 11same name
- valsecchi75/project-scaffolder★ 9same name
- xfstudio/skills★ 9same name
- nicolasestrem/antigravity-gemini-skills★ 8same name
- ai4brands-design/claude-skills★ 2same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository64 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-backward-compatibilitySkill
- api-design-standardsSkill
- api-versioningSkill
- database-designSkill
- distributed-systemsSkill
- observability-by-defaultSkill
- performance-budgetsSkill
- resilience-patternsSkill
- twelve-factor-appSkill
- codex-cross-reviewSkill
- dispatching-parallel-agentsSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- architecture-awarenessSkill
- intent-to-specSkill
- project-diagnosisSkill
- using-shipworthySkill
- systematic-debuggingSkill
- documentation-as-codeSkill
- accessibilitySkill
- frontend-standardsSkill
- retrospectiveSkill
- writing-skillsSkill
- ci-cd-awarenessSkill
- environment-setupSkill
- feature-flag-disciplineSkill
- finishing-a-development-branchSkill
- guardrail-audit-logSkill
- incident-responseSkill
- mcp-integrationSkill
- migration-strategiesSkill
- production-readinessSkill
- scope-creep-detectionSkill
- session-memorySkill
- slo-sli-definitionSkill
- tech-debt-trackingSkill
- using-git-worktreesSkill
- zero-downtime-migrationsSkill
- brainstormingSkill
- decision-frameworksSkill
- design-documentsSkill
- executing-plansSkill
- writing-plansSkill
- code-complexitySkill
- confidence-based-strictnessSkill
- error-handling-patternsSkill
- feedback-driven-adaptationSkill
- quality-gatesSkill
- response-schema-validationSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- adaptive-securitySkill
- bias-detectionSkill
- compliance-awarenessSkill
- container-securitySkill
- dependency-managementSkill
- pii-detectionSkill
- secrets-managementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Never mix these concerns. CLAUDE.md should not contain session state.
- Distinctive: line 51
If Claude already does something correctly from reading your existing code, that rule wastes context window space.
- Distinctive: line 78
No tone, identity, philosophy, or general coding principles in project scope.
- Distinctive: line 123
When context is compacted mid-session and you lose awareness of the project state:
- Very specific: line 125
Read .shipworthy/INDEX.md — one-page index of all project memory
- Very specific: line 126
Read .shipworthy/regression-fence.md — anti-patterns to avoid
- Very specific: line 127
Read .shipworthy/architecture.md — constraints and mandatory rules
- Very specific: line 128
Read relevant .shipworthy/learnings/ files for the current task
- Very specific: line 129
Check .shipworthy/.session-signals for what happened so far this session
- Distinctive: line 133
When multiple Claude instances work on the same project:
- Very specific: line 134
All instances share .shipworthy/ (it's in the repo)
- Distinctive: line 144
Always anchor to file paths: when possible — verifiable > abstract.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Manager
Purpose
Context quality matters more than model capability. This skill teaches Claude HOW to build maximum project understanding by routing knowledge to the right place and following the 7 principles that make context survive across sessions, context compaction, and multiple Claude instances.
The 7 Principles of Context Engineering
1. Prohibitions Beat Descriptions
Rules framed as what NOT to do survive context decay. Descriptive rules drift.
| Wrong | Right |
| We use Supabase for our database. | NEVER use Prisma. NEVER use Drizzle. Supabase only. |
| We prefer pino for logging. | NEVER use console.log — pino is already configured. |
| We use Jest for testing. | NEVER use Mocha or Vitest. Jest only. |
2. Anchor Rules to File Paths
Verifiable rules reference the actual file tree. Abstract rules drift because Claude has nothing concrete to check against.
| Wrong | Right |
| Use Zod for validation. | All validation schemas live in src/schemas/. NEVER inline validation. |
| We use Express with a standard structure. | All routes in src/routes/. All middleware in src/middleware/. All models in src/models/. |
| Tests should be nearby. | Tests colocated: src/foo.ts has src/foo.test.ts. NEVER put tests in a separate tests/ tree. |
3. Negative Examples Anchor Harder
A regression fence of documented past mistakes works better than abstract best practices. Claude avoids repeating documented failures more reliably than it follows aspirational rules.
The regression fence lives at .shipworthy/regression-fence.md and is loaded every session as hard constraints. See the Regression Fence section below.
4. Constitution vs Working Memory
Two files, two jobs:
- CLAUDE.md = Constitution. Stable. Rarely changing. Stack locks, prohibitions, directory structure, non-negotiable rules. Read every session.
.shipworthy/sessions/= Working memory. Dynamic. Updated every session. What happened, what's in progress, what's next.
Never mix these concerns. CLAUDE.md should not contain session state. Session files should not contain architectural rules.
5. Only Write What Claude Can't Infer
If Claude already does something correctly from reading your existing code, that rule wastes context window space. Ruthlessly prune.
| Wasteful (Claude can see this) | Worth writing (Claude can't infer this) |
| "We use TypeScript" (package.json shows it) | "NEVER use any — use unknown with type guards" |
| "We use PostgreSQL" (docker-compose shows it) | "NEVER use SQLite, even for tests — always PostgreSQL" |
| "We have a src/ directory" (it exists) | "NEVER create files at project root — everything goes in src/" |
6. Ordering is Load-Bearing
Claude reads top-down. What comes first survives longest under context pressure. Put your hardest constraints at the top, conventions at the bottom.
CLAUDE.md ordering:
- Stack locks and prohibitions (NEVER/ALWAYS rules)
- Directory structure anchored rules
- Key conventions with file path references
- How to run things (test, build, deploy)
Session-start context priority (already enforced by hook):
- Architecture spec + Mandatory Rules
- Regression fence (prohibitions)
- In-progress plans
- Previous session
- Learnings
7. Zero Global Bleed
No tone, identity, philosophy, or general coding principles in project scope. That belongs in global Claude settings or auto-memory. The moment you mix concerns, both layers get weaker.
| Project scope (CLAUDE.md / .shipworthy/) | Global scope (Claude auto-memory / settings) |
| "NEVER use Prisma in this project" | "I prefer terse responses with no trailing summaries" |
"All API routes return JSON with {data, error} shape" | "I'm a senior engineer, skip basic explanations" |
"Run npm test before committing" | "Always suggest tests for new code" |
Context Triage: Where Knowledge Belongs
| Knowledge Type | Destination | Automatic? |
| "NEVER do X" anti-patterns | .shipworthy/regression-fence.md | Auto via session-start auto-retro |
| Architecture constraints, mandatory rules | .shipworthy/architecture.md | Manual (one-time via architecture-awareness) |
| Project patterns that work | .shipworthy/learnings/[topic].md | Auto via session-start auto-retro |
| Session events (commits, deps, warnings) | .shipworthy/.session-signals | Fully automatic (hooks) |
| Task state / handoff notes | .shipworthy/sessions/[date].md | Auto at session end |
| Architecture decisions | .shipworthy/decisions/[NNN].md | Manual, prompted by skills |
| Repo map / entry points / stack locks | CLAUDE.md | Manual (stable, one-time) |
| User preferences (cross-project) | Claude auto-memory (global) | Automatic |
Regression Fence
The regression fence at .shipworthy/regression-fence.md is a first-class Shipworthy concept. It is:
- Loaded every session by the session-start hook as hard constraints
- Auto-populated from session signals and retrospective corrections
- Imperative format: Each entry is an H2 heading starting with NEVER or ALWAYS
- Anchored to file paths where possible (principle 2)
- Capped at 20 entries — oldest pruned when adding the 21st
- Dated — each entry includes the date it was discovered (absolute, YYYY-MM-DD)
Format:
# Regression Fence
> Known anti-patterns. Loaded every session as hard constraints. Max 20 entries.
## NEVER use SQLite in this project — PostgreSQL only
Concurrent write failures in the API layer. (2026-03-15)
## NEVER add route handlers outside src/routes/
Route in src/utils/helper.ts broke middleware chain. (2026-03-20)Context Recovery Protocol
When context is compacted mid-session and you lose awareness of the project state:
- Read
.shipworthy/INDEX.md— one-page index of all project memory - Read
.shipworthy/regression-fence.md— anti-patterns to avoid - Read
.shipworthy/architecture.md— constraints and mandatory rules - Read relevant
.shipworthy/learnings/files for the current task - Check
.shipworthy/.session-signalsfor what happened so far this session
Multi-Instance Awareness
When multiple Claude instances work on the same project:
- All instances share
.shipworthy/(it's in the repo) - Regression fence protects ALL instances from known mistakes
- Session summaries provide handoff between instances
.session-signalsis append-only (safe for concurrent writers)- Each instance should read INDEX.md at start for full awareness
Rules
- Never auto-edit CLAUDE.md — guide the user, propose changes, but let them own their constitution.
- Always use prohibitive format for regression fence entries — "NEVER X" not "We learned X doesn't work."
- Always anchor to file paths when possible — verifiable > abstract.
- Never duplicate — if a rule exists in architecture.md, don't also put it in the regression fence.
- Prune aggressively — if the code already shows a pattern, the rule wastes context.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

