Token导航 LogoToken导航

Agent Skill · 效率

local-markdown-editor(本地 Markdown editor)

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

local-markdown-editor 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 7,846。

总安装 7,704周安装 321GitHub Stars 公开资料未说明下载 2,568核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install local-markdown-editor

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

提供带实时预览的本地 Markdown 编辑环境,支持同步滚动查看。适用于文档编写、技术说明维护和 README 快速迭代。内置语法高亮与导出功能,可生成 HTML 或 PDF 格式文件。运行于 Flask 服务器模式,需开放本地端口并注意防火墙设置。

local-markdown-editor 属于效率类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

local-markdown-editor 怎么安装?

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

local-markdown-editor 支持哪些 AI 工具?

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

local-markdown-editor 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

local-markdown-editor 是免费的吗?

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

local-markdown-editor 用的人多吗?

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

local-markdown-editor 安全吗?

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

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

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

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

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

效率类 Skill 对比

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

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
local-markdown-editor

本地 Markdown editor · 本页

7,704—操作浏览器MIT-0有提醒

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

SKILL.md 原文

name
xi-markdown
description
Local Markdown Editor with Live Preview - A web-based markdown editor that opens a Flask server and provides real-time editing with live preview, sync scrolling, and toolbars for all markdown tags.
security
local-only
permissions
file-read, file-write, local-network
risk-level
low

XI Markdown Editor 本地Markdown编辑器

English | 中文

⚠️ Security Notice / 安全声明

English: This skill runs a local-only Flask server for markdown editing. It does NOT:

  • Connect to external servers (except CDN for libraries)
  • Send data outside your local machine
  • Require internet access for core functionality
  • Execute arbitrary code

Security Features:

  • Localhost-only server (127.0.0.1)
  • No external network connections
  • File operations limited to user-specified paths
  • All code is open and inspectable

中文: 此技能运行仅限本地的Flask服务器进行Markdown编辑。它不会:

  • 连接到外部服务器(CDN库除外)
  • 将数据发送到本地机器之外
  • 需要互联网访问核心功能
  • 执行任意代码

安全特性:

  • 仅限本地主机服务器 (127.0.0.1)
  • 无外部网络连接
  • 文件操作仅限于用户指定的路径
  • 所有代码都是开放且可检查的

Overview / 概述

English: A web-based markdown editor that runs locally with a Flask server and provides real-time editing with live preview. Features include sync scrolling between editor and preview, comprehensive markdown toolbar, and direct file saving.

中文: 基于Web的Markdown编辑器,本地运行Flask服务器,提供实时编辑和预览功能。包括编辑器与预览同步滚动、完整的Markdown工具栏、直接文件保存。无需安装,就可以在本地直接编辑markdown。


Features / 功能特性

English:

  • Real-time Preview: Edit on left, see live preview on right
  • Sync Scrolling: Scroll one side, the other follows automatically
  • Toolbar: Icons for all markdown tags (H1, H2, bold, italic, lists, etc.)
  • File Operations: Open any markdown file, edit, save back to original file
  • Local Server: Flask-based backend with RESTful API
  • Responsive Design: Works on desktop and mobile
  • Dark Theme: Modern dark UI with white text
  • URL Parameter Support: Open files via URL parameter ?file=path
  • Auto Server Shutdown: Server automatically closes when page is closed
  • Theme Toggle: Switch between dark and light themes
  • Relative Path Support: Support for relative paths from workspace

中文:

  • 实时预览: 左侧编辑,右侧实时预览
  • 同步滚动: 滚动一侧,另一侧自动跟随
  • 工具栏: 所有Markdown标签图标(H1、H2、粗体、斜体、列表等)
  • 文件操作: 打开任何markdown文件,编辑后保存回原文件
  • 本地服务器: 基于Flask的后端,提供RESTful API
  • 响应式设计: 支持桌面和移动设备
  • 深色主题: 现代深色UI配白色文字
  • URL参数支持: 通过URL参数 ?file=路径 打开文件
  • 自动服务器关闭: 页面关闭时服务器自动关闭
  • 主题切换: 在深色和浅色主题间切换
  • 相对路径支持: 支持相对于工作空间的相对路径

Installation & Setup / 安装与设置

Requirements / 依赖要求

pip install flask flask-cors markdown

Quick Start / 快速开始

English:



# Method 1: Direct Python command with file parameter
python app.py "path\	o\your\file.md" --port 996 --force

