claude-md-optimizer
Use this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint validation, analyzes results, and…
Agent name must match filename
> /plugin marketplace add pdugan20/claudelint > /plugin install claudelint@claudelint
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Agent name must match filename
description: "Agent name must match filename"
<RuleHeader description="Agent name must match filename" severity="error" :fixable="false" :configurable="false" category="Agents" />
This rule checks that the `name` field in agent frontmatter exactly matches the filename (without the `.md` extension). For example, an agent at `.claude/agents/code-reviewer.md` must have `name: code-reviewer` in its frontmatter. This consistency ensures agents are discoverable and prevents confusion when the filename and configuration disagree about the agent identity.
Agent name does not match filename (file at .claude/agents/code-reviewer.md)
--- name: review-agent description: Reviews code for quality ---
Agent name matches filename (file at .claude/agents/code-reviewer.md)
--- name: code-reviewer description: Reviews code for quality ---
Either rename the file to match the agent name, or update the `name` field in frontmatter to match the filename (without the `.md` extension).
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.
Repo: pdugan20/claudelint
Use this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint validation, analyzes results, and…
Hook configuration in agents.json violates schema requirements