strategic-compact

Trigger compact prompts at workflow boundaries using PreToolUse hooks.

1|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/tan-yong-sheng/GrowChat --skill strategic-compact-tan-yong-sheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/tan-yong-sheng/GrowChat/tree/main/.claude/skills/strategic-compact
Command: npx skills add https://github.com/tan-yong-sheng/GrowChat --skill strategic-compact-tan-yong-sheng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompts strategic manual compaction to prevent context bleed and preserve key insights across multi-phase AI workflows.

Core Features & Use Cases

  • Guided context management at phase transitions to reduce memory load and improve response quality.
  • Lightweight hook-based orchestration that triggers compact prompts at milestones like research→planning, planning→implementation, and implementation→testing.
  • Use cases include long-form ideation, multi-phase project work, and iterative experimentation where context must be reset cleanly without losing useful artifacts.

Quick Start

Add a PreToolUse hook that runs the suggest-compact.js script when edits or writes occur.

Frequently Asked Questions about strategic-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent context bleed in long-running AI workflows?

Context compaction for AI workflows reduces context bleed by prompting manual compaction at phase transitions like research to planning. This preserves key insights while reducing memory load to improve response quality across multi-phase sessions.

What is strategic context compaction and when should I use it?

Strategic context compaction is a memory persistence technique that resets context cleanly at workflow boundaries like planning to implementation. Use it during long-form ideation, multi-phase project work, and iterative experimentation where context must be reset without losing useful artifacts.

How do I trigger manual compaction at workflow milestones?

Trigger manual compaction at workflow milestones by adding a PreToolUse hook that runs a suggest-compact script when edits or writes occur. This lightweight hook-based orchestration issues compact prompts at the right times during your session.

Does strategic compaction require complex dependencies or scripts?

Strategic compaction requires no complex dependencies, only configuring a compact trigger, hooks, and a small script to issue compact prompts. This lightweight setup applies to long-running sessions across research, planning, implementation, and testing checkpoints.

Why does my AI lose key insights across multi-phase project work?

AI loses key insights across multi-phase project work due to context bleed from overloaded memory. Implementing guided context management at phase transitions reduces memory load and preserves useful artifacts without losing critical project state.

Can I use hook-based orchestration for context management in iterative experimentation?

Yes, you can use hook-based orchestration for context management in iterative experimentation. Lightweight hooks trigger compact prompts at milestones, ensuring context is reset cleanly between experimental phases while preserving accumulated research artifacts.