saving-workspace-context
Skill2 starsChanged 7 months agoMITView on GitHub
Automatically persist useful context — research, decisions, learnings, templates — to workspace files so knowledge survives across conversations. Use when the user says "/saving-workspace-context", "saving workspace context", or asks about saving workspace context.
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- ZeroTokenClaw/agents-skillsedited, first seen Sep 21, 2026
- matarpeles/skills-registry-demoedited, first seen May 5, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- ZeroTokenClaw/agents-skills★ 199% same
- matarpeles/skills-registry-demo★ 099% same
Wrote their own version · 0
None found.
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 repository85 other files it gives its agents.
- accessibility-auditingSkill
- adding-analyticsSkill
- adding-api-docsSkill
- adding-authSkill
- adding-dockerSkill
- adding-e2e-testsSkill
- adding-error-trackingSkill
- adding-feature-flagsSkill
- adding-stripeSkill
- api-smoke-testingSkill
- architecture-decision-recordsSkill
- auditing-performanceSkill
- auditing-securitySkill
- auto-type-checkingSkill
- babysitting-prSkill
- best-of-n-solvingSkill
- building-skills-from-patternsSkill
- cavemanSkill
- codebase-onboardingSkill
- comparing-branches-visuallySkill
- converting-css-modules-to-tailwindSkill
- converting-css-to-tailwindSkill
- creating-prSkill
- dark-mode-testingSkill
- database-designSkill
- design-an-interfaceSkill
- detecting-port-conflictsSkill
- domain-modelSkill
- edit-articleSkill
- exporting-to-pngSkill
- finding-dev-server-urlSkill
- fixing-broken-linksSkill
- form-testingSkill
- generating-imagesSkill
- git-guardrails-claude-codeSkill
- github-triageSkill
- grill-meSkill
- grinding-until-passSkill
- improve-codebase-architectureSkill
- incident-responseSkill
- kubernetes-deployingSkill
- migrate-to-shoehornSkill
- monitoring-terminal-errorsSkill
- network-request-auditingSkill
- obsidian-vaultSkill
- parallel-ci-triageSkill
- parallel-code-reviewSkill
- parallel-exploringSkill
- parallel-test-fixingSkill
- profiling-performanceSkill
- prompt-engineeringSkill
- python-tdd-with-uvSkill
- qaSkill
- react-native-patternsSkill
- recording-browser-flow-as-testSkill
- request-refactor-planSkill
- responsive-testingSkill
- reviewing-codeSkill
- scaffold-exercisesSkill
- screenshotting-changelogSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Check for a context/ directory — read any files relevant to the current task
- Very specific: line 16
Check for a product/project context file (e.g.
- Very specific: line 17
Check for any domain-specific directories the project uses (e.g.
- Distinctive: line 18
Check for templates or reusable assets that might apply
- Very specific: line 20
If the project doesn't have a context/ directory yet, that's fine — create one when you first have something worth saving.
- Very specific: line 38
Do ask permission: before creating new skills or rules (they affect all future conversations)
- Distinctive: line 39
Append, don't overwrite: when adding to existing context files — use dated entries
- Distinctive: line 44
Before finishing, ask yourself:
- Distinctive: line 51
If yes to any, save it before the conversation ends.
- Distinctive: line 69
Keep entries reverse-chronological (newest first).
- Distinctive: line 95
Create a skill when you find yourself doing the same multi-step workflow more than once:
- Distinctive: line 103
Create a rule when a persistent constraint should apply across all conversations:
- Distinctive: line 112
Keep files scannable — future agents will skim directory listings to find context
- Distinctive: line 113
Don't save trivial information — if it's easily re-derived, skip it
- Distinctive: line 115
Check for existing files before creating new ones to avoid duplicates
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Saving Workspace Context
You are an agent that builds institutional memory. As you work, watch for information that should outlast this conversation and save it to the workspace so future sessions start smarter.
At the Start of Every Conversation
Load existing context before doing anything else:
- Check for a
context/directory — read any files relevant to the current task - Check for a product/project context file (e.g.
.agents/product-marketing-context.md,PROJECT.md, or similar) for positioning, goals, and constraints - Check for any domain-specific directories the project uses (e.g.
companies/,docs/,research/) - Check for templates or reusable assets that might apply
If the project doesn't have a context/ directory yet, that's fine — create one when you first have something worth saving.
During a Conversation
Watch for information that should be persisted. Save it as soon as you recognize it — don't wait until the end.
| Signal | Where to Save |
| Product details, positioning, ICP changes | Project context file (e.g. .agents/product-marketing-context.md) |
| Research on a company, person, or topic | context/{topic-slug}.md or a domain-specific directory |
| Strategy decisions or learnings | context/{topic}.md with dated entries |
| Reusable templates or boilerplate | templates/ or a project-appropriate location |
| A repeatable multi-step workflow | New skill in .cursor/skills/ or .agents/skills/ |
| A persistent constraint or convention | New rule in .cursor/rules/ |
How to Save
- Don't ask permission for small context saves — just do it and mention what you saved
- Do ask permission before creating new skills or rules (they affect all future conversations)
- Append, don't overwrite when adding to existing context files — use dated entries
- Use clear file names — future you (or a future agent) needs to find this by scanning a directory listing
At the End of a Conversation
Before finishing, ask yourself:
- Did I learn anything about this project that isn't captured in workspace files?
- Did I do research that would be painful to redo?
- Did I discover a pattern that should become a skill or rule?
- Did I create content that could be templated for reuse?
If yes to any, save it before the conversation ends.
File Formats
Context Files (context/{slug}.md)
# {Topic}
## {Date} — {Brief title}
{What was learned, decided, or discovered}
## {Earlier date} — {Earlier entry}
{Previous context}Keep entries reverse-chronological (newest first). Date your entries so they age gracefully.
Project Context File
A single file capturing the current state of the project's identity:
# {Project Name} — Context
- **What it is:** {one line}
- **Who it's for:** {target audience}
- **Key differentiator:** {why this vs alternatives}
- **Current stage:** {pre-launch / beta / growth / etc.}
- **Current goals:** {what matters right now}
## Positioning
{How we talk about the product}
## Constraints
{Things to always keep in mind}When to Create a New Skill
Create a skill when you find yourself doing the same multi-step workflow more than once:
- Researching a topic (check multiple sources, synthesize, save findings)
- Preparing for a meeting or call (pull context, recent history, prep talking points)
- Running a campaign or process (select targets, personalize, track progress)
When to Create a New Rule
Create a rule when a persistent constraint should apply across all conversations:
- Voice/tone guidelines that get refined through feedback
- Naming conventions or file organization patterns
- Domain-specific constraints ("never mention X", "always check Y first")
Rules
- Be proactive — save context without being asked, but mention what you saved
- Keep files scannable — future agents will skim directory listings to find context
- Don't save trivial information — if it's easily re-derived, skip it
- Date everything that accumulates over time
- Check for existing files before creating new ones to avoid duplicates
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.

