prompt-token-efficiency

द्वारा github

एलएलएम उपभोग के लिए न्यूनतम टोकन, अधिकतम स्पष्टता और कम अस्पष्टता हेतु प्रॉम्प्ट को पुनः लिखें।

npx skills add https://github.com/github/gh-aw --skill prompt-token-efficiency

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 की और Skills

console-rendering
github
Go में struct टैग-आधारित कंसोल रेंडरिंग सिस्टम का उपयोग करने के निर्देश
official
github-pr-query
github
jq तर्क समर्थन के साथ GitHub पुल अनुरोधों को कुशलतापूर्वक क्वेरी करें
official
jqschema
github
JSON डेटा से संरचना और प्रकार की जानकारी निकालने वाली JSON स्कीमा खोज उपयोगिता
official
gh-agent-session
github
GitHub CLI एजेंट सत्र विस्तार
official
gh-agent-task
github
GitHub CLI एजेंट कार्य विस्तार
official
github-copilot-agent-tips-and-tricks
github
GitHub Copilot Agent PRs के साथ काम करने के लिए टिप्स और ट्रिक्स
official
rust-coding-skill
github
Use this skill whenever editing `*.rs` files in the `rust/` SDK in order to write idiomatic, efficient, well-structured Rust code
official
ai-ready
github
किसी भी रिपॉजिटरी को AI-तैयार बनाएं — आपके कोडबेस का विश्लेषण करता है और AGENTS.md, copilot-instructions.md, CI वर्कफ़्लो, इश्यू टेम्पलेट और अधिक जनरेट करता है। आपकी PR समीक्षा को माइन करता है…
official