Woocommerce Markdown

Create perfectly formatted WooCommerce markdown with automated linting

✨ The solution you've been looking for

Verified
Tested and verified by our team
10133 Stars

Guidelines for creating and modifying markdown files in WooCommerce. Use when writing documentation, README files, or any markdown content.

woocommerce markdown documentation linting markdownlint standards formatting technical-writing
Repository

See It In Action

Interactive preview & real-world examples

Live Demo
Skill Demo Animation

AI Conversation Simulator

See how users interact with this skill

User Prompt

Help me create a README.md file for a new WooCommerce payment gateway plugin that follows all WooCommerce markdown guidelines

Skill Processing

Analyzing request...

Agent Response

A properly formatted README with correct heading hierarchy, code blocks with language specs, proper list indentation, and all markdownlint rules satisfied

Quick Start (3 Steps)

Get up and running in minutes

1

Install

claude-code skill install woocommerce-markdown

claude-code skill install woocommerce-markdown
2

Config

3

First Trigger

@woocommerce-markdown help

Commands

CommandDescriptionRequired Args
@woocommerce-markdown creating-woocommerce-plugin-documentationWrite comprehensive README files and documentation that pass WooCommerce's strict markdown standardsNone
@woocommerce-markdown fixing-markdown-linting-errorsResolve common markdownlint issues in existing WooCommerce documentationNone
@woocommerce-markdown converting-documentation-to-woocommerce-standardsTransform existing markdown files to meet WooCommerce's specific configuration requirementsNone

Typical Use Cases

Creating WooCommerce Plugin Documentation

Write comprehensive README files and documentation that pass WooCommerce's strict markdown standards

Fixing Markdown Linting Errors

Resolve common markdownlint issues in existing WooCommerce documentation

Converting Documentation to WooCommerce Standards

Transform existing markdown files to meet WooCommerce's specific configuration requirements

Overview

WooCommerce Markdown Guidelines

This skill provides guidance for creating and editing markdown files in the WooCommerce project.

Critical Rules

  1. Always lint after changes - Run markdownlint --fix then markdownlint to verify
  2. Run from repository root - Ensures .markdownlint.json config is loaded
  3. Use UTF-8 encoding - Especially for directory trees and special characters
  4. Follow WooCommerce markdown standards - See configuration rules below

WooCommerce Markdown Configuration

The project uses markdownlint with these specific rules (from .markdownlint.json):

