Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

markdown-helper

БесплатноЗапускает вложенные скриптыНе проверен

Token-efficient markdown parsing, editing, and diagram generation using native CLI tools (Windows/Mac/Linux compatible)

Interstellar-codeот Interstellar-code★ 18 звёзд на GitHub

Об этом скилле

Markdown Helper Skill

Ultra-efficient markdown operations using native CLI tools. Save 60-70% tokens on common markdown tasks.

Overview

This skill provides markdown operations WITHOUT reading entire files into context, saving 68% tokens per operation.

Cross-Platform: Works on Windows, Mac, and Linux (uses Node.js + CLI tools).

Token Savings:

  • Traditional approach: ~800 tokens
  • This skill: ~250 tokens
  • Savings: 550 tokens per query (68%)

🔧 BASH COMMAND ATTRIBUTION PATTERN

CRITICAL: Before executing EACH bash/node command, MUST output:

🔧 [markdown-helper] Running: <command>

Examples:

🔧 [markdown-helper] Running: node ~/.claude/skills/markdown-helper/md-helper.js extract-headers README.md
🔧 [markdown-helper] Running: node ~/.claude/skills/markdown-helper/md-helper.js generate-mermaid workflow.md
🔧 [markdown-helper] Running: node ~/.claude/skills/markdown-helper/md-helper.js lint *.md

Why: This pattern helps users identify which skill is executing which command, improving transparency and debugging.


🎨 VISUAL OUTPUT FORMATTING

CRITICAL: All markdown-helper output MUST use the colored-output formatter skill!

Use Colored-Output Skill

Every response MUST start with:

bash .claude/skills/colored-output/color.sh skill-header "markdown-helper" "Message here..."

IMPORTANT: Use MINIMAL colored output (2-3 calls max) to prevent screen flickering!

Example formatted output (MINIMAL PATTERN):

# START: Header only
bash .claude/skills/colored-output/color.sh skill-header "markdown-helper" "Parsing markdown file..."

# MIDDLE: Regular text (no colored calls)
Extracting headers from file...
Found 12 headings (4 H1, 6 H2, 2 H3)
Processing tables and code blocks...

# END: Result only
bash .claude/skills/colored-output/color.sh success "" "Markdown parsed successfully"

WHY: Each bash call creates a task in Claude CLI, causing screen flickering. Keep it minimal!


Usage Examples

Extract Headers

  • "Extract all headers from TASK-024.md"
  • "Show me the structure of README.md"
  • "List all H2 and H3 headings in this file"

Extract Tables

  • "Parse the tables in CHANGELOG.md"
  • "Show me table data from specifications.md"
  • "Extract tables as JSON from this markdown"

Generate Diagrams

  • "Create a flow diagram showing the user registration process"
  • "Generate a Mermaid diagram for this workflow"
  • "Make a flowchart for the checkout process"

Lint & Format

  • "Fix markdown formatting in project-tasks/*.md"
  • "Lint all markdown files in this directory"
  • "Auto-fix markdown issues in README.md"

Bulk Operations

  • "Replace 'SubHero' with 'SubsHero' in all markdown files"
  • "Find all TODOs in project-tasks/"
  • "Update all links from HTTP to HTTPS"

Commands

1. Extract Headers

Command:

node ~/.claude/skills/markdown-helper/md-helper.js extract-headers <file>

Options:

  • --level <1-6> - Filter by heading level (e.g., --level 2 for H2 only)
  • --json - Output as JSON
  • --count - Show count per level

Examples:

# All headers
node md-helper.js extract-headers README.md

# H2 headers only
node md-helper.js extract-headers README.md --level 2

# JSON output
node md-helper.js extract-headers TASK-024.md --json

Output:

📄 Headers in README.md:
═══════════════════════════════════════
H1: Markdown Helper Skill
H2: Overview
H2: Usage Examples
H3: Extract Headers
H3: Extract Tables
H2: Commands

2. Extract Tables

Command:

node ~/.claude/skills/markdown-helper/md-helper.js extract-tables <file>

Options:

  • --json - Output as JSON array
  • --index <n> - Extract specific table by index (0-based)
  • --format <csv|json|md> - Output format

Examples:

# Extract all tables
node md-helper.js extract-tables CHANGELOG.md

# First table only
node md-helper.js extract-tables specs.md --index 0

# As CSV
node md-helper.js extract-tables data.md --format csv

Output:

[
  {
    "headers": ["Command", "Description", "Token Savings"],
    "rows": [
      ["extract-headers", "Parse headers", "500 tokens"],
      ["extract-tables", "Parse tables", "600 tokens"]
    ]
  }
]

3. Generate Diagram

Command:

node ~/.claude/skills/markdown-helper/md-helper.js generate-diagram <type> <output>

Types:

  • flowchart - Flow diagrams
  • sequence - Sequence diagrams
  • class - Class diagrams
  • gantt - Gantt charts
  • er - Entity relationship diagrams

Options:

  • --input <file> - Read Mermaid syntax from file
  • --format <svg|png|pdf> - Output format (default: svg)
  • --theme <default|dark|forest|neutral> - Diagram theme

Examples:

Interactive (Claude generates Mermaid syntax):

# User: "Create a flowchart for user registration"
# Claude generates Mermaid syntax, then:
node md-helper.js generate-diagram flowchart user-registration.svg
``
Полный SKILL.md на GitHub

Установить markdown-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdTOKEN-SAVINGS.mdinstallation.mdmd-helper.jspackage.json

FAQ

Что делает скилл markdown-helper?

Token-efficient markdown parsing, editing, and diagram generation using native CLI tools (Windows/Mac/Linux compatible)

Как установить скилл markdown-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл markdown-helper запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить markdown-helper с