跳到正文
Skillpedia
提示词与 LLM7.2k · #13329

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/codex/article-prompts-to-skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Read the repository instructions and the complete source article.
  2. Run git status --short; preserve unrelated work.
  3. Inventory every explicit prompt, heading, example, asset, and acceptance criterion.
  4. Search existing SKILL.md files for overlapping capabilities before creating folders.
  5. If the source is raw HTML and the prompts do not exist yet, use $html-to-interaction-prompts first, 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.md and expected-output.md for 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:

  1. Run the skill creator's quick_validate.py on every new or changed skill.
  2. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能