Skip to content
Back to skills

Working Memory

ASecurity

Moves task state into a scratchpad in small chunks and re-anchors the goal. Use when a task exceeds the context or variables from different modules get mixed up.

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 11, 2026
ai-agentsgogitsecurity

Security analysis

A100/100

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill working-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Working Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Working Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-working-memory/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-working-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: working-memory
description: "Moves task state into a scratchpad in small chunks and re-anchors the goal. Use when a task exceeds the context or variables from different modules get mixed up."
license: CC-BY-SA-4.0
metadata:
  source: "agents/skills/brain/working-memory.skill.md"
  tags: "brain"
  core: "false"
  context_cost: "low"
---
# Working Memory Skill

## Goal
Use this skill when handling complex tasks that exceed the "cognitive load" (context window) or require holding multiple variables in mind.

## Steps
## 1. Cognitive Chunking
Don't read entire files. Chunk information into "Cognitive Units".
*   **Rule:** Max 4-7 chunks active at once (Miller's Law).
*   **Action:** Create a scratchpad file (`.scratchpad.md`) to offload chunks.

## 2. Attention Mechanism
Explicitly define what you are "attending" to.
*   **Focus:** "I am currently attending to the `UserAuth` function."
*   **Inhibition:** "I am actively ignoring the `Billing` module to prevent interference."

## 3. Refresh Rehearsal
To keep data in working memory, you must "rehearse" it using the `task_boundary` tool summary.
*   *After every 5 tool calls:* Summarize the current state variables.

## 4. Interference Management
If you feel "confused" or hallucinate:
1.  **Flush:** Empty `.scratchpad.md` (your own file only); copy anything you still need into the task notes first.
2.  **Reload:** Re-read *only* the critical chunk.
3.  **Anchor:** Write down the immediate goal, copied from the user's request, not from your summary of it.

## Constraints
- Keep at most 4 to 7 chunks active.
- Check critical values (permissions, authentication state) against the source, not against your summary.

## Output Format
`.scratchpad.md` with one section per chunk, plus a "Goal" line at the top.

## Limits and safety
- `.scratchpad.md` holds working notes only: no secrets or personal data. Add it to `.gitignore` and delete it at the end of the task.
- Re-read security-relevant values (authenticated, permissions) from the source; never carry them in a summary.
- After a flush, re-read the original user request, not your summary of it.
- A summary written every few calls is a guess about state; check critical values against the file.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.