Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/emtcmca/promptsmith/sharpengit clone --depth 1 https://github.com/emtcmca/promptsmithWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/emtcmca/promptsmith/sharpen)<a href="https://agentmods.dev/commands/emtcmca/promptsmith/sharpen"><img src="https://agentmods.dev/badge/commands/emtcmca/promptsmith/sharpen.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00022 | $0.00579 |
| Opus 5 | $0.00011 | $0.00290 |
| Sonnet 5 | $0.00004 | $0.00116 |
| Haiku 4.5 | $0.00002 | $0.00058 |
Grade A, and why
sharpen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Sharpen a one-off task request into a complete, executable prompt. Model-agnostic — the output is plain text you can paste into any agent or chat.
Step 1 — Load the engine
Read ${CLAUDE_PLUGIN_ROOT}/skills/prompt-engineering/SKILL.md in full. It defines the
pipeline. This command runs that pipeline on the SHARPEN path.
Paths.
${CLAUDE_PLUGIN_ROOT}is this plugin's install directory, substituted automatically — never a literal folder in the user's project. If promptsmith was installed standalone (README Option B, no plugin root), read from~/.claude/instead:~/.claude/skills/…,~/.claude/promptsmith-templates/,~/.claude/promptsmith-lenses/,~/.claude/promptsmith-agents/. Never resolve these against the user's working directory.
Step 2 — Parse arguments
Parse $ARGUMENTS:
--lens <a,b>— explicit lenses to apply. If absent, auto-pick by topic (engine Step 5).--deep— run the interactive interview instead of assuming (engine Step 7). Ask the open questions one at a time, wait for answers, then synthesize.- Everything else = the rough request to sharpen.
If the request is empty, ask the user what they want to sharpen and stop.
Step 3 — Run the engine
Execute engine Steps 2–7 with route = SHARPEN:
- Extract goal, audience, tone/feel/theme, constraints, success criteria, format, scope.
- Gap-fill with labeled assumptions (unless
--deep, then ask). - Red-team the request; turn findings into guardrails.
- Load and apply the selected lenses (built-in + user dirs).
- Synthesize using
${CLAUDE_PLUGIN_ROOT}/templates/sharpened-prompt.md.
Step 4 — Output
Lead with the Prompt block in a copy-pasteable code fence. Then, separated below it:
the assumptions you made, the 1–2 push-backs worth hearing, and the open questions —
ending with an offer to rerun with --deep for a deeper pass.
No preamble. The artifact comes first.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 47 lines · 22 tokens per session scan A 8170792e4dd8
sharpen is a command published in the GitHub repository emtcmca/promptsmith (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 22 tokens to every session and 579 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
gen-image
Generate a brand-aligned AI image — tool selection, full prompt (subject, style, lighting, camera, mood, negatives), variation prompts, and seed strategy. Works across Midjourney, DALL-E, Ideogram, Firefly, and Stable Diffusion.
prompt-generator
Generate effective prompts for Claude 4.5 Sonnet to achieve user-defined outcomes.
prompt-history
Manage history of created and optimized prompts.
prompt
Create or optimize prompts using best practices.
structured-output-doctor
Find LLM calls whose output is parsed as JSON and harden them with native structured output plus validate-and-retry.
prompt-reviewer
Review and improve AI prompts with expert feedback on clarity, effectiveness, and best practices.