Skip to content

Markdown skills and markdownlint hooks that keep documentation formatting consistent across a project.

CCM score
43 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Adds 6 skills covering markdown syntax, tables, technical documentation, and markdownlint configuration, custom rules, and integration
  • Runs markdownlint through a hooks.json hook on all .md files at session stop and after agent work completes
  • Passes --cache and --fix so validation runs only when markdown changed and fixable issues get corrected automatically
  • Lets you disable the hook or swap its command per directory with han-config.yml, and set rules in .markdownlint.json or .markdownlint.yaml

Markdown documentation skills and linting with markdownlint for consistent formatting.

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install jutsu-markdown@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Markdown Documentation

Best practices for writing effective technical documentation in markdown.

README Structure

Minimal README

# Project Name

Brief description of what this project does.

## Installation

Instructions to install.

## Usage

Basic usage example.

## License

MIT

Comprehensive README

# Project Name

![Build Status](badge-url)
![Version](badge-url)

One-paragraph description of the project.

## Features

- Feature one
- Feature two
- Feature three

## Installation

### Prerequisites

- Requirement 1
- Requirement 2

### Steps

Instructions...

## Usage

### Basic Example

Code example...

### Advanced Usage

More examples...

## Configuration

Configuration options...

## API Reference

API documentation...

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md)

## License

MIT License - see [LICENSE](LICENSE)

Document Organization

File Naming

docs/
├── README.md           # Entry point
├── CONTRIBUTING.md     # Contribution guidelines
├── CHANGELOG.md        # Version history
├── CODE_OF_CONDUCT.md  # Community guidelines
├── getting-started.md  # Onboarding guide
├── api/
│   ├── README.md       # API overview
│   └── endpoints.md    # Endpoint reference
└── guides/
    ├── installation.md
    └── configuration.md

Linking Between Documents

See the [installation guide](./guides/installation.md) for details.

