Finalize agent prompt
Read a provided agent prompt file, transform its wording and organization into a clearer end-user-ready prompt, and preserve its front matter, encoding, markdown structure, and original intent.
When to invoke
- "Finalize this agent prompt."
- "Polish this prompt file before I ship it."
- "Use your current role to refine this prompt."
- "Check this AI agent prompt for clarity and structure."
- "Improve this prompt without changing its intent."
Prerequisites and context
- A prompt file must be provided. If none accompanies the request, ask for the file before proceeding.
- Use the current role: an AI agent that knows what works best for prompt files it has seen and the feedback it has received.
- Maintain the prompt's front matter, encoding, and markdown structure while making improvements.
Refinement criteria
| Area |
Improve |
Preserve |
| Purpose |
Make the agent's mission explicit and easy to scan. |
The original task intent and audience. |
| Scope |
Clarify what the prompt should and should not do. |
Existing boundaries unless they conflict internally. |
| Instructions |
Convert vague advice into direct, testable imperatives. |
Required behaviors, tool expectations, and safety rules. |
| Structure |
Group related rules under clear headings and remove repetition. |
Markdown hierarchy and frontmatter semantics. |
| Language |
Fix spelling, grammar, ambiguity, and awkward phrasing. |
Domain terms, placeholders, and user-provided terminology. |
| Deliverables |
State expected output and completion criteria. |
Existing output contract unless the user asked to redesign it. |
Procedure
- Read the prompt file carefully from start to finish.
- Identify the prompt's role, target user, deliverables, constraints, and success criteria.
- Preserve front matter byte meaning: keep existing keys, values, encoding, and markdown structure unless the user explicitly asks for structural changes.
- Rewrite for clarity, organization, spelling, grammar, and direct imperative voice.
- Remove redundancy only when doing so does not drop a requirement.
- Verify that the final prompt still expresses the original intent and includes all required constraints.
Gotchas
- Do not change intent while polishing: clearer wording must not alter scope, permissions, or deliverables.
- Do not damage front matter: malformed YAML can make the prompt undiscoverable.
- Do not flatten meaningful structure: preserve headings that encode workflow, priority, or tool behavior.
- Do not overgeneralize from prior prompts: successful patterns inform polish, but the provided file remains authoritative.
Output template
## Finalized agent prompt result
**Status:** finalized | needs source file | blocked
**Prompt file:** <path or provided attachment>
### Changes made
| Area | Change | Intent preserved how |
| --- | --- | --- |
| clarity | <summary> | <evidence> |
| structure | <summary> | <evidence> |
| grammar | <summary> | <evidence> |
### Validation
- Front matter preserved: pass | fail
- Encoding preserved: pass | fail
- Markdown structure preserved: pass | fail
- Original intent preserved: pass | fail
Quality gate
1---2name: finalize-agent-prompt-33description: Polish an AI agent prompt file for end-user use by preserving frontmatter, encoding, markdown structure, and intent while improving clarity, organization, grammar, and instruction quality. Use when the user asks to finalize, refine, or review an agent prompt from the current role before delivery.4---56<!-- Generated from harness/github-copilot/plugins/copilot-customization-authoring/skills/finalize-agent-prompt/SKILL.md by harness/claude-code/scripts/convert_from_copilot.py. Edit the source, not this file. -->78# Finalize agent prompt910Read a provided agent prompt file, transform its wording and organization into a clearer end-user-ready prompt, and preserve its front matter, encoding, markdown structure, and original intent.1112## When to invoke1314- "Finalize this agent prompt."15- "Polish this prompt file before I ship it."16- "Use your current role to refine this prompt."17- "Check this AI agent prompt for clarity and structure."18- "Improve this prompt without changing its intent."1920## Prerequisites and context2122- A prompt file must be provided. If none accompanies the request, ask for the file before proceeding.23- Use the current role: an AI agent that knows what works best for prompt files it has seen and the feedback it has received.24- Maintain the prompt's front matter, encoding, and markdown structure while making improvements.2526## Refinement criteria2728| Area | Improve | Preserve |29| --- | --- | --- |30| Purpose | Make the agent's mission explicit and easy to scan. | The original task intent and audience. |31| Scope | Clarify what the prompt should and should not do. | Existing boundaries unless they conflict internally. |32| Instructions | Convert vague advice into direct, testable imperatives. | Required behaviors, tool expectations, and safety rules. |33| Structure | Group related rules under clear headings and remove repetition. | Markdown hierarchy and frontmatter semantics. |34| Language | Fix spelling, grammar, ambiguity, and awkward phrasing. | Domain terms, placeholders, and user-provided terminology. |35| Deliverables | State expected output and completion criteria. | Existing output contract unless the user asked to redesign it. |3637## Procedure38391. Read the prompt file carefully from start to finish.402. Identify the prompt's role, target user, deliverables, constraints, and success criteria.413. Preserve front matter byte meaning: keep existing keys, values, encoding, and markdown structure unless the user explicitly asks for structural changes.424. Rewrite for clarity, organization, spelling, grammar, and direct imperative voice.435. Remove redundancy only when doing so does not drop a requirement.446. Verify that the final prompt still expresses the original intent and includes all required constraints.4546## Gotchas4748- **Do not change intent while polishing**: clearer wording must not alter scope, permissions, or deliverables.49- **Do not damage front matter**: malformed YAML can make the prompt undiscoverable.50- **Do not flatten meaningful structure**: preserve headings that encode workflow, priority, or tool behavior.51- **Do not overgeneralize from prior prompts**: successful patterns inform polish, but the provided file remains authoritative.5253## Output template5455````markdown56## Finalized agent prompt result5758**Status:** finalized | needs source file | blocked59**Prompt file:** <path or provided attachment>6061### Changes made62| Area | Change | Intent preserved how |63| --- | --- | --- |64| clarity | <summary> | <evidence> |65| structure | <summary> | <evidence> |66| grammar | <summary> | <evidence> |6768### Validation69- Front matter preserved: pass | fail70- Encoding preserved: pass | fail71- Markdown structure preserved: pass | fail72- Original intent preserved: pass | fail73````7475## Quality gate7677- [ ] A prompt file was provided or the user was asked to provide one.78- [ ] The prompt file was read in full before editing.79- [ ] Front matter, encoding, and markdown structure were maintained.80- [ ] Spelling, grammar, clarity, and organization were improved without changing original intent.81- [ ] Required constraints, deliverables, and success criteria were preserved.82- [ ] The result is suitable for the end user rather than an internal editing note.