# Method 2: Open current skill's documentation
python app.py SKILL.md --port 996 --force

# Method 3: Open empty editor
python app.py --port 996 --force

# Method 4: Open via URL parameter in browser
# After starting server, open in browser:
# http://localhost:996/?file=path/to/your/file.md

# Method 5: Using relative path (from workspace)
python app.py "skills\ace-banana2\SKILL.md" --port 996 --force

中文:


# 方法1: 直接Python命令带文件参数
python app.py "文件路径\文件名.md" --port 996 --force

# 方法2: 打开本技能的文档
python app.py SKILL.md --port 996 --force

# 方法3: 打开空编辑器
python app.py --port 996 --force

# 方法4: 通过浏览器URL参数打开
# 启动服务器后,在浏览器中打开:
# http://localhost:996/?file=路径/文件.md

# 方法5: 使用相对路径(相对于工作空间)
python app.py "skills\ace-banana2\SKILL.md" --port 996 --force

Usage / 使用方法

Opening Files / 打开文件

English:

  1. Start editor with a file:
   python app.py "C:\path\	o\file.md"
  1. Browser automatically opens with URL parameter:

- http://localhost:996/?file=C:\path\ o\file.md - URL parameter automatically loads the file

  1. Alternative method: Direct URL access
   http://localhost:996/?file=path/to/file.md

- Relative paths are supported (from workspace)

  1. Edit file with toolbar and see live preview
  1. Click "Save" button to save changes back to original file

中文:

  1. 使用文件启动编辑器:
   python app.py "C:\路径\文件.md"
  1. 浏览器自动打开并带URL参数:

- http://localhost:996/?file=C:\路径\文件.md - URL参数自动加载文件

  1. 替代方法:直接URL访问
   http://localhost:996/?file=路径/文件.md

- 支持相对路径(相对于工作空间)

  1. 使用工具栏编辑文件并查看实时预览
  1. 点击"保存"按钮将更改保存回原文件

Toolbar Features / 工具栏功能

Icons available:

  • H1-H6: Headers 标题 (with number badges in light theme)
  • B: Bold 粗体
  • I: Italic 斜体
  • S: Strikethrough 删除线
  • Q: Blockquote 引用
  • Code: Inline code 行内代码
  • </>: Code block 代码块
  • List: Unordered list 无序列表
  • 1.: Ordered list 有序列表
  • Link: Hyperlink 链接
  • Image: Insert image 插入图片
  • Table: Insert table 插入表格
  • HR: Horizontal rule 水平线
  • 🌙/☀️: Theme toggle 主题切换
  • 💾: Save 保存
  • 📁: Open file 打开文件
  • 🔌: Shutdown server 关闭服务器
  • Undo/Redo: Undo and redo 撤销/重做

File Structure / 文件结构

xi-markdown/
├── SKILL.md                  # This documentation
├── scripts/
│   ├── app.py                # Flask server with API (enhanced)
│   ├── index.html            # Frontend HTML with JavaScript (redesigned)
│   ├── test.md              # Test markdown file
│   └── styles.css            # CSS styles (optional)
└── references/
    └── api_docs.md          # API documentation

API Endpoints / API接口

GET /

  • Returns the main HTML page
  • Supports URL parameter: ?file=path (opens file via AJAX)

GET /api/health

  • Health check endpoint
  • Returns: {"status": "ok", "timestamp": "..."}

GET /api/file

  • Returns current file content
  • Query parameter: path (file path, supports relative paths)

POST /api/file

  • Saves content to file
  • JSON body: {"path": "file_path", "content": "file_content"}
  • Supports relative paths (resolved to workspace)

GET /api/preview

  • Converts markdown to HTML for preview
  • Query parameter: markdown (markdown text)

GET /api/open

  • Opens a file in the editor
  • Query parameter: path (file path, supports relative paths)

GET /api/shutdown

  • Shuts down the server
  • Called automatically when page closes

Keyboard Shortcuts / 键盘快捷键

  • Ctrl+S: Save file 保存文件
  • Ctrl+O: Open file dialog 打开文件对话框
  • Ctrl+Z: Undo 撤销
  • Ctrl+Y: Redo 重做
  • Ctrl+B: Bold 粗体
  • Ctrl+I: Italic 斜体
  • Ctrl+K: Insert link 插入链接

New Features / 新功能

