شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Nebulavenus على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Dev Markdown Lint في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-markdown-lint
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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

فعّل Dev Markdown Lint في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Dev Markdown Lint تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Dev Markdown Lint بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف 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

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Dev Markdown Lint؟

Check and fix markdown formatting issues with markdownlint-cli2

لماذا تستخدم Dev Markdown Lint على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Dev Markdown Lint عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Dev Markdown Lint في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-markdown-lint. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Dev Markdown Lint؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Dev Markdown Lint؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Dev Markdown Lint معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Dev Markdown Lint مجانية؟

نعم. نشرها Nebulavenus على GitHub بموجب ترخيص Zlib. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