Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically format markdown files with prettier when Claude stops responding, with configurable organization and path exclusions.
This Claude Code plugin provides a Stop hook that automatically formats markdown files in your workspace using prettier. It runs asynchronously in the background after every conversation, ensuring consistent markdown formatting without interrupting your workflow.
Ensure these dependencies are installed and available in your PATH:
# Check dependencies
prettier --version # 2.0 or higher
jq --version # 1.6 or higher
git --version # 1.8.5 or higher
Installation commands:
# macOS (Homebrew)
brew install prettier jq git
# npm/yarn (prettier)
npm install -g prettier
# or
yarn global add prettier
# Linux (Ubuntu/Debian)
apt-get install jq git
npm install -g prettier
Via Claude Code Marketplace:
# Add marketplace (if not already added)
/plugin marketplace add https://github.com/jeremylongshore/claude-code-plugins
# Install plugin
/plugin install prettier-markdown-hook
Manual Installation:
# Clone marketplace repository
git clone https://github.com/jeremylongshore/claude-code-plugins
# Copy plugin to Claude Code plugins directory
cp -r claude-code-plugins/plugins/productivity/prettier-markdown-hook \
~/.claude/plugins/prettier-markdown-hook
After installation, the hook will run automatically after Claude stops responding. Check the log file to verify:
# View log file (XDG-compliant path)
tail -f ~/.local/state/prettier-hook/format-markdown.log
# Or custom log location (if configured)
tail -f $PRETTIER_LOG_DIR/format-markdown.log
No configuration needed! The plugin works out-of-the-box with sensible defaults:
node_modules, .git, .github, .claude/skills, skills, plugins, file-history~/.local/state/prettier-hook/Create ~/.prettierrc-hook.json to customize behavior:
{
"excludeOrgs": ["Eon-Labs", "CompanyName"],
"excludePaths": ["docs/archive", "legacy/**/*.md"],
"logDir": "~/.local/state/prettier-hook"
}
Configuration options:
| Field | Type | Description | Default |
|---|---|---|---|
excludeOrgs | string[] | GitHub organizations to skip formatting | [] |
excludePaths | string[] | Paths/patterns to exclude from formatting | [] |
logDir | string|null | Custom log directory path | ${XDG_STATE_HOME}/prettier-hook |
Example configuration file is provided at config/.prettierrc-hook.json.example.
Override configuration with environment variables (highest precedence):
# Custom config file location
export PRETTIER_CONFIG=~/my-custom-config.json
# Enable AI-generated commit messages (requires `claude` CLI)
export PRETTIER_ENABLE_AI_COMMITS=true
# Custom log directory
export PRETTIER_LOG_DIR=~/logs/prettier
Precedence: Environment Variables > Config File > Built-in Defaults
Skip formatting for specific GitHub organizations (e.g., employer/client repos):
{
"excludeOrgs": ["Eon-Labs", "MyCompany", "ClientOrg"]
}
Important: Organization names are case-sensitive and must match exactly:
"Eon-Labs" (matches github.com/Eon-Labs/repo)"eonlabs" (will not match)Exclude specific directories or file patterns:
{
"excludePaths": [
"docs/archive",
"legacy/**/*.md",
"vendor",
"third-party"
]
}
Path exclusions are additive to built-in defaults (not replacements).
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub flight505/skill-forge --plugin prettier-markdown-hookPlugins from other owners that cover similar ground