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-enhancer as 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.md in this skill folder to select and report valid reference sources.
- Every final skill-enhancement output must include a
References section 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.md
tests/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.yaml alignment 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.md exists and includes easy, hard, and edge-case scenarios.
- Reference integrity: proposed changes are justified with official documentation links from
references.md policy.
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
description trigger clarity.
- Rewrite weak workflow sections into imperative steps.
- Remove assistant-locked phrasing and replace with generic instruction patterns.
- Expand or repair
tests/scenarios.md for realistic evaluation.
- Write or update
agents/openai.yaml so 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.yaml exists and is aligned with SKILL.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
description first. 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.yaml as 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.
1---2name: skill-enhancer-23description: 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.4---5
6# Skill Enhancer
7
8Strengthen existing skills through proactive technical review and targeted remediation, then deliver enterprise-grade, assistant-agnostic improvements by default.
9
10Compatibility note:
11- Treat `$skill-enhancer` as the primary trigger.
12- Legacy prompts may still use `$codex-skill-enhancer`; handle them as migration-compatible aliases in documentation and tests.
13
14## Mandatory reference policy
15
16- Always find and use official sources from vendor documentation, standards bodies, or primary project documentation sites.
17- Do not rely on forum-only or opinion-only sources when an official source exists.
18- Load and follow `references.md` in this skill folder to select and report valid reference sources.
19- Every final skill-enhancement output must include a `References` section with source title and URL.
20
21## Workflow
22
23### Step 0: Resolve scope and target (required)
24
25Determine target scope before editing:
26- If the user names a specific skill path, use it.
27- If the user says "update this skill" while this skill is explicitly invoked, default target to this skill directory.
28- If target is ambiguous, ask one precise clarification question.
29
30Locate the target skill path. If missing, ask for it or search likely skill directories.
31
32### Step 1: Confirm baseline (required)
33
34Read at minimum:
35- `SKILL.md`
36- `tests/scenarios.md` (if present)
37- `agents/openai.yaml` (required; create if missing)
38
39Summarize the current state:
40- Trigger quality (description precision and searchability)
41- Workflow clarity (ordered, imperative, actionable steps)
42- Portability (generic instructions not tied to one assistant)
43- Test coverage (scenario breadth and edge cases)
44
45### Step 2: Run proactive enterprise-grade assessment (required)
46
47Do not ask "what to improve" as a default step. Instead, infer and address the highest-impact issues immediately.
48
49Assess and prioritize:
501. Trigger precision and coverage in `description`.
512. Instruction actionability and deterministic workflow order.
523. Portability across Codex, Claude, Gemini, and Cursor.
534. Completeness of `agents/openai.yaml` alignment with current skill purpose.
545. Test scenario rigor, including hard and edge-case behavior.
556. Enterprise quality bar: clarity, consistency, verification gates, and low ambiguity.
56
57Ask clarifying questions only when blocked by missing critical context (for example, missing target path or conflicting requirements).
58
59### Step 3: Run assistant-agnostic technical analysis (required)
60
61Evaluate against this checklist:
621. Name quality: lower-case slug, clear and stable intent.
632. Description quality: what + when to use, includes trigger terms.
643. Actionability: imperative steps, correct order, clear success checks.
654. Progressive disclosure: keep core workflow in `SKILL.md`, move detailed variants to references only when needed.
665. Scope discipline: single responsibility; avoid tool or platform overfitting.
676. Portability: avoid assistant-specific jargon unless paired with a generic equivalent.
687. Evaluation readiness: `tests/scenarios.md` exists and includes easy, hard, and edge-case scenarios.
698. Reference integrity: proposed changes are justified with official documentation links from `references.md` policy.
70
71### Step 4: Gather official references (required)
72
73Before editing files:
741. Identify which parts of the enhancement need external grounding (for example: authoring standards, YAML schema conventions, test design quality bars).
752. Find official documentation sources for those topics (product docs, standards docs, or primary project docs).
763. Record only relevant links that directly support the applied changes.
774. Avoid non-official sources unless no official source exists; if fallback is used, explicitly state why.
78
79### Step 5: Present a prioritized enhancement plan
80
81Use this format:
82
83```markdown
84## Enhancement Plan
85
86### User-requested
871. [Observed issue] -> [Specific fix]
88
89### Technical
901. [Standards issue] -> [Specific fix]
91
92### Portability
931. [Cross-assistant risk] -> [Generic wording or workflow fix]
94```
95
96Prioritize user-requested items first, then technical, then portability refinements.
97
98Create and maintain a TODO checklist from this plan before editing files. Track each item as:
99- `[ ]` pending
100- `[-]` in progress (only one at a time)
101- `[x]` complete
102
103Keep the TODO list updated as work progresses. Do not mark verification items complete until checks pass.
104
105### Step 6: Implement enhancements
106
107Apply changes in this order:
1081. Fix `description` trigger clarity.
1092. Rewrite weak workflow sections into imperative steps.
1103. Remove assistant-locked phrasing and replace with generic instruction patterns.
1114. Expand or repair `tests/scenarios.md` for realistic evaluation.
1125. Write or update `agents/openai.yaml` so interface metadata matches the current skill behavior and trigger intent.
113
114Preserve valid existing behavior. Avoid unnecessary restructuring.
115Update TODO status after each completed change.
116
117### Step 7: Verify quality gates
118
119Confirm:
120- Highest-impact enterprise-quality issues are explicitly addressed.
121- Workflow is executable without hidden assumptions.
122- Language is generic enough for Codex, Claude, Gemini, and Cursor.
123- Scenario tests reflect real failure modes and expected behavior.
124- `agents/openai.yaml` exists and is aligned with `SKILL.md` (display name, short description, and default prompt reflect current purpose).
125- Final report includes official references backing the applied changes.
126
127If available, run a validator for structural checks and fix any reported issues.
128Complete the TODO list only when implementation and verification tasks are fully done.
129
130## Output requirements
131
132When reporting results, include:
1331. What changed (files and high-impact edits)
1342. Why each change matters
1353. Remaining risks or follow-up improvements
1364. Final TODO checklist snapshot
1375. References (official sources only, title + URL)
138
139## Tips
140
141- Rewrite the `description` first. Trigger quality has the highest impact on whether a skill is discovered and used.
142- Default to proactive remediation; ask questions only when essential context is missing.
143- Replace vendor terms with role-based terms like "agent", "assistant", and "tooling" unless platform-specific wording is required.
144- Favor one precise follow-up question over multiple broad questions to reduce turn overhead.
145- Add at least one edge-case scenario whenever behavior changes, especially for missing paths or ambiguous scope.
146- Treat `agents/openai.yaml` as a maintained contract, not optional metadata.
147- Keep TODO items atomic; split large edits into smaller checkable actions.
148- If a fix adds complexity, include a short verification check so future agents can confirm behavior quickly.
149- Avoid expanding scope in one pass; finish the requested enhancement before proposing secondary refactors.
150
151## Deterministic execution rules
152
153- Prefer direct file edits over speculative recommendations when the user asks to "update" a skill.
154- Keep edits minimal and traceable to observed issues from Step 1 and Step 2.
155- Do not rename skill folders or files unless the user explicitly requests a rename.
156- If companion files are missing, create them with minimal valid content aligned to the current skill purpose.
157- If blocked, stop before partial rewrites and report the exact blocker plus one next action.