feat: add prettier-markdown-hook productivity plugin#101
Merged
jeremylongshore merged 1 commit intojeremylongshore:mainfrom Nov 30, 2025
Merged
Conversation
Add prettier-markdown-hook plugin that automatically formats markdown files with prettier when Claude stops responding. Features: - Zero-config default with sensible defaults - Organization and path exclusions via JSON config - Fire-and-forget async execution (<10ms hook exit) - Conventional commit format with optional AI messages - XDG-compliant cross-platform paths (~/.local/state/prettier-hook) - Comprehensive logging for debugging Plugin Metadata: - Category: productivity - Version: 1.0.0 - Components: Stop hook + format script - Dependencies: prettier (2.0+), jq (1.6+), git (1.8.5+) - License: MIT Architecture: - Hooks-only design (no commands/agents) - JSON configuration with jq parser - Environment variable overrides for config values - Built-in path exclusions (node_modules, .git, skills, plugins) - Configurable organization exclusions for multi-org workflows Technical Details: - Based on automation v2.0.0 (from claude-config v8.0.0) - Reuses existing refactored files from /tmp marketplace test - Follows ADR-0003 architecture decision (hooks-only approach) - All validation checks passed (JSON, permissions, structure, security) Testing: - Validated locally in test marketplace - All JSON syntax validated with jq - Script permissions verified (rwxr-xr-x) - Security scan passed (no secrets, no dangerous commands) - Marketplace sync completed successfully - Plugin validation passed all checks Refs: - ADR-0003: docs/decisions/0003-prettier-marketplace-plugin-creation.md - Plan: docs/plan/0003-prettier-marketplace-plugin-creation/plan.yaml - Source: /tmp/prettier-marketplace-plugin-test/prettier-markdown-hook/
Owner
Thank You, Terry! 🙏Thank you so much for the prettier-markdown-hook plugin! This is an incredibly well-crafted contribution - the level of detail, testing, and documentation you've provided is outstanding. I'm particularly impressed by:
This is exactly the kind of professional, production-ready plugin that makes the marketplace valuable. Apologies for the delay in responding - I was away for the Thanksgiving holidays and am now catching up on PRs. This has been waiting far too long (13 days!) and I sincerely apologize for that. I'll be reviewing and merging this very soon. If you have any questions or want to discuss future contributions, feel free to reach me at jeremy@intentsolutions.io. — Jeremy |
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.
Type of Change
Description
Summary:
Adds
prettier-markdown-hook, a productivity plugin that automatically formats markdown files with prettier when Claude stops responding. The hook runs asynchronously in the background, ensuring consistent markdown formatting without interrupting workflow.Motivation:
Related Issues:
N/A (new plugin submission)
Security
Plugin Details
Plugin Name: prettier-markdown-hook
Category: productivity
Version: 1.0.0
Keywords: prettier, markdown, formatting, automation, hook, stop, git, conventional-commits
Components Included:
Dependencies:
Checklist
For All PRs
For Plugin Submissions/Updates
.claude-plugin/plugin.jsonwith all required fieldsplugin.jsonvalidated withjq empty plugin.jsonchmod +x scripts/*.sh)${CLAUDE_PLUGIN_ROOT}for portable pathsjq empty *.json)Testing Evidence
Test Environment:
Test Commands Run:
Test Results:
Edge Cases Tested:
Breaking Changes
Screenshots / Recordings
N/A (hook runs in background, outputs to log file)
Log File Location:
~/.local/state/prettier-hook/prettier-hook.logPerformance Impact
Security Considerations
Automated Security Scans
rm -rf /, data deletion)eval()or command injection risksManual Security Review
Testing
Rollback Plan
Plugin can be removed via:
Hook is isolated (Stop event only), no system-wide changes.
Additional Notes
Architecture Decision:
References:
Configuration Example:
{ "excludeOrgs": ["Eon-Labs", "CompanyOrg"], "excludePaths": ["docs/archive", "legacy"], "logDir": null }Features:
By submitting this PR, I confirm: