gpd-compact-state

Archive historical entries from STATE.md into STATE-ARCHIVE.md.

1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/CharlieGreenman/roomtemp-superconductor-gpd --skill gpd-compact-state
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gpd-compact-state
Source: https://github.com/CharlieGreenman/roomtemp-superconductor-gpd/tree/main/.agents/skills/gpd-compact-state
Command: npx skills add https://github.com/CharlieGreenman/roomtemp-superconductor-gpd --skill gpd-compact-state

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

STATE.md tends to grow unbounded as project memory accumulates decisions, blockers, metrics, and session notes, making the active context unwieldy for analysis and decision-making.

Core Features & Use Cases

  • Archives decisions from completed or older phases to STATE-ARCHIVE.md, preserving a complete historical record while keeping STATE.md lean.
  • Moves resolved blockers and older performance metrics to the archive, while retaining recent items in the active document.
  • Keeps recent session records in STATE.md and updates cross-references to ensure traceability with the archive.

Quick Start

Run the compact-state workflow to archive eligible entries from STATE.md into STATE-ARCHIVE.md and keep the active file under the target line count.

Frequently Asked Questions about gpd-compact-state

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

FAQPage Schema
How do I archive STATE.md history to keep the file lean?

To archive STATE.md history, run the compact-state workflow to move older blocks, completed decisions, and resolved blockers to STATE-ARCHIVE.md. This preserves a complete historical record while keeping your active context lean for analysis.

When should I compact my STATE.md file?

You should compact your STATE.md file when it grows beyond your target line count. The compaction process triggers automatically once the active file exceeds the specified length, moving older entries to STATE-ARCHIVE.md to maintain a manageable context size.

What happens to cross-references when archiving STATE.md entries?

When archiving STATE.md entries, cross-references are updated to ensure traceability with the archive. The workflow preserves recent session records in the active document while moving older historical blocks to STATE-ARCHIVE.md and maintaining links between the two files.

Does compacting STATE.md synchronize with state.json?

Yes, compacting STATE.md enforces state.json synchronization after the compaction process completes. This ensures that your structured state data remains consistent with the archived and active markdown entries following the workflow execution.

What is the best way to manage unbounded project memory in STATE.md?

The best way to manage unbounded project memory in STATE.md is automated archiving. The compact-state workflow moves older decisions, blockers, and metrics to STATE-ARCHIVE.md, reducing active context size while retaining recent items for decision-making.

Are there limitations to what the STATE.md compaction workflow archives?

The compaction workflow archives older blocks, completed decisions, and resolved blockers, but retains recent session records and recent items in STATE.md. It targets entries eligible for archiving to reduce active context size without losing current project state information.