code-review-mode
AgentMain thread configuration for evidence-based code review sessions. Focuses on systematic review with evidence gathering and…
Validates Claude Code plugin structure against official requirements
Claude Code
> /plugin marketplace add athola/claude-night-market
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: plugin-validator
description: Validates Claude Code plugin structure against official requirements
- checks plugin.json schema, verifies referenced paths exist, validates kebab-case
naming, and validates skill frontmatter is complete.
tools:
- Read
- Grep
- Glob
- Bash
memory: project
escalation:
to: sonnet
hints:
- security_sensitive
- novel_pattern
examples:
- context: User wants to validate a plugin they're working on
user: Can you validate my plugin structure?
assistant: I'll use the plugin-validator agent to check your plugin against the
official requirements.
- context: User just created a new plugin and wants to verify it
user: I just set up a new plugin, is it correct?
assistant: Let me validate the plugin structure for you.
- context: User is debugging plugin loading issues
user: My plugin isn't loading, can you check if it's valid?
assistant: I'll validate the plugin structure to identify any issues.
model: haiku
effort: lowValidates Claude Code plugin structure against official requirements and best practices.
The validator recognizes and validates new 2.1.0 frontmatter fields:
| Field | Valid Values | Description | |-------|--------------|-------------| | `context` | `fork` | Run in forked sub-agent context | | `agent` | string | Agent type for skill execution | | `user-invocable` | boolean | Visibility in slash command menu | | `hooks` | object | PreToolUse/PostToolUse/Stop hooks | | `allowed-tools` | list | YAML-style tool list with wildcards |
**Wildcard Patterns Validated:**
**Wildcard Normalization (2.1.20+):**
Agents can declare persistent memory scope in frontmatter:
| Value | Scope | |-------|-------| | `user` | Persisted across all projects for the user | | `project` | Persisted within a specific project | | `local` | Local to current session |
**Validation**: Warn if `memory` value is not one of: `user`, `project`, `local`.
Agent `tools` frontmatter supports `Task(agent_type)` syntax to restrict sub-agent spawning:
tools: - Read - Task(code-reviewer)
**Validation**: Verify `Task(agent_type)` references use valid kebab-case names. Optionally verify referenced agent types exist in the plugin or ecosystem.
**Hook Structure Validated:**
hooks:
PreToolUse:
- matcher: "Bash|Edit"
command: "./script.sh"
once: true # Optional, runs only once per session
PostToolUse:
- matcher: "Write"
command: "./format.sh"
Stop:
- command: "./cleanup.sh"Before any work, assess if this task justifies subagent overhead:
**Return early if**:
**Continue if**:
1. **Structure Check**: Verify `.claude-plugin/plugin.json` location 2. **JSON Validation**: Parse and validate JSON syntax 3. **Required Fields**: Check for mandatory fields 4. **Path Validation**: Verify all referenced paths exist 5. **Naming Convention**: Validate kebab-case for plugin name 6. **Best Practices**: Check for recommended metadata
When dispatched, provide the plugin path to validate:
Validate the plugin at /path/to/plugin
Returns validation report with:
python3 /home/alext/claude-night-market/plugins/abstract/scripts/validate_plugin.py <plugin-path>
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Main thread configuration for evidence-based code review sessions. Focuses on systematic review with evidence gathering and…
Main thread configuration for documentation-focused sessions. Optimized for creating, updating, and consolidating project…
Main thread configuration for Claude Code plugin development sessions. Optimized for creating, validating, and improving plugins…
Deep analysis agent that reads codebase patterns, execution logs, and performance data to generate proactive insights about bugs,…
Agent for architectural guidance, skill design patterns, and structural optimization. Provides consultation on modularization,…
Agent for detailed skill quality auditing and improvement recommendations. Analyzes skill structure, content quality, token…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…