Enabled Rules

  • MD003: Heading style must be ATX (# Heading not Heading\n===)
  • MD007: Unordered list indentation must be 4 spaces
  • MD013: Line length limit disabled (set to 9999)
  • MD024: Multiple headings with same content allowed (only check siblings)
  • MD031: Fenced code blocks must be surrounded by blank lines
  • MD032: Lists must be surrounded by blank lines
  • MD033: HTML allowed for <video> elements only
  • MD036: Emphasis (bold/italic) should not be used as headings - use proper heading tags
  • MD040: Fenced code blocks should specify language
  • MD047: Files must end with a single newline

Disabled Rules

  • no-hard-tabs: Tabs are allowed
  • whitespace: Trailing whitespace rules disabled

Markdown Writing Guidelines

Headings

1# Main Title (H1) - Only one per file
2
3## Section (H2)
4
5### Subsection (H3)
6
7#### Minor Section (H4)
  • Use ATX style (#) not underline style
  • One H1 per file (usually the title)
  • Maintain heading hierarchy (don’t skip levels)

Lists

Unordered lists:

1- Item one
2- Item two
3    - Nested item (4 spaces)
4    - Another nested item
5- Item three

Ordered lists:

11. First item
22. Second item
33. Third item

Important:

  • Use 4 spaces for nested list items
  • Add blank line before and after lists
  • Use - for unordered lists (not * or +)

Code Blocks

Always specify the language:

 1```bash
 2pnpm test:php:env
 3```
 4
 5```php
 6public function process_order( int $order_id ) {
 7    // code here
 8}
 9```
10
11```javascript
12const result = calculateTotal(items);
13```

Common language identifiers:

  • bash - Shell commands
  • php - PHP code
  • javascript or js - JavaScript
  • typescript or ts - TypeScript
  • json - JSON data
  • sql - SQL queries
  • markdown or md - Markdown examples

Code block rules:

  • Add blank line before the opening fence
  • Add blank line after the closing fence
  • Always specify language (never use plain ```)

Inline Code

Use backticks for inline code:

1Use the `process_order()` method to handle orders.
2The `$order_id` parameter must be an integer.
1[Link text](https://example.com)
2
3[Internal link](../path/to/file.md)
4
5[Link with title](https://example.com "Optional title")

Tables

1| Column 1 | Column 2 | Column 3 |
2|----------|----------|----------|
3| Value 1  | Value 2  | Value 3  |
4| Value 4  | Value 5  | Value 6  |
  • Use pipes (|) for column separators
  • Header separator row required
  • Alignment optional (:---, :---:, ---:)

Directory Trees

Always use UTF-8 box-drawing characters:

1src/
2├── Internal/
3│   ├── Admin/
4│   │   └── Controller.php
5│   └── Utils/
6│       └── Helper.php
7└── External/
8    └── API.php

Never use:

  • ASCII art (+--, |--)
  • Spaces or tabs for tree structure
  • Control characters

Emphasis

1**Bold text** for strong emphasis
2*Italic text* for regular emphasis
3***Bold and italic*** for very strong emphasis

Workflow for Editing Markdown

  1. Make your changes to the markdown file

  2. Auto-fix linting issues:

    1markdownlint --fix path/to/file.md
    
  3. Check for remaining issues:

    1markdownlint path/to/file.md
    
  4. Manually fix what remains (usually language specs for code blocks)

  5. Verify clean - No output means success

  6. Commit changes

Common Linting Errors and Fixes

MD007: List indentation

Problem:

1- Item
2  - Nested (only 2 spaces)

Fix:

1- Item
2    - Nested (4 spaces)

MD031: Code blocks need blank lines

Problem:

1Some text
2```bash
3command
4```
5More text

Fix:

1Some text
2
3```bash
4command
5```
6
7More text

MD032: Lists need blank lines

Problem:

1Some text
2- List item

Fix:

1Some text
2
3- List item

MD036: Emphasis as heading

Problem:

1**Example: Using bold as a heading**
2
3Some content here

Fix:

1#### Example: Using a proper heading
2
3Some content here

MD040: Code needs language

Problem:

1```
2code here
3```

Fix:

1```bash
2code here
3```

Special Cases

CLAUDE.md Files

CLAUDE.md files are AI assistant documentation:

  • Must be well-formatted for optimal parsing by AI
  • Follow all markdownlint rules strictly
  • Use clear, hierarchical structure
  • Include table of contents for long files

README Files

  • Start with H1 title
  • Include brief description
  • Add installation/usage sections
  • Keep concise and scannable

Changelog Files

  • Follow Keep a Changelog format
  • Use consistent date formatting
  • Group changes by type (Added, Changed, Fixed, etc.)

Troubleshooting

File Shows as “data” Instead of Text

Problem: File is corrupted with control characters

Fix:

1tr -d '\000-\037' < file.md > file.clean.md && mv file.clean.md file.md
2file file.md  # Verify shows "UTF-8 text"

Linting Shows Unexpected Errors

Problem: Not running from repository root

Fix:

1# Always run from root
2cd /path/to/woocommerce
3markdownlint path/to/file.md
4
5# NOT like this
6markdownlint /absolute/path/to/file.md

Auto-fix Doesn’t Work

Problem: Some issues require manual intervention

Fix:

  • Language specs for code blocks must be added manually
  • Long lines may need manual rewrapping
  • Some structural issues require content reorganization

Notes

  • Most markdown issues are auto-fixable with markdownlint --fix
  • Always run markdownlint from repository root
  • UTF-8 encoding is critical for special characters
  • CLAUDE.md files must pass linting for optimal AI parsing
  • See woocommerce-dev-cycle skill for markdown linting commands

What Users Are Saying

Real feedback from the community

Environment Matrix

Dependencies

markdownlint CLI tool
UTF-8 compatible text editor
WooCommerce project with .markdownlint.json config

Context Window

Token Usage ~1K-3K tokens for typical documentation files

Security & Privacy

Information

Author
woocommerce
Updated
2026-01-30
Category
cms-platforms