feat: add context-management skill with domain isolation#1571
Conversation
Add a new skill for persistent context that survives across sessions. Key features: - Auto-detect user identity and generate context.md - Per-project context files with keyword-based auto-loading - Domain isolation for users with multiple roles (work/side-projects/personal) - Session-locked domains prevent cross-domain context leakage - Maintenance flows: update, prune, archive with lesson extraction - Templates for global, project, and domain router context files Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Closing — this doesn't seem like a fit for core Superpowers. Thank you for the honest first-person writeup; the multi-domain isolation pattern is interesting. But the skill as designed is shaped around your specific multi-domain workflow ("work + side projects + personal", session-locked domain selection, keyword-based auto-loading of per-project context files). That's a configuration system, not a general-purpose skill that benefits all Superpowers users regardless of project.
This would make a great standalone plugin (e.g. |
What
Adds a new
context-managementskill for persistent context that survives across sessions.Features
context.mdBackground
I have been using this context management system daily for several months across 3 isolated domains (work, innovation, personal) on Copilot CLI. The domain isolation pattern emerged from a real need — I wanted work context (on-call runbooks, team info) to never leak into personal sessions, and vice versa. The keyword-based auto-loading and session-locked domains have been stable and practical in daily use.
Why this belongs in superpowers
Context management is one of the most common pain points with AI coding agents — every session starts from zero. This skill provides a structured, agent-agnostic approach that works across Claude Code, Copilot CLI, Cursor, and any tool that supports instruction files.
The domain isolation feature is unique — existing agent memory tools (AgentMemory, claude-memory-mcp, etc.) all use a single memory pool with no privacy-preserving domain separation.
Files
skills/context-management/SKILL.md— Full skill spec (init, add, load, update, prune, archive, domain isolation)skills/context-management/templates.md— Global and project context templates