prompt-token-efficiency

Solid

Rewrite prompts for minimal tokens, maximal clarity, and low ambiguity for LLM consumption.

AI & Automation 4,819 stars 466 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
92
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Prompt Token Efficiency Use this skill to compress prompts while preserving intent and output quality. ## Goals 1. Minimize token count 2. Maximize clarity 3. Minimize ambiguity 4. 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: 1. Start with the objective in one short sentence. 2. Keep only facts needed to complete the task. 3. Replace long qualifiers with concrete limits. 4. Remove filler words that do not change behavior. 5. 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...

Details

Author
github
Repository
github/gh-aw
Created
11 months ago
Last Updated
today
Language
Go
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category