claude-md-optimizer
AgentUse this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint…
Agent name must be lowercase-with-hyphens, under 64 characters, with no XML tags
Claude Code
> /plugin marketplace add pdugan20/claudelint> /plugin install claudelint@claudelint
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
description: "Agent name must be lowercase-with-hyphens, under 64 characters, with no XML tags"
<RuleHeader description="Agent name must be lowercase-with-hyphens, under 64 characters, with no XML tags" severity="error" :fixable="false" :configurable="false" category="Agents" />
This rule enforces naming constraints on the name field in agent markdown frontmatter. The name must be lowercase with hyphens, under 64 characters, and must not contain XML tags. Validation is delegated to the AgentFrontmatterSchema.shape.name Zod schema. Consistent naming ensures agents are easily discoverable and avoids conflicts with reserved syntax.
Agent name with uppercase letters
--- name: My-Agent description: Handles code reviews ---
Agent name containing XML tags
--- name: <agent>helper</agent> description: Handles code reviews ---
Agent name using lowercase and hyphens
--- name: code-review-agent description: Handles code reviews for pull requests ---
Rename the agent to use only lowercase letters, digits, and hyphens. Ensure the name is under 64 characters and does not include any XML-style tags.
This rule does not have any configuration options.
Available since: v0.2.0
A linter for Claude Code projects. Validates CLAUDE.md files, skills, settings, hooks, MCP servers, plugins, and more.
Use this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint…
Agent body content should meet minimum length requirements
Agent disallowedTools must be an array of tool names
Hook configuration in agents.json violates schema requirements
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…