Skip to content
Back to skills

Brain

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
  • 5 views
  • Added October 14, 2026
ai-agentsgogitsecurity

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Brain?

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

Security grade badge for Brain
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-brain-5a28a5b7/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-brain-5a28a5b7)

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.
triggers: [working memory, scratchpad, context too large, mixed up variables, re-anchor the goal]
tags: [brain]
context_cost: low
tools: [read_file, write_to_file]
---
# 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.

Files in this skill

  • README.md3.8 KB
  • active-inference.skill.md4.4 KB
  • brain-mode.skill.md8.5 KB
  • cognitive-architectures.skill.md3.3 KB
  • cognitive-testing.skill.md5.2 KB
  • consciousness-loop.skill.md3.8 KB
  • cost-benefit-router.skill.md6.2 KB
  • episodic-consolidation.skill.md3.6 KB
  • epistemology-knowledge.skill.md4 KB
  • global-workspace.skill.md3.8 KB
  • learning-adaptation.skill.md5.2 KB
  • loki-mode.skill.md15.9 KB
  • neuroscience-foundations.skill.md3.8 KB
  • scripts/active_inference_loop.py2.6 KB
  • scripts/cognition_test.py2.2 KB
  • scripts/global_workspace.py2.8 KB
  • self-improvement.skill.md5.7 KB
  • sensory-motor.skill.md4 KB
  • sequential-thinking.skill.md3.9 KB
  • working-memory.skill.md4.2 KB

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.