GAAI-framework context-building
Assemble a minimal, high-signal execution context bundle from already-retrieved memory, governed artefacts, and applicable rules. Activate after memory-retrieve and before any reasoning or execution skill.
git clone https://github.com/Fr-e-d/GAAI-framework
T=$(mktemp -d) && git clone --depth=1 https://github.com/Fr-e-d/GAAI-framework "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.gaai/core/skills/cross/context-building" ~/.claude/skills/fr-e-d-gaai-framework-context-building && rm -rf "$T"
.gaai/core/skills/cross/context-building/SKILL.mdContext Building
Purpose / When to Activate
Activate when context is fragmented or multiple memory sources need to be merged before a complex task:
- After
when inputs come from multiple memory filesmemory-retrieve - Before planning or implementation skills on complex, multi-artefact Stories
- When previous context bundles are stale or need restructuring
For simple, single-artefact tasks, an agent may reason directly without this skill. This skill does not retrieve knowledge — it structures and composes already-selected inputs into a focused bundle.
Process
-
Validate inputs are scoped and minimal
-
Remove duplicated or overlapping information
-
Prioritize: acceptance criteria, constraints, decisions, current artefacts
-
Structure the bundle in canonical order:
- Current Objective
- Governed Artefacts (Epics / Stories / Plans)
- Acceptance Criteria & Constraints
- Applicable Rules
- Relevant Memory
-
Enforce minimal token footprint
Outputs
=== EXECUTION CONTEXT === OBJECTIVE: ... ARTEFACTS: ... ACCEPTANCE & CONSTRAINTS: ... RULES: ... RELEVANT MEMORY: ... =========================
No prose. No fluff. No hidden reasoning.
Quality Checks
- Context is focused and task-specific
- No irrelevant memory included
- No artefacts outside scope
- Token usage minimized
- All constraints explicit
Non-Goals
This skill must NOT:
- Retrieve memory (use
first)memory-retrieve - Infer missing artefacts
- Add assumptions or expand scope
- Inject creative interpretation
Retrieval decides what is relevant. Context building decides how it is fed to reasoning.