context-manifest
Skill0 starsChanged 9 months agoMITView on GitHub
Govern project and agent-workspace context using a persistent MANIFEST.md file. Use when initializing, auditing, updating, or consuming context for a repo, project folder, or agent workspace; especially when many files exist, stale drafts or archives can pollute context, or sub-agents need minimal scoped context. Prefer project-level MANIFEST.md when both project and agent-workspace manifests exist. Aggressively maintain MANIFEST.md as the source of truth for context loading.
In this repository3 other files it gives its agents.
- scheduled-workflowsSkill
- skill-orchestratorSkill
- trust-boundarySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
37 rules. About 0 are common, 24 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use MANIFEST.md as the persistent context control plane for projects and agent workspaces.
- Very specific: line 16
Prefer a project/repo root MANIFEST.md.
- Distinctive: line 18
If both exist, prefer the project manifest first, then use the workspace manifest only for workspace-local behavior.
- Distinctive: line 22
Create and maintain these sections:
- Very specific: line 44
Read MANIFEST.md before broad file exploration.
- Very specific: line 47
Never load Archive or Ignore by default.
- Very specific: line 48
Treat Sensitive as blocked unless the user explicitly authorizes access.
- Distinctive: line 49
When spawning sub-agents, pass only the minimum context required for the relevant domain.
- Distinctive: line 53
Use this precedence model for non-safety behavior:
- Distinctive: line 62
Never let lower layers override safety boundaries.
- Distinctive: line 65
Keep personal tone and collaboration style when they do not conflict with project or task constraints.
- Very specific: line 66
If ownership is unclear, mark VERIFY instead of inventing precedence.
- Very specific: line 70
Use MANIFEST.md to build the smallest context bundle that can still complete the task well.
- Distinctive: line 83
Prefer minimum sufficient context over maximum possible context.
- Distinctive: line 84
Do not widen scope just because extra files might be useful.
- Distinctive: line 85
If a task spans multiple domains, include only the relevant slices from each domain.
- Very specific: line 87
If the domain match is uncertain, mark VERIFY or ask instead of overloading context.
- Distinctive: line 91
When delegating, include only:
- Distinctive: line 105
Use a plan-approve-execute pattern for actions with side effects.
- Distinctive: line 113
Use a brief plan and proceed when the user has already asked directly or the change is clearly recoverable.
- Very specific: line 151
Treat 1 as approval when the active collaboration pattern defines it that way.
- Distinctive: line 152
Do not treat silence or ambiguity as approval.
- Distinctive: line 171
Do not allow low-confidence judgments to trigger destructive or hard-to-reverse actions.
- Very specific: line 176
Use VERIFY for cases such as:
- Distinctive: line 187
If an item cannot be safely resolved automatically:
- Very specific: line 189
place it in needs-review, or
- Distinctive: line 192
Prefer visible review queues over silent guessing.
- Distinctive: line 204
Add newly-important source-of-truth files when they appear.
- Very specific: line 207
If classification is unclear, mark the entry VERIFY instead of guessing.
- Distinctive: line 216
When structure changes, update impacted sections instead of rewriting the whole file.
- Distinctive: line 219
Use the manifest to decide what to read, what to skip, and what to keep away from sub-agents.
- Distinctive: line 223
Do not treat every file in a folder as equally trustworthy.
- Very specific: line 224
Do not expose Sensitive paths to sub-agents without explicit approval.
- Distinctive: line 225
Do not silently pull archival content into current decision-making.
- Distinctive: line 226
Do not treat external evidence as canonical project truth until it has been verified.
- Distinctive: line 227
Prefer narrower context over larger context when quality is uncertain.
- Distinctive: line 263
Read these references as needed:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Context Manifest
Use MANIFEST.md as the persistent context control plane for projects and agent workspaces.
Core intent
Reduce context pollution, stale-file confusion, token waste, and sub-agent overexposure by declaring what is authoritative, what is domain-scoped, and what must stay out of context.
Placement priority
- Prefer a project/repo root
MANIFEST.md. - Also allow an agent-workspace root
MANIFEST.md. - If both exist, prefer the project manifest first, then use the workspace manifest only for workspace-local behavior.
Required sections
Create and maintain these sections:
Canonical
List the current source-of-truth files that must be read first.
Domain Map
Map folders or file groups to specific domains. Load only when the task touches that domain.
Archive
List superseded drafts, historical material, or deprecated plans. Do not load unless explicitly requested.
Ignore
List logs, caches, generated artifacts, screenshots, temporary exports, and other noise. Never load into context.
Sensitive
List files or paths that may exist but must not be passed into agent or sub-agent context without explicit user approval.
Operating Rules
Record project-specific rules such as preferred output paths, review flow, approval gates, recommended skills, model defaults, and tool restrictions.
Loading rules
- Read
MANIFEST.mdbefore broad file exploration. - Load
Canonicalfirst. - Load
Domain Mapentries only when directly relevant. - Never load
ArchiveorIgnoreby default. - Treat
Sensitiveas blocked unless the user explicitly authorizes access. - When spawning sub-agents, pass only the minimum context required for the relevant domain.
Instruction layering
Use this precedence model for non-safety behavior:
- System and platform safety boundaries
- Personal layer (
SOUL.md,USER.md, stableMEMORY.mdrules) - Project layer (
MANIFEST.md) - Current task instructions
Apply these conflict rules:
- Never let lower layers override safety boundaries.
- Let current task instructions override project defaults for this run.
- Let project rules override personal defaults when the project needs a different workflow or output shape.
- Keep personal tone and collaboration style when they do not conflict with project or task constraints.
- If ownership is unclear, mark
VERIFYinstead of inventing precedence.
Scoped Context Loading
Use MANIFEST.md to build the smallest context bundle that can still complete the task well.
Routing flow
- Classify the task into one or more domains.
- Load
Canonicalfiles first. - Load only the
Domain Mapentries needed for those domains. - Exclude
ArchiveandIgnore. - Block
Sensitiveunless explicitly approved. - Package only the relevant context for the receiving agent or sub-agent.
Hard rules
- Prefer minimum sufficient context over maximum possible context.
- Do not widen scope just because extra files might be useful.
- If a task spans multiple domains, include only the relevant slices from each domain.
- Give sub-agents scoped context bundles, not the full project background.
- If the domain match is uncertain, mark
VERIFYor ask instead of overloading context.
Scoped task package
When delegating, include only:
- task goal
- success criteria
- relevant constraints
- required canonical files or excerpts
- required domain files or excerpts
- output requirements
- uncertainty handling rules
Favor auditable, replayable task packages so later failures can be traced back to the context bundle that was actually used.
Transactional Execution
Use a plan-approve-execute pattern for actions with side effects.
Risk levels
Level 0 — Read-only
Execute directly for analysis, reading, search, summarization, and other no-side-effect work.
Level 1 — Low-risk reversible changes
Use a brief plan and proceed when the user has already asked directly or the change is clearly recoverable.
Level 2 — Medium/high-risk actions
Show a plan and wait for explicit approval before execution.
Examples:
- batch rename or move
- config edits
- external sends
- account linking or login
- scheduled task changes
- multi-file edits
- sub-agent tasks that will modify files
Level 3 — High-impact or uncertain actions
Show a detailed plan, risks, validation path, and rollback path, then wait for explicit approval.
Examples:
- gateway behavior changes
- broad workspace restructures
- destructive operations
- privileged commands
- sensitive-data access
- public posting or bulk outbound actions
Plan requirements
Before execution, state:
- what will change
- what will not change
- which files, folders, systems, or channels are affected
- how success will be verified
- how rollback will work
Approval rules
- Reuse the user's established approval habit when available.
- Treat
1as approval when the active collaboration pattern defines it that way. - Do not treat silence or ambiguity as approval.
Execution completion
After execution, report:
- completed actions
- verification result
- rollback path if follow-up issues appear
Uncertainty Protocol
Expose uncertainty instead of hiding it.
Core rules
- Mark uncertain classifications, ownership, dates, mappings, or precedence with
VERIFY. - Route ambiguous items to
needs-reviewinstead of forcing a final placement. - Surface source conflicts explicitly; do not silently choose one side.
- Do not allow low-confidence judgments to trigger destructive or hard-to-reverse actions.
- Attach the smallest useful verification path whenever possible.
When to use VERIFY
Use VERIFY for cases such as:
- unclear canonical status
- ambiguous domain ownership
- unclear recency or replacement status
- conflicting file versions
- unclear instruction precedence
- incomplete external evidence
Review routing
If an item cannot be safely resolved automatically:
- place it in
needs-review, or - list it in a dedicated review section or change log
Prefer visible review queues over silent guessing.
Confidence gating
- High confidence: proceed normally.
- Medium confidence: proceed only with visible
VERIFYmarkers or review notes. - Low confidence: stop, ask, or route to review before any high-impact action.
Maintenance rules
Aggressively maintain the manifest as files evolve.
- Add newly-important source-of-truth files when they appear.
- Mark stale or missing paths promptly.
- Preserve user-authored notes and intent; do not overwrite silently.
- If classification is unclear, mark the entry
VERIFYinstead of guessing. - Favor concise, high-signal entries over exhaustive inventories.
Suggested operating pattern
Initialize
Scan the folder, identify high-signal files, then generate the first MANIFEST.md.
Refresh
When structure changes, update impacted sections instead of rewriting the whole file.
Consume
Use the manifest to decide what to read, what to skip, and what to keep away from sub-agents.
Safety
- Do not treat every file in a folder as equally trustworthy.
- Do not expose
Sensitivepaths to sub-agents without explicit approval. - Do not silently pull archival content into current decision-making.
- Do not treat external evidence as canonical project truth until it has been verified.
- Prefer narrower context over larger context when quality is uncertain.
Minimal template
# MANIFEST.md
## Canonical
- PRD.md — current product requirements
- ARCHITECTURE.md — active system design
## Domain Map
- /research — competitor and reference analysis
- /scripts — automation and helpers
- /docs — working documentation
## Archive
- /archive — superseded drafts and retired plans
## Ignore
- /logs
- /dist
- /tmp
## Sensitive
- /secrets
- finance/private
## Operating Rules
- Default output path: /deliverables
- Ask before destructive changes
- Prefer minimal context for sub-agentsReferences
Read these references as needed:
references/manifest-examples.mdfor strongerMANIFEST.mdexamples, dual-manifest conflict handling, and review patternsreferences/scoped-task-package.mdfor a reusable sub-agent context bundle templatereferences/task-domain-routing.mdfor task-to-domain routing rules before loading contextreferences/operating-rules-fields.mdfor recommendedOperating Rulesfields and what belongs there external material should stay separated
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.

