搜索

PythonReactSEOPDF
OpenClaw

markdown-linter

Lint Markdown files for formatting issues, broken links, and style consistency.

derick0010 来源安装数☆ 0 仓库 Starsv1.0.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install derick001/markdown-linter-cli

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Markdown Linter

What This Does

A CLI tool to lint Markdown files for common formatting issues, style consistency, and broken links. Helps maintain documentation quality by catching errors before publication.

Key features:

  • Header hierarchy validation - ensure proper nesting (no skipped levels)
  • Image alt text checking - flag images without descriptive alt text
  • Internal link validation - check that internal links (within same doc) point to existing anchors
  • Line length checking - warn about lines exceeding configurable length (default 80 chars)
  • Trailing whitespace detection - find and report trailing spaces/tabs
  • List consistency - ensure consistent list markers (-, *, +) within same document
  • Code block language - recommend adding language specification to code blocks
  • Empty link detection - flag links with empty text or URLs
  • Duplicate headers - warn about duplicate header text within same file
  • External link checking - optionally validate external URLs (requires network)

How To Use

Run the skill with:

./scripts/main.py run --input path/to/file.md

Or lint multiple files:

./scripts/main.py run --input "*.md"
Options
  • --input: Path to Markdown file(s) (supports glob patterns)
  • --max-line-length: Maximum allowed line length (default: 80)
  • --check-external-links: Enable external URL validation (default: false)
  • --ignore-rules: Comma-separated list of rule IDs to ignore
Output

Returns JSON with linting results:

{
  "file": "example.md",
  "issues": [
    {
      "line": 10,
      "column": 1,
      "rule": "MD001",
      "severity": "warning",
      "message": "Header levels should only increment by one level at a time",
      "fix": "Change ## to #"
    }
  ],
  "summary": {
    "total_issues": 5,
    "errors": 2,
    "warnings": 3
  }
}

Limitations

  • External link checking requires network connectivity and may be slow
  • Readability scores...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/derick001/markdown-linter-cli
Version
1.0.0
Commit
19ae994b1e1fb46411e66d5468e64041f33aa040
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Markdown Linter

A CLI tool to lint Markdown files for formatting issues, broken links, and style consistency.

Quick Start

# Lint a single file
./scripts/main.py run --input README.md

# Lint multiple files
./scripts/main.py run --input "docs/*.md"

Installation

This skill is installed via OpenClaw. Once installed, you can use it directly from your OpenClaw agent.

Features

  • Header hierarchy validation
  • Image alt text checking
  • Internal link validation
  • Line length checking
  • Trailing whitespace detection
  • List consistency checking
  • Code block language recommendation
  • Empty link detection
  • Duplicate header warnings
  • External link checking (optional)

Configuration

Customize linting behavior with command-line options:

  • --max-line-length: Set maximum line length (default: 80)
  • --check-external-links: Enable external URL validation
  • --ignore-rules: Comma-separated list of rule IDs to ignore

Output

The tool outputs JSON with detailed issue reports, including line numbers, severity levels, and suggested fixes.

Contributing

Issues and pull requests welcome. See the source code in scripts/main.py.

License

MIT

来源内容

SKILL.md
# Markdown Linter

## What This Does

A CLI tool to lint Markdown files for common formatting issues, style consistency, and broken links. Helps maintain documentation quality by catching errors before publication.

Key features:
- **Header hierarchy validation** - ensure proper nesting (no skipped levels)
- **Image alt text checking** - flag images without descriptive alt text
- **Internal link validation** - check that internal links (within same doc) point to existing anchors
- **Line length checking** - warn about lines exceeding configurable length (default 80 chars)
- **Trailing whitespace detection** - find and report trailing spaces/tabs
- **List consistency** - ensure consistent list markers (-, *, +) within same document
- **Code block language** - recommend adding language specification to code blocks
- **Empty link detection** - flag links with empty text or URLs
- **Duplicate headers** - warn about duplicate header text within same file
- **External link checking** - optionally validate external URLs (requires network)

## How To Use

Run the skill with:
```bash
./scripts/main.py run --input path/to/file.md
```

Or lint multiple files:
```bash
./scripts/main.py run --input "*.md"
```

### Options

- `--input`: Path to Markdown file(s) (supports glob patterns)
- `--max-line-length`: Maximum allowed line length (default: 80)
- `--check-external-links`: Enable external URL validation (default: false)
- `--ignore-rules`: Comma-separated list of rule IDs to ignore

### Output

Returns JSON with linting results:
```json
{
  "file": "example.md",
  "issues": [
    {
      "line": 10,
      "column": 1,
      "rule": "MD001",
      "severity": "warning",
      "message": "Header levels should only increment by one level at a time",
      "fix": "Change ## to #"
    }
  ],
  "summary": {
    "total_issues": 5,
    "errors": 2,
    "warnings": 3
  }
}
```

## Limitations

- External link checking requires network connectivity and may be slow
- Readability scores...
README
# Markdown Linter

A CLI tool to lint Markdown files for formatting issues, broken links, and style consistency.

## Quick Start

```bash
# Lint a single file
./scripts/main.py run --input README.md

# Lint multiple files
./scripts/main.py run --input "docs/*.md"
```

## Installation

This skill is installed via OpenClaw. Once installed, you can use it directly from your OpenClaw agent.

## Features

- **Header hierarchy validation**
- **Image alt text checking**
- **Internal link validation**
- **Line length checking**
- **Trailing whitespace detection**
- **List consistency checking**
- **Code block language recommendation**
- **Empty link detection**
- **Duplicate header warnings**
- **External link checking** (optional)

## Configuration

Customize linting behavior with command-line options:

- `--max-line-length`: Set maximum line length (default: 80)
- `--check-external-links`: Enable external URL validation
- `--ignore-rules`: Comma-separated list of rule IDs to ignore

## Output

The tool outputs JSON with detailed issue reports, including line numbers, severity levels, and suggested fixes.

## Contributing

Issues and pull requests welcome. See the source code in `scripts/main.py`.

## License

MIT

相关技能

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance