Agent skill

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.

Stars 123
Forks 27

Install this agent skill to your Project

npx add-skill https://github.com/Fr-e-d/GAAI-framework/tree/main/.gaai/core/skills/cross/context-building

Metadata

Additional technical details for this skill

id
SKILL-CONTEXT-BUILDING-001
track
cross-cutting
author
gaai-framework
status
stable
version
1.0
category
cross
updated at
1772064000

SKILL.md

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.

Expand your agent's capabilities with these related and highly-rated skills.

Fr-e-d/GAAI-framework

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.

123 27
Explore
Fr-e-d/GAAI-framework

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.

123 27
Explore
Fr-e-d/GAAI-framework

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.

123 27
Explore
Fr-e-d/GAAI-framework

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.

123 27
Explore
Fr-e-d/GAAI-framework

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.

123 27
Explore
Fr-e-d/GAAI-framework

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.

123 27
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results