Prompt Token Efficiency
Agent Buildingprompt-token-efficiencyPrompt Token Efficiency is an Agent Skill for agent building published in the github/gh-aw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Rewrite prompts for minimal tokens, maximal clarity, and low ambiguity for LLM consumption.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/github/gh-aw/blob/HEAD/.github/skills/prompt-token-efficiency/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/prompt-token-efficiency, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Prompt Token Efficiency
Use this skill to compress prompts while preserving intent and output quality.
Goals
- Minimize token count
- Maximize clarity
- Minimize ambiguity
- Optimize for LLM execution, not human prose style
Core Rules
- Keep only task-critical information.
- Remove pleasantries, repetition, and narrative framing.
- Prefer short, concrete instructions over descriptive paragraphs.
- Use explicit constraints and output format requirements.
- Use stable terminology (one term per concept).
- Replace vague words (
appropriate,some,better) with measurable criteria. - Put required context before optional context.
- Avoid conflicting instructions.
Prose Compression Pattern
Rewrite prose to be direct and compact:
- Start with the objective in one short sentence.
- Keep only facts needed to complete the task.
- Replace long qualifiers with concrete limits.
- Remove filler words that do not change behavior.
- End with explicit success criteria.
LLM-Optimized Writing Style
- Use imperative statements.
- Prefer bullets over long prose.
- Keep each instruction atomic.
- Avoid examples unless needed to prevent failure.
- If examples are required, include one minimal example.
Ambiguity Checks
Before finalizing a prompt, verify:
- Any undefined noun is resolved.
- Any pronoun has a clear antecedent.
- Scope limits are explicit (time range, file range, quantity limits).
- Success criteria are testable.
- Output format is unambiguous.
Prose Rewrite Checks
When rewriting, ensure the final prompt:
- Uses fewer words than the original.
- Preserves all required constraints.
- Uses concrete nouns instead of pronouns where possible.
- Avoids optional wording unless options are actually allowed.
- States required output and any length bound in plain language.