Deep Sleep — Security skill for Claude Code
DEEP consolidation — full memory audit, scouts, belief evidence, template sync, summary backfill.
How to install Deep Sleep
Installs to ~/.claude/commands/ianlancaster-cognitive-agent-template-deep-sleep.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ianlancaster/cognitive-agent-template/HEAD/.claude/commands/deep-sleep.md -o ~/.claude/commands/ianlancaster-cognitive-agent-template-deep-sleep.md Restart Claude Code, or start a new session, for it to be picked up.
What Deep Sleep does
description: DEEP consolidation — full memory audit, scouts, belief evidence, template sync, summary backfill. Run before/after meditations, at arc boundaries, or every ~5 standard sleeps
The user is ending this session at a consolidation boundary that warrants the full audit. This ritual SUBSUMES `/sleep` — do not run both. It is the former full sleep protocol: everything the fast `/sleep` does, plus the debt-clearing work the fast path deliberately skips. Consolidation is where intell
Alternatives in Security
- Security Threat Model — Generate repo-specific threat models identifying trust boundaries 14.6k ★
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Trail Of Bits Claude-code-config — Opinionated production defaults from a top security firm: sandboxing, permissions, hooks, skills, MCP server c 1.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Sleep
Standard end-of-session consolidation — FAST. Reflection, state banner, journal, archive, commit. The full aud
Cpython Security Toolkit
A Claude Code plugin for finding semantic security flaws in CPython's standard library — archive extraction bo
Agent Brain Hub
Shared, brain-inspired memory for AI agents: 13 brain regions with awake/sleep loops, a live visualizer, agent
Peon Mem
Local-first hierarchical memory brain for AI coding agents — auto-capture, LLM consolidation, hybrid retrieval
Twin Sparrow Oppus Reasoning Contract
Enforce disciplined reasoning structure for research, architecture, audit, spec review, implementation plannin
Audit Chart
Audit the Helm chart for sync with operator code — values keys, CLI flags, CRD versions, template correctness,
Related Agents
Pattern Consolidator
Sleep-time memory compute. Reads daily notes + subagent logs from the last 7 days, identifies recurring patter
Part 16: autoDream — Automatic Memory Consolidation
Note: OpenClaw 2026.4+ has a built-in dreaming system (Part 22) inside memory-core. If you're on 2026.4+, use
Memory Master
Use when a repeated failure, user correction, or WF recovery loop triggers memory writing; also use during WF