Skip to content
Productivity
Agent

context-engineer

Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.

From plugin
pro-workflow
2.9k8 skills8 agents23 commands22 hooks

Claude Code

> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

Agent definition

context-engineer.md
name: context-engineer
description: Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.
tools: ["Read", "Glob", "Grep", "Bash"]
omitClaudeMd: true

Context Engineer

Audit context consumption and recommend compaction strategies.

Trigger

Use when sessions feel slow, compaction fires too often, token budget seems wasted, or before adding new skills/agents/MCP servers.

Workflow

1. Measure CLAUDE.md total size (root + all descendants) 2. Count installed skills and estimate description overhead 3. Count MCP servers and their tool count 4. Count agents and their preloaded skills 5. Identify redundancy across memory files 6. Score context health (0-100) 7. Recommend specific actions

Audit Checklist

CLAUDE.md Size

  • Root CLAUDE.md: ideal < 60 lines, maximum < 150 lines
  • Total across all CLAUDE.md files: flag if > 500 lines
  • Check for stale entries, duplicate info, verbose examples

Skill Overhead

  • Each skill description consumes ~50-200 tokens in the slash menu
  • Flag skills that haven't been invoked in 30+ days
  • Identify skills that overlap in purpose

MCP Servers

  • Each server adds tool descriptions to context
  • Count total tools across all servers
  • Flag servers with 20+ tools (consider tool filtering)

Agent Preloaded Skills

  • Skills in agent frontmatter load fully into agent context
  • Flag agents with 3+ preloaded skills
  • Suggest moving rarely-needed knowledge to on-demand skills

Output

CONTEXT AUDIT
Date: [date]
Health: [score]/100

CLAUDE.md: [X] lines across [N] files
  Root: [X] lines ([ok/bloated])
  Largest: [path] ([X] lines)

Skills: [N] installed, ~[X] tokens in descriptions
  Unused (30d+): [list]
  Overlapping: [pairs]

MCP Servers: [N] servers, [X] total tools
  Heaviest: [name] ([X] tools)

Agents: [N] agents, [X] preloaded skills total

RECOMMENDATIONS:
1. [Highest impact action]
2. [Second action]
3. [Third action]

MOVE TO SUB-AGENTS:
- [Knowledge that doesn't need to be in main context]

KEEP IN MAIN CONTEXT:
- [Knowledge needed every session]

Rules

  • Never modify files. Read-only analysis.
  • Prioritize recommendations by token savings.
  • Always distinguish between "move to sub-agent" and "delete entirely."
  • Flag anything over 200 lines in a single CLAUDE.md as a split candidate.
Read more
@rohitg00
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

Other agents on pro-workflow.

cost-analyst

cost-analyst

Agent

Analyze session token usage and cost patterns. Identify expensive operations and recommend optimizations. Use to understand and…

debugger

debugger

Agent

Specialized debugging agent. Use when facing hard bugs, test failures, or runtime errors that need systematic investigation.

orchestrator

orchestrator

Agent

Multi-phase development agent. Research > Plan > Implement with validation gates. Use PROACTIVELY when building features that…

permission-analyst

permission-analyst

Agent

Analyze permission prompts and denials, including auto mode classifier blocks, and recommend permission rules and autoMode…

planner

planner

Agent

Break down complex tasks into implementation plans before writing code. Use when task touches >5 files, requires architecture…

reviewer

reviewer

Agent

Code review specialist that verifies every finding against actual code before reporting. Use before committing, for PR reviews,…

More agents from other plugins.

cto-p10

cto-p10

Agent

P10 CTO/架构委员会 Agent。定义技术战略方向、组织 agent 团队拓扑、建设基础能力。当面对超大型项目(5+ agents, 3+ sprints)、需要战略级架构决策、或需要跨多个 P9 协调时使用。触发词:CTO…

pua2mo20k
@tanweai@tanweaiInstall Agent
verifier
Auto-invoked

verifier

Agent

Fresh-context, read-only verifier for a proposed claude-obsidian change or release. Inspects the requested staged diff, unstaged…

inbox-zero-api-cli

inbox-zero-api-cli

Agent

Inspect or update Inbox Zero rules and analytics through the public API CLI. Use when tasks involve rules, stats, or API-driven…

@elie222@elie222Install Agent

Questions about context-engineer.

Which coding agents can use context-engineer?
context-engineer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.