@cmc-27/parcel-compactor
BStrips intermediate debate, resolved critiques, and redundant commentary from a merged parcel plan (v1.1_merged.md), outputting a lean, noise-free execution specification (v2.0_approved.md) for the blind executor.
Install
agr install @cmc-27/parcel-compactor --target claudeWrites 1 file into .claude/skills/, pinned to git-f714b955.
- .claude/skills/parcel-compactor/SKILL.md
Document
name: parcel-compactor description: Strips intermediate debate, resolved critiques, and redundant commentary from a merged parcel plan (v1.1_merged.md), outputting a lean, noise-free execution specification (v2.0_approved.md) for the blind executor.
SKILL: Parcel Compactor (parcel-compactor)
Philosophy
Planning produces noise. Reviewers debate. Answers get revised. By the time a plan reaches execution, the signal-to-noise ratio is degraded โ the executor must wade through rejected proposals, resolved critiques, and intermediate reasoning to find the actual directives. This causes stale instruction contamination (attention attends heavily to early tokens, which may contain obsolete proposals).
Your job is noise removal. You strip everything that is not an executable directive. You produce a clean, immutable specification that a stateless executor can follow without interpretation.
Activation & Role Mapping
This skill owns the compaction step between Phase 6 (Reviews) and Phase 7 (Execution) of the pass-the-parcel pipeline. It runs once after all reviews are merged into v1.1_merged.md.
Core Operational Directives
1. Input & Output
- Read:
.opencode/plans/run-[slug]/versions/v1.1_merged.md(provided by orchestrator) - Write:
.opencode/plans/run-[slug]/versions/v2.0_approved.md - Log: Append compaction event to
.opencode/plans/run-[slug]/decision_log.md
2. Strip Rules (What to Remove)
Remove entirely:
- All
[ ]and[x]checkbox lists (Phase 2 inventory, Phase 3 questions, Phase 5-6 findings) - All Phase 5 and Phase 6 review sections (product review + architect review) โ findings are merged into directives, not kept as commentary
- All debate/conversation text, resolved critiques, intermediate reasoning
- All
Auto-Resolution:rationale paragraphs (keep the final answer, strip the rationale) - All
๐ต๏ธ Phase 3.5 Research Maptables - All
Spaghetti Triagetables - All
Back-and-Forth Logentries from Phase 9 - All
๐ HALT POINTgate markers - Any section labeled
PENDING,REJECTED, orBLOCKERthat was resolved
3. Keep Rules (What to Preserve)
Preserve verbatim:
- Phase 1: Intent, In-Scope, Out-of-Scope
- Phase 3: Final answers (user responses or auto-resolutions โ just the answer, not rationale)
- Phase 4: Files to Create/Modify, Code Snippets & Instructions, To-Do List, Test Verification Plan
- State Dashboard (summary only โ Status, Mode, Version)
- The plan prefix code (e.g.,
T12-E1.01)
4. Output Format
Output a clean markdown file with this structure:
# ๐ฆ [Plan Name] v2.0 [APPROVED]
> **Execution target for @parcel-code-surgeon. No debate โ directives only.**
## Intent
[Phase 1 intent, 1-2 lines]
## In Scope / Out of Scope
[Phase 1 scope lists]
## Execution Directives
[Phase 4: Files to Create/Modify table + Code Snippets]
## To-Do List
[Phase 4 to-do list, cleaned of checkboxes]
## Test Verification Plan
[Phase 4 test plan]
## Decisions
[Phase 3 final answers only โ no rationale]
5. Fail-Safe
If the merged plan has no Phase 4 section or the to-do list is empty, write an error to decision_log.md and halt. Do not produce an empty execution spec.
Output Contract
Return a Task report with:
- Token count: v1.1 (input) vs v2.0 (output)
- Reduction percentage
- Any directives that were ambiguous and preserved as-is
- 1-line "ready for execution" signal
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged โ not that the artifact is safe.
Versions
git-f714b95571d42026-07-31