Dev Markdown Lintのロゴ

Dev Markdown Lint

コミュニティ
Nebulavenus
dev-markdown-lint

Check and fix markdown formatting issues with markdownlint-cli2

概要

公開者Nebulavenus
リポジトリforge-gpu
スキル名dev-markdown-lint
スター
46
フォーク
7
同梱ファイル
指示のみ
ライセンスZlib
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    NebulavenusがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDev Markdown LintをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-markdown-lint
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Nebulavenus/forge-gpu.git /tmp/forge-gpu
mkdir -p .claude/skills
cp -r /tmp/forge-gpu/.claude/skills/dev-markdown-lint .claude/skills/dev-markdown-lint
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDev Markdown Lintを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDev Markdown Lintを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Dev Markdown Lintは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Check markdown files for formatting and style issues using markdownlint-cli2.

When to use this skill:

  • Before committing changes to markdown files
  • After creating or updating lessons, READMEs, or documentation
  • When CI markdown linting checks fail
  • To ensure consistent markdown style across the project

AI auto-invocation:

The model should automatically invoke this skill:

  • After creating/updating markdown files — Run npx markdownlint-cli2 "**/*.md" to check
  • Before git commits touching markdown — Verify no linting errors
  • If errors found — Attempt auto-fix with --fix flag first, then fix remaining errors manually
  • Always verify after fixes — Re-run to ensure all errors resolved

Arguments

  • --fix (optional): Automatically fix auto-fixable issues

If no arguments provided, runs in check-only mode.

What it does

  1. Check mode (default): Reports errors without modifying files
  2. Fix mode (--fix): Automatically fixes issues like:
    • Missing blank lines around headings
    • Inconsistent list formatting
    • Trailing whitespace
    • Some language tag issues (if the content type is obvious)

Note: Not all errors are auto-fixable. Some require manual intervention (like choosing the right language tag for a code block).

Configuration

The project uses .markdownlint-cli2.jsonc for configuration:

Strict rules (must follow):

  • MD040: Code blocks MUST have language tags (```text, ```c, ```bash, etc.)
  • MD060: Tables must have consistent column alignment

Lenient rules:

  • Line length (MD013): Disabled — lessons need flexibility
  • Blank lines (MD031/MD032): Lenient — formatting varies by context
  • Duplicate headings (MD024): Allowed at different levels
  • HTML (MD033): Allowed when needed for formatting

CRITICAL — Configuration is non-negotiable:

  • NEVER disable or remove lint rules to make errors pass
  • NEVER relax existing rules (e.g., turning MD040 from error to warning)
  • NEVER modify .markdownlint-cli2.jsonc to bypass validation
  • NEVER remove or disable the CI workflow (.github/workflows/markdown-lint.yml)

If linting fails, fix the markdown — do not weaken the linter. Quality checks protect learning quality for all users.

Common errors and fixes

MD040: Missing language tag on code block

Error:

text
README.md:45 MD040/fenced-code-language Fenced code blocks should have a language specified

Problem: Code block missing language identifier:

text
```
some code here
```

Fix: Add appropriate language tag:

text
```c
some code here
```

Common tags:

  • bash — Shell commands, scripts
  • c — C code
  • text — Plain text, output, diagrams, directory trees
  • markdown — Markdown examples
  • cmake — CMake files
  • hlsl — Shader code

Nested code blocks: When showing a code block inside a code block (like in documentation), use 4 backticks for the outer fence:

text
````markdown
# Example
```c
code here
```
````

MD060: Table columns should have consistent alignment

Error:

text
README.md:80 MD060/table-column-count Table row column count

Problem: Table rows have different numbers of columns, or alignment is inconsistent.

Fix: Ensure all rows have the same number of columns:

markdown
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |

Running the skill

Check for errors

bash
/dev-markdown-lint

Or manually:

bash
npx markdownlint-cli2 "**/*.md"

Auto-fix issues

bash
/dev-markdown-lint --fix

Or manually:

bash
npx markdownlint-cli2 --fix "**/*.md"

Workflow

Before committing

Always run markdown linting before creating a commit with markdown changes:

bash
npx markdownlint-cli2 "**/*.md"

If errors are found:

  1. Try auto-fix: npx markdownlint-cli2 --fix "**/*.md"
  2. Review remaining errors and fix manually
  3. Re-run to verify: npx markdownlint-cli2 "**/*.md"

In CI

The .github/workflows/markdown-lint.yml workflow runs automatically on:

  • Pull requests touching markdown files
  • Pushes to main with markdown changes

If CI fails, run the linter locally to see the errors.

Implementation

When this skill is invoked:

  1. Parse arguments:

    • Check if --fix flag is present
    • Default to check-only mode
  2. Run markdownlint-cli2:

    bash
    npx markdownlint-cli2 [--fix] "**/*.md"
  3. Interpret results:

    • Exit code 0: All files pass ✓
    • Exit code 1: Errors found
  4. Report to user:

    • If errors found: List them with file:line and error code
    • Suggest fixes for common errors (MD040, MD060)
    • If --fix was used, report what was auto-fixed
    • Show command to re-run manually if needed
  5. Next steps:

    • If errors remain after auto-fix, guide user to fix manually
    • Suggest running the skill again to verify fixes

Tips

  • Always add language tags to code blocks — it improves readability and syntax highlighting
  • Use text for non-code blocks like output, diagrams, directory trees
  • Nested code blocks require different fence lengths (outer uses 4+ backticks)
  • Run before committing to catch issues early
  • Auto-fix first then handle remaining errors manually
  • Check the config (.markdownlint-cli2.jsonc) to understand which rules are enabled

Example output

All files pass:

text
markdownlint-cli2 v0.20.0 (markdownlint v0.40.0)
Finding: **/*.md
Linting: 20 file(s)
Summary: 0 error(s)

Errors found:

text
markdownlint-cli2 v0.20.0 (markdownlint v0.40.0)
Finding: **/*.md
Linting: 20 file(s)
README.md:45 MD040/fenced-code-language Fenced code blocks should have a language specified
lessons/math/01-vectors/README.md:180 MD040/fenced-code-language Fenced code blocks should have a language specified
common/math/DESIGN.md:85 MD040/fenced-code-language Fenced code blocks should have a language specified
Summary: 3 error(s)

Related documentation

  • markdownlint rules
  • Project config: .markdownlint-cli2.jsonc
  • CI workflow: .github/workflows/markdown-lint.yml
  • CLAUDE.md section on markdown linting

よくある質問

AIスキル「Dev Markdown Lint」では何ができますか?

Check and fix markdown formatting issues with markdownlint-cli2

TypingMindでDev Markdown Lintを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Dev Markdown Lintはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDev Markdown Lintをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-markdown-lintを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Dev Markdown Lintを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Dev Markdown Lintは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDev Markdown Lintを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Dev Markdown Lint」は無料ですか?

はい。NebulavenusがGitHubでZlibライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