Skip to content

fix: add missing name field to all command frontmatter blocks#43

Open
xiaolai wants to merge 1 commit intonicobailon:mainfrom
xiaolai:fix/nlpm-missing-name-frontmatter
Open

fix: add missing name field to all command frontmatter blocks#43
xiaolai wants to merge 1 commit intonicobailon:mainfrom
xiaolai:fix/nlpm-missing-name-frontmatter

Conversation

@xiaolai
Copy link
Copy Markdown

@xiaolai xiaolai commented Apr 26, 2026

Automated audit: This PR was generated by NLPM, a natural language programming linter, running via claude-code-action. Please evaluate the diff on its merits.

What's wrong

All 7 command files are missing the name field in their YAML frontmatter. Each file has a description but no name:

---
description: Generate a visual HTML diff review ...
---

Without name, command registration may be incomplete in environments that use this field for routing, disambiguation, or display. The field should match the filename (without extension), following the convention used in other Claude Code plugins.

The fix

Added name: <command-slug> as the first field in each frontmatter block:

File Added
diff-review.md name: diff-review
fact-check.md name: fact-check
generate-slides.md name: generate-slides
generate-visual-plan.md name: generate-visual-plan
generate-web-diagram.md name: generate-web-diagram
plan-review.md name: plan-review
project-recap.md name: project-recap

Each change is a single-line addition; no other content was modified.

All 7 command files had a YAML frontmatter block with only a description
field; the required name field was absent, which may prevent correct
command registration in environments that rely on explicit name lookup.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant