thebushidocollective/han/markdownlint-configuration
Claude Code and agent skill by thebushidocollective/han
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Configure markdownlint rules and options including rule management, configuration files, inline comments, and style inheritance.
Install
npx vskill@latest install thebushidocollective/han/markdownlint-configurationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Markdownlint Configuration
Master markdownlint configuration including rule management, configuration files, inline comment directives, style inheritance, and schema validation for consistent Markdown linting.
Overview
Markdownlint is a Node.js style checker and linter for Markdown/CommonMark files. It helps enforce consistent formatting and style across Markdown documentation by providing a comprehensive set of rules that can be customized through configuration files or inline comments.
Installation and Setup
Basic Installation
Install markdownlint in your project:
Verify Installation
Configuration File Structure
Basic .markdownlint.json
Create a .markdownlint.json file in your project root:
This configuration:
- Enables all default rules via
"default": true - Configures MD003 (heading style) to use ATX closed format
- Sets MD007 (unordered list indentation) to 4 spaces
- Disables the no-hard-tabs rule
- Disables all whitespace rules
Rule Naming Conventions
Rules can be referenced by their ID (MD###) or friendly name:
Both ID and friendly name work identically.
Configuration Options
Enable/Disable All Rules
When "default": false, only explicitly enabled rules are active:
Rule-Specific Parameters
Heading Style (MD003)
Options: "atx", "atx_closed", "setext", "setext_with_atx", "setext_with_atx_closed"
Unordered List Style (MD004)
Options: "asterisk", "dash", "plus", "consistent", "sublist"
List Indentation (MD007)
Line Length (MD013)
No Trailing Spaces (MD009)
No Inline HTML (MD033)
Horizontal Rule Style (MD035)
Options: "---", "***", "___", or custom like "- - -"
First Line Heading (MD041)
Required Headings
Proper Names (MD044)
Inline Configuration Comments
Disable Rules for Entire File
Disable Specific Rules for File
Disable Rules Temporarily
Disable for Single Line
Disable for Next Line
Capture and Restore Configuration
Configure Rules Inline
Configuration File Formats
JSON Configuration
.markdownlint.json:
YAML Configuration
.markdownlint.yaml:
JavaScript Configuration
.markdownlint.js:
Configuration Inheritance
Extending Base Configurations
Create a base configuration:
base.json:
Extend it in your project:
custom.json:
Using Predefined Styles
Markdownlint includes predefined style configurations:
Available styles:
markdownlint/style/relaxed- Less strict rulesmarkdownlint/style/prettier- Compatible with Prettier
Schema Validation
Enable IDE Support
Include the $schema property for autocomplete and validation:
This enables:
- Autocomplete for rule names
- Validation of configuration values
- Inline documentation in supported editors
Project-Specific Configurations
Per-Directory Configuration
Place .markdownlint.json in specific directories:
Monorepo Configuration
Root .markdownlint.json:
Package-specific packages/api/docs/.markdownlint.json:
Common Configuration Patterns
Strict Documentation Standards
Relaxed Blog/Article Style
Technical Documentation
README Template
When to Use This Skill
- Setting up markdownlint in new projects
- Configuring linting rules for documentation
- Creating custom rule configurations for teams
- Troubleshooting configuration issues
- Establishing Markdown style guides
- Migrating from other Markdown linters
- Enforcing consistent documentation standards
- Configuring monorepo Markdown linting
Best Practices
- Use Schema Validation - Always include
$schemafor IDE support - Start with Defaults - Begin with
"default": trueand disable selectively - Document Exceptions - Comment why specific rules are disabled
- Consistent Naming - Use either rule IDs or friendly names, not both
- Version Control Config - Commit
.markdownlint.jsonto repository - Team Agreement - Discuss rule changes with team before applying
- Progressive Adoption - Gradually enable stricter rules over time
- Test Changes - Run linter after configuration changes
- Use Inheritance - Leverage extends for shared configurations
- Inline Sparingly - Prefer file-level config over inline comments
- Monitor Rule Updates - Review new rules in markdownlint updates
- Environment-Specific - Use different configs for different doc types
- Automation Integration - Include linting in pre-commit hooks
- Regular Review - Periodically review and update configurations
- Clear Comments - Add comments explaining complex configurations
Common Pitfalls
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 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 repositoryCheckingplugins/validation/markdown/skills/markdownlint-configuration/SKILL.md
Popularity
- Repository stars
- 122
- Repository forks
- 14
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
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/thebushidocollective/han/markdownlint-configuration)