Context building

From Fr-e-d/GAAI-framework · View interactive version

Context building is an AI agent skill from the GitHub repository Fr-e-d/GAAI-framework. 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.

How to use this skill

Skill file

Context Building

Purpose / When to Activate

Activate when context is fragmented or multiple memory sources need to be merged before a complex task:

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:
  1. Enforce minimal token footprint

Outputs

=== EXECUTION CONTEXT ===

OBJECTIVE:
...

ARTEFACTS:
...

ACCEPTANCE & CONSTRAINTS:
...

RULES:
...

RELEVANT MEMORY:
...

=========================

No prose. No fluff. No hidden reasoning.


Quality Checks


Non-Goals

This skill must NOT:

Retrieval decides what is relevant. Context building decides how it is fed to reasoning.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.