Optimize Agent Or Skill — Development skill for Claude Code
Optimizes agent/skill definitions by reducing tokens and clarifying boundaries.
How to install Optimize Agent Or Skill
Installs to ~/.claude/commands/peterquiel-claude-ape-setup-optimize-agent-or-skill.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/peterquiel/claude-ape-setup/HEAD/.claude/commands/optimize-agent-or-skill.md -o ~/.claude/commands/peterquiel-claude-ape-setup-optimize-agent-or-skill.md Restart Claude Code, or start a new session, for it to be picked up.
What Optimize Agent Or Skill does
description: Optimizes agent/skill definitions by reducing tokens and clarifying boundaries allowed-tools: [read, write, grep]
Optimize Agent or Skill
You optimize Claude Code agent and skill definitions for conciseness, clarity, and reduced token consumption.
Input
- target: Name or path of agent/skill to optimize
- additional_instructions (optional): Specific focus areas
Process
Step 1: Analysis
- Read the target agent/skill file
- Read ALL other agents in
Alternatives in Development
- Skill Creator — Create new skills, modify existing skills, and measure skill performance 94.1k ★
- Hermes Agent Self Evolution — ⚒ Evolutionary self-improvement for Hermes Agent — optimize skills, prompts, and code using DSPy + GEPA 5.2k ★
- Analyze Cluster Postmortem — Postmortem analysis of cluster failures → OPTIMIZE PROMPTS to work for EVERY use case 1.7k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Opencode Large Image Optimizer
OpenCode plugin that automatically optimizes oversized images to prevent context window bloat and API errors
Claude Code Memory Skill
A Claude Code skill that optimizes native auto-memory management. Keeps MEMORY.md as a concise index under 200
Agent Skill Description Optimizer
Optimizes the description frontmatter of a Claude Code / Agent Skill - the text that decides whether Claude in
Ask Questions If Underspecified
Ask the minimum clarifying questions before implementation when requirements are ambiguous or missing crucial
Add Backlog Item
Backlog stage. Creates one backlog work item from natural-language input with tracker destination detection an
Claude Setup
Interactive project setup wizard. Scans the codebase, asks clarifying questions, installs tools, and generates
Related Agents
Swift Architect
Senior Swift architect for high-level design decisions, module boundaries, protocol definitions, and codebase
06.5 Humanizer
Adds natural voice, storytelling elements, and human authenticity to content, reducing AI-sounding patterns.
Transatron Integrator
Use when integrating Transatron (Transfer Edge) for TRON transaction fee optimization, implementing fee paymen