micro-editor
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "micro-editor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9c098d4cadb23970073451cf58f0fea5b43f6461e3851b13b60530b5e69df528. Verify the upstream source and version against https://skillhub.cn/skills/user_a10ab3ad/micro-editor before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Modern terminal editor. Supports multiple cursors, syntax highlighting, and a plugin system, with keyboard shortcuts consistent with common editors.
Introduction source: third_party · user_a10ab3ad · 1.0.10 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- No special environmental requirements
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: micro-editor
description: 现代化终端编辑器,支持多光标、语法高亮、插件系统,快捷键与常见编辑器一致
slug: micro-editor
displayName: 终端文本编辑器
version: 1.0.10
license: MIT
source_project: zyedidia/micro
source_url: https://github.com/zyedidia/micro
source_license_url: https://github.com/micro-editor/micro/blob/master/LICENSE
copyright_holder: zyedidia contributors
ai_generated: true
ai_tools:
- DeepSeek
disclaimer: 本Skill基于开源项目zyedidia/micro(MIT协议)进行AI增强封装与中文场景适配,使用本Skill即表示您同意遵守MIT许可证的全部条款。本Skill为AI辅助生成内容。
author: skill-factory-auto
agent_created: true
trigger_words:
- micro-editor
- 终端编辑器
- nano替代
- 命令行编辑
- 远程编辑
- 服务器改配置📜 用户协议(User Agreement)
- 本 Skill 仅供学习与参考用途。使用本 Skill 产生的任何结果,由使用者自行承担全部责任;本 Skill 不提供任何明示或暗示的保证。
- 涉及法律、财务、税务、投资、医疗等专业决策时,请务必咨询持证专业人士。
- 本代码受版权法保护,未经授权复制、反向工程或商业利用将被追究法律责任。 <!-- user-agreement-injected -->
⚠️ 本内容仅供一般信息参考,不构成法律、财务、税务、投资或医疗建议。 涉及合同签署、报税、投资、诊疗等专业决策时,请务必咨询持证专业人士,并由使用者自行承担决策后果。 <!-- professional-disclaimer-injected -->
终端文本编辑器(micro)
现代化终端编辑器,支持多光标、语法高亮、插件系统,快捷键与常见编辑器一致
📖 阅读路径(渐进式披露)
本指南按需分层,您只需阅读当前任务所需的部分:
| 读者类型 | 推荐路径 | 预计耗时 |
|---|---|---|
| 首次使用 | 一、能力边界 → 二、快速开始 → 三、核心功能 | 5分钟 |
| 日常使用 | 三、核心功能 → 四、快捷键速查表 → 七、常见问题 | 3分钟 |
| 高级用户 | 五、高级用法 → 六、配置指南 → 八、错误处理 | 10分钟 |
| 遇到问题 | 八、错误处理 → 七、常见问题 | 2分钟 |
一、能力边界(一页纸速查卡)
本 Skill 是什么: 本 Skill 是终端文本编辑器 micro 的完整使用指南。micro 是一个基于终端的现代化文本编辑器,适合在 SSH 远程会话、Docker 容器内、或没有图形界面的服务器上编辑文件。它支持多光标编辑、语法高亮、插件系统,并且默认开启了鼠标支持。
能做(5项核心能力):
- 文件编辑:在终端中打开、编辑、保存文本文件(支持 UTF-8 编码)
- 多光标编辑:同时操作多个光标,批量修改重复文本(如同时修改 5 处变量名)
- 语法高亮:自动识别 100+ 种编程语言(如 Python、Go、JavaScript、YAML、JSON)
- 插件系统:通过插件扩展功能(如 linter、文件树、自动补全)
- 快捷键兼容:支持 Ctrl+S 保存、Ctrl+C 复制、Ctrl+V 粘贴等常见编辑器快捷键
不做(3项边界声明):
- 不做:不提供图形界面(GUI),必须在终端中运行
- 不做:不内置文件传输功能(如 FTP/SFTP),需配合
scp或rsync使用 - 不做:不提供代码编译或运行功能,仅负责文本编辑
适用对象表:
| 用户类型 | 适用场景 | 不适用场景 |
|---|---|---|
| 系统管理员 | 修改服务器配置文件(nginx、sshd、crontab) | 需要图形化对比文件时 |
| 开发者 | SSH 远程编辑代码、容器内快速修改 | 需要 IDE 级重构功能时 |
| DevOps 工程师 | 在 CI 容器中调整配置、查看日志 | 需要可视化调试时 |
| 普通用户 | 替代 nano/vim 的简单终端编辑 | 需要富文本编辑时 |
如果用户的需求超出以上边界,明确告知无法处理并说明原因,不强行执行。
二、触发方式(说大白话就能用)
触发词表(8类场景):
| 触发词 | 场景 |
|---|---|
| micro | 通用场景 |
| 终端编辑器 | 通用场景 |
| 文本编辑器 | 通用场景 |
| nano替代 | 通用场景 |
| 命令行编辑 | 通用场景 |
| 远程编辑 | 通过 SSH 编辑远程文件 |
| 服务器改配置 | 在服务器上修改配置文件 |
| 无图形界面编辑 | 在 Docker 容器或纯终端环境编辑 |
大白话触发示例(用户原话 → 触发动作):
| 用户可能会说 | 触发动作 |
|---|---|
| "帮我在服务器上改一下 nginx 配置" | 启动 micro 编辑指定文件,进入标准流程 |
| "我想在终端里编辑一个文件,但不想用 vim" | 启动 micro,提供快速上手指引 |
| "怎么在 SSH 连接后编辑代码?" | 启动 micro,提供远程编辑场景教程 |
| "帮我批量把这几行的缩进改一下" | 启动 micro,演示多光标编辑操作 |
| "在 Docker 容器里改个配置文件" | 启动 micro,提供容器内编辑指引 |
| "有没有比 nano 好用的终端编辑器?" | 介绍 micro 并对比 nano 的差异 |
| "我要在服务器上改 crontab" | 启动 micro 编辑 crontab 文件 |
| "终端里怎么同时改多处相同代码?" | 启动 micro,演示多光标编辑 |
触发后的具体行为:
- 调用方式:在终端中执行
micro [文件名]命令启动编辑器 - 交互界面:启动后进入全屏终端交互界面,支持鼠标点击、键盘快捷键
- 返回值:正常退出返回 0;异常退出返回非 0 值(详见错误处理章节)
- 参数格式:
micro [选项] [文件...],常用选项见配置指南
三、快速开始(5分钟上手路径)
Step 1: 安装 micro
macOS:
失败处理
- 输入不符合预期 → 返回错误说明与正确的输入格式示例
- 执行中异常 → 保留中间结果,报告失败原因与已处理进度
- 依赖缺失 → 给出安装命令并重试一次
前置条件
- 无特殊环境要求
执行步骤
- 收集用户输入并确认格式
- 按功能逻辑处理输入内容
- 生成结果并校验完整性
输出
- 结构化文本结果,附处理说明
许可证(License)
MIT License
Copyright (c) 2026 zyedidia contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
<!-- professional-license-embedded -->
Current listing version
1.0.10
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
文档内容混杂 Reported severity: Minor
在 Step 1 安装 micro 部分插入了与主题无关的失败处理、前置条件、执行步骤等内容,破坏文档连贯性。
Recommendation: 移除与 micro 编辑器无关的通用执行步骤描述,保持内容聚焦。
Highlights
- 提供终端文本编辑器 micro 的完整使用指南,解决无图形界面环境下的文件编辑需求
- 明确界定能力边界,区分能做与不能做的事项,提升用户预期管理
- 覆盖系统管理员、开发者、DevOps 工程师等多类用户场景
Highlights
- 触发词覆盖全面,包含 micro、终端编辑器、nano替代等多种表达
- 提供大白话触发示例,便于用户理解和使用
- 边界清晰,不易与其他 Skill 重叠
Areas to improve
-
文档结构混乱 Reported severity: Major
在快速开始章节中混杂了与 micro 无关的通用执行步骤、失败处理等内容,破坏文档逻辑。
Recommendation: 重新组织文档结构,移除无关内容,确保各章节内容聚焦且连贯。
-
文档过长 Reported severity: Minor
文档总行数超过 500 行,影响阅读体验。
Recommendation: 精简内容,将部分详细说明移至附录或外部链接。
-
排版问题 Reported severity: Minor
部分内容排版不规范,如代码块位置不当、标题层级混乱。
Recommendation: 统一排版规范,确保代码块、标题、列表等格式一致。
Highlights
- 文档结构基本完整,包含能力边界、触发方式、快速开始等必要章节
- 提供渐进式阅读路径,便于不同层次用户按需阅读
- frontmatter 信息完整,包含版本、许可证、来源等关键信息
Areas to improve
-
内容混淆风险 Reported severity: Major
文档中混杂了与 micro 编辑器无关的通用执行步骤和失败处理内容,可能导致用户执行错误。
Recommendation: 移除无关内容,确保所有说明均针对 micro 编辑器的具体使用场景。
-
异常处理覆盖不足 Reported severity: Minor
对 micro 编辑器特有的错误场景(如插件安装失败、配置文件语法错误)覆盖不够详细。
Recommendation: 增加针对 micro 编辑器常见错误的具体处理方案。
Highlights
- 工具来源明确,基于开源项目 zyedidia/micro
- 参数说明清晰,提供常用选项和快捷键说明
- 覆盖主要异常场景,提供基本的错误处理指引
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
No special environmental requirements
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.