Convert an article, tutorial, or prompt pack into focused reusable AgentSkills, one independent capability per skill, with portable instructions, example prompt
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-article-prompts-to-skills-12fd0c9e5f26 ,按照其中的说明把「article-prompts-to-skills」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Turn source prompts into small, demonstrable capability packages. Preserve the useful behavior, not the source page's brand or layout.
git status --short; preserve unrelated work.SKILL.md files for overlapping capabilities before creating folders.$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.
Create a working table before editing files:
| Source prompt | Reusable capability | Keep | Remove | Skill name | Demo proof |
|---|
Apply these boundaries:
Keep the source's successful mechanics:
Remove source-specific packaging:
The result must transfer to a different subject, layout, and visual system without rewriting the core instructions.
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:
$skill-name.Put these headings in demo/PROMPT.md:
Invoke the skill and ask for one clear outcome.
Use $skill-name to add <capability> to <target>.
Describe the reference experience, implementation contract, deliverables, and acceptance checks. Specify what must remain local and self-contained.
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.
Make every demo original, self-contained, and inspectable:
input.md and expected-output.md for nonvisual workflows.Never treat a screenshot as the implementation. The HTML demo must work.
Run validation in proportion to the artifact:
quick_validate.py on every new or changed skill.Do not claim visual or interaction verification from static file inspection alone.
Stage the new skill folders and the gallery files they require. Review git diff --cached --stat and git diff --cached before committing. Leave pre-existing dirty files untouched.
Report: