Help us improve
Share bugs, ideas, or general feedback.
From context-engineering
Phase 4-5: Structures and compresses the selected context. Receives gather Artifacts and organizes them into a model-readable form, retaining only the essentials. Keywords: context structuring, compression, key facts, constraints, decisions
npx claudepluginhub seokrae/context-engineering --plugin context-engineeringHow this skill is triggered — by the user, by Claude, or both
Slash command
/context-engineering:buildThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The stage for Context Structuring and Context Compression. Receives the context selected by gather, organizes it into a model-readable form, and retains only the essentials.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
The stage for Context Structuring and Context Compression. Receives the context selected by gather, organizes it into a model-readable form, and retains only the essentials.
Before running, verify gather Artifacts:
Phase 1 analysis result (purpose / constraints / success criteria / Role / scope-declaration)
Phase 3 selection result (list of Keep items)
Verification order:
_phase1-result.md file exists → If present, read it to restore the Phase 1 result"Please run
/context-engineering:gatherfirst. (Phase 3 selection result is required)" Stop.
"Please run
/context-engineering:gatherfirst." Stop.
Purpose: Organize the selected context into a section structure that is easy for the model to read.
## Key Facts
- {key fact} [source: {source name}]
## Constraints
- {constraint} [source: {source name}]
## Decisions
- {decision and rationale} [source: {source name}]
## Notes
- {supplementary information} [source: {source name}]
[source: ...] tag rules:
[source: file.md, user][source: general][source: general] items are treated as primary review targets[source: ...] tags to all items — they serve as the basis for Phase 7 speculation verificationThe AI automatically evaluates the following criteria:
| Criterion | Evaluation |
|---|---|
| No ambiguous items | Does each item express a single clear fact / constraint / decision? |
| No Conflict between sections | Does the same content not exist in two sections? |
| Purpose reflected | Do Key Facts connect to the Phase 1 purpose? |
| Source tags attached | Do all items have a [source: ...] tag? |
Auto-pass: Criteria clearly met → proceed to Phase 5
User confirmation (when ambiguous or unmet):
Phase 4 result: {summary}
Unmet items: {item name} — {reason}
Please revise or approve to continue.
Purpose: Remove unnecessary parts, retaining only essential facts, Constraints, and Decisions.
Measure the context size before compression:
Measure: Estimate the total word count of Keep items using wc -w
Budget decision:
| Task scale | Word count basis | Target compression ratio |
|---|---|---|
| Small (single file / question) | < 500 words | No compression needed |
| Medium (module / feature unit) | 500–2,000 words | Compress to 50% or less |
| Large (entire project) | 2,000+ words | Compress to 30% or less |
Strategy when over budget: Summarize Notes section first → condense Key Facts → condense Constraints last
| Scenario | Input | Target | After compression | Main method |
|---|---|---|---|---|
| Single API question | 300 words | — | 300 words | No compression needed |
| Module refactoring | 1,200 words | ≤50% | ~550 words | Summarize Notes + remove duplicates |
| Full project analysis | 4,000 words | ≤30% | ~1,100 words | Remove Notes + condense Key Facts |
When a source is large (2,000+ words):
The AI automatically evaluates the following criteria:
| Criterion | Evaluation |
|---|---|
| Constraints preserved | Are all Constraints still present after compression? |
| Decisions preserved | Are Decisions and their rationale retained without loss? |
| Over-compression prevention | Has information needed to achieve the Phase 1 purpose not been removed? |
| Budget met | Is the post-compression word count within the target budget? |
Auto-pass: Criteria clearly met → pass to compose
User confirmation (when ambiguous or unmet):
Phase 5 result: {summary}
Unmet items: {item name} — {reason}
Please revise or approve to continue.
Take the build Artifacts (structured and compressed context block) and proceed to the next stage:
/context-engineering:compose — Run Phase 6 execution instruction generation