Context Fetch

Search code files for relevant snippets before reading entire files.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/nickthelegend/molfi --skill context-fetch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Context Fetch
Source: https://github.com/nickthelegend/molfi/tree/main/.agent/skills/context-fetch
Command: npx skills add https://github.com/nickthelegend/molfi --skill context-fetch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents inefficiently loading entire files by prioritizing targeted code searches, reducing unnecessary context consumption and improving agent efficiency.

Core Features & Use Cases

  • Context-Aware Search: Identifies relevant code snippets through keyword-based searching before full file reads.
  • Efficiency Metrics: Tracks and encourages efficient code exploration habits.
  • Use Case: When debugging a complex issue, instead of reading multiple files, use this skill to pinpoint the exact function or line responsible for the bug.

Quick Start

Use the context fetch skill to find all occurrences of the 'processOrder' function within the 'src/services' directory.

Frequently Asked Questions about Context Fetch

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

FAQPage Schema
How do I search code intelligently to read less during bug investigation?

To search code intelligently, implement a search-first strategy using shell commands for pattern matching against file structures. This identifies relevant snippets before full file reads, reducing unnecessary context consumption during bug investigation.

What is the best way to find specific function occurrences in a directory without loading entire files?

The best way to find specific function occurrences is executing targeted pattern matching against file structures. This approach pinpoints exact functions or lines responsible for bugs, preventing inefficiently loading entire files during code exploration.

Do I need shell command execution to perform context-aware code search?

Yes, shell command execution is required to perform context-aware code search. The skill relies on executing shell commands for pattern matching against file structures to identify relevant code snippets through keyword-based searching.

Can I use search-first code exploration for refactoring and code comprehension scenarios?

Yes, you can use search-first code exploration for refactoring and code comprehension scenarios. The strategy applies to all coding tasks, ensuring efficient code exploration habits by tracking and encouraging targeted pattern matching.

Why does reading entire files waste context when debugging complex issues?

Reading entire files wastes context because it loads unnecessary code. Prioritizing targeted code searches through keyword-based searching prevents inefficient file reads, pinpointing exact functions responsible for bugs and improving agent efficiency.