agentleFS
zedarvateszedarvates/frugal-skills/skills/prompt-improver/SKILL.md

prompt-improver

Skill1 starsChanged 32 days agoMITView on GitHub

Instructions for structuring a prompt as role, context, task, instructions, constraints, output format and success criteria. A local-model execution requires a configured backend; an agent-authored template is not an upstream execution. Not for repeated-prefix detection or skill selection.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

prompt-improver — pro structured prompts, built locally

Package scope and prerequisites

This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.

When NOT to use

  • You want to know which prompt or system context is being resent needlessly — use prompt_repetition.
  • You want to pick the right skill for the improved task — use skill_finder.
  • You want to know whether the prompt prefix is the context cost driver — use context_profiler.

Improving a prompt is text transformation, not hard reasoning — so it runs on a separately configured model backend (llm_backends). Output as structured markdown or a strict JSON prompt object.

Run it (the /p-amelioration entry point)

python -m skills.prompt_improver.cli "make my code faster"
python -m skills.prompt_improver.cli "summarize this PR" --json
python -m skills.prompt_improver.cli "..." --no-local        # deterministic scaffold only
from skills.prompt_improver import improve
improve("rends mon code plus rapide", as_json=True)["json_prompt"]   # cloud_tokens: 0

The structure (well-established prompt-engineering practice)

FieldPurpose
rolewho the model acts as
contextonly the background that matters
taskone explicit objective
instructionsordered steps
constraintshard rules / what NOT to do
output_formatexact shape of the answer
examplesoptional few-shot {input, output} pairs
success_criteriamachine-checkable "done" conditions

How it behaves

  • With a local backend: the model rewrites the rough prompt into the schema (markdown or strict JSON, robustly parsed even through code fences).
  • Without one (or --no-local): returns a deterministic scaffold so the call never fails — then suggest installing a local model (see [[llm-backends]]).

Exposed via [[llm-mcp]] as the improve_prompt tool. Pairs well with [[skill-finder]] (find tools for the improved task) and [[auto-router]] (run it locally). Related global skills: prompt-engineering, prompt-builder, boost-prompt.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.