context-optimizer

Analyze debug logs and profiling data to reduce context size and latency in multi-agent systems.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/crytlig/azure-agentic-infraops --skill context-optimizer-crytlig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-optimizer
Source: https://github.com/crytlig/azure-agentic-infraops/tree/main/.github/skills/context-optimizer
Command: npx skills add https://github.com/crytlig/azure-agentic-infraops --skill context-optimizer-crytlig

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill analyzes debug logs and profiling data to identify inefficiencies and redundancies in multi-agent systems, reducing token waste and improving response times.

Core Features & Use Cases

  • Log Parsing & Profiling: Extract structured data from debug logs to assess context growth and latency.
  • Redundancy Detection: Find duplicate file reads and overlapping instructions.
  • Optimization Recommendations: Suggest subagent extraction, instruction narrowing, and prompt deduplication to enhance performance.
  • Use Case: Streamline a complex multi-agent workflow by identifying excessive instruction loads and pruning context to fit within limits.

Quick Start

Use the context optimizer skill to parse your existing Copilot debug logs and generate an analysis report highlighting key optimization opportunities.

Frequently Asked Questions about context-optimizer

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

FAQPage Schema
How do I reduce token waste and latency in a multi-agent system?

To reduce token waste in a multi-agent system, analyze debug logs and token profiling data to identify context growth and overlapping instructions. This process detects duplicate file reads and excessive instruction loads, allowing you to prune context and generate recommendations for subagent extraction and prompt deduplication.

What is context optimization for multi-agent workflows?

Context optimization for multi-agent workflows is the process of analyzing debug logs and token profiling data to find inefficiencies and redundancies. It identifies duplicate file reads and overlapping instructions to reduce context size, lower token costs, and improve overall response times.

How do I parse Copilot debug logs to find overlapping instructions?

Parse Copilot debug logs by extracting structured data to assess context growth and latency. This log parsing and profiling mechanism identifies duplicate file reads and overlapping instructions, generating an analysis report that highlights key opportunities to narrow instructions and deduplicate prompts.

Can I use token profiling to fit agent context within limits?

Yes, you can use token profiling to fit agent context within limits by analyzing debug logs to assess context growth. The profiling data identifies excessive instruction loads and redundancies, enabling you to prune context, extract subagents, and narrow instructions to stay within token boundaries.

What is the best way to identify duplicate file reads in agent debug logs?

The best way to identify duplicate file reads in agent debug logs is to parse the logs and extract structured profiling data. This redundancy detection process assesses context growth and pinpoints overlapping instructions, allowing you to apply prompt deduplication and subagent extraction for better efficiency.