Token导航 LogoToken导航

Agent Skill · 研究检索

format-markdown(format Markdown 搜索)

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

format-markdown 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 23,964。

总安装 4,134周安装 174GitHub Stars 公开资料未说明下载 1,448核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:format-markdown(format Markdown 搜索)
来源仓库:https://github.com/smilingwayne/format-markdown
安装命令:
openclaw skills install format-markdown
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install format-markdown

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助文档和 Markdown 文件的整理与格式化。可提炼结构、统一术语并修复列表与表格间距。format-markdown 属于研究检索类 Skill,可作为该场景下的辅助能力补充。兼容 mkdocs/material 风格输出,提升可读性。应保留项目原有事实和路径信息,不写未确认结论。

涉及对外文案时需注意语气,避免过度营销表述。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install format-markdown;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

format-markdown 怎么安装?

在终端执行 openclaw skills install format-markdown。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

format-markdown 支持哪些 AI 工具?

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

format-markdown 需要什么权限?

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

format-markdown 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

format-markdown 用的人多吗?

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

format-markdown 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
format-markdown

format Markdown 搜索 · 本页

4,134—只读MIT-0有提醒

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

SKILL.md 原文

name
format-markdown
description
Summarize and format markdown files, then apply mkdocs/material-compatible structural spacing fixes for math, list, and table blocks. Outputs to {filename}_formatted.md by default.
metadata
{ "version": 1.0.0 }

Markdown Formatter

Markdown formatting skill with two layers of processing:

  1. Content formatting: analyze content, improve readability, and add metadata or structural aids when needed.
  2. Structural compatibility fixing: apply mkdocs/material-safe spacing fixes for math, list, and table blocks without rewriting text content.

You MUST follow the workflow in the Workflow section below and must not skip required steps.

Core Principles

  • Preserve original meaning and wording as much as possible.
  • In content-formatting mode (Steps 2-5), metadata and structural aids may be added, such as title, summary, headings, emphasis, lists, tables, and admonitions.
  • In Step 6 structural-fix mode, the script performs whitespace-only changes and never rewrites text content.
PrincipleRequirement
Meaning PreservationPreserve the author's meaning, tone, and wording as much as possible.
Structural AdditionsIn formatting mode, only add metadata or formatting structures that improve readability.
Whitespace-Only ScriptStep 6 may only modify whitespace, empty lines, and structural spacing.
Rendering SafetyEnsure all changes improve markdown rendering stability in mkdocs/material style.
TraceabilityEvery meaningful change must be summarized in the final report.

Usage

The workflow has two phases:

  1. Analyze and format content (Steps 1-5)
  2. Apply structural compatibility fixes for mkdocs/material rendering (Step 6)

Claude performs content analysis and formatting first, then runs the structural compatibility script as the final cleanup step.

Workflow

Step 1: Read & Detect Content Type

Read the user-specified file, then detect content type:

IndicatorClassification
Has --- YAML frontmatterMarkdown
Has #, ##, ### headingsMarkdown
Has **bold**, *italic*, lists, code blocks, blockquotesMarkdown
None of abovePlain text

If Markdown is detected, ask the user:

Detected existing markdown formatting. What would you like to do?

1. Optimize formatting (Recommended)
   - Analyze content, improve headings, bold, lists, tables, and readability
   - Run structural compatibility script afterward
   - Output: {filename}_formatted.md

2. Keep original formatting
   - Preserve existing markdown structure
   - Run structural compatibility script only on the copied file
   - Output: {filename}_formatted.md

3. Structural fixes only
   - Run the structural compatibility script on the original file in-place
   - No copy created; modifies the original file directly

Based on user choice:

  • Optimize: Continue to Step 2 (full workflow)
  • Keep original: Skip to Step 5, copy file, then run Step 6
  • Structural fixes only: Skip to Step 6 and run on the original file directly

