Skip to content
Back to skills

Controlflow Memory Hygiene

ASecurity

Use when work spans many turns or phases and you need durable notes, active-objective tracking, or context compaction without letting stale memory override the current codebase.

  • 13 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added May 27, 2026
data-ai

Security analysis

A100/100

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

Scanned September 6, 2026

npx -y skills add Smithbox-ai/ControlFlow --skill controlflow-memory-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Controlflow Memory Hygiene?

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

Security grade badge for Controlflow Memory Hygiene
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smithbox-ai-controlflow-memory-hygiene/badge)](https://www.skillsdirectory.com/skills/smithbox-ai-controlflow-memory-hygiene)

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: controlflow-memory-hygiene
description: "Use when work spans many turns or phases and you need durable notes, active-objective tracking, or context compaction without letting stale memory override the current codebase."
---

# ControlFlow Memory Hygiene

## Overview

Keep useful memory without letting it rot into hallucinated certainty. This skill ports ControlFlow's layered memory model into a lightweight Codex workflow for long-running tasks.

## Workflow

1. Separate memory into three layers:
   - session scratch for temporary reasoning
   - task artifact for plan and implementation history
   - repo-persistent note for stable cross-task facts
2. Put ephemeral reasoning in session notes or the active plan artifact. Only stable cross-task facts belong in persistent memory.
3. Re-verify any file, function, or test claim taken from memory before acting on it or reporting it.
4. Update the active objective only at phase boundaries or major state changes.
5. Keep the repo-persistent note terse: current objective, current phase, blockers, and decisions that are still active.
6. Prune stale entries aggressively using [references/prune-checklist.md](references/prune-checklist.md). If a note is superseded, delete or rewrite it instead of stacking contradictions.
7. If the user asks for fresh context or says to ignore memory, do not consult or update persistent notes on that turn.
8. Prefer additive artifacts in repo paths over bloated chat summaries.

## Common Mistakes

- Treating memory as stronger evidence than the current repository state.
- Storing task-specific churn in repo-persistent notes.
- Letting NOTES-like files become a second plan document.
- Updating durable notes before a phase outcome is actually verified.

## References

- `references/memory-layers.md`
- `references/notes-template.md`
- `references/prune-checklist.md`

Files in this skill

  • SKILL.md1.9 KB
  • references/memory-layers.md522 B
  • references/notes-template.md217 B
  • references/prune-checklist.md404 B

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.

Comments

Loading comments…

Newsletter

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