Borrowing it
Nothing to install: this file belongs to agent-sh/agentsys. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/agent-sh/agentsys/main/.kiro/skills/enhance-prompts/SKILL.mdgit clone --depth 1 https://github.com/agent-sh/agentsysWrote 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/skills/agent-sh/agentsys/enhance-prompts)<a href="https://agentmods.dev/skills/agent-sh/agentsys/enhance-prompts"><img src="https://agentmods.dev/badge/skills/agent-sh/agentsys/enhance-prompts/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/agent-sh/agentsys/enhance-prompts"><img src="https://agentmods.dev/badge/skills/agent-sh/agentsys/enhance-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00018 | $0.02130 |
| Opus 5 | $0.00009 | $0.01065 |
| Sonnet 5 | $0.00004 | $0.00426 |
| Haiku 4.5 | $0.00002 | $0.00213 |
Grade A, and why
enhance-prompts 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.
enhance-prompts
Analyze prompts for clarity, structure, examples, and output reliability.
Parse Arguments
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const targetPath = args.find(a => !a.startsWith('--')) || '.';
const fix = args.includes('--fix');
Differentiation from enhance-agent-prompts
| Skill | Focus | Use When |
|---|---|---|
enhance-prompts |
Prompt quality (clarity, structure, examples) | General prompts, system prompts, templates |
enhance-agent-prompts |
Agent config (frontmatter, tools, model) | Agent files with YAML frontmatter |
Workflow
-
Run Analyzer - Execute the JavaScript analyzer to get findings:
node -e "const a = require('./lib/enhance/prompt-analyzer.js'); console.log(JSON.stringify(a.analyzeAllPrompts('.'), null, 2));"For a specific path:
a.analyzeAllPrompts('./plugins/enhance')For a single file:a.analyzePrompt('./path/to/file.md') -
Parse Results - The analyzer returns JSON with
summaryandfindings -
Filter - Apply certainty filtering based on --verbose flag
-
Report - Format findings as markdown output
-
Fix - If --fix flag, apply auto-fixes from findings
The JavaScript analyzer (lib/enhance/prompt-analyzer.js) implements all detection patterns including AST-based code validation. The patterns below are reference documentation.
Prompt Engineering Knowledge Reference
System Prompt Structure
Effective system prompts include: Role/Identity, Capabilities & Constraints, Instruction Priority, Output Format, Behavioral Directives, Examples, Error Handling.
Minimal Template:
<system>
You are [ROLE]. [PURPOSE].
Key constraints: [CONSTRAINTS]
Output format: [FORMAT]
When uncertain: [HANDLING]
</system>
XML Tags (Claude-Specific)
Claude is fine-tuned for XML tags. Use: <role>, <constraints>, <output_format>, <examples>, <instructions>, <context>
<constraints>
- Maximum response length: 500 words
- Use only Python 3.10+ syntax
</constraints>
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.
- 9d ago First seen · 341 lines · 18 tokens per session scan A 77da5f553b81
enhance-prompts is a skill published in the GitHub repository agent-sh/agentsys (984 stars, last pushed 3d ago), licensed MIT. It adds 18 tokens to every session and 2,130 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-30.
Other skills, from other repositories
shipkit-prompt-audit
Audit LLM prompt pipeline architecture — decomposition, parallelization, chain integrity, schema validation, fallback paths. Finds structural issues no linter catches.
cost-aware-llm-pipeline
Cost optimization patterns for LLM API usage — model routing by task complexity, budget tracking, retry logic, and prompt caching.
prompt-engineering
Principal-level prompt engineering — task decomposition, role + context + instructions + examples + output-format structure, few-shot patterns, chain-of-thought, tool-use prompts, evaluation, prompt versioning, and the discipline that separates "works once on the demo" from "production-grade prompt that survives model…
guidance
Constrain LLM output with grammars; guarantee valid JSON.
outlines
Outlines: structured JSON/regex/Pydantic LLM generation.
dspy
DSPy: declarative LM programs, auto-optimize prompts, RAG.