axler8r/nixotic/ax-format-markdown
Claude Code and agent skill by axler8r/nixotic
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Format staged or specified markdown files before a git commit using prettier and markdownlint-cli2. Use when the user asks to format markdown, clean up markdown, or before committing changes that touch .md files.
Install
npx vskill@latest install axler8r/nixotic/ax-format-markdownSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as axler8r/nixotic/ax-format-markdown.
ax-format-markdown
Formats markdown files with prettier then markdownlint-cli2 --fix, matching the same tool chain the repository's native pre-commit Git hook runs (see files/git/hooks/pre-commit).
In this repository, prefer make format: it formats every Markdown and Nix file that git does not ignore, using the versions pinned in flake.lock, and make lint reports what it cannot fix. make lint checks only tracked files, so git add new files first. The procedure below formats specific files the way the hook does.
When to Use
- Before committing changes that touch
.mdfiles. - When asked to format or clean up markdown content.
- As a manual re-run if the native
pre-commithook is not yet deployed
(~/.githooks only exists after nh os switch).
Procedure
- Determine target files:
- If files are staged, use
git diff --cached --name-only --diff-filter=ACM -- '*.md'. - Otherwise use the specific file paths the user named.
- Run the shared hook script directly against those files, or invoke each
tool per Host Tooling:
nix run nixpkgs#prettier -- --write --parser=markdown --prose-wrap=preserve --print-width=80 <files>nix run nixpkgs#markdownlint-cli2 -- --fix <files>
- If the files were staged, re-run
git add -- <files>so the commit
includes the formatted content.
- Report which files were reformatted; if none needed changes, say so.
Notes
- Do not duplicate formatting logic here — this skill is a thin wrapper
around files/git/hooks/pre-commit so there is one source of truth for the tool chain and flags.
guidance if formatting touches any theming-related markdown.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/ax-format-markdown/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/axler8r/nixotic/ax-format-markdown)