360 Secure SkillHub
360 安全技能中心

note-formatter

该 Skill 提供 Markdown 笔记清理与规范化流程:修复标题层级、统一列表缩进、清理多余空行与行尾空格、规范标题和代码块间距、为代码块补充语言标识并折行过长文本,最后写回文件并报告改动。

terrycarter1985
terrycarter1985
热度 15.73
最近更新 2026-08-15 12:30:00
分类:效率依赖:读写文件应用场景:笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add note-formatter
Metadata
name
note-formatter
description
Markdown note formatting and cleanup utility. Use when cleaning up raw notes, standardizing markdown structure, fixing heading hierarchies, or converting messy pasted text into clean, well-structured markdown documents.
metadata
{"openclaw":{"emoji":"📝"}}

Note Formatter

A skill for cleaning up and formatting raw markdown notes into well-structured documents.

What It Does

  • Fixes heading hierarchy (ensures H1 → H2 → H3 order)
  • Standardizes bullet list indentation
  • Removes excessive blank lines (max 2 consecutive)
  • Ensures consistent spacing around headings (blank line before/after)
  • Formats code blocks with language hints when missing
  • Wraps long lines at sensible widths

When to Use

  • You have raw notes from a meeting, call, or scribbled draft
  • You need to standardize a collection of markdown files
  • You're preparing notes for publication or sharing
  • You want consistent formatting across a document set

Prerequisites

  • Read access to the markdown file(s)
  • Write access to save formatted output

Basic Steps

  1. Read the source markdown file
  2. Detect and fix heading hierarchy issues
  3. Normalize list formatting and indentation
  4. Clean up whitespace (excessive blank lines, trailing spaces)
  5. Ensure code blocks have language identifiers
  6. Write the cleaned content back to the file (or save as new file)
  7. Report what was changed

Example Prompt

"Format the notes in meeting-notes.md — fix the heading levels, clean up extra blank lines, and make sure all lists use consistent indentation."