Context Fetch

Search codebases for keywords before loading files to reduce context usage.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/LuuKhoaHoc/erp-template --skill context-fetch-luukhoahoc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Context Fetch
Source: https://github.com/LuuKhoaHoc/erp-template/tree/main/.agent/skills/context-fetch
Command: npx skills add https://github.com/LuuKhoaHoc/erp-template --skill context-fetch-luukhoahoc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents inefficiently loading entire files by prioritizing targeted code searches, significantly reducing unnecessary context consumption.

Core Features & Use Cases

  • Context-Efficient Agent: Prioritizes searching codebases before reading files.
  • Targeted Information Retrieval: Identifies relevant code snippets or files based on specific keywords and questions.
  • Use Case: When investigating a bug, instead of reading multiple files, use this skill to pinpoint the exact function or line causing the issue through precise keyword searches.

Quick Start

Use the Context Fetch skill to find where the 'processPayment' function is called.

Frequently Asked Questions about Context Fetch

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

FAQPage Schema
How do I reduce token usage when an agent investigates code in my repository?

To reduce token usage during code investigation, implement a search-first strategy that performs keyword analysis and targeted searches before loading files. This approach identifies relevant code snippets directly, avoiding the context consumption of blind file loading.

What is the best way to find where a specific function is called in a codebase?

The best way to find function calls is to use targeted code search to pinpoint exact locations based on specific keywords. Instead of reading multiple files, this method retrieves only the relevant code sections needed to answer your question.

Can I use search-first code navigation for bug hunting and refactoring tasks?

Yes, you can use search-first code navigation for bug hunting and refactoring tasks. It identifies relevant code sections through targeted searches, allowing you to pinpoint exact functions or lines causing issues without reading entire files.

Why does my agent load entire files when looking for a specific code snippet?

Agents load entire files when they lack a search-first strategy, leading to inefficient context management. By prioritizing targeted code searches based on specific keywords, you can prevent blind file loading and minimize unnecessary context consumption.

Do I need any external dependencies to implement context-efficient code search?

No external dependencies are required to implement context-efficient code search. The mechanism operates using internal scripts and references to apply keyword analysis and targeted searches, functioning independently within your agentic workflows.