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.
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-retrievewhen 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
-
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
memory-retrievefirst) - 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.
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?