markdown
ドキュメントやREADMEなどをMarkdown記法で記述し、整形、変換、チェックするSkill。
📜 元の英語説明(参考)
Markdown syntax, formatting, and document authoring for docs, READMEs, and technical writing. Use when user mentions "markdown", "write README", "format markdown", "markdown table", "markdown links", "GFM", "GitHub flavored markdown", "markdown linting", "MDX", "markdown to HTML", "table of contents", "markdown badges", "markdown checklist", or authoring documentation in markdown.
🇯🇵 日本人クリエイター向け解説
ドキュメントやREADMEなどをMarkdown記法で記述し、整形、変換、チェックするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 この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-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Markdown作成リファレンス
コア構文、GFM拡張機能、READMEパターン、技術文書、MDX、およびリンティングを網羅するMarkdownドキュメントのリファレンスです。構文チートシートについてはreferences/markdown-guide.mdを、ドキュメント構造についてはreferences/tech-writing-guide.mdを参照してください。
1. コア構文
見出し
# H1 - ドキュメントのタイトル (ファイルごとに1つ)
## H2 - 主要セクション
### H3 - サブセクション
#### H4 - 詳細レベル
SetextではなくATXスタイル(#)を使用してください。#の後にスペースを入れてください。レベルを飛ばさないでください。ファイルごとにH1は1つです。
強調とインライン
*italic* **bold** ***bold italic*** ~~strikethrough~~
`inline code` <kbd>Ctrl+C</kbd> <sup>super</sup> <sub>sub</sub>
_よりも*を推奨します。some_variable_nameのようなアンダースコアは、一部のパーサーで問題を引き起こすことがあります。
リンクと画像
[Text](https://example.com) # インラインリンク
[With title](https://example.com "Hover") # タイトル付きリンク
[Relative](./docs/setup.md) # 相対パス
[Anchor](#section-name) # 見出しリンク
 # 画像
<!-- 参照スタイル (長いドキュメントではよりすっきりします) -->
[ガイド][contrib]と[CoC][coc]を参照してください。
[contrib]: ./CONTRIBUTING.md
[coc]: ./CODE_OF_CONDUCT.md
リスト
- Item one # 順序なし (一貫して - を使用)
- Nested (2スペースインデント)
1. First step # 順序あり
2. Second step
- [x] Done # タスクリスト (GFM)
- [ ] Pending
コードブロック
インライン: `npm install`
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
```
```diff
- const port = 3000;
+ const port = process.env.PORT || 3000;
```
常に言語を指定してください: javascript, typescript, python, bash, json, yaml, sql, html, css, diff。
引用ブロックと罫線
> Blockquote text.
> > Nested quote.
--- # 水平線 (上下に空行)
2. GitHub Flavored Markdown (GFM)
テーブル
| Feature | Free | Pro | Enterprise |
|---------|------|--------|------------|
| Users | 5 | 50 | Unlimited |
| Storage | 1 GB | 10 GB | 100 GB |
| Left | Center | Right |
|:-----------|:----------:|------------|
| aligned | centered | right |
アラート (GitHub)
> [!NOTE] > [!TIP] > [!IMPORTANT]
> Info text. > Advice text. > Key info.
> [!WARNING] > [!CAUTION]
> Urgent info. > Negative consequences.
脚注
これには出典が必要です[^1]。
[^1]: 出典: https://example.com/study
オートリンクとメンション
https://example.com <!-- 自動リンク -->
@username <!-- ユーザーメンション -->
#123 <!-- イシュー参照 -->
org/repo#456 <!-- クロスリポジトリ参照 -->
3. 高度なパターン
折りたたみ可能なセクション
<details>
<summary>クリックして展開</summary>
ここにコンテンツ (summaryタグの後に空行が必要です)。
</details>
数式 / LaTeX
インライン: $E = mc^2$
$$
\frac{n!}{k!(n-k)!} = \binom{n}{k}
$$
Mermaidダイアグラム
```mermaid
graph TD
A[Request] --> B{Auth?}
B -->|Yes| C[API Gateway]
B -->|No| D[Login]
C --> E[(Database)]
```
```mermaid
sequenceDiagram
Client->>Server: POST /api/users
Server->>DB: INSERT
DB-->>Server: OK
Server-->>Client: 201 Created
```
目次
## 目次
- [Installation](#installation)
- [Usage](#usage)
- [CLI](#cli)
- [API](#api)
アンカールール: 小文字、スペースは-に、句読点は削除。scripts/markdown-linter.sh(generate_toc関数)、VS Codeの「Markdown All in One」、またはmarkdown-toc npmパッケージで自動生成してください。
4. README作成
バッジ (shields.io)





パラメータ: ?style=flat-square, ?logo=typescript, ?label=custom, ?color=ff6600。
READMEテンプレート
構造化されたテンプレートについてはexamples/markdown-structure.jsonを、ガイダンスについてはreferences/tech-writing-guide.mdを参照してください。標準的なセクションの順序は次のとおりです。
- プロジェクト名 + バッジ -- ビルド/ライセンス/バージョンバッジ付きの1行説明
- 機能 -- 主要な機能の箇条書きリスト
- クイックスタート -- 最小限のインストールと使用コードブロック
- インストール -- 詳細な前提条件とセットアップ
- 使用方法 -- コード例、基本および応用
- 設定 -- タイプとデフォルト値を含むオプションのテーブル
- 貢献 -- CONTRIBUTING.mdへのリンク
- ライセンス -- ライセンスの種類とリンク
プロジェクト構造ツリー
src/
├── index.ts # エントリポイント
├── routes/
│ ├── auth.ts # 認証ルート
│ └── users.ts # ユーザーCRUD
└── utils/
└── logger.ts # ロギング
tree -I node_modulesで生成し、その後注釈を付けてください。
5. 技術文書
この階層に従ってください(詳細はreferences/tech-writing-guide.mdに記載されています)。
- 概要 -- 何を、なぜ
- 前提条件 -- ツール、バージョン、アクセス
- インストール -- ステップバイステップ
- クイックスタート -- 最小限の動作例
- 詳細ガイド -- 完全なウォークスルー
- APIリファレンス -- すべての公開インターフェース
- トラブルシューティング -- 一般的なエラーと修正
- 変更履歴 -- バージョン履歴
APIエンドポイントパターン
### ユーザー作成
`POST /api/v1/users`
| フィールド | タイプ | 必須 | 説明 |
|---------|--------|----------|-------------------|
| `name` | string | はい | フルネーム |
| `email` | string | はい | メールアドレス |
**レスポンス (201):**
\`\`\`json
{ "id": 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Markdown Authoring Reference
Reference for markdown documents covering core syntax, GFM extensions, README patterns, technical docs, MDX, and linting. See references/markdown-guide.md for a syntax cheat sheet and references/tech-writing-guide.md for documentation structure.
1. Core Syntax
Headings
# H1 - Document Title (one per file)
## H2 - Major Section
### H3 - Subsection
#### H4 - Detail Level
Use ATX style (#), not Setext. Space after #. Never skip levels. One H1 per file.
Emphasis and Inline
*italic* **bold** ***bold italic*** ~~strikethrough~~
`inline code` <kbd>Ctrl+C</kbd> <sup>super</sup> <sub>sub</sub>
Prefer * over _ -- underscores in some_variable_name cause issues in some parsers.
Links and Images
[Text](https://example.com) # inline link
[With title](https://example.com "Hover") # titled link
[Relative](./docs/setup.md) # relative path
[Anchor](#section-name) # heading link
 # image
<!-- Reference-style (cleaner in long docs) -->
See the [guide][contrib] and [CoC][coc].
[contrib]: ./CONTRIBUTING.md
[coc]: ./CODE_OF_CONDUCT.md
Lists
- Item one # unordered (use - consistently)
- Nested (2-space indent)
1. First step # ordered
2. Second step
- [x] Done # task list (GFM)
- [ ] Pending
Code Blocks
Inline: `npm install`
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
```
```diff
- const port = 3000;
+ const port = process.env.PORT || 3000;
```
Always specify the language: javascript, typescript, python, bash, json, yaml, sql, html, css, diff.
Blockquotes and Rules
> Blockquote text.
> > Nested quote.
--- # horizontal rule (blank lines above/below)
2. GitHub Flavored Markdown (GFM)
Tables
| Feature | Free | Pro | Enterprise |
|---------|------|--------|------------|
| Users | 5 | 50 | Unlimited |
| Storage | 1 GB | 10 GB | 100 GB |
| Left | Center | Right |
|:-----------|:----------:|------------|
| aligned | centered | right |
Alerts (GitHub)
> [!NOTE] > [!TIP] > [!IMPORTANT]
> Info text. > Advice text. > Key info.
> [!WARNING] > [!CAUTION]
> Urgent info. > Negative consequences.
Footnotes
This needs a source[^1].
[^1]: Source: https://example.com/study
Autolinks and Mentions
https://example.com <!-- auto-linked -->
@username <!-- user mention -->
#123 <!-- issue reference -->
org/repo#456 <!-- cross-repo reference -->
3. Advanced Patterns
Collapsible Sections
<details>
<summary>Click to expand</summary>
Content here (blank line required after summary tag).
</details>
Math / LaTeX
Inline: $E = mc^2$
$$
\frac{n!}{k!(n-k)!} = \binom{n}{k}
$$
Mermaid Diagrams
```mermaid
graph TD
A[Request] --> B{Auth?}
B -->|Yes| C[API Gateway]
B -->|No| D[Login]
C --> E[(Database)]
```
```mermaid
sequenceDiagram
Client->>Server: POST /api/users
Server->>DB: INSERT
DB-->>Server: OK
Server-->>Client: 201 Created
```
Table of Contents
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [CLI](#cli)
- [API](#api)
Anchor rules: lowercase, spaces become -, strip punctuation. Auto-generate with scripts/markdown-linter.sh (generate_toc function), VS Code "Markdown All in One", or markdown-toc npm package.
4. README Authoring
Badges (shields.io)





Parameters: ?style=flat-square, ?logo=typescript, ?label=custom, ?color=ff6600.
README Template
See examples/markdown-structure.json for a structured template and references/tech-writing-guide.md for guidance. Standard sections in order:
- Project Name + badges -- one-liner description with build/license/version badges
- Features -- bullet list of key capabilities
- Quick Start -- minimal install + usage code block
- Installation -- detailed prerequisites and setup
- Usage -- code examples, basic and advanced
- Configuration -- table of options with types and defaults
- Contributing -- link to CONTRIBUTING.md
- License -- license type and link
Project Structure Trees
src/
├── index.ts # Entry point
├── routes/
│ ├── auth.ts # Auth routes
│ └── users.ts # User CRUD
└── utils/
└── logger.ts # Logging
Generate with tree -I node_modules, then annotate.
5. Technical Documentation
Follow this hierarchy (detailed in references/tech-writing-guide.md):
- Overview -- what and why
- Prerequisites -- tools, versions, access
- Installation -- step-by-step
- Quick Start -- minimal working example
- Detailed Guide -- full walkthrough
- API Reference -- every public interface
- Troubleshooting -- common errors and fixes
- Changelog -- version history
API Endpoint Pattern
### Create User
`POST /api/v1/users`
| Field | Type | Required | Description |
|---------|--------|----------|-------------------|
| `name` | string | Yes | Full name |
| `email` | string | Yes | Email address |
**Response (201):**
\`\`\`json
{ "id": "usr_abc123", "name": "Alice", "email": "alice@example.com" }
\`\`\`
6. MDX
MDX combines markdown with JSX for interactive docs (Docusaurus, Nextra, Astro). MDX v2+ uses ESM imports.
import { Button } from '@/components/Button';
import { Callout } from '@/components/Callout';
# Button Component
<Callout type="info">Requires a parent `ThemeProvider`.</Callout>
<Button variant="primary">Click me</Button>
| Prop | Type | Default |
|-----------|-----------------------------|-------------|
| `variant` | `'primary' \| 'secondary'` | `'primary'` |
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` |
7. Markdown Linting
markdownlint
npm install -g markdownlint-cli
markdownlint "**/*.md"
markdownlint --fix "**/*.md"
Configuration (.markdownlint.json):
{
"MD013": { "line_length": 120 },
"MD033": false,
"MD041": true,
"MD024": { "siblings_only": true }
}
Key rules: MD001 heading increment, MD009 no trailing spaces, MD013 line length, MD024 no duplicate sibling headings, MD033 no inline HTML (disable for <details>/<kbd>), MD041 first line is H1.
remark-lint
npm install remark-cli remark-preset-lint-recommended
npx remark --frail docs/
CI Integration
Use scripts/markdown-linter.sh for local linting. For CI:
- name: Lint Markdown
uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: '**/*.md'
Use scripts/markdown-stats.py to estimate reading time and word counts.
8. Conversion
pandoc README.md -o README.html # basic HTML
pandoc README.md -s --toc -o README.html # standalone with TOC
pandoc README.md -o README.pdf # PDF (requires LaTeX)
npx marked -i README.md -o README.html # GFM-compatible
9. Common Mistakes
| Mistake | Fix |
|---|---|
| No blank line before list | Add blank line above |
| No blank line after heading | Always blank line after |
Spaces in URL [text](my url) |
URL-encode: %20 or use <url> |
| Missing language on code fence | Always add: ```python |
Mixing * and - for lists |
Pick one, stick to it |
| Wrong nested list indent | 2 spaces for unordered, 4 for ordered |
--- without blank line above |
Becomes Setext heading -- add blank line |
| Bare URLs | Use <https://url> or [text](url) |
Escaping
\*literal asterisks\* \# not a heading \| not a table pipe
Characters needing escape: \ ` * _ {} [] () # + - . ! |
10. Editor Setup
VS Code: Markdown All in One (shortcuts, TOC, preview), markdownlint (inline warnings), Markdown Preview Mermaid Support, Paste Image.
Prettier: Add "proseWrap": "always" and "printWidth": 80 in an override for *.md files.