context-optimized-dev

Manage AI context window usage and define sub-agent delegation patterns.

47|10|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/gonzalezpazmonica/pm-workspace --skill context-optimized-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-optimized-dev
Source: https://github.com/gonzalezpazmonica/pm-workspace/tree/main/.claude/skills/context-optimized-dev
Command: npx skills add https://github.com/gonzalezpazmonica/pm-workspace --skill context-optimized-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maximizing AI context window efficiency, ensuring that development tasks can be completed with a significant portion of the context window remaining free for optimal AI performance.

Core Features & Use Cases

  • Context Budget Management: Provides clear guidelines and formulas for estimating token usage per task and per file type.
  • Delegation Patterns: Outlines how to effectively delegate tasks to sub-agents, specifying what information to include and exclude in prompts.
  • Use Case: When implementing a new feature, this Skill helps ensure that the AI agent has enough context to understand the requirements and existing code, without exceeding the optimal token limit, leading to faster and more accurate code generation.

Quick Start

Use the context-optimized-dev skill to implement a new handler by loading the spec slice, service interface, and test template.

Frequently Asked Questions about context-optimized-dev

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

FAQPage Schema
How do I manage AI context window usage during code generation?

Context budget management provides token estimation formulas and budget breakdowns per phase to optimize AI context window usage during code generation. By calculating token limits per file type, you maintain a free context window for optimal AI processing.

What is sub-agent delegation in AI development?

Sub-agent delegation in AI development is defining patterns that specify what information to include and exclude in prompts for sub-agents. This distributes tasks across agents to ensure efficient code generation without overloading the primary context window.

How do I estimate token usage for different file types in an AI agent?

You estimate token usage for different file types by applying token estimation formulas provided by the context optimization framework. These formulas calculate expected token consumption per task and per file type to keep the context window optimized.

What are common anti-patterns to avoid when optimizing context windows for AI?

Common anti-patterns to avoid when optimizing context windows include loading unnecessary file contents and failing to define sub-agent delegation patterns. Avoiding these prevents context exhaustion and ensures a significant portion of the window remains free for AI processing.

Can I implement a new feature without exceeding the optimal token limit?

Yes, you can implement a new feature without exceeding the optimal token limit by loading only the spec slice, service interface, and test template into the prompt. This provides the AI agent enough context to understand requirements while maintaining a free context window.