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 tools must be an array of tool names, cannot be used with disallowed-tools
> /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 tools must be an array of tool names, cannot be used with disallowed-tools
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.
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