Skip to content

fix: add missing name frontmatter to plugin commands#82

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

fix: add missing name frontmatter to plugin commands#82
xiaolai wants to merge 1 commit into
ReflexioAI:mainfrom
xiaolai:fix/nlpm-missing-name-frontmatter

Conversation

@xiaolai

@xiaolai xiaolai commented Jun 20, 2026

Copy link
Copy Markdown

Automated: drive-by fix from NLPM, an NL artifact linter. Reviewed and reproduced before submission.

Bug: All five plugin commands (restart, learn, clear-all, show, dashboard) are missing the required name field in their YAML frontmatter; each has only description and allowed-tools. Claude Code plugin commands require a name field for slash-command registration — without it the commands may not be registered under predictable names.

Evidence: grep -n "^name:" plugin/commands/*.md returns zero matches; every frontmatter block opens with description: as the first field.

Fix: Add name: <command> (matching the filename) as the first field in each file's frontmatter — five one-line additions, no other changes.

Summary by CodeRabbit

  • Chores
    • Updated metadata documentation across command references (clear-all, dashboard, learn, restart, show).

All five plugin commands (restart, learn, clear-all, show, dashboard)
were missing the required name field in their YAML frontmatter. Without
it the commands cannot be reliably registered under predictable
slash-command names by the Claude Code plugin loader.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: edb6457c-c9cc-4af9-a06c-91c8f295cf66

📥 Commits

Reviewing files that changed from the base of the PR and between 3d1612c and d6fda6a.

📒 Files selected for processing (5)
  • plugin/commands/clear-all.md
  • plugin/commands/dashboard.md
  • plugin/commands/learn.md
  • plugin/commands/restart.md
  • plugin/commands/show.md

📝 Walkthrough

Walkthrough

Five plugin command documentation files (clear-all, dashboard, learn, restart, show) each receive a single new name field added to their frontmatter metadata. No other content, behavior, or structure in any of these files is changed.

Changes

Command Frontmatter Names

Layer / File(s) Summary
Add name field to all command docs
plugin/commands/clear-all.md, plugin/commands/dashboard.md, plugin/commands/learn.md, plugin/commands/restart.md, plugin/commands/show.md
Each file gains a name: <command> entry at line 2 of its frontmatter. No other content is modified.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐇 Hop, hop, a name for each command so neat,
Five little labels now complete!
clear-all, dashboard, learn, restart, show
Frontmatter fields all in a row.
The rabbit stamps each doc with care,
Names where there were none before! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: add missing name frontmatter to plugin commands' accurately summarizes the main change: adding missing name fields to command metadata files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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