One-click install
npx skills add https://github.com/OrestesK/pi --skill context-mode-orestesk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-mode
Source: https://github.com/OrestesK/pi/tree/main/packages/context-mode/skills/context-mode
Command: npx skills add https://github.com/OrestesK/pi --skill context-mode-orestesk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents large command results, files, logs, API responses, and browser snapshots from overwhelming the agent's context, while preserving the ability to analyze them accurately.

Core Features & Use Cases

  • Large-output processing: Routes sizable commands, tests, builds, logs, datasets, and MCP responses through context-mode analysis tools.
  • Server-side file and data analysis: Uses indexed files and sandboxed execution to summarize, filter, parse, and extract targeted findings without loading raw content into context.
  • Browser and documentation workflows: Handles Playwright snapshots through saved files and supports external documentation indexing and search.
  • Use Case: When investigating a failing build or analyzing a large log, the Skill extracts error counts, affected files, recurring patterns, and actionable findings instead of returning the complete output.

Quick Start

Ask the agent to use context-mode to analyze the large file, command output, API response, or browser snapshot and summarize the specific findings you need.

Frequently Asked Questions about context-mode

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

FAQPage Schema
How do I analyze large log files without overwhelming the agent context?

Use context-mode to route large log files through indexed, sandboxed execution that summarizes, filters, and extracts targeted findings like error counts and patterns without loading raw content into the agent context.

What is the best way to extract error counts and affected files from large build outputs?

The best way to extract findings from large build outputs is using context-mode analysis tools to parse and summarize the results. This approach yields explicit, actionable findings like error counts and affected files instead of returning the complete, overwhelming command output.

Can I process Playwright browser snapshots without loading the raw DOM into the agent context?

Yes, you can process Playwright browser snapshots by saving them to files first. Context-mode handles these saved browser snapshots through indexed file workflows, allowing you to search and extract targeted findings without injecting the raw DOM into the agent context.

Does context-mode work with MCP tool results and API responses?

Yes, context-mode works with MCP tool results and API responses. It routes sizable MCP responses through context-mode analysis tools to parse, filter, and summarize the data, preventing large API outputs from overwhelming the agent context.

How do I index and search external documentation without exceeding context limits?

You can index and search external documentation by applying context-mode workflows that use sandboxed execution and file-based search. This allows you to query and extract specific information from indexed files without loading the entire documentation into context.