article-prompts-to-skills
它能做什么
这个技能指导智能体把原始文章或提示词集合转换为聚焦的技能,每个技能负责一项可复用的工作。适合维护智能体技能库、并希望加入整洁且经过测试的新技能的人。
适用场景
- ✓你有一篇充满提示词的文章,想把它们拆成独立技能的时候。
- ✓教程中的步骤你想各自做成一个可复用的技能的时候。
- ✓你想检查新技能是否与你已有的技能重叠的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/article-prompts-to-skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这篇文章中的提示词拆分成独立的可复用技能,并与我们已有的内容检查是否重叠。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会列出源文中的每个提示词和想法,然后决定哪些成为独立的技能。它会先检查已有技能,为每个技能构建演示,并记录结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Article Prompts to Skills
Turn source prompts into small, demonstrable capability packages. Preserve the useful behavior, not the source page's brand or layout.
1. Inspect Before Extracting
- Read the repository instructions and the complete source article.
- Run
git status --short; preserve unrelated work. - Inventory every explicit prompt, heading, example, asset, and acceptance criterion.
- Search existing
SKILL.mdfiles for overlapping capabilities before creating folders. - If the source is raw HTML and the prompts do not exist yet, use
$html-to-interaction-promptsfirst, then return here.
Do not infer a family of skills from a title alone. Trace each proposed skill to source evidence.
2. Build an Extraction Ledger
Create a working table before editing files:
| Source prompt | Reusable capability | Keep | Remove | Skill name | Demo proof |
|---|
Apply these boundaries:
- Create one skill per independently reusable behavior.
- Merge steps only when separating them would make either step unusable.
- Update an existing skill when its contract already covers the capability.
- Skip decorative or editorial fragments that do not create a repeatable method.
- Name skills after the outcome or mechanism, never after the source article.
3. Extract the Portable Contract
Keep the source's successful mechanics:
- behavior and state transitions;
- data model and parameter defaults;
- timing, easing, spacing, and responsive rules;
- accessibility, reduced-motion, and keyboard behavior;
- performance constraints and failure modes;
- acceptance checks that prove the result.
Remove source-specific packaging:
- brand names, marketing copy, and proprietary content;
- page layout that is unrelated to the capability;
- hard-coded palettes, assets, and selectors;
- incidental implementation choices that do not affect the outcome.
The result must transfer to a different subject, layout, and visual system without rewriting the core instructions.
4. Package Every Skill
Initialize every new folder with the installed skill-creator initializer, then complete this contract:
agent-skills/<category>/<skill-name>/
SKILL.md
agents/openai.yaml
references/ # only when detailed reusable guidance is needed
assets/ or scripts/ # only when the workflow genuinely reuses them
demo/
index.html
PROMPT.md
preview.jpg
input.md # required for workflow skills
expected-output.md # required for workflow skills
Write SKILL.md in imperative form. Keep only name and description in frontmatter. Put all trigger phrases in the description. Keep operational steps, constraints, pitfalls, and validation commands in the body.
Write agents/openai.yaml from the final skill:
- use a human-readable display name;
- keep the short description between 25 and 64 characters;
- make the default prompt explicitly invoke
$skill-name.
5. Write Three Useful Example Prompts
Put these headings in demo/PROMPT.md:
Minimal prompt
Invoke the skill and ask for one clear outcome.
Use $skill-name to add <capability> to <target>.
Recreate the demo
Describe the reference experience, implementation contract, deliverables, and acceptance checks. Specify what must remain local and self-contained.
Remix prompt
Change the subject, content, palette, and composition while preserving the mechanism, accessibility behavior, responsive rules, and performance contract.
Read references/example-packages.md for visual, mixed-source, and workflow examples.
6. Build Proof, Not Decoration
Make every demo original, self-contained, and inspectable:
- demonstrate the core mechanism on the first screen;
- use realistic content instead of labels such as “demo card”;
- add controls only when they expose meaningful states;
- support 390px through 1440px layouts;
- use semantic HTML and visible focus states;
- provide reduced-motion behavior for animated work;
- keep dependencies local and avoid a build step unless the skill requires one;
- use
input.mdandexpected-output.mdfor nonvisual workflows.
Never treat a screenshot as the implementation. The HTML demo must work.
7. Validate the Complete Package
Run validation in proportion to the artifact:
- Run the skill creator's
quick_validate.pyon every new or changed skill. - Run repository demo validation and any targeted syntax
常见问题
一篇文章一定会生成多个技能吗?
不一定。技能说明,除非拆分会使每个部分无法使用,否则应将步骤合并。
它会复制文章的品牌吗?
不会。技能保留有用的行为,去掉源页面的品牌和版式。
它会检查重复的技能吗?
会。在创建新文件夹之前,它会在已有技能中搜索功能重叠的部分。
详情
作者的原始描述
Convert an article, tutorial, or prompt pack into focused reusable AgentSkills, one independent capability per skill, with portable instructions, example prompts, working demos, preview screenshots, validation, gallery updates, and a narrow commit. Use when the user asks to turn an article's prompts, tutorial sections, design patterns, interactions, or workflow ideas into complete skills rather than leaving them as prose.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13329
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。