skills/strategic-compact/SKILL.md
Make compaction safe for fully autonomous multi-phase work. The agent prepares durable state so auto-compaction never requires user input and never breaks flow.
npx skillsauth add fmflurry/settings-opencode strategic-compactInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill ensures that automatic compaction does not break an agent’s flow.
CRITICAL: compaction is treated as a background checkpoint:
This skill is about compaction-readiness, not manual compaction.
Never require user input for compaction.
Never rely on chat history as the only source of truth.
Prefer compaction-safe boundaries.
Always include evidence.
Compaction is considered safe when ALL are true:
If conditions are not met, the agent must stabilize first:
The agent should maintain a single “durable state” artifact during long work:
./docs/dev/session-log.md (repo-local)MUST at minimum, record:
CRITICAL: this is not optional; it is how the agent remains autonomous across compaction.
Treat these transitions as “high probability compaction moments”:
At these boundaries, the agent should automatically:
Goal: explore without contaminating future context.
Autonomous rules:
Before leaving research:
Goal: produce a stable, compaction-proof execution plan.
Autonomous rules:
Before implementation:
Goal: make progress while keeping work bounded.
Autonomous rules:
If work is mid-change and a boundary is approaching:
Goal: convert changes into verified outcomes.
Autonomous rules:
Goal: resolve with minimal context pollution.
Autonomous rules:
CRTICAL: when updating durable state, use EXACTLY this schema:
<!-- SESSION_LOG_START -->Rules:
When any of these are true, the agent must assume compaction may happen soon and update durable state:
Do not ask the user; just update durable state and proceed.
This skill forbids user-interactive “checkpoint requests”.
Instead:
If writing to disk is not possible, the agent must:
This skill is successful if:
development
Scaffolds and extends Angular 18+ standalone features using Clean Architecture with DDD layering (presentation/application/domain/infrastructure), custom signal-based stores, facade pattern, and ports/adapters dependency inversion. Use when creating new Angular features/domains, adding use cases/facades/stores/ports/adapters, refactoring legacy NgModule/NgRx code toward clean architecture, or working with cross-domain communication via context registry.
development
Pre-merge code review for Angular + TypeScript pull requests. Diffs current branch against a target branch, applies Angular-specific checklists (signals, RxJS, clean architecture, flurryx, TS strict), runs lint + tsc, and emits a tiered report (verbose for juniors, terse for seniors). Auto-loads project AGENTS.md rules. Use when user runs /cop-review, says "pre-merge review", "review before merging", "check my PR against <branch>", or invokes the merge-cop agent.
testing
Use this skill for any git work such as creating branches, staging changes, writing commit messages, pushing branches, or preparing pull requests. Delegates git execution to the git-specialist agent.
development
Signal-first reactive state management for Angular. Bridge RxJS streams into cache-aware stores, keyed resources, mirrored state, and replayable history. Use when generating or modifying Angular code that uses flurryx for state management, or when scaffolding new feature modules that follow the flurryx facade pattern.