一键导入
skill-authoring
Create or improve Agent Deck/Pi skills, including where to save them, SKILL.md frontmatter, simple vs modular structure, and validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or improve Agent Deck/Pi skills, including where to save them, SKILL.md frontmatter, simple vs modular structure, and validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when helping users install, import, repair, or verify MCP server configurations in Agent Deck.
Use when creating or reviewing Agent Deck agents, including frontmatter, tools, supervisor behavior, continuation behavior, and skill assignment.
Use when creating, refining, or validating Agent Deck loops, especially to guide users iteratively through loop goal, structure, agents, write target, and safety choices.
Create or improve Agent Deck/Pi prompt templates for reusable parent-session workflows.
基于 SOC 职业分类
| name | skill-authoring |
| description | Create or improve Agent Deck/Pi skills, including where to save them, SKILL.md frontmatter, simple vs modular structure, and validation. |
Use this skill when the user wants to create, convert, review, or validate an Agent Deck/Pi skill.
Before creating a new skill, explicitly ask the user whether the skill should be enabled for all projects by default unless they already gave an unambiguous preference. Do not ask whether it is a "personal" skill: Agent Deck treats user-authored skills as catalog resources, then controls runtime use through assignment metadata.
For new user-authored skills, create the skill in the normal global Agent Deck/Pi skills catalog:
~/.pi/agent/skills/<skill-name>/SKILL.md
Then explain or apply the requested assignment:
Do not infer project-local just because the current working directory is a repository. Agent Deck no longer discovers project-local .pi/skills as a resource catalog source.
Use a non-standard external path only when the user explicitly asks to keep an existing skill or skill collection where it already lives. Warn that Agent Deck will not discover that skill unless the path is imported through Agent Deck’s + import flow; imports are catalog references, not copies:
/path/to/skills/<skill-name>/SKILL.md
Read compatibility locations such as .agents/skills/<skill-name>/SKILL.md when reviewing existing skills, but do not create new project-local skills there. Create new skills in the global catalog path unless the user explicitly asks for an external imported-by-reference source.
After creating a skill, tell the user where it was saved and whether it is Default / All Projects, Project-assigned, Agent-assigned, or still unassigned in the catalog.
Ask the user when any of these are unclear:
Use a directory named exactly like the skill, containing SKILL.md:
<skill-name>/
SKILL.md
Every SKILL.md needs frontmatter at the top. Keep the description specific enough that the model knows when to use the skill:
---
name: my-skill
description: Use when creating or validating Foo configuration for Bar projects.
---
# My Skill
Use this skill when the user asks for Foo configuration help.
Rules:
name is required.description is required and should explain when to use the skill, not just what it is.name.AGENTS.md or project documentation is the right home.Use a single-file skill when the instructions are short and likely to fit comfortably in context:
my-skill/
SKILL.md
Good contents:
Use a modular skill when the guidance is broad, reference-heavy, or split across domains. Keep SKILL.md as a router and put detailed guidance in sibling files or subdirectories:
domain-expert/
SKILL.md
workflows/
create.md
review.md
references/
concepts.md
examples.md
checklists/
validation.md
release.md
The top-level SKILL.md should:
Use relative paths in module lists so the model can read only the relevant files:
## Available Modules
Read relevant module files based on the user's request:
### workflows/
- `create.md` - Creation workflow and required decisions
- `review.md` - Review workflow and common issues
### references/
- `concepts.md` - Background concepts and terminology
- `examples.md` - Representative examples
### checklists/
- `validation.md` - Validation steps before completion
- `release.md` - Release or handoff checklist
This keeps the initial skill small and delegates token-heavy reference material to files the model reads only when needed.
~/.pi/agent/skills/<skill-name>/SKILL.md unless the user explicitly requested an external imported-by-reference source.SKILL.md.SKILL.md as a router and create focused reference files.Do not over-explain runtime internals in ordinary user-facing skills. Only mention assignment when it affects what the user must do next:
read in their tool allowlist so the skill file can be loaded.SKILL.md.name:.description: is present, specific, and use-oriented.SKILL.md.