claude-md-optimizer
AgentUse this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint…
Agent disallowedTools must be an array of tool names
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 disallowedTools must be an array of tool names"
<RuleHeader description="Agent disallowedTools must be an array of tool names" severity="error" :fixable="false" :configurable="false" category="Agents" />
This rule enforces that the `disallowedTools` field in agent markdown frontmatter is a valid array of strings. Each entry should be a tool name that the agent is prohibited from using. Validation is delegated to the AgentFrontmatterSchema Zod schema. Proper formatting prevents runtime errors when the agent framework parses tool restrictions.
disallowedTools as a single string instead of array
--- name: safe-agent description: Agent with tool restrictions disallowedTools: Bash ---
disallowedTools with non-string entries
--- name: safe-agent description: Agent with tool restrictions disallowedTools: - 123 - true ---
disallowedTools as a valid array of tool names
--- name: safe-agent description: Agent with tool restrictions disallowedTools: - Bash - Write ---
Ensure `disallowedTools` is formatted as a YAML array of strings. Each entry should be a valid tool name like Bash, Write, Edit, or WebFetch.
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
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…