Activate when user provides a prompt, SKILL.md, or agent instruction and requests optimization. Transforms weak instructions into reliable, enforceable agent protocols.
Optimize instruction behavior, not prose aesthetics.
Flow: READ → UNDERSTAND → RATE → FIX → VALIDATE → OUTPUT.
references/gates.md — read every section and map intent before judging or drafting.references/rate.md; FIX: load references/fix.md; VALIDATE: load references/validate.md; OUTPUT: load references/output.md — load only the active gate so later-step advice cannot bias the current decision.references/patterns.md — apply the higher authority and log the resolution in one line.references/conciseness-toolkit.md; when fixing priority/hierarchy load references/attention.md; when choosing a technique for an observed failure load references/prompt-techniques.md — match technique to failure mechanism.references/tool-contracts.md; for agent handoffs load references/agent-communication.md; for typed packet boundaries load references/zod-agent-contracts.md — make inputs, outputs, authority, and failure states explicit.references/context-budget.md; when repeated calls share stable prefixes load references/prompt-caching.md — control relevance, pagination, latency, and cost.references/evaluation-data.md — build realistic held-out scenarios, verifiers, metrics, and a failure ledger.references/untrusted-content.md — preserve the boundary between data and authority.octocode-graph-eval; otherwise load references/improve-loop.md — require measurable acceptance instead of intuition.octocode-skills for skill-folder architecture/review; octocode-research to verify cited contracts; octocode-graph-eval for held-out behavior.octocode-subagent for delegation topology.