一键导入
creating-skills
Use when creating or editing a composable skill within a PAS agent or process. Usually invoked by creating-agents, not directly by users.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or editing a composable skill within a PAS agent or process. Usually invoked by creating-agents, not directly by users.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating a local agent for a pas-clief workspace. Walks the user through naming the agent, defining its role, listing its skills, and writing CLAUDE.md and CONTEXT.md from templates. The agent lands in `library/agents/<name>/`.
Use when drafting and publishing a newsletter issue. Walks research → draft → publish phases, using the writer agent. Example library process for pas-clief — copy or extend it for your own use.
Use when applying a workspace's drafting conventions to written output — voice, format, sentence rhythm, the things that make output feel like it belongs to this project. Reads the workspace's style notes if any and adjusts the draft accordingly.
Use when line-editing a draft for clarity and economy. Tightens sentences, removes filler, rewrites awkward constructions, ensures every sentence earns its keep. Apply this skill on the final pass before output.
Use when an agent needs to gather sources or background information from the web for a topic. Produces a concise sources file with URLs, summaries, and the most relevant excerpts.
Use when checking that a pas-clief workspace is current with the latest plugin conventions, or when migrating from an older version. Walks a checklist of structural and template changes and offers to apply each.
| name | creating-skills |
| description | Use when creating or editing a composable skill within a PAS agent or process. Usually invoked by creating-agents, not directly by users. |
Create a composable skill following the Agent Skills open standard. Skills define HOW to do a specific thing. They are agent-facing instruction sets, never user-facing. Skills live inside their owning agent or process by default.
Define what the skill does:
Before creating a new skill:
<marketplace>/plugins/<plugin>/processes/{process}/agents/{agent}/skills/)<marketplace>/plugins/<plugin>/processes/{process}/)${CLAUDE_PLUGIN_ROOT}/library/ for global skills that already do thisDefault to one skill (simpler). Split when any heuristic triggers:
| Heuristic | Question | If Yes |
|---|---|---|
| Feedback | Can you improve one part without touching the other? | Split into separate skills |
| Reuse | Could another agent use one part but not the other? | Split into separate skills |
| Size | Does the skill exceed ~5000 tokens? | Flag for evaluation: split, restructure, or explicitly justify |
When in doubt, keep it as one skill. You can always split later when feedback indicates the need.
Run the generation script with all decisions from steps 1-3:
bash ${CLAUDE_SKILL_DIR}/scripts/pas-create-skill \
--process {process-name} \
--agent {agent-name} \
--name {skill-name} \
--description "Use when {triggering conditions}. {What capability this provides.}" \
--overview "{Core principle in 1-2 sentences}" \
--when-to-use "{Specific trigger conditions}" \
--when-not-to-use "{When NOT to use}" \
--step "{Step 1 instruction}" \
--step "{Step 2 instruction}" \
--output-format "{What the skill produces}" \
--quality-check "{Self-check criterion}" \
--common-mistake "{Known pitfall}" \
--base-dir {directory}
Repeatable flags: --step (required, at least one), --quality-check, --common-mistake.
Optional: --base-dir sets the root directory for output (default: current directory).
Key rules from the Agent Skills spec:
references/.After creating the skill, check if it should be in library/ instead:
If yes to either: move to <marketplace>/plugins/<plugin>/library/{skill-name}/ and reference from both locations. If no: keep it local. Skills start local and graduate to the library only when reuse is proven (used in 2+ places).