Index of every page on this site: llms.txt
All skills
bostonaholic avatar

/improving-prompts

@b3697b8
Run it yourself

Compresses and clarifies an existing LLM prompt through concept elevation, verifying that no original instruction is lost. Use when the user supplies a prompt or prompt file and asks to improve, tighten, optimize, or refine it. Not for writing a new prompt; use writing-system-prompts.

Use this Skill: https://skilld.dev/gh/bostonaholic/grokbot-skills/improving-prompts

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈76 tokens for metadata: the name and description. ≈349 when used: this file.

Description uses 3.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈305 characters, or 3.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Improve Prompt Using Concept Elevation

Concept elevation finds the higher-level rule that expresses the sum of several connected instructions. The result is shorter and lets the model adapt to new situations instead of relying on specific cases.

The argument is prompt text or a path to a file containing it. Print the improved prompt by default. Edit the file in place only when the user asks.

Process

  1. Number every instruction, constraint, and example in the original (I1, I2, ...). This is the intent inventory.
  2. Group items that serve one purpose, and replace each group with the single rule that captures all of it. Keep an item as written when no rule captures it without loss.
  3. Map every inventory item to the draft line that carries its intent. Restore each unmapped item, then map again, until every item maps. The draft must be shorter than the original and leave no case unaddressed that the original covered.

Never drop an item silently. When two items conflict or one looks obsolete, keep both in the draft and flag the conflict.

Deliverable

End with this format (adapt the list labels; keep the order):

```text
<the improved prompt>
```

- Merged: I1, I4, I7 -> <the rule that replaces them, abbreviated>
- Kept as written: I3 (<why no rule captured it>)
- Flagged: I9 conflicts with I2 (<the decision the user must make>)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts25d3 checks · Risk SAFE
  • Gen Agent Trust Hub25d

    The skill is a benign instructional utility for optimizing LLM prompts. It contains no executable code, obfuscation, or malicious patterns. It is categorized as safe.

  • Socket25d

    No alerts

  • Snyk25d

    Risk: LOW · No issues

Signed by skilld at b3697b8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated last month
argument-hint
<prompt text or file path containing the prompt to improve>

README badge

README badge for bostonaholic/grokbot-skills/improving-prompts