Skip to content
Skill Authoring
Skill

/prompt-leverage

Upgrade raw prompts into execution-ready instructions. Use when asked to improve a prompt, add context, tool, verification, or done rules, extract a template, or design an enhancement hook.

BOOST
From plugin
hoangnb24-skills
2296 skills2 MCP
Install
$ npx -y skills add hoangnb24/skills --skill prompt-leverage --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/prompt-leverage

Context preview

The summary Claude sees to decide when to auto-load this skill.

Upgrade raw prompts into execution-ready instructions. Use when asked to improve a prompt, add context, tool, verification, or done rules, extract a template, or design an enhancement hook.

SKILL.md

prompt-leverage.SKILL.md
name: prompt-leverage
description: Upgrade raw prompts into execution-ready instructions. Use when asked to improve a prompt, add context, tool, verification, or done rules, extract a template, or design an enhancement hook.

Prompt Leverage

Turn the user's current prompt into a stronger working prompt without changing the underlying intent. Preserve the task, fill in missing execution structure, and add only enough scaffolding to improve reliability.

Workflow

1. Read the raw prompt and identify the real job to be done. 2. Infer the task type: coding, research, writing, analysis, planning, or review. 3. Rebuild the prompt with the framework blocks in `references/framework.md`. 4. Keep the result proportional: do not over-specify a simple task. 5. Return both the improved prompt and a short explanation of what changed when useful.

Transformation Rules

  • Preserve the user's objective, constraints, and tone unless they conflict.
  • Prefer adding missing structure over rewriting everything stylistically.
  • Add context requirements only when they improve correctness.
  • Add tool rules only when tool use materially affects correctness.
  • Add verification and completion criteria for non-trivial tasks.
  • Keep prompts compact enough to be practical in repeated use.

Framework Blocks

Use these blocks selectively.

  • `Objective`: state the task and what success looks like.
  • `Context`: list sources, files, constraints, and unknowns.
  • `Work Style`: set depth, breadth, care, and first-principles expectations.
  • `Tool Rules`: state when tools, browsing, or file inspection are required.
  • `Output Contract`: define structure, formatting, and level of detail.
  • `Verification`: require checks for correctness, edge cases, and better alternatives.
  • `Done Criteria`: define when the agent should stop.

Output Modes

Choose one mode based on the user request.

  • `Inline upgrade`: provide the upgraded prompt only.
  • `Upgrade + rationale`: provide the prompt plus a brief list of improvements.
  • `Template extraction`: convert the prompt into a reusable fill-in-the-blank template.
  • `Hook spec`: explain how to apply the framework automatically before execution.

Hook Pattern

When the user asks for a hook, model it as a pre-processing layer:

1. Accept the current prompt. 2. Classify the task and risk level. 3. Expand the prompt using the framework blocks. 4. Return the upgraded prompt for execution. 5. Optionally keep a diff or summary of injected structure.

Use `scripts/augment_prompt.py` when a deterministic first-pass rewrite is helpful.

Quality Bar

Before finalizing, check the upgraded prompt:

  • still matches the original intent
  • does not add unnecessary ceremony
  • includes the right verification level for the task
  • gives the agent a clear definition of done

If the prompt is already strong, say so and make only minimal edits.

Read more
Ships withhoangnb24-skills

Khuym is a focused Codex plugin containing five independent meta-skills and one tool-automation skill. It improves how an agent understands, researches, sequences, lands, and visualizes work without imposing a repository workflow.

Get the whole plugin
Stats
229
Stars
69
Forks
Maintained
Maintenance
JavaScript
Language
3mo ago
Last commit
9mo ago
Created
3h ago
Added

Repo: hoangnb24/skills

Other skills on hoangnb24-skills.