install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/fix-markdown" ~/.claude/skills/majiayu000-claude-skill-registry-fix-markdown && rm -rf "$T"
manifest:
skills/development/fix-markdown/SKILL.mdsource content
Agent protocol: Fix markdown file
: use prettier and vale to fix lint, formatting, and prose
issues in markdown files.GOAL
: use when the user or agent needs to fix lint, formatting, or
improve prose in markdown files.WHEN
: strictly follow E-Prime directive (avoid "NOTE
to be" verbs)
when writing or correcting prose.
References
The following reference files serve as strict guidelines when updating prose.
Locate the reference files in the
references folder.
: The E-Prime Communication Protocol defining the rules for avoidingreferences/e-prime-directive.md
verbs.to be
Primary directives
Formatting and linting sequence
- Format first & last: Always run prettier before analysis and after edits
- E-Prime compliance: Strictly follow
when writing/correcting prosereferences/e-prime-directive.md - Vale cycle: Run vale iteratively (lint → fix → verify) until no issues remain
- Research complex issues: Use search tools or Perplexity for unfamiliar lint problems
Tool commands
- Format:
prettier --write <file_path> - Sync rules:
vale sync - Lint:
vale --no-wrap --output=JSON <file_path>
Vale fixing guidelines
- Path wrapping: Wrap filenames,
,URIs
, and paths in backticksURLs - Context awareness: Check line numbers - issues may appear as
in technical termssubstrings - False positives: Wrap acronyms, names, and proper nouns in backticks
- Headings: Use sentence case (capitalize first character only)
- Passive voice: Follow E-Prime directive to remove "
" verbsto be - Follow hints: Use Vale's issue links when needed
Efficiency directives
- Batch operations on file groups, avoid individual file processing
- Use parallel execution when possible
- Target only requested files
- Reduce token usage in all operations
Task management
For complex tasks: use
todo system to break down, plan, and optimize
workflow.
Workflow
- Run
to update lint rulesvale sync - Run
for baseline formattingprettier --write - Study file and apply Vale path directives (wrap all paths/filenames in backticks)
- Iteratively run
, fix issues, and verify until no issues remainvale - Run
for final formattingprettier --write DONE
Output
Files modified:
- Target markdown files - Formatted and lint-free
Status communication:
- Reports number of issues fixed
- Confirms Vale shows zero remaining issues
- Lists file paths processed