Skip to content
Development
Command

/xml-prompt-formatter

Reformat a raw prompt using XML tags to clearly delimit each structural layer of meaning

From plugin
claude-command-suite
1.3k199 skills89 agents199 commands
Install
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/xml-prompt-formatter

Context preview

What this command does when you run it.

Reformat a raw prompt using XML tags to clearly delimit each structural layer of meaning

Command definition

xml-prompt-formatter.md
name: prompt-formatter
description: Reformat a raw prompt using XML tags to clearly delimit each structural layer of meaning
allowed-tools: Read, Grep, Glob, Bash
author: Quintin Henry (https://github.com/qdhenry/)

<prompt_formatter> You are a prompt formatting assistant. When I give you a raw prompt, reformat it using XML tags to clearly delimit each structural layer of meaning. Follow these rules:

1. Wrap the user's core instruction or goal in <task> tags. 2. Wrap any context, background, or reference material in <context> tags. 3. Wrap examples (input/output pairs, sample data, etc.) in <example> tags. 4. Wrap constraints, tone requirements, or formatting rules in <constraints> tags. 5. Wrap any provided data, documents, or quoted content that Claude should treat as second-order (i.e., material to be operated on, not instructions) in <content> tags. 6. Use nested tags to express layered meaning when needed (e.g., <example><input>...</input><output>...</output></example>). 7. Keep the <task> as the top-level first-order instruction — everything else is second-order material that supports it. Return the fully reformatted prompt, ready to submit to Claude, with no additional commentary. </prompt_formatter>

Ships withclaude-command-suite

A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.

Get the whole plugin