context-gathering-patterns

Read only relevant document sections using a tiered frontmatter-to-code approach.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BrunoSantanaDeveloper/flyeelab-agent-kit --skill context-gathering-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-gathering-patterns
Source: https://github.com/BrunoSantanaDeveloper/flyeelab-agent-kit/tree/main/skills/context-gathering-patterns
Command: npx skills add https://github.com/BrunoSantanaDeveloper/flyeelab-agent-kit --skill context-gathering-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Token usage can balloon when gathering context for agent tasks; this pattern enforces a minimal, sufficient context read to preserve performance and accuracy.

Core Features & Use Cases

  • Frontmatter-driven summaries for quick semantic context
  • Pyramid reading that starts with low-cost sections and stops when enough information is obtained
  • Clear guidance for when to consult detailed docs, retros, and ADRs

Quick Start

Extract the agent_context from the BREAKDOWN frontmatter and read only the minimal relevant sections to complete the task.

Frequently Asked Questions about context-gathering-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage when gathering context for agent tasks?

Reduce token usage by applying a tiered reading approach that extracts frontmatter summaries first and stops reading when enough information is obtained. This prevents full-document reads and guarantees operation within token limits.

What is the best way to read design docs and PRDs without exceeding token limits?

The best way to read design docs and PRDs is using a pyramid reading approach that starts with low-cost frontmatter, moves to summaries, and only reads detailed sections if necessary. This ensures you stay within token limits.

How does frontmatter-driven context gathering work for code references?

Frontmatter-driven context gathering works by extracting the agent_context from the BREAKDOWN frontmatter to quickly establish semantic context. It then reads only the minimal relevant sections needed to complete the task.

Can I use tiered reading for planning and implementation across SDDs and ADRs?

Yes, you can use tiered reading for planning and implementation across SDDs and ADRs. The pattern provides clear guidance for when to consult detailed docs, retros, and architecture decision records.

When should I not use a minimal context read approach?

You should not use a minimal context read approach when a task requires understanding the entirety of a document. This pattern is designed for situations where only relevant sections are required to preserve performance and accuracy.

Do I need to parse full documents to get accurate semantic context?

No, you do not need to parse full documents to get accurate semantic context. Frontmatter-driven summaries provide quick semantic context, allowing you to avoid full-document reads and operate within token limits.