prompt-token-efficiency
Rewrite prompts for minimal tokens, maximal clarity, and low ambiguity for LLM consumption.
来源信息
- 仓库
- github/gh-aw
- 最近来源活动
- 2026年6月4日 15:13
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 5,404
- 分支
- 588
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- prompt-token-efficiency
- description
- Rewrite prompts for minimal tokens, maximal clarity, and low ambiguity for LLM consumption.
# 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.
## 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.
在 GitHub 查看