Agent skill
skill-enhancer
Upgrade existing agent skills end-to-end with deterministic edits, stronger trigger wording, cross-assistant portability hardening, and test coverage improvements. Use when users ask to update, fix, review, refactor, standardize, optimize, or harden any `SKILL.md` workflow and its companion files (`agents/openai.yaml`, `tests/scenarios.md`) for Codex, Claude, Gemini, and Cursor.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/skill-enhancer
SKILL.md
Skill Enhancer
Strengthen existing skills through proactive technical review and targeted remediation, then deliver enterprise-grade, assistant-agnostic improvements by default.
Compatibility note:
- Treat
$skill-enhanceras the primary trigger. - Legacy prompts may still use
$codex-skill-enhancer; handle them as migration-compatible aliases in documentation and tests.
Mandatory reference policy
- Always find and use official sources from vendor documentation, standards bodies, or primary project documentation sites.
- Do not rely on forum-only or opinion-only sources when an official source exists.
- Load and follow
references.mdin this skill folder to select and report valid reference sources. - Every final skill-enhancement output must include a
Referencessection with source title and URL.
Workflow
Step 0: Resolve scope and target (required)
Determine target scope before editing:
- If the user names a specific skill path, use it.
- If the user says "update this skill" while this skill is explicitly invoked, default target to this skill directory.
- If target is ambiguous, ask one precise clarification question.
Locate the target skill path. If missing, ask for it or search likely skill directories.
Step 1: Confirm baseline (required)
Read at minimum:
SKILL.mdtests/scenarios.md(if present)agents/openai.yaml(required; create if missing)
Summarize the current state:
- Trigger quality (description precision and searchability)
- Workflow clarity (ordered, imperative, actionable steps)
- Portability (generic instructions not tied to one assistant)
- Test coverage (scenario breadth and edge cases)
Step 2: Run proactive enterprise-grade assessment (required)
Do not ask "what to improve" as a default step. Instead, infer and address the highest-impact issues immediately.
Assess and prioritize:
- Trigger precision and coverage in
description. - Instruction actionability and deterministic workflow order.
- Portability across Codex, Claude, Gemini, and Cursor.
- Completeness of
agents/openai.yamlalignment with current skill purpose. - Test scenario rigor, including hard and edge-case behavior.
- Enterprise quality bar: clarity, consistency, verification gates, and low ambiguity.
Ask clarifying questions only when blocked by missing critical context (for example, missing target path or conflicting requirements).
Step 3: Run assistant-agnostic technical analysis (required)
Evaluate against this checklist:
- Name quality: lower-case slug, clear and stable intent.
- Description quality: what + when to use, includes trigger terms.
- Actionability: imperative steps, correct order, clear success checks.
- Progressive disclosure: keep core workflow in
SKILL.md, move detailed variants to references only when needed. - Scope discipline: single responsibility; avoid tool or platform overfitting.
- Portability: avoid assistant-specific jargon unless paired with a generic equivalent.
- Evaluation readiness:
tests/scenarios.mdexists and includes easy, hard, and edge-case scenarios. - Reference integrity: proposed changes are justified with official documentation links from
references.mdpolicy.
Step 4: Gather official references (required)
Before editing files:
- Identify which parts of the enhancement need external grounding (for example: authoring standards, YAML schema conventions, test design quality bars).
- Find official documentation sources for those topics (product docs, standards docs, or primary project docs).
- Record only relevant links that directly support the applied changes.
- Avoid non-official sources unless no official source exists; if fallback is used, explicitly state why.
Step 5: Present a prioritized enhancement plan
Use this format:
## Enhancement Plan
### User-requested
1. [Observed issue] -> [Specific fix]
### Technical
1. [Standards issue] -> [Specific fix]
### Portability
1. [Cross-assistant risk] -> [Generic wording or workflow fix]
Prioritize user-requested items first, then technical, then portability refinements.
Create and maintain a TODO checklist from this plan before editing files. Track each item as:
[ ]pending[-]in progress (only one at a time)[x]complete
Keep the TODO list updated as work progresses. Do not mark verification items complete until checks pass.
Step 6: Implement enhancements
Apply changes in this order:
- Fix
descriptiontrigger clarity. - Rewrite weak workflow sections into imperative steps.
- Remove assistant-locked phrasing and replace with generic instruction patterns.
- Expand or repair
tests/scenarios.mdfor realistic evaluation. - Write or update
agents/openai.yamlso interface metadata matches the current skill behavior and trigger intent.
Preserve valid existing behavior. Avoid unnecessary restructuring. Update TODO status after each completed change.
Step 7: Verify quality gates
Confirm:
- Highest-impact enterprise-quality issues are explicitly addressed.
- Workflow is executable without hidden assumptions.
- Language is generic enough for Codex, Claude, Gemini, and Cursor.
- Scenario tests reflect real failure modes and expected behavior.
agents/openai.yamlexists and is aligned withSKILL.md(display name, short description, and default prompt reflect current purpose).- Final report includes official references backing the applied changes.
If available, run a validator for structural checks and fix any reported issues. Complete the TODO list only when implementation and verification tasks are fully done.
Output requirements
When reporting results, include:
- What changed (files and high-impact edits)
- Why each change matters
- Remaining risks or follow-up improvements
- Final TODO checklist snapshot
- References (official sources only, title + URL)
Tips
- Rewrite the
descriptionfirst. Trigger quality has the highest impact on whether a skill is discovered and used. - Default to proactive remediation; ask questions only when essential context is missing.
- Replace vendor terms with role-based terms like "agent", "assistant", and "tooling" unless platform-specific wording is required.
- Favor one precise follow-up question over multiple broad questions to reduce turn overhead.
- Add at least one edge-case scenario whenever behavior changes, especially for missing paths or ambiguous scope.
- Treat
agents/openai.yamlas a maintained contract, not optional metadata. - Keep TODO items atomic; split large edits into smaller checkable actions.
- If a fix adds complexity, include a short verification check so future agents can confirm behavior quickly.
- Avoid expanding scope in one pass; finish the requested enhancement before proposing secondary refactors.
Deterministic execution rules
- Prefer direct file edits over speculative recommendations when the user asks to "update" a skill.
- Keep edits minimal and traceable to observed issues from Step 1 and Step 2.
- Do not rename skill folders or files unless the user explicitly requests a rename.
- If companion files are missing, create them with minimal valid content aligned to the current skill purpose.
- If blocked, stop before partial rewrites and report the exact blocker plus one next action.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?