claude-md-optimizer
AgentUse this agent when the user wants to autonomously validate and optimize their CLAUDE.md files. This agent runs claudelint…
Agent events must be an array with maximum 3 event 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 events must be an array with maximum 3 event names"
<RuleHeader description="Agent events must be an array with maximum 3 event names" severity="error" :fixable="false" :configurable="false" category="Agents" />
This rule validates the `events` field in agent frontmatter. Events must be an array of strings with a maximum of 3 items. This constraint keeps agents focused on a small set of triggers rather than responding to every possible event. The validation is enforced via the AgentFrontmatterWithRefinements schema.
Agent with too many events
--- name: my-agent description: Monitors everything events: - PreToolUse - PostToolUse - Stop - SessionStart ---
Agent with a focused set of events
--- name: my-agent description: Validates tool usage events: - PreToolUse - PostToolUse ---
Reduce the `events` array to at most 3 entries. If you need to respond to more events, consider splitting the logic across multiple focused agents.
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…