Agent skill
summarization
Transform large, noisy, or short-term memory into compact, durable, high-signal summaries. Activate when session memory grows large, decisions accumulate, or memory retrieval starts returning too many files.
Install this agent skill to your Project
npx add-skill https://github.com/Fr-e-d/GAAI-framework/tree/main/.gaai/core/skills/cross/summarization
Metadata
Additional technical details for this skill
- id
- SKILL-SUMMARIZATION-001
- track
- cross-cutting
- author
- gaai-framework
- status
- stable
- version
- 1.0
- category
- cross
- updated at
- 1769731200
SKILL.md
Summarization
Purpose / When to Activate
Activate when:
- Session memory grows large
- Decisions accumulate across sessions
- Project context becomes fragmented
- Memory retrieval returns too many files
- Token usage increases noticeably
This skill is both preventive and corrective.
Process
Step 0: Enumerate categories. Read contexts/memory/index.md. List all registered categories. For each category, assess whether summarization is warranted: trigger if >5 files in the category OR estimated token count >5000 tokens OR memory-retrieve is returning too many results for this category. Skip categories that do not meet any threshold.
For each category that meets the threshold:
-
Identify durable information — extract confirmed decisions, stable constraints, validated assumptions, current priorities, key outcomes, known risks. Ignore brainstorming noise, intermediate reasoning, abandoned ideas.
-
Compress into structured summary — use the template below. Prefer bullets over prose.
-
Archive raw memory — move original files to
contexts/memory/archive/{category}-{YYYY-MM-DD}.archive.md. Concatenate multiple files from the same category into a single archive file. Only summaries remain active. -
Update memory index — record new summary files, archived sources, affected categories.
Summary File Template
# {Category} — Summary
> Summarized from {N} files on {YYYY-MM-DD}
> Compression: ~{original_tokens} → ~{summary_tokens} ({percentage}%)
## Decisions
- {bullet per confirmed decision}
## Constraints
- {bullet per active constraint}
## Priorities
- {bullet per current priority}
## Open Questions
- {bullet per unresolved question, if still relevant}
Outputs
contexts/memory/summaries/{category}.summary.md— compressed, structured summary for each processed categorycontexts/memory/archive/{category}-{YYYY-MM-DD}.archive.md— concatenated originals, retained for auditcontexts/memory/index.md— updated to reflect new summaries and archived sources
Quality Checks
A good summary:
- Summary token count is ≤20% of original — verify before replacing active memory
- Every summarized category has its archive file created before the summary replaces it
- Preserves all actionable knowledge
- Removes all conversational fluff
- Supports future decisions without rereading history
Non-Goals
This skill must NOT:
- Invent new knowledge
- Reinterpret decisions
- Remove active constraints
- Keep long narrative text
Distill knowledge. Delete noise. Small, sharp context always beats full history.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ci-watch-and-fix
Watch GitHub Actions CI after PR creation, detect failures, extract logs, apply minimal fixes, and re-push — keeping the delivery session alive until CI resolves or escalating after 3 cycles. Activate immediately after gh pr create and before marking the story done.
qa-review
Validate that implemented code fully satisfies Story acceptance criteria, respects rules, and introduces no regressions. This is the hard quality gate — no pass means no delivery. Activate after implementation is complete.
compose-team
Assemble the context bundles for each sub-agent based on evaluate-story output. Produces spawn-ready packages for Planning, Implementation, QA, or MicroDelivery sub-agents. Activate after evaluate-story, before spawning any sub-agent.
coordinate-handoffs
Validate sub-agent handoff artefacts, sequence phase transitions, and manage retry and escalation logic. Activate after each sub-agent terminates to determine next action.
implement
Generate correct, minimal, maintainable code that satisfies a validated Story's acceptance criteria against an execution plan. Activate when a Story is validated, a plan exists, and all prerequisites are unambiguous.
delivery-high-level-plan
Transform validated Stories into a clear, minimal, governed execution plan. Used by the Planning Sub-Agent as the first planning pass before prepare-execution-plan for Tier 2/3, or as the sole planning output for simple Stories.
Didn't find tool you were looking for?