For API reference, check [endpoints](./api/endpoints.md#authentication).

Writing Style

Be Concise

<!-- Bad -->
In order to install the application, you will need to run the following command.

<!-- Good -->
Install the application:

Use Active Voice

<!-- Bad -->
The configuration file should be created in the home directory.

<!-- Good -->
Create the configuration file in your home directory.

Address the Reader

<!-- Bad -->
Users can configure the timeout setting.

<!-- Good -->
You can configure the timeout setting.

Code Documentation

Inline Code vs Code Blocks

Use `npm install` to install dependencies.

For multiple commands, use a code block:

```bash
npm install
npm run build
npm start

### Command Examples

Show both command and output:

```bash
$ npm --version
10.2.0

Configuration Examples

Always show complete, valid examples:

Create config.json:

{
  "port": 3000,
  "debug": true,
  "database": {
    "host": "localhost",
    "name": "myapp"
  }
}

Admonitions and Callouts

GitHub-Style Alerts

> [!NOTE]
> Useful information that users should know.

> [!TIP]
> Helpful advice for doing things better.

> [!IMPORTANT]
> Key information users need to know.

> [!WARNING]
> Urgent info that needs immediate attention.

> [!CAUTION]
> Advises about risks or negative outcomes.

Custom Callouts (Emoji-Based)

⚠️ **Warning**: This action cannot be undone.

💡 **Tip**: Use environment variables for sensitive data.

📝 **Note**: This feature requires version 2.0+.

API Documentation

Endpoint Documentation

Create User

Creates a new user account.

Request: POST /api/users

Headers:

HeaderValueRequired
Content-Typeapplication/json✅
AuthorizationBearer {token}✅

Body:

{
  "name": "John Doe",
  "email": "john@example.com"
}

Response (201):

{
  "id": "abc123",
  "name": "John Doe",
  "email": "john@example.com"
}

Error (400):

{
  "error": "Invalid email format"
}

Function Documentation

parseConfig(path, options?)

Parses a configuration file.

Parameters:

NameTypeDefaultDescription
pathstring—Path to config file
options.strictbooleanfalseThrow on unknown keys
options.envbooleantrueExpand environment variables

Returns: Config - Parsed configuration object

Throws:

  • FileNotFoundError - Config file doesn't exist
  • ParseError - Invalid JSON/YAML syntax

Example:

const config = parseConfig('./config.json', { strict: true });

Changelogs

Keep a Changelog Format

# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased]

### Added
- New feature X

### Changed
- Updated dependency Y

## [1.2.0] - 2024-01-15

### Added
- Feature A
- Feature B

### Fixed
- Bug in feature C

### Deprecated
- Old API endpoint

## [1.1.0] - 2024-01-01

### Added
- Initial release

Diagrams

Mermaid (GitHub Supported)

```mermaid
graph LR
    A[Start] --> B{Decision}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]
    C --> E[End]
    D --> E
```

ASCII Diagrams

```
┌─────────┐     ┌─────────┐     ┌─────────┐
│ Client  │────▶│ Server  │────▶│Database │
└─────────┘     └─────────┘     └─────────┘
```

Best Practices

  1. Start with why: Explain what the project does and why it exists
  2. Show, don't tell: Provide working code examples
  3. Keep it current: Update docs when code changes
  4. Test examples: Ensure code samples actually work
  5. Use consistent terminology: Define terms and use them consistently
  6. Provide context: Link to prerequisites and related docs
  7. Consider your audience: Write for your users' skill level
  8. Include troubleshooting: Document common errors and solutions

Common Documentation Files

FilePurpose
README.mdProject overview and quick start
CONTRIBUTING.mdHow to contribute
CHANGELOG.mdVersion history
LICENSELegal terms
CODE_OF_CONDUCT.mdCommunity guidelines
SECURITY.mdSecurity policy
SUPPORT.mdHow to get help

Readme

Markdown

Markdown documentation skills and linting with markdownlint.

What This Plugin Provides

Validation Hooks

  • Markdownlint Validation: Runs markdownlint on all .md files to enforce consistent formatting
  • Validates files on session stop and when agents complete work
  • Only runs when markdown files have changed (with --cache flag)
  • Automatically fixes fixable issues with --fix

Skills

This plugin provides the following skills:

Markdown Fundamentals
  • markdown-syntax-fundamentals: Core markdown syntax for headings, text formatting, lists, links, images, code blocks, and blockquotes
  • markdown-tables: Table syntax, alignment, escaping, and best practices for complex table layouts
  • markdown-documentation: Writing effective technical documentation, READMEs, changelogs, and API docs
Markdownlint
  • markdownlint-configuration: Configure markdownlint rules and options including rule management, configuration files, and style inheritance
  • markdownlint-custom-rules: Create custom linting rules including rule structure, parser integration, and automatic fixing
  • markdownlint-integration: Integrate markdownlint into development workflows including CLI usage, programmatic API, and CI/CD pipelines

Installation

han plugin install markdown

Usage

Once installed, this plugin automatically validates your markdown files:

  • When you finish a conversation with Claude Code
  • When Claude Code agents complete their work
  • Before commits (when combined with git hooks)

Configuration

Configure markdownlint by adding a configuration file to directories you want to lint:

  • .markdownlint.json or .markdownlint.jsonc (JSON format)
  • .markdownlint.yaml or .markdownlint.yml (YAML format)

Example .markdownlint.json:

{
  "default": true,
  "MD013": false,
  "MD041": false
}

Common Markdownlint Rules

RuleDescription
MD001Heading levels should only increment by one level at a time
MD013Line length (often disabled for prose)
MD031Fenced code blocks should be surrounded by blank lines
MD041First line should be a top-level heading
MD056Table column count should be consistent

Overriding Hooks

Create a han-config.yml in directories where you want to customize behavior:

markdown:
  lint:
    enabled: false  # Disable markdownlint for this directory

Or override the command:

markdown:
  lint:
    command: "npx -y markdownlint-cli --fix . --disable MD013"  # Ignore line length

Details

Marketplace
TheBushidoCollective/han
Source
plugins/validation/markdown
Category
Validation
Keywords
markdown, markdownlint, documentation, linting, formatting
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to jutsu-markdown

More Technical Documentation