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.4k199 skills89 agents199 commands
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-code

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>

@qdhenry
Ships withclaude-command-suite

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

1.4k12 skills89 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.4k
Star history of qdhenry/Claude-Command-Suite on GitHub, a chart by star-history.com

Other commands on claude-command-suite.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command