text-to-markdown

纯文本格式预处理工具,自动插入换行、拆分长段落,为后续 AI/LLM 生成 Markdown 提供结构化输入。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "text-to-markdown" with this command: npx skills add cizixiu/text-to-markdown

Text to Markdown

描述

纯文本格式预处理工具,自动插入换行、拆分长段落,为后续 AI/LLM 生成 Markdown 提供结构化输入。

触发词

转markdown整理成markdown格式化成markdown转成md格式


功能:文本预处理

本 skill 专注于格式预处理,将无结构的纯文本转换为结构化输出,为 AI/LLM 生成 Markdown 提供良好基础。

预处理能力

能力说明
插入换行在标题前、转折词处自动插入换行
长段落拆分按语义(转折、因果)智能分段落
特殊符号保留→ ↔ ✓ ✗ 等符号保留原样
IMA 笔记优化专为无换行的 IMA 导出文本优化

特殊场景:IMA 笔记导出

IMA 导出的纯文本特征:无换行、长段落、标题混在段落中。

处理策略

  1. scripts/preprocess.py 预处理(插入换行)
  2. 自动在标题前、转折词处分段
  3. 中文序号标题自动识别
# 预处理 IMA 笔记
python "C:\Users\17116\.workbuddy\skills\Text to Markdown\scripts\preprocess.py" input.txt output.md

执行流程

  1. 预处理:用 scripts/preprocess.py 插入换行、拆分段落
  2. AI 增强:AI/LLM 基于预处理结果生成完整 Markdown(标题层级、加粗、列表等)

核心原则

只改格式,不改文字:预处理过程中保持原文一字不变。


快速核查

预处理完成后快速检查:

  • 原文文字一字未改
  • 标题前已插入换行
  • 长段落已拆分
  • 特殊符号保留原样

参考资料


注意事项

预处理只负责格式调整,Markdown 语法(标题层级、加粗、列表等)由 AI/LLM 后续生成。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

小红书笔记创作技能

小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。

Registry SourceRecently Updated
2.8K6Profile unavailable
General

Markdown To Ppt

Convert Markdown to beautiful presentations and slides. 一键将Markdown文档转换为精美PPT幻灯片,支持多种主题风格,适合商务汇报、教学课件、会议演讲。Markdown to PPT, presentation generator, slides ma...

Registry SourceRecently Updated
531Profile unavailable
General

Pinyin Converter

Convert Chinese text to Pinyin (拼音). 中文转拼音工具,支持声调标记、去声调、首字母大写。适合语言学习、输入法开发、中文处理。Chinese to Pinyin converter with tone marks.

Registry SourceRecently Updated
360Profile unavailable
General

WeChat Article to Markdown

This skill converts WeChat Official Account (微信公众号) article pages into high-quality, clean Markdown format. It should be used when the user provides a WeChat...

Registry SourceRecently Updated
1240Profile unavailable