Token导航 LogoToken导航

Agent Skill · 开发

markdownlint(markdownlint 控制)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

markdownlint 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 14,749。

总安装 665周安装 28GitHub Stars 公开资料未说明下载 233核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:markdownlint(markdownlint 控制)
来源仓库:https://github.com/perdolique/workflow
仓库路径:skills/markdownlint
安装命令:
npx skills add https://github.com/perdolique/workflow --skill markdownlint
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/perdolique/workflow --skill markdownlint

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

markdownlint 用于 Markdown 文件的语法检查和格式规范控制。适合在开发流程中自动检测缩进、标点、标题层级等格式问题。可集成到 CI/CD 流程中,确保文档风格一致性和可读性。通过 npx skills add 安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

建议结合项目现有配置使用,避免规则冲突或误报。

来源仓库内路径:skills/markdownlint

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/perdolique/workflow --skill markdownlint;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

markdownlint 怎么安装?

在终端执行 npx skills add https://github.com/perdolique/workflow --skill markdownlint。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

markdownlint 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

markdownlint 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

markdownlint 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

markdownlint 用的人多吗?

公开数据是累计安装 665 次,近一周安装 28 次,下载 233 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

markdownlint 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
markdownlint

markdownlint 控制 · 本页

665—只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Package manager detection

Before any operation, detect which package manager the project uses:

  1. Check for lock files:

- pnpm-lock.yaml → use pnpm - yarn.lock → use yarn - package-lock.json → use npm - bun.lockb → use bun

  1. Check packageManager field in package.json: "packageManager": "pnpm@8.0.0"
  2. If no indicators, ask the user which package manager they prefer

Throughout this skill, commands use pnpm as examples. Replace with the detected package manager:

  • pnpm add -D → npm install --save-dev / yarn add -D / bun add -d
  • pnpm run → npm run / yarn run / bun run
  • pnpm install → npm install / yarn install / bun install

Operation selection guide

Identify what the user needs and read the appropriate reference file:

- First time installation - Creating config files (.markdownlint.yaml,.markdownlintignore) - Adding npm scripts - Adding verification to AGENTS.md - Husky integration

- Enabling/disabling specific rules - Configuring rule options (heading-style, ul-style, etc.) - Understanding rule names and codes (MD###)

- Adding files/folders to.markdownlintignore - Gitignore-style pattern syntax - Verifying ignored files

- Understanding error messages - Auto-fix with --fix flag - Common violations (MD009, MD012, MD022, MD040, etc.) - Manual fixes for specific errors

- Updating npm scripts - Modifying Husky hooks - CI/CD integration (GitHub Actions, GitLab CI) - VS Code extension setup

- Too many errors - Files not being checked - Hook failures - Module not found errors - Performance issues

Quick reference: Common commands

# Install
pnpm add -D markdownlint markdownlint-cli

# Run linting
pnpm run lint:markdown

# Auto-fix issues
markdownlint '**/*.md' --fix

# Lint specific file
markdownlint README.md

# Lint specific directory
markdownlint 'docs/**/*.md'

Quick reference: Config file basics

.markdownlint.yaml in project root:

$schema: ./node_modules/markdownlint/schema/markdownlint-config-schema.json

# Disable a rule
line-length: false

# Enable a rule
no-duplicate-heading: true

# Configure a rule
heading-style:
  style: "atx"

.markdownlintignore in project root (gitignore syntax):

node_modules
dist/
build/
CHANGELOG.md

Key examples

Example 1: Basic setup

User: "Add markdownlint to my project"

Action: Read references/setup.md and follow Steps 1-9 for complete initial setup.

Example 2: Disable annoying rule

User: "Stop complaining about duplicate headings"

Action: Read references/rules.md → Removing rules section. Add no-duplicate-heading: false to .markdownlint.yaml.

Example 3: Fix many errors

User: "I have 50 markdown errors, fix them"

Action: Read references/fixing.md → Auto-fixing section. Run markdownlint '**/*.md' --fix, show diff, handle remaining errors.

Example 4: Ignore folder

User: "Don't lint the dist folder"

Action: Read references/ignoring.md. Add dist/ to .markdownlintignore.

Example 5: Add to CI

User: "Add markdown linting to GitHub Actions"

Action: Read references/integration.mdtions"

Action: Read references/integration.md → CI integration section. Create workflow file with pnpm setup and linting step.

Progressive workflow

For complex requests that span multiple operations:

  1. Start with the main operation - Read the primary reference file first
  2. Chain related operations - Read additional reference files as needed
  3. Verify each step - Run commands to confirm changes work
  4. Document what was done - Summarize changes for the user

Example: "Set up markdownlint with strict rules and CI"

When to use which reference

User mentions installation, setup, "add markdownlint": → references/setup.md

User mentions specific rules, MD codes, enabling/disabling: → references/rules.md

User mentions ignoring files, excluding folders: → references/ignoring.md

User has errors and wants to fix them: → references/fixing.md

User mentions npm scripts, husky, pre-commit, CI, GitHub Actions: → references/integration.md

User reports issues, things not working, errors: → references/troubleshooting.md

Default configuration philosophy

When setting up markdownlint, use this opinionated default configuration:

$schema: ./node_modules/markdownlint/schema/markdownlint-config-schema.json

line-length: false # Modern editors handle wrapping

Rationale: Start permissive, enable rules gradually. The line-length rule is disabled by default because:

  • Modern editors and viewers handle text wrapping automatically
  • Fixed line length creates unnecessary friction in most projects
  • Semantic issues are more valuable to catch than presentation issues

Only add more rules if user explicitly requests them or if the project needs stricter validation.

平台分布

Codex

35.76%
按下载量换算83

Claude

30.48%
按下载量换算71

Cursor

20.61%
按下载量换算48

Gemini CLI

9.75%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills