xml-standards

Enforce XML tag structure standards for Claude Code agent metadata.

2|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/tianzecn/myclaudecode --skill xml-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xml-standards
Source: https://github.com/tianzecn/myclaudecode/tree/main/plugins/agentdev/skills/xml-standards
Command: npx skills add https://github.com/tianzecn/myclaudecode --skill xml-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill defines XML tag structures and frontmatter conventions for Claude Code agents, enabling consistent authoring of agent definitions and commands.

Core Features & Use Cases

  • Core Tags: <role>, <instructions>, <knowledge>, <examples>, <formatting>.
  • Specialized Tags: orchestration, planners, implementers, reviewers, and more.
  • Nesting Rules: ensures valid, machine-parseable XML patterns.

Quick Start

Use the provided XML schema snippets to validate agent frontmatter and command frontmatter structures.

Frequently Asked Questions about xml-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce XML tag structure standards for Claude Code agents?

XML tag structure standards for Claude Code agents use core tags like <role>, <instructions>, <knowledge>, <examples>, and <formatting> with defined nesting rules to ensure consistent, machine-readable agent metadata. Apply these standards during agent and command design to validate frontmatter compliance with Anthropic best practices.

What XML tags are required for agent frontmatter?

Agent frontmatter requires core tags: <role>, <instructions>, <knowledge>, <examples>, and <formatting>. Specialized tags for orchestration, planners, implementers, and reviewers extend this foundation. Proper nesting and semantic attributes ensure valid, machine-parseable XML patterns across all agent definitions.

Can I validate agent XML documents against a schema?

Yes. The Skill provides XML schema snippets to validate agent frontmatter and command frontmatter structures. Use these schemas to ensure your agent definitions follow correct nesting rules, semantic attributes, and character escaping guidelines compliant with Anthropic standards.

Why does consistent XML structure matter for agent metadata?

Consistent XML structure ensures agent metadata is machine-readable and maintainable across teams. Standardized tag conventions, nesting patterns, and attribute semantics enable reliable parsing, validation, and generation of agent templates and knowledge blocks following Anthropic best practices.

How do I handle code blocks and character escaping in agent XML?

Agent XML requires compliant code block formatting and proper character escaping within frontmatter tags. The standards define escape sequences and nesting rules to maintain valid XML while preserving code content and metadata integrity across agent and command definitions.

What's the difference between agent frontmatter and command frontmatter XML?

Agent frontmatter and command frontmatter use the same core tags and nesting rules but structure metadata for different scopes. The Skill provides separate schema snippets for each to validate agent-level and command-level definitions consistently with Anthropic standards.