| name | pmin |
| description | Single-pass XML formatter — takes a raw input block, emits one clean xml fence with context-adapted tags and an Outcome digest. Zero tool calls, zero plan mode, zero validation loop. |
pmin
Trigger
/pmin followed by a raw input block.
Flow
Read the raw input block in the invocation message. Emit one xml fence followed by an Outcome digest. Stop.
Zero tool calls. Zero AskUserQuestion rounds. Zero plan mode entries.
Default XML structure
<role>...</role>
<instructions>...</instructions>
<output_format>...</output_format>
Start from this structure and adapt it using all available context:
- Input block — sections the user's raw text already implies (e.g. a block that describes background + steps + format maps naturally to
<background>, <instructions>, <output_format>)
- Repo and folder context — if Claude already knows the project's conventions (hook layout, skill format, test patterns), let that shape tag names and content
- Session context — prior conversation turns that clarify intent, audience, or constraints fold directly into tag content; incorporate what is already known
- User specifics — any explicit framing, target agent, or format the user stated in the
/pmin invocation is the authoritative input; use it as the primary shaping signal
Every tag used must be opened and closed. Return one xml fence followed immediately by an Outcome digest — the fence first, then the digest, with zero other surrounding prose.
Quality rules
Apply positive framing throughout:
- Write direct imperatives that affirm what to do ("Ensure X", "Always X", "Require X").
- Every instruction states what to produce, what to enforce, what to verify.
- Use affirmative directives exclusively ("only X", "always X", "ensure X").
- Write full words in general prose; allow established technical format acronyms required by this skill, such as XML.
- Replace hedging phrases ("let me also check", "actually", "I think", "might be", "possibly") with direct assertions.
Fence safety
Never place triple-backtick code blocks inside the xml fence. A closing ``` inside the outer xml fence terminates it prematurely, breaking the rendered output.
When the raw input contains code blocks, represent the code as 4-space indented text inside the XML instead. Remove all backtick fencing — language-tagged or plain — from inside the xml fence content.
Outcome digest
Emit ## Outcome digest immediately after the closing fence:
- What it does — plain-language summary of what running this prompt produces
- Key inputs — what the prompt needs to work (files, tools, context)
- Done when — how to tell the prompt succeeded
- Quick sample — short example of what the output looks like (about twenty lines max). Write raw executor output — not a description of the prompt's behavior. Any code blocks inside the Quick sample must use plain triple backticks with no language tag (never
```xml or any other tagged fence) so the structural checker does not detect a second xml fence. Do not use authoring phrases ("moved into", "extracted as", "replaced the softer", "changes from the original", "updated to match", "now names", "was added", "has been updated", "now includes", "changed from") — write the sample as actual executor output, not commentary on what changed.
Input sanitisation
The validator treats any response containing two or more strings from PROMPT_WORKFLOW_RESPONSE_MARKERS as a prompt-workflow response and applies the full gate suite. Marker strings include: target_local_roots, target_canonical_roots, target_file_globs, comparison_basis, completion_boundary, checklist_results, overall_status, scope anchors.
If the raw input block contains any of these marker strings, paraphrase or strip them before emitting the xml fence or Outcome digest. The full emitted output must contain zero marker strings so the validator pass-through remains guaranteed.
Scope boundary
This skill is bounded to: read the input, emit the fence, stop. The following are outside that boundary and stay out of every invocation:
- EnterPlanMode or ExitPlanMode
- AskUserQuestion
- Subagent delegation
- 15-row compliance audit
- File-based validation loop
- Scope anchors (target_local_roots, target_canonical_roots, target_file_globs, comparison_basis, completion_boundary)
- Checklist rows
- Outcome preview gate