---
name: Context Building
slug: context-building
category: AI Engineering
description: Context Building assembles a minimal execution context bundle from retrieved memory, governed artefacts, and applicable rules. Use it after memory retrieval and before planning or implementation on complex tasks.
github: "https://github.com/digipulse-engineering/GAAI-framework/tree/main/.gaai/core/skills/cross/context-building"
language: Shell
stars: 161
forks: 27
install: "npx degit https://github.com/digipulse-engineering/GAAI-framework/tree/main/.gaai/core/skills/cross/context-building ~/.claude/skills/context-building"
installs_to: ~/.claude/skills/context-building
source_path: .gaai/core/skills/cross/context-building/SKILL.md
collection_size: 25
category_size: 3670
collection_url: "https://dirskills.com/collections/Fr-e-d/GAAI-framework"
added: 2026-09-08T05:36:20.877Z
last_synced: 2026-09-08T05:36:20.877Z
canonical_url: "https://dirskills.com/skills/context-building"
---

# Context Building

Context Building assembles a minimal execution context bundle from retrieved memory, governed artefacts, and applicable rules. Use it after memory retrieval and before planning or implementation on complex tasks.

**Install:**

```bash
npx degit https://github.com/digipulse-engineering/GAAI-framework/tree/main/.gaai/core/skills/cross/context-building ~/.claude/skills/context-building
```

## README

# Context Building

## Purpose / When to Activate

Activate when context is fragmented or multiple memory sources need to be merged before a complex task:
- After `memory-retrieve` when inputs come from multiple memory files
- 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

1. Validate inputs are scoped and minimal
2. Remove duplicated or overlapping information
3. Prioritize: acceptance criteria, constraints, decisions, current artefacts
4. Structure the bundle in canonical order:
   - Current Objective
   - Governed Artefacts (Epics / Stories / Plans)
   - Acceptance Criteria & Constraints
   - Applicable Rules
   - Relevant Memory

5. 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 `memory-retrieve` first)
- 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.**