Step 2: Analyze Content (Reader's Perspective)

Read the entire content carefully. Think from a reader's perspective: what would help them quickly understand and remember the key information?

Produce an analysis covering these dimensions:

2.1 Highlights & Key Insights
  • Core arguments or conclusions the author makes
  • Surprising facts, data points, or counterintuitive claims
  • Memorable quotes or well-phrased sentences (golden quotes)
2.2 Structure Assessment
  • Does the content have a clear logical flow? What is it?
  • Are there natural section boundaries that lack headings?
  • Are there long walls of text that could benefit from visual breaks?
2.3 Reader-Important Information
  • Actionable advice or takeaways
  • Definitions and explanations of key concepts
  • Lists or enumerations buried in prose
  • Comparisons or contrasts that would be clearer as tables
2.4 Formatting Issues
  • Missing or inconsistent heading hierarchy
  • Paragraphs that mix multiple topics
  • Parallel items written as prose instead of lists
  • Code, commands, or technical terms not marked as code
  • Obvious typos or formatting errors

Save analysis to file: {original-filename}-analysis.md

The analysis file serves as the blueprint for Step 3. Use this format:

# Content Analysis: {filename}

## Highlights & Key Insights

- [list findings]

## Structure Assessment

- Current flow: [describe]
- Suggested sections: [list heading candidates with brief rationale]

## Reader-Important Information

- [list actionable items, key concepts, buried lists, potential tables]

## Formatting Issues

- [list specific issues with location references]

## Typos Found

- [list any obvious typos with corrections, or "None found"]

Step 3: Check/Create Frontmatter, Title & Summary

Check for YAML frontmatter (--- block). Create it if missing.

FieldProcessing
titleSee Title Generation below
slugInfer from file path or generate from title
summarySee Summary Generation below
coverImageCheck if imgs/cover.png exists in the same directory; if so, use relative path
Title Generation

Whether or not a title already exists, always run the title optimization flow unless auto_select_title is set.

Preparation — read the full text and extract:

  • Core argument (one sentence: "what is this article about?")
  • Most impactful opinion or conclusion
  • Reader pain point or curiosity trigger
  • Most memorable metaphor or golden quote

Generate 3-4 style-differentiated candidates:

StyleCharacteristicsExample
SubversiveDeny common practice, create conflict"All de-AI-flavor prompts are wrong"
SolutionGive the answer directly, promise value"One recipe to make AI write in your voice"
SuspenseReveal half, spark curiosity"It took me six months to find how to remove AI flavor"
Concrete numberUse numbers for credibility"150 lines of docs taught AI my writing style"

Present to the user:

Pick a title:

1. [Title A] — (recommended)
2. [Title B] — [style note]
3. [Title C] — [style note]

Enter number, or type a custom title:

Put the strongest hook first and mark it as recommended.

Title principles:

  • Hook in the first 5 chars: create an information gap or cognitive conflict
  • Specific > abstract: "150 lines" beats "a document"
  • Negation > affirmation: "you're doing it wrong" beats "the right way"
  • Conversational: like chatting with a friend, not a paper title
  • Max ~25 chars: longer titles get truncated in feeds
  • Accurate, not clickbait: the article must deliver what the title promises

Prohibited patterns:

  • "浅谈 XX"、"关于 XX 的思考"、"XX 的探索与实践"
  • "震惊!"、"万字长文"、"建议收藏"
  • Pure questions without direction: "AI 写作的未来在哪里?"

If title exists in frontmatter and there is no H1 in the body content, YOU MUST insert the title as the first H1 (# {{title}}). Do not remove it. If frontmatter already has title, include it as context but still generate fresh candidates unless skipped by configuration.

Summary Generation

Generate 3 candidate summaries with different angles. Present to the user:

Pick a summary:

1. [Summary A] — [focus note]
2. [Summary B] — [focus note]
3. [Summary C] — [focus note]

Enter number, or type a custom summary:

Summary principles:

  • 80-150 characters, precise and information-rich
  • Convey the core value to the reader, not just the topic
  • Vary angles: problem-driven, result-driven, insight-driven
  • Hook the reader: make them want to read the full article
  • Use concrete details (numbers, outcomes, specific methods) over vague descriptions

Prohibited patterns:

  • "本文介绍了..."、"本文探讨了..."
  • Pure topic description without value proposition
  • Repeating the title in different words

If frontmatter already has summary, skip selection and use it.

To make the summary appear visibly, generate it following the Admonition Syntax Rules. Place it after the H1 title:

!!! example "Summary"

    Here is the summary you generated.

EXTEND.md skip behavior: If auto_select: true is set in EXTEND.md, skip title and summary selection and generate the best candidate directly without asking. The user may also set auto_select_title: true or auto_select_summary: true independently.


Step 4: Format Content

Apply formatting guided by the Step 2 analysis. The goal is to make the content scannable and the key points easy to grasp.

Formatting toolkit
ElementWhen to useFormat
HeadingsNatural topic boundaries, section breaks##, ### hierarchy
BoldKey conclusions, important terms, core takeaways**bold**
Unordered listsParallel items, feature lists, examples- item
Ordered listsSequential steps, ranked items, procedures1. item
HighlightsCritical details, important comparisons for quick attention==text==
Color highlightColored emphasis where standard bold is insufficient<span style="color:red;font-weight:bold">text</span>
TablesComparisons, structured data, option matricesMarkdown table
CodeCommands, file paths, technical terms, variable names` inline ` or fenced blocks
BlockquotesNotable quotes, important warnings, cited text> blockquote
AdmonitionDefinitions, examples, notable warnings, conclusionsFollow Admonition Syntax Rules below
SeparatorsMajor topic transitions---
Admonition Syntax Rules

Strict enforcement. When using MkDocs-style admonitions (e.g. !!! note, !!! example, !!! warning), you must follow these indentation rules strictly. Markdown parsers require content inside the block to be indented.

Correct format:

!!! note "Title Text"

    This is the content. It must start with 4 spaces, and the above line is empty.

    This is a second paragraph. It also needs **4** spaces indentation.

    - List items also follow. The end line should have an empty line with no indent below.

This is the line outside admonition (correct).

Incorrect format (DO NOT DO THIS):

!!! note "Title Text"
This content has no indent. (Wrong - breaks indentation rule)

!!! note "Title Text"

    First paragraph ok.

Second paragraph has no indent. (Wrong - breaks the block)

Syntax rules:

  1. Indentation: All content belonging to the admonition must be indented 4 spaces relative to the !!! line.
  2. Paragraph breaks: Blank lines inside the block must also preserve block structure; ensure the next paragraph starts with 4 spaces.
  3. Nested lists/code: If using lists or code inside an admonition, indent them 8 spaces total.
  4. Consistency: Do not mix tabs and spaces. Use 4 spaces consistently.
Formatting principles — what NOT to do
  • Do NOT add invented facts, explanations, or commentary
  • Do NOT delete or shorten valid original content without user intent
  • Do NOT rephrase or rewrite the author's wording unless the task explicitly requires it
  • Do NOT add headings that editorialize (e.g. "Amazing Discovery"); use neutral descriptive headings
  • Do NOT over-format: not every sentence needs bold, and not every paragraph needs a heading
Formatting principles — what TO do
  • Preserve the author's voice, tone, and wording as much as possible
  • Bold key conclusions and core takeaways — the sentences a reader would likely highlight
  • Extract parallel items from prose into lists when the structure is clearly present
  • Add headings where the topic genuinely shifts
  • Use tables for comparisons or structured data buried in prose
  • Use blockquotes for golden quotes, memorable statements, or important warnings
  • Fix obvious typos only when the correction is unambiguous

Step 5: Save Formatted File

Save the formatted content as a new file. The output filename is built from the original filename plus a suffix defined in EXTEND.md.

  • Default suffix: _formatted → {original-filename}_formatted.md
  • Override via EXTEND.md: set output_suffix: _formatted → {original-filename}_formatted.md

Backup existing file before overwrite:

if [ -f "{filename}_formatted.md" ]; then
  mv "{filename}_formatted.md" "{filename}_formatted.backup-$(date +%Y%m%d-%H%M%S).md"
fi

After Step 5 saves the formatted file, Step 6 must run on that saved output file in-place.


Step 6: Execute Structural Rendering Compatibility Script

Scripts are stored in the scripts/ subdirectory. ${SKILL_DIR} is the root directory containing this SKILL.md.

This script is designed for MkDocs + Material rendering compatibility. It fixes structural spacing around math, list, and table blocks while preserving document content.

Runtime Requirements
  • Node.js 18+
  • Local npm dependencies installed once in ${SKILL_DIR}

If dependencies are not installed yet:

cd ${SKILL_DIR}
npm install

If package-lock.json already exists, prefer:

cd ${SKILL_DIR}
npm ci
Script
ScriptPurpose
scripts/format-structure.mjsFixes mkdocs/material-sensitive spacing around math/list/table blocks
Command
node ${SKILL_DIR}/scripts/format-structure.mjs <file.md> [options]
CLI Options
OptionShortDescriptionDefault
--output-oSpecify output file pathIn-place
--dry-run-nPreview changes without writingfalse
--no-backupSkip backup of existing output filefalse
What the script fixes
  1. Math block spacing

- Ensures block math has blank lines before and after - Handles standalone single-line block math such as $$E = mc^2$$ - Removes illegal inner blank lines immediately after opening $$ or before closing $$

  1. List block spacing

- Ensures blank lines before and after markdown lists

  1. Table block spacing

- Ensures blank lines before and after markdown tables

  1. Safety

- Uses Markdown AST to detect structural blocks - Applies minimal text patches instead of re-stringifying the full document - Preserves text content and existing writing style as much as possible

EXTEND.md Rule Toggles

The script reads simple key: value settings from EXTEND.md.

Supported keys:

output_suffix: \_formatted
fix_math_blocks: true
fix_list_blocks: true
fix_table_blocks: true
trim_math_inner_blank_lines: true
Usage in Workflow
  • Full workflow: after Step 5 saves the formatted file, run the script in-place on that output file.
  • Structural-fixes-only mode: run the script directly on the original file in-place.

Examples:

# In-place fix on already formatted output
node ${SKILL_DIR}/scripts/format-structure.mjs "{output-file-path}"

# Write to a custom file
node ${SKILL_DIR}/scripts/format-structure.mjs article.md -o article_fixed.md

# Preview only
node ${SKILL_DIR}/scripts/format-structure.mjs article.md --dry-run

# Skip backup
node ${SKILL_DIR}/scripts/format-structure.mjs article.md --no-backup
Output and Backup Behavior
ConditionOutput Path
DefaultInput file modified in-place
With --output custom.mdcustom.md
Step 5 + default suffix{original-name}_formatted.md
With output_suffix: _formatted in EXTEND.md{original-name}_formatted.md

If the target output file already exists and --no-backup is not set, the script creates a timestamped backup before writing.


📋 Step 7: Completion Report

**Formatting Complete**

**Files:**
- Analysis: {filename}-analysis.md
- Formatted: {filename}_formatted.md

**Content Analysis Summary:**
- Highlights found: X key insights
- Golden quotes: X memorable sentences
- Formatting issues fixed: X items

**Changes Applied:**
- Frontmatter: [added/updated] (title, slug, summary)
- Headings added: X (##: N, ###: N)
- Bold markers added: X
- Lists created: X (from prose → list conversion)
- Tables created: X
- Admonitions added: X
- Typos fixed: X [list each: "original" → "corrected"]

**Structural Compatibility Script:**
- Math blocks processed: X
- List blocks processed: X
- Table blocks processed: X
- Empty lines added: X
- Math inner blank lines removed: X
- Backup created: [yes/no]

平台分布

OpenClaw

93.41%
按下载量换算1,353

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills