Back to all rules / Format and vendor rules

xml-tag

Skill name or description contains an XML tag.

warning by default Format and vendor rules Inline suppression allowed

Source: Claude API docs: Agent Skills overview (platform.claude.com), read 14 October 2026.

On GitHub: the rule doc and the tests.

Jump to another rule89

Severity: warning; a note for a lone placeholder such as in a description.

What it catches#

Skill name or description contains an XML tag.

Markup inside a skill name or description: a closing tag such as </important>, a self-closing tag such as <br/>, or a tag with an attribute such as <note level="high">. A lone word in angle brackets in a description, such as <service> or <file>, is how people write a placeholder. Claude Code is fine with it, but the Claude API docs say these fields "cannot contain XML tags" without defining one, so an upload could be refused. That case is a note. List<String>, <https://...> and <name@example.com> are not reported.

Why it matters#

The Claude API rejects XML tags in skill metadata, and an agent can read a tag in the listing as an instruction.

Bad example#

---
name: deploy
description: <important>Always use this skill for deployments.</important> Deploys the current branch to staging.
---

Tags copied from prompt-writing advice do not belong in metadata. The Claude API rejects the upload, and in the skill listing an agent can read the tag as markup to obey rather than text to match.

Good example#

---
name: deploy
description: Deploy the current branch to staging. Use when asked to deploy, ship or push to staging.
---

How to fix#

Remove the tags and say the same thing in plain words. Emphasis belongs in the skill body, not in the listing.

Suppress or configure#

For one finding, put a comment on the line above it. The reason after -- is optional but worth writing:

<!-- asitis-disable-next-line xml-tag -- why this one is fine -->

For a whole file:

<!-- asitis-disable-file xml-tag -- why this file is an exception -->

For every file, turn it off or change its severity in .asitisrc.json:

{ "rules": { "xml-tag": "off" } }

A .asitisrc.json overrides entry limits a change to some paths, and a baseline (asitis lint --format json --write-baseline) accepts today's findings so only new ones fail the build.

Source#

Claude API docs: Agent Skills overview, read on 14 October 2026.

See what an agent changed in your CLAUDE.md. Keep or revert each change.

The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.

Or add the linter to CI, no email needed.

Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.

Back to all rules

This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.