enhance-agent-prompts
FeaturedUse when improving agent prompts, frontmatter, and tool restrictions.
AI & Automation 967 stars
111 forks Updated 4 days ago MIT
Install
Quality Score: 96/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# enhance-agent-prompts
Analyze agent prompt files for prompt engineering best practices.
## Parse Arguments
```javascript
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const targetPath = args.find(a => !a.startsWith('--')) || '.';
const fix = args.includes('--fix');
const verbose = args.includes('--verbose');
```
## Agent File Locations
| Platform | Global | Project |
|----------|--------|---------|
| Claude Code | `~/.claude/agents/*.md` | `.claude/agents/*.md` |
| OpenCode | `~/.config/opencode/agents/*.md` | `.opencode/agents/*.md` |
| Codex | `~/.codex/skills/` | `AGENTS.md` |
## Workflow
1. **Discover** - Find agent .md files
2. **Parse** - Extract frontmatter, analyze content
3. **Check** - Run 30 pattern checks
4. **Report** - Generate markdown output
5. **Fix** - Apply auto-fixes if --fix flag
## Detection Patterns
### 1. Frontmatter (HIGH)
```yaml
---
name: agent-name # Required: kebab-case
description: "What and when" # Required: WHEN to use (see "Intern Test")
tools: Read, Glob, Grep # Required: restricted list
model: sonnet # Optional: opus | sonnet | haiku
---
```
**Model Selection:**
- **opus**: Complex reasoning, errors compound
- **sonnet**: Most agents, validation
- **haiku**: Mechanical execution, no judgment
**Tool Syntax:** `Read`, `Read(src/**)`, `Bash(git:*)`, `Bash(npm:*)`
**The "Intern Test"** - Can someone invoke this agent given only its description?
```yaml
# Bad
description: Reviews code
# ...
Details
- Author
- agent-sh
- Repository
- agent-sh/agentsys
- Created
- 7 months ago
- Last Updated
- 4 days ago
- Language
- JavaScript
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
enhance-prompts
Use when improving general prompts for structure, examples, and constraints.
967 Updated 4 days ago
agent-sh AI & Automation Listed
enhance-prompt
Use when the user asks to rewrite a rough request into a polished, copy/paste-ready prompt for another agent or a fresh session.
1 Updated yesterday
ryanportfolio AI & Automation Featured
coding-agents-prompt-authoring
To author, adapt, review, and validate prompts (skills, agents, workflows, rules, etc.) with brief, contracts, and a validation pack.
335 Updated today
griddynamics