Install
openclaw skills install @asif2bd/ai-coding-token-optimizerHelp any repository-capable AI agent spend less time rediscovering files and loading unnecessary context. Create concise project maps for code, content and operations, linked from existing agent instructions. For Codex, Claude Code, OpenClaw and other agents; documentation-only, no application changes.
openclaw skills install @asif2bd/ai-coding-token-optimizerFor a small change, an AI agent may first search folders, open unrelated files and reread documentation just to work out where the change belongs. Repeating that exploration across tasks uses time and context that could go toward the actual work.
AI Coding Token Optimizer gives your agent a short, maintained map of the project. It shows where important code, content and procedures live, so the agent can start in the right area and read what the task needs. It is designed to reduce repeated searching, unnecessary context loading and time spent getting oriented—not to replace understanding the code.
For ChatGPT Codex, Claude Code, OpenClaw and any other AI agent with project-file access. OpenClaw is one supported environment, not a requirement. A chat-only assistant needs a connected project or uploaded files; no prompt can grant access on its own.
Your existing agent instructions
(AGENTS.md, CLAUDE.md, or your agent’s established entry point)
└── Project Map
├── CONTENT.md → content sources and publishing guidance
├── PRODUCT.md → application code, components and tests
└── OPERATIONS.md → build, deployment and recovery procedures
These are examples, not a mandatory folder layout. A small project may need just one Map section. A monorepo may use package-level maps. The skill reuses good existing indexes instead of adding clutter.
Each map is a short Markdown document with links and a sentence explaining each destination. It does not move your application files, duplicate the documentation or change application routing.
Example: for “change the checkout button,” the agent reads the product map, follows its component and test links, and inspects those files. It still searches and reads more when the map is incomplete or the task requires it.
The following workflow performs adoption. Navigation maps locate authoritative sources; they do not replace those sources.
When asked “Use AI Coding Token Optimizer to map this project,” perform the workflow below in the current repository. Do not ask a setup questionnaire when the root and scope are already clear. If multiple unrelated roots are plausible, ask one focused question. Mapping is documentation-only; it does not authorize source changes or external publication.
Read applicable agent instructions and inspect the actual repository structure, existing indexes and working-tree changes. Sample the source files and workflow documents needed to understand ownership. Use targeted searches instead of loading every file. Check current repository state before describing something as current.
Choose areas that reflect real tasks. CONTENT, PRODUCT and OPERATIONS are examples, not required categories. A small repository may need only a Map section; a larger one may benefit from a few routers. Reuse existing navigation documents when they already serve the purpose. In a monorepo, prefer links to package-level instructions over one enormous root index.
Create or update one short Markdown router per useful area. Aim for roughly 15–35 lines, expanding only when that makes navigation clearer.
Do not invent a folder structure, move source files, regenerate data or resolve unrelated documentation disagreements. Flag unresolved conflicts; reconcile superseded wording only when the current authority is clear and the requested scope permits it.
Use the project’s existing agent entry point: AGENTS.md for agents that discover it, or CLAUDE.md when that is the established Claude entry point. Add or update a short Project Map section without overwriting unrelated instructions. If both exist, maintain one shared map and link it from each; do not duplicate their policies. Never overwrite either file or add contradictory instructions. If no entry point exists, create a minimal AGENTS.md, or CLAUDE.md if the active client explicitly requires it, respecting parent instructions. Do not change global agent settings.
Tell agents to read the relevant router first, then the linked files needed for the task. Preserve mandatory instructions and release gates; selective reading does not override required context. Link the maps from an existing README when useful.
Add a maintenance rule: update the affected router in the same change when a mapped path, source of truth or workflow owner changes. Keep procedures and release histories out of these indexes.
Resolve relative links from each document's own directory and check that targets exist. Validate anchors where used. Spot-check that descriptions match their targets and that readers can locate a likely edit and its applicable workflow. Review the diff for unrelated edits, replaced instructions and sensitive details. If rerun, update existing maps rather than creating duplicates.
Report created or changed files, validation, and any uncertainty. Follow the user's requested Git workflow; mapping alone does not authorize pushing, merging, deploying or publishing externally. Do not claim measured speed or token savings without a benchmark.
Give a short list of changed navigation files, what each covers, validation results and unresolved ambiguity. Explain that maps guide selective reading but cannot guarantee a host loads them. See adoption for installation and examples for small-project and monorepo patterns.