Optimize a document for AI agent consumption. Restructures prose into formats that agents parse efficiently while preserving meaning.
Optimize the target document(s) at $ARGUMENTS for agent consumption.
Stop after each stage and have changes reviewed with user.
Note: The goal is agent efficiency, not stripping all prose. Some content is genuinely better as narrative — context-setting introductions, nuanced trade-offs, philosophy notes. Optimize the structure agents need to parse; preserve the prose humans need to understand intent.
Read and assess the document (developer confirms)
Replace verbose prose with structured formats (agent leads with approval)
Compress token usage (agent leads with approval)
Make relationships explicit (agent leads with approval)
This skill sits at the end of the composition pipeline: flesh-out -> review-steps -> strong-edit -> agent-optimize. Run it after the content is complete and reviewed — it restructures for consumption, not correctness.
| Goal | Use |
|---|---|
| Raw notes need structure and expansion | flesh-out |
| Draft needs polish and consistency | review-steps |
| Complete draft needs critical evaluation | strong-edit |
| Finalized document needs agent-friendly restructuring | agent-optimize |