github/gh-aw✦ 精选0°

prompt-token-efficiency

仓库创建 2025年8月13日最近提交 1 小时前SkillHot 收录 1 小时前
▸ 精选理由

适合需要降低成本并提高模型执行确定性的场景。

这个 Skill 做什么

压缩并重写提示词以降低 token 用量并保持意图清晰。

把给 LLM 的提示词压缩成最短、最清晰的指令,尽量减少 token 用量但不改变输出意图。会去掉寒暄、重复和不必要叙述,优先短句子和明确步骤,优化执行性而不是让人读得漂亮。适合想降低成本或提高模型执行稳定性时使用。

▸ 展开 SKILL.md 英文原文

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

Skill 开发管理提示优化节省 token歧义最小化通用
4.9k
Stars
482
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/github/gh-aw/main/.github/skills/prompt-token-efficiency/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/github/gh-aw/main/.github/skills/prompt-token-efficiency/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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 Co
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有