evanflow-brainstorming
Clarify intent, propose 2-3 approaches, embedded grill to stress-test the chosen path. Use before any creative work — new…
Manage long-session context to prevent drift and degradation. Strategies for proactive summarization, branch isolation, and /clear decisions. Invoke when context feels heavy, when accuracy starts slipping, or proactively after a major phase boundary. Addresses the #1 cause of
$ npx -y skills add evanklem/evanflow --skill evanflow-compact --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/evanflow-compactContext preview
The summary Claude sees to decide when to auto-load this skill.
Manage long-session context to prevent drift and degradation. Strategies for proactive summarization, branch isolation, and /clear decisions. Invoke when context feels heavy, when accuracy starts slipping, or proactively after a major phase boundary. Addresses the #1 cause of
name: evanflow-compact description: Manage long-session context to prevent drift and degradation. Strategies for proactive summarization, branch isolation, and /clear decisions. Invoke when context feels heavy, when accuracy starts slipping, or proactively after a major phase boundary. Addresses the #1 cause of agent failure (context drift, ~65% of enterprise AI failures per 2025 industry research).
**Why this exists:** Context drift kills agents before context limits do. Industry research found ~65% of enterprise AI failures in 2025 traced to context drift or memory loss in multi-step reasoning, NOT raw token exhaustion. The agent's ability to reason degrades as context fills with stale, redundant, or contradictory information — long before the hard token limit.
See `evanflow` meta-skill. Specific to this skill:
Trigger this skill when ANY of these are true:
**SKIP when:** the session is short, focused, and progressing without drift symptoms. Compaction has cost (loses fidelity); only invoke when the cost of NOT compacting is higher.
When a major phase just finished cleanly:
1. Identify anchors: what files, decisions, and open questions must survive? List them explicitly. 2. Author a compaction summary in the conversation as a markdown block titled `## Phase Summary (compaction anchor)`. Include:
3. Tell the user: "I'm at a clean boundary. Want me to compact context here? You can `/clear` and re-orient from this summary + the saved memory." 4. If user says yes → they `/clear`, then start the next phase fresh with the summary in front of them.
When the session is heavy and the next move is unclear:
1. Audit what's been learned that ISN'T already in memory or files. Anything important? 2. Save those things to memory (`~/.claude/projects/<project>/memory/*.md`) as appropriate types (user / feedback / project / reference). 3. Save any in-progress thinking to a plan file or a scratch doc. 4. Tell the user: "Important state is now persisted in memory + `<files>`. Recommend `/clear` and re-engage fresh."
When a side-quest emerges that's unrelated to the main thread:
1. Don't pull it into this session. Tell the user: "This is a separate concern from `<main thread>`. Recommend handling it in a fresh session — your context will stay clean and the side-quest gets full attention." 2. If the user wants to do it now anyway, save the main-thread state per Strategy 2 first, then proceed.
When drift symptoms appear and you can't reach a clean boundary:
1. Stop the current task. 2. Audit what's been established that's still relevant. Discard the rest mentally. 3. Author an explicit "current state" block in the conversation summarizing only the live concerns. 4. Continue from there, referencing the new summary as the truth.
This is less effective than proactive compaction — use only when needed.
Watch for these. Each is a signal to consider compaction:
If 2+ symptoms in the last few turns, invoke this skill.
A TDD-driven iterative feedback loop for software development with Claude Code. 16 cohesive skills + 2 custom subagents walk an idea from brainstorm through implementation, with checkpoints throughout where you stay in control.
Clarify intent, propose 2-3 approaches, embedded grill to stress-test the chosen path. Use before any creative work — new…
Orchestrate parallel implementation with coder/overseer pairs. Coders implement decomposed tasks using evanflow-tdd; overseers…
Root-cause discipline for bugs, test failures, and unexpected behavior. Embedded grill on the hypothesis before writing fix code.…
Design a module's interface using parallel sub-agents producing radically different designs ("design it twice"). Compare on…
Execute a written implementation plan task-by-task with inline verification. Stop and ask on blockers. No forced sub-skill…
Extract canonical domain terms into CONTEXT.md. Flag ambiguities (same word, different meanings) and synonyms (different words,…