agentleFS
ziiinianziiinian/openclaw-governance-skill-suite/skills/context-manifest/SKILL.md

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.

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
  1. Very specific:

    Use MANIFEST.md as the persistent context control plane for projects and agent workspaces.

    line 8
  2. Very specific:

    Prefer a project/repo root MANIFEST.md.

    line 16
  3. Distinctive:

    If both exist, prefer the project manifest first, then use the workspace manifest only for workspace-local behavior.

    line 18
  4. Distinctive:

    Create and maintain these sections:

    line 22
  5. Very specific:

    Read MANIFEST.md before broad file exploration.

    line 44
  6. Very specific:

    Never load Archive or Ignore by default.

    line 47
  7. Very specific:

    Treat Sensitive as blocked unless the user explicitly authorizes access.

    line 48
  8. Distinctive:

    When spawning sub-agents, pass only the minimum context required for the relevant domain.

    line 49
  9. Distinctive:

    Use this precedence model for non-safety behavior:

    line 53
  10. Distinctive:

    Never let lower layers override safety boundaries.

    line 62
  11. Distinctive:

    Keep personal tone and collaboration style when they do not conflict with project or task constraints.

    line 65
  12. Very specific:

    If ownership is unclear, mark VERIFY instead of inventing precedence.

    line 66
  13. Very specific:

    Use MANIFEST.md to build the smallest context bundle that can still complete the task well.

    line 70
  14. Distinctive:

    Prefer minimum sufficient context over maximum possible context.

    line 83
  15. Distinctive:

    Do not widen scope just because extra files might be useful.

    line 84
  16. Distinctive:

    If a task spans multiple domains, include only the relevant slices from each domain.

    line 85
  17. Very specific:

    If the domain match is uncertain, mark VERIFY or ask instead of overloading context.

    line 87
  18. Distinctive:

    When delegating, include only:

    line 91
  19. Distinctive:

    Use a plan-approve-execute pattern for actions with side effects.

    line 105
  20. Distinctive:

    Use a brief plan and proceed when the user has already asked directly or the change is clearly recoverable.

    line 113
  21. Very specific:

    Treat 1 as approval when the active collaboration pattern defines it that way.

    line 151
  22. Distinctive:

    Do not treat silence or ambiguity as approval.

    line 152
  23. Distinctive:

    Do not allow low-confidence judgments to trigger destructive or hard-to-reverse actions.

    line 171
  24. Very specific:

    Use VERIFY for cases such as:

    line 176
  25. Distinctive:

    If an item cannot be safely resolved automatically:

    line 187
  26. Very specific:

    place it in needs-review, or

    line 189
  27. Distinctive:

    Prefer visible review queues over silent guessing.

    line 192
  28. Distinctive:

    Add newly-important source-of-truth files when they appear.

    line 204
  29. Very specific:

    If classification is unclear, mark the entry VERIFY instead of guessing.

    line 207
  30. Distinctive:

    When structure changes, update impacted sections instead of rewriting the whole file.

    line 216
  31. Distinctive:

    Use the manifest to decide what to read, what to skip, and what to keep away from sub-agents.

    line 219
  32. Distinctive:

    Do not treat every file in a folder as equally trustworthy.

    line 223
  33. Very specific:

    Do not expose Sensitive paths to sub-agents without explicit approval.

    line 224
  34. Distinctive:

    Do not silently pull archival content into current decision-making.

    line 225
  35. Distinctive:

    Do not treat external evidence as canonical project truth until it has been verified.

    line 226
  36. Distinctive:

    Prefer narrower context over larger context when quality is uncertain.

    line 227
  37. Distinctive:

    Read these references as needed:

    line 263

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Prefer a project/repo root MANIFEST.md.
  2. Also allow an agent-workspace root MANIFEST.md.
  3. 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

  1. Read MANIFEST.md before broad file exploration.
  2. Load Canonical first.
  3. Load Domain Map entries only when directly relevant.
  4. Never load Archive or Ignore by default.
  5. Treat Sensitive as blocked unless the user explicitly authorizes access.
  6. When spawning sub-agents, pass only the minimum context required for the relevant domain.

Instruction layering

Use this precedence model for non-safety behavior:

  1. System and platform safety boundaries
  2. Personal layer (SOUL.md, USER.md, stable MEMORY.md rules)
  3. Project layer (MANIFEST.md)
  4. 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 VERIFY instead of inventing precedence.

Scoped Context Loading

Use MANIFEST.md to build the smallest context bundle that can still complete the task well.

Routing flow

  1. Classify the task into one or more domains.
  2. Load Canonical files first.
  3. Load only the Domain Map entries needed for those domains.
  4. Exclude Archive and Ignore.
  5. Block Sensitive unless explicitly approved.
  6. 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 VERIFY or 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:

  1. what will change
  2. what will not change
  3. which files, folders, systems, or channels are affected
  4. how success will be verified
  5. how rollback will work

Approval rules

  • Reuse the user's established approval habit when available.
  • Treat 1 as approval when the active collaboration pattern defines it that way.
  • Do not treat silence or ambiguity as approval.

Execution completion

After execution, report:

  1. completed actions
  2. verification result
  3. rollback path if follow-up issues appear

Uncertainty Protocol

Expose uncertainty instead of hiding it.

Core rules

  1. Mark uncertain classifications, ownership, dates, mappings, or precedence with VERIFY.
  2. Route ambiguous items to needs-review instead of forcing a final placement.
  3. Surface source conflicts explicitly; do not silently choose one side.
  4. Do not allow low-confidence judgments to trigger destructive or hard-to-reverse actions.
  5. 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 VERIFY markers 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.

  1. Add newly-important source-of-truth files when they appear.
  2. Mark stale or missing paths promptly.
  3. Preserve user-authored notes and intent; do not overwrite silently.
  4. If classification is unclear, mark the entry VERIFY instead of guessing.
  5. 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 Sensitive paths 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-agents

References

Read these references as needed:

  • references/manifest-examples.md for stronger MANIFEST.md examples, dual-manifest conflict handling, and review patterns
  • references/scoped-task-package.md for a reusable sub-agent context bundle template
  • references/task-domain-routing.md for task-to-domain routing rules before loading context
  • references/operating-rules-fields.md for recommended Operating Rules fields and what belongs there external material should stay separated

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.