[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CBWF6JZPMKJK3GZ78NBMC8":3,"skill-same:01M7CBWF6JZPMKJK3GZ78NBMC8":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7CBWF6JZPMKJK3GZ78NBMC8","markdownlint-configuration",null,"Configure markdownlint rules and options including rule management, configuration files, inline comments, and style inheritance.","shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsuspicious\u002FTheBushidoCollective__han__plugins__validation__markdown__skills__markdownlint-configuration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: markdownlint-configuration\nuser-invocable: false\ndescription: Configure markdownlint rules and options including rule management, configuration files, inline comments, and style inheritance.\nallowed-tools: [Bash, Read]\n---\n\n# Markdownlint Configuration\n\nMaster markdownlint configuration including rule management, configuration files, inline comment directives, style inheritance, and schema validation for consistent Markdown linting.\n\n## Overview\n\nMarkdownlint is a Node.js style checker and linter for Markdown\u002FCommonMark 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.\n\n## Installation and Setup\n\n### Basic Installation\n\nInstall markdownlint in your project:\n\n```bash\nnpm install --save-dev markdownlint markdownlint-cli\n# or\npnpm add -D markdownlint markdownlint-cli\n# or\nyarn add -D markdownlint markdownlint-cli\n```\n\n### Verify Installation\n\n```bash\nnpx markdownlint --version\n```\n\n## Configuration File Structure\n\n### Basic .markdownlint.json\n\nCreate a `.markdownlint.json` file in your project root:\n\n```json\n{\n  \"default\": true,\n  \"MD003\": { \"style\": \"atx_closed\" },\n  \"MD007\": { \"indent\": 4 },\n  \"no-hard-tabs\": false,\n  \"whitespace\": false\n}\n```\n\nThis configuration:\n- Enables all default rules via `\"default\": true`\n- Configures MD003 (heading style) to use ATX closed format\n- Sets MD007 (unordered list indentation) to 4 spaces\n- Disables the no-hard-tabs rule\n- Disables all whitespace rules\n\n### Rule Naming Conventions\n\nRules can be referenced by their ID (MD###) or friendly name:\n\n```json\n{\n  \"MD001\": false,\n  \"heading-increment\": false,\n  \"MD003\": { \"style\": \"atx\" },\n  \"heading-style\": { \"style\": \"atx\" },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\"strong\", \"em\", \"br\"]\n  }\n}\n```\n\nBoth ID and friendly name work identically.\n\n## Configuration Options\n\n### Enable\u002FDisable All Rules\n\n```json\n{\n  \"default\": true\n}\n```\n\nWhen `\"default\": false`, only explicitly enabled rules are active:\n\n```json\n{\n  \"default\": false,\n  \"MD001\": true,\n  \"MD003\": { \"style\": \"atx\" },\n  \"line-length\": true\n}\n```\n\n### Rule-Specific Parameters\n\n#### Heading Style (MD003)\n\n```json\n{\n  \"heading-style\": {\n    \"style\": \"atx\"\n  }\n}\n```\n\nOptions: `\"atx\"`, `\"atx_closed\"`, `\"setext\"`, `\"setext_with_atx\"`, `\"setext_with_atx_closed\"`\n\n#### Unordered List Style (MD004)\n\n```json\n{\n  \"ul-style\": {\n    \"style\": \"asterisk\"\n  }\n}\n```\n\nOptions: `\"asterisk\"`, `\"dash\"`, `\"plus\"`, `\"consistent\"`, `\"sublist\"`\n\n#### List Indentation (MD007)\n\n```json\n{\n  \"ul-indent\": {\n    \"indent\": 4,\n    \"start_indented\": true\n  }\n}\n```\n\n#### Line Length (MD013)\n\n```json\n{\n  \"line-length\": {\n    \"line_length\": 100,\n    \"heading_line_length\": 120,\n    \"code_block_line_length\": 120,\n    \"code_blocks\": true,\n    \"tables\": false,\n    \"headings\": true,\n    \"strict\": false,\n    \"stern\": false\n  }\n}\n```\n\n#### No Trailing Spaces (MD009)\n\n```json\n{\n  \"no-trailing-spaces\": {\n    \"br_spaces\": 2,\n    \"list_item_empty_lines\": false,\n    \"strict\": false\n  }\n}\n```\n\n#### No Inline HTML (MD033)\n\n```json\n{\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"strong\",\n      \"em\",\n      \"br\",\n      \"sub\",\n      \"sup\",\n      \"kbd\",\n      \"details\",\n      \"summary\"\n    ]\n  }\n}\n```\n\n#### Horizontal Rule Style (MD035)\n\n```json\n{\n  \"hr-style\": {\n    \"style\": \"---\"\n  }\n}\n```\n\nOptions: `\"---\"`, `\"***\"`, `\"___\"`, or custom like `\"- - -\"`\n\n#### First Line Heading (MD041)\n\n```json\n{\n  \"first-line-heading\": {\n    \"level\": 1,\n    \"front_matter_title\": \"\"\n  }\n}\n```\n\n#### Required Headings\n\n```json\n{\n  \"required-headings\": {\n    \"headings\": [\n      \"# Title\",\n      \"## Description\",\n      \"## Examples\",\n      \"## Resources\"\n    ]\n  }\n}\n```\n\n#### Proper Names (MD044)\n\n```json\n{\n  \"proper-names\": {\n    \"names\": [\n      \"JavaScript\",\n      \"TypeScript\",\n      \"GitHub\",\n      \"markdownlint\",\n      \"npm\"\n    ],\n    \"code_blocks\": false\n  }\n}\n```\n\n## Inline Configuration Comments\n\n### Disable Rules for Entire File\n\n```markdown\n\u003C!-- markdownlint-disable-file -->\n\n# This file has no linting applied\n\nAny markdown content here will not be checked.\n```\n\n### Disable Specific Rules for File\n\n```markdown\n\u003C!-- markdownlint-disable-file MD013 MD033 -->\n\n# Long lines and HTML are allowed in this file\n\nThis line can be as long as you want without triggering MD013.\n\n\u003Cdiv>Inline HTML is also allowed\u003C\u002Fdiv>\n```\n\n### Disable Rules Temporarily\n\n```markdown\n\u003C!-- markdownlint-disable MD033 -->\n\n\u003Cdiv class=\"custom-block\">\n  HTML content here\n\u003C\u002Fdiv>\n\n\u003C!-- markdownlint-enable MD033 -->\n\nRegular markdown content with rules enforced.\n```\n\n### Disable for Single Line\n\n```markdown\nThis line follows all rules.\n\nLong line that exceeds limit \u003C!-- markdownlint-disable-line MD013 -->\n\nThis line follows all rules again.\n```\n\n### Disable for Next Line\n\n```markdown\n\u003C!-- markdownlint-disable-next-line MD013 -->\nThis is a very long line that would normally trigger the line-length rule but won't because of the comment above.\n\nThis line follows normal rules.\n```\n\n### Capture and Restore Configuration\n\n```markdown\n\u003C!-- markdownlint-capture -->\n\u003C!-- markdownlint-disable -->\n\nAny violations allowed here.\n\n\u003C!-- markdownlint-restore -->\n\nBack to original configuration.\n```\n\n### Configure Rules Inline\n\n```markdown\n\u003C!-- markdownlint-configure-file {\n  \"line-length\": {\n    \"line_length\": 120\n  },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\"strong\", \"em\"]\n  }\n} -->\n\n# Document Title\n\nRest of document follows inline configuration.\n```\n\n## Configuration File Formats\n\n### JSON Configuration\n\n`.markdownlint.json`:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002FDavidAnson\u002Fmarkdownlint\u002Fmain\u002Fschema\u002Fmarkdownlint-config-schema.json\",\n  \"default\": true,\n  \"MD003\": { \"style\": \"atx\" },\n  \"MD007\": { \"indent\": 2 },\n  \"MD013\": {\n    \"line_length\": 100,\n    \"code_blocks\": false\n  },\n  \"MD033\": {\n    \"allowed_elements\": [\"br\", \"strong\", \"em\"]\n  }\n}\n```\n\n### YAML Configuration\n\n`.markdownlint.yaml`:\n\n```yaml\ndefault: true\nMD003:\n  style: atx\nMD007:\n  indent: 2\nMD013:\n  line_length: 100\n  code_blocks: false\nMD033:\n  allowed_elements:\n    - br\n    - strong\n    - em\n```\n\n### JavaScript Configuration\n\n`.markdownlint.js`:\n\n```javascript\nmodule.exports = {\n  default: true,\n  MD003: { style: \"atx\" },\n  MD007: { indent: 2 },\n  MD013: {\n    line_length: 100,\n    code_blocks: false\n  },\n  MD033: {\n    allowed_elements: [\"br\", \"strong\", \"em\"]\n  }\n};\n```\n\n## Configuration Inheritance\n\n### Extending Base Configurations\n\nCreate a base configuration:\n\n`base.json`:\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 100\n  }\n}\n```\n\nExtend it in your project:\n\n`custom.json`:\n```json\n{\n  \"extends\": \"base.json\",\n  \"no-inline-html\": false,\n  \"line-length\": {\n    \"line_length\": 120\n  }\n}\n```\n\n### Using Predefined Styles\n\nMarkdownlint includes predefined style configurations:\n\n```json\n{\n  \"extends\": \"markdownlint\u002Fstyle\u002Frelaxed\"\n}\n```\n\nAvailable styles:\n- `markdownlint\u002Fstyle\u002Frelaxed` - Less strict rules\n- `markdownlint\u002Fstyle\u002Fprettier` - Compatible with Prettier\n\n## Schema Validation\n\n### Enable IDE Support\n\nInclude the `$schema` property for autocomplete and validation:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002FDavidAnson\u002Fmarkdownlint\u002Fmain\u002Fschema\u002Fmarkdownlint-config-schema.json\",\n  \"default\": true\n}\n```\n\nThis enables:\n- Autocomplete for rule names\n- Validation of configuration values\n- Inline documentation in supported editors\n\n## Project-Specific Configurations\n\n### Per-Directory Configuration\n\nPlace `.markdownlint.json` in specific directories:\n\n```\nproject\u002F\n├── .markdownlint.json          # Root config\n├── docs\u002F\n│   ├── .markdownlint.json      # Docs-specific config\n│   └── guides\u002F\n│       └── .markdownlint.json  # Guides-specific config\n```\n\n### Monorepo Configuration\n\nRoot `.markdownlint.json`:\n\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 100\n  }\n}\n```\n\nPackage-specific `packages\u002Fapi\u002Fdocs\u002F.markdownlint.json`:\n\n```json\n{\n  \"extends\": \"..\u002F..\u002F..\u002F.markdownlint.json\",\n  \"no-inline-html\": {\n    \"allowed_elements\": [\"code\", \"pre\", \"div\"]\n  }\n}\n```\n\n## Common Configuration Patterns\n\n### Strict Documentation Standards\n\n```json\n{\n  \"default\": true,\n  \"heading-style\": { \"style\": \"atx\" },\n  \"ul-style\": { \"style\": \"dash\" },\n  \"ol-prefix\": { \"style\": \"ordered\" },\n  \"line-length\": {\n    \"line_length\": 80,\n    \"strict\": true\n  },\n  \"no-trailing-spaces\": {\n    \"strict\": true\n  },\n  \"no-inline-html\": false,\n  \"first-line-heading\": {\n    \"level\": 1\n  },\n  \"required-headings\": {\n    \"headings\": [\n      \"# Title\",\n      \"## Description\",\n      \"## Usage\",\n      \"## API\"\n    ]\n  }\n}\n```\n\n### Relaxed Blog\u002FArticle Style\n\n```json\n{\n  \"default\": true,\n  \"line-length\": false,\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"img\",\n      \"a\",\n      \"strong\",\n      \"em\",\n      \"br\",\n      \"div\",\n      \"span\"\n    ]\n  },\n  \"no-duplicate-heading\": {\n    \"siblings_only\": true\n  },\n  \"first-line-heading\": false,\n  \"single-title\": false\n}\n```\n\n### Technical Documentation\n\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 120,\n    \"code_blocks\": false,\n    \"tables\": false\n  },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"details\",\n      \"summary\",\n      \"kbd\",\n      \"sub\",\n      \"sup\",\n      \"br\"\n    ]\n  },\n  \"code-block-style\": {\n    \"style\": \"fenced\"\n  },\n  \"code-fence-style\": {\n    \"style\": \"backtick\"\n  },\n  \"emphasis-style\": {\n    \"style\": \"asterisk\"\n  },\n  \"strong-style\": {\n    \"style\": \"asterisk\"\n  }\n}\n```\n\n### README Template\n\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 100,\n    \"tables\": false,\n    \"code_blocks\": false\n  },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"img\",\n      \"br\",\n      \"details\",\n      \"summary\",\n      \"sup\"\n    ]\n  },\n  \"required-headings\": {\n    \"headings\": [\n      \"# *\",\n      \"## Installation\",\n      \"## Usage\",\n      \"## License\"\n    ]\n  },\n  \"first-line-heading\": {\n    \"level\": 1\n  }\n}\n```\n\n## When to Use This Skill\n\n- Setting up markdownlint in new projects\n- Configuring linting rules for documentation\n- Creating custom rule configurations for teams\n- Troubleshooting configuration issues\n- Establishing Markdown style guides\n- Migrating from other Markdown linters\n- Enforcing consistent documentation standards\n- Configuring monorepo Markdown linting\n\n## Best Practices\n\n1. **Use Schema Validation** - Always include `$schema` for IDE support\n2. **Start with Defaults** - Begin with `\"default\": true` and disable selectively\n3. **Document Exceptions** - Comment why specific rules are disabled\n4. **Consistent Naming** - Use either rule IDs or friendly names, not both\n5. **Version Control Config** - Commit `.markdownlint.json` to repository\n6. **Team Agreement** - Discuss rule changes with team before applying\n7. **Progressive Adoption** - Gradually enable stricter rules over time\n8. **Test Changes** - Run linter after configuration changes\n9. **Use Inheritance** - Leverage extends for shared configurations\n10. **Inline Sparingly** - Prefer file-level config over inline comments\n11. **Monitor Rule Updates** - Review new rules in markdownlint updates\n12. **Environment-Specific** - Use different configs for different doc types\n13. **Automation Integration** - Include linting in pre-commit hooks\n14. **Regular Review** - Periodically review and update configurations\n15. **Clear Comments** - Add comments explaining complex configurations\n\n## Common Pitfalls\n\n1. **Conflicting Rules** - Enabling contradictory rules (e.g., different heading styles)\n2. **Over-Configuration** - Specifying too many inline disable comments\n3. **Missing Schema** - Not including `$schema` for validation\n4. **Incorrect Paths** - Using wrong paths in extends property\n5. **Rule Name Typos** - Misspelling rule names (fails silently)\n6. **JSON Syntax Errors** - Invalid JSON breaks configuration parsing\n7. **Overly Strict** - Enabling strict rules without team buy-in\n8. **Ignoring Warnings** - Dismissing legitimate style issues\n9. **No Base Config** - Not establishing project-wide defaults\n10. **Hardcoded Values** - Not using variables for repeated values\n11. **Stale Configurations** - Not updating after markdownlint upgrades\n12. **Missing Allowed Elements** - Blocking necessary HTML elements\n13. **Inconsistent Inheritance** - Different base configs across projects\n14. **No Testing** - Not testing configuration before committing\n15. **Unclear Disable Reasons** - Using disable without explanation\n\n## Resources\n\n- [markdownlint GitHub Repository](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint)\n- [markdownlint Rules Documentation](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint\u002Fblob\u002Fmain\u002Fdoc\u002FRules.md)\n- [Configuration Schema](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint\u002Fblob\u002Fmain\u002Fschema\u002Fmarkdownlint-config-schema.json)\n- [markdownlint-cli Documentation](https:\u002F\u002Fgithub.com\u002Figorshubovych\u002Fmarkdownlint-cli)\n- [Custom Rules Guide](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint\u002Fblob\u002Fmain\u002Fdoc\u002FCustomRules.md)\n","# Markdownlint Configuration\n\nMaster markdownlint configuration including rule management, configuration files, inline comment directives, style inheritance, and schema validation for consistent Markdown linting.\n\n## Overview\n\nMarkdownlint is a Node.js style checker and linter for Markdown\u002FCommonMark 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.\n\n## Installation and Setup\n\n### Basic Installation\n\nInstall markdownlint in your project:\n\n```bash\nnpm install --save-dev markdownlint markdownlint-cli\n# or\npnpm add -D markdownlint markdownlint-cli\n# or\nyarn add -D markdownlint markdownlint-cli\n```\n\n### Verify Installation\n\n```bash\nnpx markdownlint --version\n```\n\n## Configuration File Structure\n\n### Basic .markdownlint.json\n\nCreate a `.markdownlint.json` file in your project root:\n\n```json\n{\n  \"default\": true,\n  \"MD003\": { \"style\": \"atx_closed\" },\n  \"MD007\": { \"indent\": 4 },\n  \"no-hard-tabs\": false,\n  \"whitespace\": false\n}\n```\n\nThis configuration:\n- Enables all default rules via `\"default\": true`\n- Configures MD003 (heading style) to use ATX closed format\n- Sets MD007 (unordered list indentation) to 4 spaces\n- Disables the no-hard-tabs rule\n- Disables all whitespace rules\n\n### Rule Naming Conventions\n\nRules can be referenced by their ID (MD###) or friendly name:\n\n```json\n{\n  \"MD001\": false,\n  \"heading-increment\": false,\n  \"MD003\": { \"style\": \"atx\" },\n  \"heading-style\": { \"style\": \"atx\" },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\"strong\", \"em\", \"br\"]\n  }\n}\n```\n\nBoth ID and friendly name work identically.\n\n## Configuration Options\n\n### Enable\u002FDisable All Rules\n\n```json\n{\n  \"default\": true\n}\n```\n\nWhen `\"default\": false`, only explicitly enabled rules are active:\n\n```json\n{\n  \"default\": false,\n  \"MD001\": true,\n  \"MD003\": { \"style\": \"atx\" },\n  \"line-length\": true\n}\n```\n\n### Rule-Specific Parameters\n\n#### Heading Style (MD003)\n\n```json\n{\n  \"heading-style\": {\n    \"style\": \"atx\"\n  }\n}\n```\n\nOptions: `\"atx\"`, `\"atx_closed\"`, `\"setext\"`, `\"setext_with_atx\"`, `\"setext_with_atx_closed\"`\n\n#### Unordered List Style (MD004)\n\n```json\n{\n  \"ul-style\": {\n    \"style\": \"asterisk\"\n  }\n}\n```\n\nOptions: `\"asterisk\"`, `\"dash\"`, `\"plus\"`, `\"consistent\"`, `\"sublist\"`\n\n#### List Indentation (MD007)\n\n```json\n{\n  \"ul-indent\": {\n    \"indent\": 4,\n    \"start_indented\": true\n  }\n}\n```\n\n#### Line Length (MD013)\n\n```json\n{\n  \"line-length\": {\n    \"line_length\": 100,\n    \"heading_line_length\": 120,\n    \"code_block_line_length\": 120,\n    \"code_blocks\": true,\n    \"tables\": false,\n    \"headings\": true,\n    \"strict\": false,\n    \"stern\": false\n  }\n}\n```\n\n#### No Trailing Spaces (MD009)\n\n```json\n{\n  \"no-trailing-spaces\": {\n    \"br_spaces\": 2,\n    \"list_item_empty_lines\": false,\n    \"strict\": false\n  }\n}\n```\n\n#### No Inline HTML (MD033)\n\n```json\n{\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"strong\",\n      \"em\",\n      \"br\",\n      \"sub\",\n      \"sup\",\n      \"kbd\",\n      \"details\",\n      \"summary\"\n    ]\n  }\n}\n```\n\n#### Horizontal Rule Style (MD035)\n\n```json\n{\n  \"hr-style\": {\n    \"style\": \"---\"\n  }\n}\n```\n\nOptions: `\"---\"`, `\"***\"`, `\"___\"`, or custom like `\"- - -\"`\n\n#### First Line Heading (MD041)\n\n```json\n{\n  \"first-line-heading\": {\n    \"level\": 1,\n    \"front_matter_title\": \"\"\n  }\n}\n```\n\n#### Required Headings\n\n```json\n{\n  \"required-headings\": {\n    \"headings\": [\n      \"# Title\",\n      \"## Description\",\n      \"## Examples\",\n      \"## Resources\"\n    ]\n  }\n}\n```\n\n#### Proper Names (MD044)\n\n```json\n{\n  \"proper-names\": {\n    \"names\": [\n      \"JavaScript\",\n      \"TypeScript\",\n      \"GitHub\",\n      \"markdownlint\",\n      \"npm\"\n    ],\n    \"code_blocks\": false\n  }\n}\n```\n\n## Inline Configuration Comments\n\n### Disable Rules for Entire File\n\n```markdown\n\u003C!-- markdownlint-disable-file -->\n\n# This file has no linting applied\n\nAny markdown content here will not be checked.\n```\n\n### Disable Specific Rules for File\n\n```markdown\n\u003C!-- markdownlint-disable-file MD013 MD033 -->\n\n# Long lines and HTML are allowed in this file\n\nThis line can be as long as you want without triggering MD013.\n\n\u003Cdiv>Inline HTML is also allowed\u003C\u002Fdiv>\n```\n\n### Disable Rules Temporarily\n\n```markdown\n\u003C!-- markdownlint-disable MD033 -->\n\n\u003Cdiv class=\"custom-block\">\n  HTML content here\n\u003C\u002Fdiv>\n\n\u003C!-- markdownlint-enable MD033 -->\n\nRegular markdown content with rules enforced.\n```\n\n### Disable for Single Line\n\n```markdown\nThis line follows all rules.\n\nLong line that exceeds limit \u003C!-- markdownlint-disable-line MD013 -->\n\nThis line follows all rules again.\n```\n\n### Disable for Next Line\n\n```markdown\n\u003C!-- markdownlint-disable-next-line MD013 -->\nThis is a very long line that would normally trigger the line-length rule but won't because of the comment above.\n\nThis line follows normal rules.\n```\n\n### Capture and Restore Configuration\n\n```markdown\n\u003C!-- markdownlint-capture -->\n\u003C!-- markdownlint-disable -->\n\nAny violations allowed here.\n\n\u003C!-- markdownlint-restore -->\n\nBack to original configuration.\n```\n\n### Configure Rules Inline\n\n```markdown\n\u003C!-- markdownlint-configure-file {\n  \"line-length\": {\n    \"line_length\": 120\n  },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\"strong\", \"em\"]\n  }\n} -->\n\n# Document Title\n\nRest of document follows inline configuration.\n```\n\n## Configuration File Formats\n\n### JSON Configuration\n\n`.markdownlint.json`:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002FDavidAnson\u002Fmarkdownlint\u002Fmain\u002Fschema\u002Fmarkdownlint-config-schema.json\",\n  \"default\": true,\n  \"MD003\": { \"style\": \"atx\" },\n  \"MD007\": { \"indent\": 2 },\n  \"MD013\": {\n    \"line_length\": 100,\n    \"code_blocks\": false\n  },\n  \"MD033\": {\n    \"allowed_elements\": [\"br\", \"strong\", \"em\"]\n  }\n}\n```\n\n### YAML Configuration\n\n`.markdownlint.yaml`:\n\n```yaml\ndefault: true\nMD003:\n  style: atx\nMD007:\n  indent: 2\nMD013:\n  line_length: 100\n  code_blocks: false\nMD033:\n  allowed_elements:\n    - br\n    - strong\n    - em\n```\n\n### JavaScript Configuration\n\n`.markdownlint.js`:\n\n```javascript\nmodule.exports = {\n  default: true,\n  MD003: { style: \"atx\" },\n  MD007: { indent: 2 },\n  MD013: {\n    line_length: 100,\n    code_blocks: false\n  },\n  MD033: {\n    allowed_elements: [\"br\", \"strong\", \"em\"]\n  }\n};\n```\n\n## Configuration Inheritance\n\n### Extending Base Configurations\n\nCreate a base configuration:\n\n`base.json`:\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 100\n  }\n}\n```\n\nExtend it in your project:\n\n`custom.json`:\n```json\n{\n  \"extends\": \"base.json\",\n  \"no-inline-html\": false,\n  \"line-length\": {\n    \"line_length\": 120\n  }\n}\n```\n\n### Using Predefined Styles\n\nMarkdownlint includes predefined style configurations:\n\n```json\n{\n  \"extends\": \"markdownlint\u002Fstyle\u002Frelaxed\"\n}\n```\n\nAvailable styles:\n- `markdownlint\u002Fstyle\u002Frelaxed` - Less strict rules\n- `markdownlint\u002Fstyle\u002Fprettier` - Compatible with Prettier\n\n## Schema Validation\n\n### Enable IDE Support\n\nInclude the `$schema` property for autocomplete and validation:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002FDavidAnson\u002Fmarkdownlint\u002Fmain\u002Fschema\u002Fmarkdownlint-config-schema.json\",\n  \"default\": true\n}\n```\n\nThis enables:\n- Autocomplete for rule names\n- Validation of configuration values\n- Inline documentation in supported editors\n\n## Project-Specific Configurations\n\n### Per-Directory Configuration\n\nPlace `.markdownlint.json` in specific directories:\n\n```\nproject\u002F\n├── .markdownlint.json          # Root config\n├── docs\u002F\n│   ├── .markdownlint.json      # Docs-specific config\n│   └── guides\u002F\n│       └── .markdownlint.json  # Guides-specific config\n```\n\n### Monorepo Configuration\n\nRoot `.markdownlint.json`:\n\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 100\n  }\n}\n```\n\nPackage-specific `packages\u002Fapi\u002Fdocs\u002F.markdownlint.json`:\n\n```json\n{\n  \"extends\": \"..\u002F..\u002F..\u002F.markdownlint.json\",\n  \"no-inline-html\": {\n    \"allowed_elements\": [\"code\", \"pre\", \"div\"]\n  }\n}\n```\n\n## Common Configuration Patterns\n\n### Strict Documentation Standards\n\n```json\n{\n  \"default\": true,\n  \"heading-style\": { \"style\": \"atx\" },\n  \"ul-style\": { \"style\": \"dash\" },\n  \"ol-prefix\": { \"style\": \"ordered\" },\n  \"line-length\": {\n    \"line_length\": 80,\n    \"strict\": true\n  },\n  \"no-trailing-spaces\": {\n    \"strict\": true\n  },\n  \"no-inline-html\": false,\n  \"first-line-heading\": {\n    \"level\": 1\n  },\n  \"required-headings\": {\n    \"headings\": [\n      \"# Title\",\n      \"## Description\",\n      \"## Usage\",\n      \"## API\"\n    ]\n  }\n}\n```\n\n### Relaxed Blog\u002FArticle Style\n\n```json\n{\n  \"default\": true,\n  \"line-length\": false,\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"img\",\n      \"a\",\n      \"strong\",\n      \"em\",\n      \"br\",\n      \"div\",\n      \"span\"\n    ]\n  },\n  \"no-duplicate-heading\": {\n    \"siblings_only\": true\n  },\n  \"first-line-heading\": false,\n  \"single-title\": false\n}\n```\n\n### Technical Documentation\n\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 120,\n    \"code_blocks\": false,\n    \"tables\": false\n  },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"details\",\n      \"summary\",\n      \"kbd\",\n      \"sub\",\n      \"sup\",\n      \"br\"\n    ]\n  },\n  \"code-block-style\": {\n    \"style\": \"fenced\"\n  },\n  \"code-fence-style\": {\n    \"style\": \"backtick\"\n  },\n  \"emphasis-style\": {\n    \"style\": \"asterisk\"\n  },\n  \"strong-style\": {\n    \"style\": \"asterisk\"\n  }\n}\n```\n\n### README Template\n\n```json\n{\n  \"default\": true,\n  \"line-length\": {\n    \"line_length\": 100,\n    \"tables\": false,\n    \"code_blocks\": false\n  },\n  \"no-inline-html\": {\n    \"allowed_elements\": [\n      \"img\",\n      \"br\",\n      \"details\",\n      \"summary\",\n      \"sup\"\n    ]\n  },\n  \"required-headings\": {\n    \"headings\": [\n      \"# *\",\n      \"## Installation\",\n      \"## Usage\",\n      \"## License\"\n    ]\n  },\n  \"first-line-heading\": {\n    \"level\": 1\n  }\n}\n```\n\n## When to Use This Skill\n\n- Setting up markdownlint in new projects\n- Configuring linting rules for documentation\n- Creating custom rule configurations for teams\n- Troubleshooting configuration issues\n- Establishing Markdown style guides\n- Migrating from other Markdown linters\n- Enforcing consistent documentation standards\n- Configuring monorepo Markdown linting\n\n## Best Practices\n\n1. **Use Schema Validation** - Always include `$schema` for IDE support\n2. **Start with Defaults** - Begin with `\"default\": true` and disable selectively\n3. **Document Exceptions** - Comment why specific rules are disabled\n4. **Consistent Naming** - Use either rule IDs or friendly names, not both\n5. **Version Control Config** - Commit `.markdownlint.json` to repository\n6. **Team Agreement** - Discuss rule changes with team before applying\n7. **Progressive Adoption** - Gradually enable stricter rules over time\n8. **Test Changes** - Run linter after configuration changes\n9. **Use Inheritance** - Leverage extends for shared configurations\n10. **Inline Sparingly** - Prefer file-level config over inline comments\n11. **Monitor Rule Updates** - Review new rules in markdownlint updates\n12. **Environment-Specific** - Use different configs for different doc types\n13. **Automation Integration** - Include linting in pre-commit hooks\n14. **Regular Review** - Periodically review and update configurations\n15. **Clear Comments** - Add comments explaining complex configurations\n\n## Common Pitfalls\n\n1. **Conflicting Rules** - Enabling contradictory rules (e.g., different heading styles)\n2. **Over-Configuration** - Specifying too many inline disable comments\n3. **Missing Schema** - Not including `$schema` for validation\n4. **Incorrect Paths** - Using wrong paths in extends property\n5. **Rule Name Typos** - Misspelling rule names (fails silently)\n6. **JSON Syntax Errors** - Invalid JSON breaks configuration parsing\n7. **Overly Strict** - Enabling strict rules without team buy-in\n8. **Ignoring Warnings** - Dismissing legitimate style issues\n9. **No Base Config** - Not establishing project-wide defaults\n10. **Hardcoded Values** - Not using variables for repeated values\n11. **Stale Configurations** - Not updating after markdownlint upgrades\n12. **Missing Allowed Elements** - Blocking necessary HTML elements\n13. **Inconsistent Inheritance** - Different base configs across projects\n14. **No Testing** - Not testing configuration before committing\n15. **Unclear Disable Reasons** - Using disable without explanation\n\n## Resources\n\n- [markdownlint GitHub Repository](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint)\n- [markdownlint Rules Documentation](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint\u002Fblob\u002Fmain\u002Fdoc\u002FRules.md)\n- [Configuration Schema](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint\u002Fblob\u002Fmain\u002Fschema\u002Fmarkdownlint-config-schema.json)\n- [markdownlint-cli Documentation](https:\u002F\u002Fgithub.com\u002Figorshubovych\u002Fmarkdownlint-cli)\n- [Custom Rules Guide](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint\u002Fblob\u002Fmain\u002Fdoc\u002FCustomRules.md)\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":20},[25,26],"Bash","Read","main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fdev\u002Fsuspicious\u002FTheBushidoCollective__han__plugins__validation__markdown__skills__markdownlint-configuration","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add shenyimings\u002Fskillet --skill markdownlint-configuration",{"tool":41,"command":42},"bunx","bunx skills add shenyimings\u002Fskillet --skill markdownlint-configuration",{"tool":44,"command":45},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill markdownlint-configuration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsuspicious\u002FTheBushidoCollective__han__plugins__validation__markdown__skills__markdownlint-configuration\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]