woocommerce-markdown
WooCommerceのドキュメントやREADMEファイルなど、Markdown形式のコンテンツを作成・修正する際に、記述ルールやガイドラインを理解し、適切に編集作業を進めるSkill。
📜 元の英語説明(参考)
Guidelines for creating and modifying markdown files in WooCommerce. Use when writing documentation, README files, or any markdown content.
🇯🇵 日本人クリエイター向け解説
WooCommerceのドキュメントやREADMEファイルなど、Markdown形式のコンテンツを作成・修正する際に、記述ルールやガイドラインを理解し、適切に編集作業を進めるSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o woocommerce-markdown.zip https://jpskill.com/download/21035.zip && unzip -o woocommerce-markdown.zip && rm woocommerce-markdown.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21035.zip -OutFile "$d\woocommerce-markdown.zip"; Expand-Archive "$d\woocommerce-markdown.zip" -DestinationPath $d -Force; ri "$d\woocommerce-markdown.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
woocommerce-markdown.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
woocommerce-markdownフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
WooCommerce Markdown ガイドライン
このスキルは、WooCommerce プロジェクトで Markdown ファイルを作成および編集するためのガイダンスを提供します。
重要なルール
- 変更後は常に lint を実行する -
markdownlint --fixを実行してからmarkdownlintを実行して確認してください。 - リポジトリのルートから実行する -
.markdownlint.json設定が確実にロードされます。 - UTF-8 エンコーディングを使用する - 特にディレクトリツリーや特殊文字の場合です。
- WooCommerce Markdown 標準に従う - 下記の設定ルールを参照してください。
WooCommerce Markdown 設定
このプロジェクトでは、以下の特定のルール(.markdownlint.json から)で markdownlint を使用しています。
有効なルール
- MD003: 見出しスタイルは ATX である必要があります(
# HeadingでありHeading\n===ではありません)。 - MD007: 順序なしリストのインデントはスペース 4 つである必要があります。
- MD013: 行の長さ制限は無効です(9999 に設定されています)。
- MD024: 同じ内容の複数の見出しが許可されます(兄弟のみをチェックします)。
- MD031: フェンスで囲まれたコードブロックは空白行で囲む必要があります。
- MD032: リストは空白行で囲む必要があります。
- MD033: HTML は
<video>要素のみ許可されます。 - MD036: 強調(太字/斜体)は見出しとして使用しないでください。適切な見出しタグを使用してください。
- MD040: フェンスで囲まれたコードブロックは言語を指定する必要があります。
- MD047: ファイルは単一の改行で終わる必要があります。
無効なルール
- no-hard-tabs: タブは許可されます。
- whitespace: 末尾の空白ルールは無効です。
Markdown 記述ガイドライン
見出し
# Main Title (H1) - Only one per file
## Section (H2)
### Subsection (H3)
#### Minor Section (H4)
- 下線スタイルではなく ATX スタイル(
#)を使用してください。 - ファイルごとに H1 は 1 つだけです(通常はタイトル)。
- 見出しの階層を維持してください(レベルを飛ばさないでください)。
リスト
順序なしリスト:
- Item one
- Item two
- Nested item (4 spaces)
- Another nested item
- Item three
順序付きリスト:
1. First item
2. Second item
3. Third item
重要:
- ネストされたリスト項目にはスペース 4 つを使用してください。
- リストの前後に空白行を追加してください。
- 順序なしリストには
-を使用してください(*や+ではありません)。
コードブロック
常に言語を指定してください:
```bash
pnpm test:php:env
```
```php
public function process_order( int $order_id ) {
// code here
}
```
```javascript
const result = calculateTotal(items);
```
一般的な言語識別子:
bash- シェルコマンドphp- PHP コードjavascriptまたはjs- JavaScripttypescriptまたはts- TypeScriptjson- JSON データsql- SQL クエリmarkdownまたはmd- Markdown の例
コードブロックのルール:
- 開始フェンスの前に空白行を追加してください。
- 終了フェンスの後に空白行を追加してください。
- 常に言語を指定してください(プレーンな
```は絶対に使用しないでください)。
インラインコード
インラインコードにはバッククォートを使用してください:
Use the `process_order()` method to handle orders.
The `$order_id` parameter must be an integer.
リンク
[Link text](https://example.com)
[Internal link](../path/to/file.md)
[Link with title](https://example.com "Optional title")
テーブル
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Value 1 | Value 2 | Value 3 |
| Value 4 | Value 5 | Value 6 |
- 列の区切りにはパイプ(
|)を使用してください。 - ヘッダー区切り行が必要です。
- 配置はオプションです(
:---、:---:、---:)。
ディレクトリツリー
常に UTF-8 の罫線文字を使用してください:
src/
├── Internal/
│ ├── Admin/
│ │ └── Controller.php
│ └── Utils/
│ └── Helper.php
└── External/
└── API.php
絶対に使用しないでください:
- ASCII アート(
+--、|--) - ツリー構造にスペースやタブ
- 制御文字
強調
**Bold text** for strong emphasis
*Italic text* for regular emphasis
***Bold and italic*** for very strong emphasis
Markdown 編集のワークフロー
-
Markdown ファイルに変更を加える
-
lint の問題を自動修正する:
markdownlint --fix path/to/file.md -
残りの問題を確認する:
markdownlint path/to/file.md -
残りの問題を手動で修正する(通常はコードブロックの言語指定です)
-
クリーンであることを確認する - 出力がない場合は成功です。
-
変更をコミットする
一般的な lint エラーと修正
MD007: リストのインデント
問題:
- Item
- Nested (only 2 spaces)
修正:
- Item
- Nested (4 spaces)
MD031: コードブロックには空白行が必要です
問題:
Some text
```bash
command
```
More text
修正:
Some text
```bash
command
```
More text
MD032: リストには空白行が必要です
問題:
Some text
- List item
修正:
Some text
- List item
MD036: 見出しとしての強調
問題:
**Example: Using bold as a heading**
Some content here
修正:
#### Example: Using a proper heading
Some content here
MD040: コードには言語が必要です
問題:
```
code here
```
修正:
```bash
code here
```
特殊なケース
CLAUDE.md ファイル
CLAUDE.md ファイルは AI アシスタントのドキュメントです。
- AI による最適な解析のために、適切にフォーマットされている必要があります。
- すべての markdownlint ルールに厳密に従ってください。
- 明確で階層的な構造を使用してください。
- 長いファイルには目次を含めてください。
README ファイル
- H1 タイトルで始めてください。
- 簡単な説明を含めてください。
- インストール/使用セクションを追加してください。
- 簡潔でスキャンしやすいものにしてください。
Changelog ファイル
- Keep a Changelog 形式に従ってください。
- 一貫した日付形式を使用してください。
- 変更をタイプ(Added、Changed、Fixed など)でグループ化してください。
トラブルシューティング
ファイルがテキストではなく「data」として表示される
問題: ファイルが制御文字で破損しています。
修正:
tr -d '\000-\037' < file.md > file.clean.md && mv file.clean.md file.md
file file.md # Verify shows "UTF-8 text"
lint が予期しないエラーを表示する
問題: リポジトリのルートから実行していません。
修正:
# Always run from root
cd /path/to/woocommerce
markdownlint path/to/file.md
# NOT like this
markdownlint /absolute/path/to/file.md 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
WooCommerce Markdown Guidelines
This skill provides guidance for creating and editing markdown files in the WooCommerce project.
Critical Rules
- Always lint after changes - Run
markdownlint --fixthenmarkdownlintto verify - Run from repository root - Ensures
.markdownlint.jsonconfig is loaded - Use UTF-8 encoding - Especially for directory trees and special characters
- 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 (
# HeadingnotHeading\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
# Main Title (H1) - Only one per file
## Section (H2)
### Subsection (H3)
#### 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:
- Item one
- Item two
- Nested item (4 spaces)
- Another nested item
- Item three
Ordered lists:
1. First item
2. Second item
3. 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:
```bash
pnpm test:php:env
```
```php
public function process_order( int $order_id ) {
// code here
}
```
```javascript
const result = calculateTotal(items);
```
Common language identifiers:
bash- Shell commandsphp- PHP codejavascriptorjs- JavaScripttypescriptorts- TypeScriptjson- JSON datasql- SQL queriesmarkdownormd- 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:
Use the `process_order()` method to handle orders.
The `$order_id` parameter must be an integer.
Links
[Link text](https://example.com)
[Internal link](../path/to/file.md)
[Link with title](https://example.com "Optional title")
Tables
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Value 1 | Value 2 | Value 3 |
| 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:
src/
├── Internal/
│ ├── Admin/
│ │ └── Controller.php
│ └── Utils/
│ └── Helper.php
└── External/
└── API.php
Never use:
- ASCII art (
+--,|--) - Spaces or tabs for tree structure
- Control characters
Emphasis
**Bold text** for strong emphasis
*Italic text* for regular emphasis
***Bold and italic*** for very strong emphasis
Workflow for Editing Markdown
-
Make your changes to the markdown file
-
Auto-fix linting issues:
markdownlint --fix path/to/file.md -
Check for remaining issues:
markdownlint path/to/file.md -
Manually fix what remains (usually language specs for code blocks)
-
Verify clean - No output means success
-
Commit changes
Common Linting Errors and Fixes
MD007: List indentation
Problem:
- Item
- Nested (only 2 spaces)
Fix:
- Item
- Nested (4 spaces)
MD031: Code blocks need blank lines
Problem:
Some text
```bash
command
```
More text
Fix:
Some text
```bash
command
```
More text
MD032: Lists need blank lines
Problem:
Some text
- List item
Fix:
Some text
- List item
MD036: Emphasis as heading
Problem:
**Example: Using bold as a heading**
Some content here
Fix:
#### Example: Using a proper heading
Some content here
MD040: Code needs language
Problem:
```
code here
```
Fix:
```bash
code here
```
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:
tr -d '\000-\037' < file.md > file.clean.md && mv file.clean.md file.md
file file.md # Verify shows "UTF-8 text"
Linting Shows Unexpected Errors
Problem: Not running from repository root
Fix:
# Always run from root
cd /path/to/woocommerce
markdownlint path/to/file.md
# NOT like this
markdownlint /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-cycleskill for markdown linting commands