domain-context
Skill0 starsChanged 6 months agoMITView on GitHub
Maintain living domain context map at docs/CONTEXT.md (or docs/contexts/) — system overview, users, bounded contexts, relationships. Lazily created. Triggers "domain model", "context map", "bounded context".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- manastalukdar/ai-devstudiotheir own version, first seen Oct 13, 2026
- customware-ai/skillstheir own version, first seen Apr 14, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- customware-ai/skills★ 2same name
- manastalukdar/ai-devstudio★ 1same name
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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugin-v2/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- plugin-v2/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents.mdcCursor rule
- agentic-security-reviewSkill
- arc42-baselineSkill
- caveman-commitSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- create-goalSkill
- design-twiceSkill
- discovery-sprintSkill
- github-project-setupSkill
- grillSkill
- improve-codebase-architectureSkill
- issue-breakdownSkill
- issue-draftSkill
- issue-pr-syncSkill
- new-adrSkill
- new-glossary-entrySkill
- orchestrateSkill
- portfolio-trackSkill
- product-pageSkill
- project-reviewSkill
- project-runSkill
- project-scaffoldingSkill
- quality-assuranceSkill
- quality-metricsSkill
- record-decisionSkill
- review-fixSkill
- roadmap-managementSkill
- sales-cycleSkill
- specorator-designSkill
- specorator-improvementSkill
- specorator-onboardSkill
- stock-takingSkill
- tackle-issueSkill
- tdd-cycleSkill
- token-budget-reviewSkill
- tracer-bulletSkill
- ubiquitous-languageSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
After Pocock's domain-model skill and Evans's bounded-context concept.
- Very specific: line 75
New term coined?: Write inline to Core concepts.
- Very specific: line 77
New invariant discovered?: Write a draft entry to Invariants and flag for the orchestrator — return a one-line [CONTEXT-CONFIRM] new …
- Very specific: line 79
Update Last updated and by in the file you actually wrote to (not the wrong layout's file).
- Very specific: line 84
Run a grill session focused on the current state of CONTEXT.md:
- Distinctive: line 87
Update inline as decisions resolve.
- Very specific: line 91
Lazy creation: Don't pre-scaffold docs/CONTEXT.md.
- Distinctive: line 92
Additive updates: Don't rewrite history; document changes in workflows or ADRs.
- Distinctive: line 93
Plain language: Avoid framework names, design patterns, or implementation details.
- Very specific: line 94
One source of truth: If a concept appears here and in docs/glossary/, the glossary is authoritative for definitions.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Domain context
After Pocock's domain-model skill and Evans's bounded-context concept. docs/CONTEXT.md is a single page that tells any new agent (or human) what the system is about. It evolves additively across workflows.
File layout
Single-context project
docs/CONTEXT.mdMulti-context project (microservices, multi-product, etc.)
docs/CONTEXT-MAP.md # the relationships between contexts
docs/contexts/<name>.md # one file per bounded contextThe orchestrator decides single vs multi by counting distinct domains in docs/steering/product.md. Default is single until evidence suggests otherwise.
CONTEXT.md format
# Domain context
_Last updated: <YYYY-MM-DD> by <agent>_
## What the system is
One paragraph. Plain language. The shape of the thing, not its features.
## Users and their goals
Bulleted list. Who uses it, what they're trying to do, what success looks like.
## Bounded contexts
| Context | Owns | Talks to | Doesn't talk to |
|---|---|---|---|
| <name> | <data + behavior> | <other contexts> | <forbidden> |
(Single-context projects can omit this section.)
## Core concepts
Short glossary of the load-bearing nouns. **Bold** the term, then a one-line definition. Cross-link to the per-term files in [`docs/glossary/`](../../../docs/glossary/) for fuller definitions.
## Invariants
Numbered list of things that must always be true. These are non-negotiable; violations are bugs.
## Open questions
Bulleted list. Things the team hasn't resolved yet. Each links to a workflow or ADR if applicable.Procedure
When invoked from a stage agent (typical)
Stage agents run inside subagent contexts and cannot call AskUserQuestion (per the orchestrator contract in .claude/skills/orchestrate/SKILL.md). High-confidence, low-risk updates can be written inline; anything that needs human confirmation must be deferred to the main thread.
- Detect mode and target file. Single-context vs. multi-context is determined by what already exists on disk:
- If
docs/CONTEXT-MAP.mdexists, this repo is in multi-context mode. Determine which bounded context the agent's update belongs to (cite it explicitly — if the agent didn't, ask via the[CONTEXT-CONFIRM]flag pattern below). The target file isdocs/contexts/<name>.mdfor context-scoped updates, ordocs/CONTEXT-MAP.mdfor cross-context relationships. Never write todocs/CONTEXT.mdin multi-context mode — it should not exist. - Else if
docs/CONTEXT.mdexists, this repo is in single-context mode; that file is the target. - Else (no context file exists yet), default to single-context mode and scaffold
docs/CONTEXT.mdfrom the template above. To switch later to multi-context, the architect files an ADR migrating the file (lazy migration:docs/CONTEXT.md→docs/CONTEXT-MAP.mdplus a per-context split).
- If
- Diff what the agent reports against the current map:
- New term coined? Write inline to
Core concepts. - Open question resolved? Move from
Open questionsto wherever the answer landed (typicallyCore conceptsorInvariants). - New invariant discovered? Write a draft entry to
Invariantsand flag for the orchestrator — return a one-line[CONTEXT-CONFIRM] new invariant: <text>line in the agent's summary. The orchestrator will run a singleAskUserQuestionin the main thread and finalize. - Context boundary changed? Same flag pattern — write the proposed change inline (or stage it as a code-fenced block in the agent's summary) and return
[CONTEXT-CONFIRM] boundary change: <text>for the orchestrator to confirm. Do not callAskUserQuestionfrom the subagent.
- New term coined? Write inline to
- Update
Last updatedandbyin the file you actually wrote to (not the wrong layout's file). - Append a dated one-line entry to the active feature's
workflow-state.md## Hand-off notesfree-form section noting which context file was updated (no frontmatter additions — the schema is fixed).
When invoked directly by the user
Run a grill session focused on the current state of CONTEXT.md:
- Walk each section asking "is this still true? is this still complete?"
- Update inline as decisions resolve.
Rules
- Lazy creation. Don't pre-scaffold
docs/CONTEXT.md. Wait until something needs to land in it. - Additive updates. Don't rewrite history; document changes in workflows or ADRs.
- Plain language. Avoid framework names, design patterns, or implementation details. The map is about the domain, not the system that serves it.
- One source of truth. If a concept appears here and in
docs/glossary/, the glossary is authoritative for definitions; CONTEXT.md cross-links and uses the term. Per ADR-0010 the glossary is one file per term. - Don't dump. A 5-page CONTEXT.md is a sign the domain isn't actually understood. Keep it ≤2 pages.
Relationship to steering files
docs/steering/product.md is prescriptive ("we are building X for Y"). docs/CONTEXT.md is descriptive ("here is what the system actually is and the terms we use about it"). They co-exist; updates to one don't auto-propagate to the other.
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.

