Page:
lessons/patterns/plugin-load-errors---missing-name-field-in-command-frontmatter
Pages
Change V5.4.0: Multi-Model Agent Support Proposal
Change V5.4.0: Multi-Model Support (Sprint 7 Implementation)
Change V04.1.0: Proposal (Implementation 1)
Change V04.1.0: Proposal
Change-V5.2.0:-Plugin-Enhancements-(Sprint-4-Commands)
Change-V5.2.0:-Plugin-Enhancements-(Sprint-5-Documentation)
Change-V5.2.0:-Plugin-Enhancements-Proposal.-
Change-V5.5.0:-Hook-Efficiency-Quick-Wins-(Sprint-8-Implementation)
Change-V5.6.0:-Domain-Advisory-Pattern-(Sprint-9-Implementation).-
Change V5.6.0: Domain Advisory Pattern Proposal
Change-V5.7.0:-Data-Platform-Domain-Advisory-(Sprint-10-Implementation)
RFC-Hook-Efficiency-Improvements
RFC-Perf-Sentinel-Plugin
Sprint-1-viz-platform-Implementation-Plan
branding/header-templates
branding/plugin-registry
branding/progress-templates
branding/visual-spec
lessons/patterns/agent-model-field-not-supported-by-claude-code
lessons/patterns/command-frontmatter-missing-name-field-causes-silent-load-failure
lessons/patterns/hook-message-wording-affects-claude-continuation-behavior
lessons/patterns/mcp-venv-symlinks-lost-on-marketplace-update---5-hour-debug-loop
lessons/patterns/mcp_servers-field-in-pluginjson---another-failed-debug-theory
lessons/patterns/plugin-hooks-must-be-in-separate-file-not-inline
lessons/patterns/plugin-load-errors---missing-name-field-in-command-frontmatter
lessons/patterns/plugin-load-failure---check-command-frontmatter-first
lessons/patterns/plugin-manifest-validation---hooks-and-agents-format-requirements
lessons/patterns/plugin-version-mismatch-causes-silent-load-failure
lessons/patterns/reset-pandas-index-after-filtering-to-prevent-column-pollution
lessons/patterns/session-2026-02-02---mcp-server-venv-package-installation-failures
lessons/patterns/setup-wizard-url-format-mismatch
lessons/patterns/sprint-4---new-commands-not-discoverable-until-session-restart
lessons/patterns/startup-hooks-must-check-venv-cache-path-first
lessons/patterns/sync-entire-plugin-directory-not-individual-files
lessons/patterns/use-fixes-n-keyword-for-automatic-issue-closing-in-prs
lessons/sprints/cache-clearing-breaks-mcp-tools-mid-session
lessons/sprints/sprint-1---viz-platform-plugin-implementation
lessons/sprints/sprint-10---domain-advisory-pattern-replication-success
lessons/sprints/sprint-2---contract-validator-plugin-implementation
lessons/sprints/sprint-3---agent-runaway-detection-and-timeout-handling
lessons/sprints/sprint-3---background-agent-permissions-must-be-pre-granted
lessons/sprints/sprint-3---mcp-server-branch-detection-bug-runs-from-installed-dir
lessons/sprints/sprint-4---plugin-commands-implementation
lessons/sprints/sprint-6---visual-branding-and-documentation-maintenance
lessons/sprints/sprint-8---parallel-hook-optimization-success
lessons/sprints/v400-release---wiki-workflow-and-versioning-patterns
lessons/sprints/versioning-workflow---use-unreleased-and-release-script
lessons-learned/sprints/hook-efficiency-rfc
unnamed
Clone
1
lessons/patterns/plugin-load-errors---missing-name-field-in-command-frontmatter
Leo Miranda edited this page 2026-02-03 04:28:09 +00:00
Table of Contents
Context
Plugin load failures showing only "1 error" with no details about what's wrong.
Problem
Claude Code's plugin loader doesn't surface specific validation errors. When a plugin fails to load, you see:
viz-platform Plugin · leo-claude-mktplace · ✘ failed to load · 1 error
No indication of WHAT the error is.
Root Cause
15 command markdown files were missing the required name: field in YAML frontmatter:
# WRONG - causes silent load failure
---
description: Some description
---
# CORRECT
---
name: command-name
description: Some description
---
Debugging Steps Taken (wasteful)
- Checked MCP server venvs - OK
- Checked symlinks - OK
- Checked plugin.json files - OK
- Checked hooks.json - OK
- Checked run.sh scripts - OK
- Finally checked command frontmatter - FOUND IT
Solution
Add name: field to all command files:
# Check for missing name fields
for f in plugins/*/commands/*.md; do
grep -q '^name:' "$f" || echo "MISSING: $f"
done
Prevention
- Validate before commit: Add pre-commit hook to check all command files have
name:field - Template enforcement: Command file template must include
name:as first field - File issue: Claude Code should show actual validation errors, not just "1 error"
Time Wasted
Significant token burn debugging every layer when error message should have said: "commands/chart.md: missing required 'name' field"
Filed Issue
GitHub issue template saved to .scratch/github-issue-plugin-errors.md for submission to anthropics/claude-code
Tags: plugins, debugging, frontmatter, claude-code, error-handling