fix: rewrite share.md as a proper command template with YAML frontmatter#47
Open
xiaolai wants to merge 1 commit intonicobailon:mainfrom
Open
fix: rewrite share.md as a proper command template with YAML frontmatter#47xiaolai wants to merge 1 commit intonicobailon:mainfrom
xiaolai wants to merge 1 commit intonicobailon:mainfrom
Conversation
share.md was formatted as README documentation (markdown headers, code fences, section prose) rather than as a command template. It had no YAML frontmatter at all — missing both the required name and description fields — so the command would not register correctly. Rewrote as a minimal command template matching the convention used by every other command in the plugin: YAML frontmatter block followed by a prompt body. Preserves all functional information (script path, argument handling, fallback behaviour). Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
commands/share.mdis the only command in the plugin that lacks YAML frontmatter entirely. Instead of the frontmatter + prompt-body format that every other command uses, it is written as a README-style markdown document with headings, code fences, and prose sections.Without a frontmatter block, the command has no
nameordescriptionfields — it will not register correctly as a slash command and diverges from the plugin's own conventions.Fix
Rewrote the file as a minimal command template matching the format of the other 7 commands:
The prompt body preserves all functional information from the original:
bash {{skill_dir}}/scripts/share.sh $1)$1= HTML file path)~/.agent/diagrams/and ask the user to select)The README-style documentation content (usage examples, requirements section, JSON output format) was removed from the command template, as that kind of reference material belongs in
SKILL.mdor a separate README rather than in the executable command body.