Context Explorer

Traverse a codebase and generate a YAML summary of relevant code snippets.

1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/St33f3n/osa --skill context-explorer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Context Explorer
Source: https://github.com/St33f3n/osa/tree/main/skill/context-explorer
Command: npx skills add https://github.com/St33f3n/osa --skill context-explorer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context Explorer helps researchers and engineers quickly gather contextual information from a codebase by traversing directories, identifying files relevant to a query, and extracting representative snippets to build a structured summary.

Core Features & Use Cases

  • Directory traversal to map project structure and locate relevant files.
  • Relevance-based file selection to surface code snippets and key components.
  • YAML summary generation that consolidates findings for quick analysis.
  • Use Case: Researchers can summarize a large repository for a specific research question, or developers can assemble an operational context snapshot before integration.

Quick Start

Provide a directory path, a query, and optional exclusion patterns to generate a structured YAML summary of the code context.

Frequently Asked Questions about Context Explorer

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

FAQPage Schema
How do I extract relevant code context from a large codebase for research?

To extract code context from a large codebase, provide a directory path and a search query. The tool traverses directories, applies pattern matching, and extracts representative snippets to generate a structured YAML summary of relevant files.

What is the best way to summarize a repository structure into a YAML summary?

Summarizing a repository structure into YAML involves mapping the project via filesystem traversal and identifying key components. It consolidates relevant snippets with language detection into a structured YAML format for quick analysis.

Can I exclude specific directories or files when exploring a codebase?

Yes, you can exclude specific directories or files when exploring a codebase. The tool accepts optional exclusion patterns alongside your directory path and query to refine the filesystem traversal and summary generation.

Does the codebase analysis tool detect programming languages automatically?

Yes, the codebase analysis tool detects programming languages automatically. During snippet extraction, it identifies the language of relevant files to ensure the resulting YAML context summary accurately represents the extracted code.

When do I need to generate a context snapshot of my code snippets?

You need to generate a context snapshot of code snippets when assembling an operational view before integration, or when you need to quickly answer a specific research question by locating key files within large repositories.