mattpocock/skills

write-a-skillmattpocock/skills

历史版本的Skill搭建方法,从任务和用例出发编写SKILL.md,必要时附参考文档、示例和确定性脚本,再与你核对覆盖范围。它生成方法文件,不等于已在所有客户端安装或识别。

  • 历史版本 SKILL.md
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

write-a-skill 是什么?

历史版本的Skill搭建方法,从任务和用例出发编写SKILL.md,必要时附参考文档、示例和确定性脚本,再与你核对覆盖范围。它生成方法文件,不等于已在所有客户端安装或识别。

中文说明由本站依据来源整理;英文原文保留在页面下方。

同名项目,请核对仓库和目录

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 write-a-skill,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 write-a-skill

请在 Codex 的当前工作环境中安装并检查 write-a-skill 这个 Skill。

项目身份:mattpocock/skills / write-a-skill
来源:https://github.com/mattpocock/skills/blob/221ffca96736afefdc08ca7cf0b3965e9ea83f41/skills/productivity/write-a-skill/SKILL.md
已定位的源文件:skills/productivity/write-a-skill/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供要重复执行的任务、具体用例、是否需要脚本和可用参考资料;另行确认目标Agent的实际技能规范。

会得到什么

  • 一个含SKILL.md及必要参考/脚本的Skill目录草稿。

实际使用顺序

  1. 先澄清任务域、触发场景与必要输入输出,决定只写说明还是加入可执行助手。
  2. 创建含name和description的SKILL.md,放可工作的最小示例与流程;把很少用的详细材料独立引用。
  3. 与你评审是否覆盖实际用例、术语是否一致、示例能否理解,再按目标客户端规范验证。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用历史write-a-skill整理‘检查网站资源卡片坏链接’的方法。先问清输入、输出和执行环境,编写Skill及必要检查脚本,加入真实小示例;先按当前Codex规范复核,不把历史行数建议当合格证明。
预期结果

预期得到可评审的技能目录,客户端识别与脚本运行仍需另外验证;本例未运行。

使用前先看这些限制

使用条件与边界

  • 历史原文同时出现100行和500行拆分建议,不能把这些数字当内容质量配额;按任务可读性与当前客户端规范判断。
  • 该原文并未证明所有Agent对description的加载方式完全相同。
需要核对时再展开原文

来源原文与资料状态

来源版本
历史源文件(2026-06-12T09:25:19+01:00);原目录已变更,本页解释所链接的历史版本,不代表当前安装方式。
源文件
已保存 SKILL.md,抓取于 2026-11-17T10:52:06.652Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/productivity/write-a-skill/SKILL.md · 抓取时间 2026-11-17T10:52:06.652Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Create a new agent skill with proper structure, progressive disclosure, and bundled resources.

查看源文件章节 / Source sections
  • 原文:Writing Skills
  • 原文:Process
  • 原文:Skill Structure
  • 原文:SKILL.md Template
  • 原文:Description Requirements
  • 原文:When to Add Scripts
  • 原文:When to Split Files
  • 原文:Review Checklist
原文:Process

1. **Gather requirements** - ask user about: - What task/domain does the skill cover? - What specific use cases should it handle? - Does it need executable scripts or just instructions? - Any reference materials to include? 2. **Draft the skill** - create: - SKILL.md with concise instructions - Additional reference files if content exceeds 500 lines - Utility scripts if deterministic operations needed 3. **Review with user** - present draft and ask: - Does this cover your use cases? - Anything missing or unclear? - Should any section be more/less detailed?

原文:Skill Structure

``` skill-name/ ├── SKILL.md # Main instructions (required) ├── REFERENCE.md # Detailed docs (if needed) ├── EXAMPLES.md # Usage examples (if needed) └── scripts/ # Utility scripts (if needed) └── helper.js ```

原文:SKILL.md Template

```md --- name: skill-name description: Brief description of capability. Use when [specific triggers]. --- # Skill Name ## Quick start [Minimal working example] ## Workflows [Step-by-step processes with checklists for complex tasks] ## Advanced features [Link to separate files: See [REFERENCE.md](REFERENCE.md)] ```

原文:Description Requirements

The description is **the only thing your agent sees** when deciding which skill to load. It's surfaced in the system prompt alongside all other installed skills. Your agent reads these descriptions and picks the relevant skill based on the user's request. **Goal**: Give your agent just enough info to know: 1. What capability this skill provides 2. When/why to trigger it (specific keywords, contexts, file types) **Format**: - Max 1024 chars - Write in third person - First sentence: what it does - Second sentence: "Use when [specific triggers]" **Good example**: ``` Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when user mentions PDFs, forms, or document extraction. ``` **Bad example**: ``` Helps with documents. ``` The bad example gives your agent no way to distinguish this from other document skills.

原文:When to Add Scripts

Add utility scripts when: - Operation is deterministic (validation, formatting) - Same code would be generated repeatedly - Errors need explicit handling Scripts save tokens and improve reliability vs generated code.

原文:When to Split Files

Split into separate files when: - SKILL.md exceeds 100 lines - Content has distinct domains (finance vs sales schemas) - Advanced features are rarely needed

文件 SHA256:98a9b019c253c98ad2b68568625442fe1f3677c1ece30f1635205435fa23b9f8

仓库许可证记录:未提供;not-established,查看来源。

Skills.sh收录简介 · 2026-07-28

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

查看历史简介来源

历史收录数据

Skill标识write-a-skill
来源仓库mattpocock/skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次107
快照累计安装量226170

历史资料说明

  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源