USE when managing persistent session state, avoiding context overflow, or enabling session handoffs using the Passive Hook System.
/plugin marketplace add Git-Fg/thecattoolkit/plugin install git-fg-persist-plugins-persist@Git-Fg/thecattoolkitThis skill is limited to using the following tools:
references/context-initialization.mdreferences/context-structure.mdreferences/execution-protocol.mdreferences/handoff-protocol.mdreferences/scratchpad-maintenance.mdreferences/session-summary.mdtemplates/checkpoint.mdtemplates/context-log.mdtemplates/handoff.mdtemplates/scratchpad.mdManage persistent session state independent of the LLM context window using the Passive Hook System. Preserve decisions, track progress, and enable seamless session handoffs with zero manual intervention.
NEW: The Context plugin uses a hybrid approach combining command and prompt hooks for optimal performance and intelligence.
Command Hooks (Deterministic, Fast):
| Hook | Trigger | Action |
|---|---|---|
| SessionStart | Session begins | Auto-loads active plan from Planner + scratchpad state |
| PostToolUse | After Edit/Write/Bash | Auto-logs every state change to context.log |
| PreCompact | Context near overflow | Auto-creates memory checkpoint + compacts scratchpad |
Command-Based Prompt Logic (Deterministic Python Scripts):
| Hook | Trigger | Action |
|---|---|---|
| Stop | Session stopping | Runs evaluate_stop.py to check for safe exit |
| SubagentStop | Agent stops | Runs evaluate_subagent.py to verify completion |
OLD WAY (Active Commands):
/contexteng initialize ā Often forgottenplan.md files ā Conflicting sources of truthNEW WAY (Hybrid Hooks):
The hooks auto-handle everything - use context-engineering for:
Automatic (via hooks):
Manual operations (when needed):
Use context-engineering when:
Don't use for:
Core Problem: AI models have limited context windows, but complex tasks require extensive context preservation across interactions.
Solution: Engineer context to maximize relevant information while minimizing token consumption through persistent storage in .cattoolkit/context/.
Use when: Starting new project or task requiring persistent state
Creates:
.cattoolkit/context/ directory structurescratchpad.md with project contexttodos.md for persistent task trackingcontext.log for session historycheckpoints/ directory for state snapshotsUse when: Recording decisions, errors, progress, or important context
Updates:
Use when: Consolidating session state before rotation or handoff
Produces:
Use when: Transferring work to new session or different tool
Generates:
.cattoolkit/context/
āāā scratchpad.md # Current thinking and decisions
āāā todos.md # Persistent task tracking
āāā context.log # Session context history
āāā handoff.md # Session handoff summary
āāā checkpoints/ # Critical state snapshots
āāā 2026-01-05-feature-start.md
āāā 2026-01-05-implementation-complete.md
āāā 2026-01-05-testing-phase.md
Track these metrics:
Works seamlessly with:
For Solo Developers:
Workflow Improvements:
references/context-initialization.mdreferences/scratchpad-maintenance.mdreferences/handoff-protocol.mdFor detailed guidance, see Context Structure Reference.
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.