URL Parameter Support / URL参数支持

English: Open files directly via URL parameter:

http://localhost:996/?file=skills/xi-markdown/SKILL.md
  • URL is automatically encoded
  • Supports relative paths from workspace
  • AJAX loads file content dynamically

中文: 通过URL参数直接打开文件:

http://localhost:996/?file=skills/xi-markdown/SKILL.md
  • URL自动编码
  • 支持相对于工作空间的相对路径
  • AJAX动态加载文件内容

Auto Server Shutdown / 自动服务器关闭

English:

  • Server automatically shuts down when page is closed
  • Uses navigator.sendBeacon() for reliable delivery
  • Also supports manual shutdown via 🔌 icon

中文:

  • 页面关闭时服务器自动关闭
  • 使用 navigator.sendBeacon() 确保请求送达
  • 也支持通过🔌图标手动关闭

Theme Support / 主题支持

English:

  • Switch between dark and light themes
  • H1-H6 icons show number badges in light theme
  • Responsive CSS for both themes

中文:

  • 在深色和浅色主题间切换
  • 浅色主题下H1-H6图标显示数字标记
  • 两个主题都有响应式CSS

Examples / 示例

Edit a skill's documentation:

python app.py "skills\a-stock-get\SKILL.md"
# or via URL: http://localhost:996/?file=skills/a-stock-get/SKILL.md

Edit Ace Banana2 skill:

python app.py "skills\ace-banana2\SKILL.md" --port 996 --force

Edit your own notes:

python app.py "C:\Users\YourName\
otes.md"

Start empty and create new file:

python app.py
# Then use "Save As" in the editor

Open via URL parameter only:

# Start server without file
python app.py --port 996 --force
# Then open in browser:
# http://localhost:996/?file=skills/xi-markdown/SKILL.md

Notes / 注意事项

English:

  • The server runs on localhost:996 by default
  • Only one file can be edited at a time
  • Changes are auto-saved locally (in browser) every 30 seconds
  • Click "Save" to write to original file
  • Server automatically closes when page is closed
  • Use Ctrl+C to manually stop the server if needed
  • URL parameters require URL encoding for special characters

中文:

  • 服务器默认运行在 localhost:996
  • 一次只能编辑一个文件
  • 每30秒自动保存到本地(浏览器存储)
  • 点击"保存"将写入原文件
  • 页面关闭时服务器自动关闭
  • 需要时使用 Ctrl+C 手动停止服务器
  • URL参数中的特殊字符需要URL编码

Development / 开发

Adding new features:

  1. Edit app.py for backend changes
  2. Edit index.html for frontend changes
  3. Add new CSS in <style> tags or separate file
  4. Test with different markdown files

Debug mode:

python app.py --debug

Todo / 待办事项

  • [x] Basic editor with live preview
  • [x] Sync scrolling between editor and preview
  • [x] Complete markdown toolbar
  • [x] File open/save functionality
  • [x] URL parameter support for file loading
  • [x] Auto server shutdown on page close
  • [x] Theme toggle (dark/light)
  • [x] Relative path support
  • [ ] Auto-save with configurable interval
  • [ ] Multiple file tabs
  • [ ] Search and replace
  • [ ] Export to PDF/HTML
  • [ ] Custom themes
  • [ ] Plugin system
  • [ ] Image upload and management
  • [ ] Keyboard shortcut customization

References / 参考资料


Version: 1.2.0 Last Updated: 2026-03-14 Author: XI Markdown Editor Team Email: zhuxi0906@gmail.com Wechat: jakeycis

Changelog / 更新日志

v1.2.0 (2026-03-14)
  • ✅ Added URL parameter support (?file=path)
  • ✅ Added auto server shutdown on page close
  • ✅ Added theme toggle (dark/light)
  • ✅ Added relative path support
  • ✅ Fixed H1-H6 icon badges in light theme
  • ✅ Enhanced API endpoints
  • ✅ Improved user experience
v1.1.0 (2026-03-14)
  • ✅ Redesigned UI with modern toolbar
  • ✅ Added sync scrolling
  • ✅ Added comprehensive markdown toolbar
  • ✅ Added file operations (open/save)
v1.0.0 (2026-03-14)
  • ✅ Initial release
  • ✅ Basic markdown editor with live preview
  • ✅ Flask-based local server

平台分布

OpenClaw

98.14%
按下载量换算2,520

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills