agentleFS
stephenroganstephenrogan/leadership-skills/skills/context-memory-ops/SKILL.md

context-memory-ops

Skill1 starsChanged 6 months agoMITView on GitHub

Designs context, memory, and knowledge flows for agent-managed work: what agents should know, retrieve, remember, forget, cite, and never store. Use when agent quality depends on durable context, sensitive information boundaries, or cross-session continuity.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 10 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to support the leader as Context and memory steward in a mega-manager operating model.

    line 18
  2. Distinctive:

    Run this skill when:

    line 24
  3. Distinctive:

    Do not use this skill to bypass judgment, accountability, security, privacy, HR, legal, customer approval, or executive decision rights.

    line 30
  4. Distinctive:

    If key inputs are missing, label assumptions and confidence.

    line 41
  5. Distinctive:

    Create rules for what to remember, cite, update, and forget

    line 49
  6. Distinctive:

    Add staleness checks and conflict resolution paths

    line 50
  7. Distinctive:

    Document privacy, retention, and audit requirements

    line 51
  8. Distinctive:

    Always finish by making the control loop visible: owner, current state, review point, approval boundary, and kill/rollback rule where …

    line 53
  9. Distinctive:

    Do not store secrets, temporary task state, or sensitive personal details without policy

    line 100
  10. Distinctive:

    Do not let stale memory override live evidence

    line 101
  11. Very specific:

    Stop for explicit approval before granting access, increasing autonomy, sending external messages, making people/customer/financial/legal …

    line 104

≈ “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 Memory Ops

Overview

Use this skill to support the leader as Context and memory steward in a mega-manager operating model. A memory architecture that gives agents useful continuity without privacy leaks or stale-context drift.

A mega manager is not a person who passively supervises more humans. It is a leader who manages a portfolio of humans, AI agents, workflows, memory, tools, evals, and approval gates. The agent expands span of control only when the operating system is legible, governed, and reviewable.

When to Use

Run this skill when:

  • Agents keep losing context or repeating old mistakes
  • Sensitive context may be leaking into outputs or memory
  • Knowledge sources are fragmented, stale, or overloaded

Do not use this skill to bypass judgment, accountability, security, privacy, HR, legal, customer approval, or executive decision rights.

Inputs

Gather:

  • Knowledge sources and data sensitivity levels
  • Recurring workflows and context requirements
  • Memory policies, retention rules, and deletion needs
  • Known stale docs, contradictions, and source-of-truth systems

If key inputs are missing, label assumptions and confidence. Do not invent tools, access, facts, policies, or authority.

Workflow

Follow this sequence:

  1. Classify context into task input, durable memory, reference knowledge, and forbidden memory
  2. Define source of truth and retrieval order for each workflow
  3. Create rules for what to remember, cite, update, and forget
  4. Add staleness checks and conflict resolution paths
  5. Document privacy, retention, and audit requirements

Always finish by making the control loop visible: owner, current state, review point, approval boundary, and kill/rollback rule where relevant.

Output Format

Use this structure:

# Context Memory Ops

## Objective
[What system, workflow, agent, or team capability is being designed or reviewed.]

## Current State
- Humans:
- Agents/workflows:
- Tools/data:
- Risks/unknowns:

## Design or Review
[The architecture, brief, review, command center, governance plan, eval suite, or backlog.]

## Autonomy and Approval Boundaries
- Agent may:
- Agent must not:
- Human approval required for:

## Verification
- Acceptance criteria:
- Evidence required:
- Review cadence:
- Kill/rollback trigger:

Expected deliverables:

  • Context architecture
  • Memory policy
  • Source-of-truth map
  • Staleness and conflict rules
  • Sensitive-data guardrails

See assets/output-template.md for a reusable version.

Human Decision Boundary

The agent may prepare, structure, evaluate, monitor, and recommend. The human leader owns final decisions, accountability, and risk acceptance. The agent must not cross these boundaries:

  • Do not store secrets, temporary task state, or sensitive personal details without policy
  • Do not let stale memory override live evidence
  • Human/system owner approves memory and retention rules

Stop for explicit approval before granting access, increasing autonomy, sending external messages, making people/customer/financial/legal commitments, changing production systems, or retaining sensitive memory.

Quality Bar

A strong output for this skill:

  • Makes the human-agent operating model more legible, not more magical.
  • Names owner, state, authority, review cadence, and failure response.
  • Uses evidence and acceptance criteria instead of vibes.
  • Reduces managerial drag without eroding accountability.
  • Includes safety boundaries appropriate to autonomy level and data sensitivity.
  • Creates reusable artifacts a leader can run repeatedly.

Failure Modes

Watch for these mistakes:

  • Treating agents as employees with intent instead of systems with failure modes.
  • Scaling autonomy before evals, logging, approval gates, and rollback exist.
  • Creating invisible work that nobody owns or reviews.
  • Confusing polished output with verified output.
  • Adding more agents when the real problem is unclear workflow ownership.

References

  • Retrieval-augmented generation and source-of-truth patterns
  • Agent Skills progressive disclosure
  • Privacy-by-design and data minimization principles

For the shared methodology spine, see ../../docs/SOURCE-SPINE.md.

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.