agentsys: Skill for Claude Code

.kiro/skills/enhance-agent-prompts/SKILL.md

enhance-agent-prompts is a skill for Claude Code, Codex, Kiro from agent-sh/agentsys. It costs 19 tokens per session (1,896 once invoked), scanned A, original, MIT.

A checker for AI-agent prompt files, their settings, and the tools they are allowed to use.

In plain words
What is it for?
Use it to inspect agent files, validate their descriptions and tool lists, and optionally apply supported automatic fixes.
Why use it?
It finds common prompt and configuration problems that can make agents unclear, too broad, or harder to control.

Skill for Claude CodeCodexKiro

Written for Claude Code and Codex and Kiro: argument-hint in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is agent-sh/agentsys's own configuration. It tells Claude Code, Codex and Kiro how to work on agentsys itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentsys configures →

Part of the agentsys plugin — 28 skills, 1 hook shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/agent-sh/agentsys/main/.kiro/skills/enhance-agent-prompts/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/agent-sh/agentsys

Made for: Claude Code, Codex, Kiro.

Or install agentsys, the plugin that ships this one along with the rest of its 28 skills, 1 hook.

Wrote 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.

agentmods badge for enhance-agent-prompts

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-sh/agentsys/enhance-agent-prompts/github.svg)](https://agentmods.dev/skills/agent-sh/agentsys/enhance-agent-prompts)
Your own site
<a href="https://agentmods.dev/skills/agent-sh/agentsys/enhance-agent-prompts"><img src="https://agentmods.dev/badge/skills/agent-sh/agentsys/enhance-agent-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.

agentmods 80×15 button for enhance-agent-prompts

Your own site · 80×15
<a href="https://agentmods.dev/skills/agent-sh/agentsys/enhance-agent-prompts"><img src="https://agentmods.dev/badge/skills/agent-sh/agentsys/enhance-agent-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,896 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01896
Opus 5 $0.00010 $0.00948
Sonnet 5 $0.00004 $0.00379
Haiku 4.5 $0.00002 $0.00190

Measured 10d ago against content hash bc14b537ff6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

enhance-agent-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 10d 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.

.kiro/skills/enhance-agent-prompts/SKILL.md · 278 lines

How it starts

The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.

enhance-agent-prompts

Analyze agent prompt files for prompt engineering best practices.

Parse Arguments

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)

---
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?

# Bad
description: Reviews code

# Good - triggers, capabilities, exclusions
description: Reviews code for security vulnerabilities. Use for PRs touching auth, API, data handling. Not for style reviews.

2. Structure (HIGH)

Required sections: Role ("You are..."), Output format, Constraints

Position-aware order (LLMs recall START/END better than MIDDLE):

  1. Role/Identity (START)
  2. Capabilities, Workflow, Examples
  3. Constraints (END)

3. Instruction Effectiveness (HIGH)

Positive over negative:

  • Bad: "Don't assume file paths exist"
  • Good: "Verify file paths using Glob before reading"

Read the full file on GitHub · 278 lines

Changes

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.

  1. 10d ago First seen · 278 lines · 19 tokens per session scan A bc14b537ff6f

Subscribe to this mod's changes

enhance-agent-prompts is a skill published in the GitHub repository agent-sh/agentsys (984 stars, last pushed 3d ago), licensed MIT. It adds 19 tokens to every session and 1,896 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.

Related

Other skills, from other repositories

refactor

Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.

code-yeongyu/oh-my-openagent · 36 tokens

pre-publish-review

Nuclear-grade 12-agent pre-publish release gate. Runs /get-unpublished-changes to detect all changes since last npm release, spawns up to 10 ultrabrain agents for deep per-change analysis, invokes /review-work (orchestrator manual QA plus one gate reviewer) for holistic review, and 1 oracle for overall release…

code-yeongyu/oh-my-openagent · 161 tokens

work-with-pr

Full PR lifecycle in a fresh task-owned git worktree: implement via the ulw-loop skill with mandatory evidence-bound manual QA → reviewer-readable English PR → verification loop (CI + Cubic, where Cubic is skipped only when its quota is exhausted) → merge by default → worktree cleanup. Decomposes one task into the…

code-yeongyu/oh-my-openagent · 211 tokens

remove-ai-slops

Removes AI-generated code smells from branch changes or an explicit file list behind regression tests. Use when the user asks to clean up, deslop, or remove AI-slop patterns from recent changes.

code-yeongyu/oh-my-openagent · 45 tokens

review-work

Post-implementation gate review: run manual QA on the real surface yourself, then launch ONE gate reviewer (never a panel) to audit goal, constraints, code quality, security, missed context, and QA evidence. Use before a PR handoff or when the user explicitly asks to review completed work.

code-yeongyu/oh-my-openagent · 63 tokens

tech-debt-audit

Thorough, file-cited technical debt audit across 9 dimensions using AST-grep (tree-sitter), grep, LSP, and language-native tooling. Produces TECHDEBTAUDIT.md with severity, effort estimates, and prioritized fixes. Use when asked for codebase health check, tech debt audit, architecture review, code quality assessment…

code-yeongyu/oh-my-openagent · 127 tokens