claude-md-optimizer
AgentUse this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint…
Agent tools must be an array of tool names, cannot be used with disallowed-tools
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 tools must be an array of tool names, cannot be used with disallowed-tools"
<RuleHeader description="Agent tools must be an array of tool names, cannot be used with disallowed-tools" severity="error" :fixable="false" :configurable="false" category="Agents" />
This rule enforces two constraints on the `tools` field in agent markdown frontmatter. First, `tools` must be a valid array of strings representing tool names the agent is allowed to use. Second, `tools` and `disallowedTools` are mutually exclusive -- specifying both is an error. Array validation is delegated to AgentFrontmatterSchema.shape.tools, while cross-field validation uses AgentFrontmatterWithRefinements. This prevents conflicting tool access configurations.
Tools as a single string instead of array
--- name: code-agent description: Writes and edits code tools: Bash ---
Both tools and disallowedTools specified
--- name: code-agent description: Writes and edits code tools: - Bash - Edit disallowedTools: - Write ---
Tools as a valid array of tool names
--- name: code-agent description: Writes and edits code tools: - Bash - Edit - Read ---
Using disallowedTools alone (without tools)
--- name: safe-agent description: Agent with restricted access disallowedTools: - Bash ---
Ensure `tools` is a YAML array of strings. If you need to restrict certain tools, use either `tools` (allowlist) or `disallowedTools` (blocklist), but not both.
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…