一键导入
agent-authoring
Use when creating or reviewing Agent Deck agents, including frontmatter, tools, supervisor behavior, continuation behavior, and skill assignment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or reviewing Agent Deck agents, including frontmatter, tools, supervisor behavior, continuation behavior, and skill assignment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when helping users install, import, repair, or verify MCP server configurations in Agent Deck.
Create or improve Agent Deck/Pi skills, including where to save them, SKILL.md frontmatter, simple vs modular structure, and validation.
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 | agent-authoring |
| description | Use when creating or reviewing Agent Deck agents, including frontmatter, tools, supervisor behavior, continuation behavior, and skill assignment. |
Use this skill when creating or reviewing Agent Deck agent markdown files.
Agents are Markdown files with YAML frontmatter and a compact role prompt body:
---
name: example-agent
description: Short human/UI summary of what this agent does
whenToUse: Use for the precise delegation condition that should make the parent choose this agent.
tools: read, grep, find, ls, bash, contact_supervisor
thinking: high
systemPromptMode: replace
defaultExpectedOutcome: reportOnly
skills: agent-authoring
---
You are `example-agent`, an Agent Deck specialist agent.
Describe the role-specific workflow, validation expectations, and return format here.
Agent Deck composes the runtime system prompt as the agent body followed by common child-session rules. The appended common rules cover completing only the assigned task, preserving parent/user decision authority, avoiding further delegation, supervisor-contact behavior, and final-result handling. Do not repeat those generic boundaries in the agent body unless the role needs a specific variation.
Keep the agent body focused on:
This applies equally to bundled, global, and library/catalog agents.
When creating an agent, decide:
whenToUse as one concise sentence that tells the parent exactly when to delegate to this agent; keep it distinct from the human-facing description.read, grep, find, ls; add bash, edit, write only when needed.defaultExpectedOutcome to reportOnly, editFilesInWorktree, writeProjectFile, or directProjectWrites. Use directProjectWrites only for trusted implementation agents with edit/write; use reportOnly for explorer/planner/reviewer agents.contact_supervisor only when the child should ask for decisions or meaningful blockers.skills:. Agent Deck passes them through Pi native --skill injection. Do not use inheritSkills.Do not assume project-local scope just because the current working directory is a project. Agent Deck no longer discovers project .pi/agents or legacy project .agents as catalog sources. If the user asks to create an agent and does not specify where it should live, ask one focused question before writing:
~/.pi/agent/agents/<name>.md, available across the user's projects~/.pi/agent/agent-library/agents/<name>.md, reusable but not automatically active until assignedAgent Deck does not currently have a general by-reference import flow for agent markdown files like it does for skills and prompts. To bring an existing agent into Agent Deck, create or copy it into the user-global or library catalog path instead of promising an imported-by-reference agent source.
If the agent references skills, also verify the skill is visible in the global/imported skill catalog or warn before completion.
description is for humans and UI lists; keep it short but descriptive.whenToUse is for parent-session delegation; make it a direct routing rule beginning with "Use for..." or "Use when...".whenToUse to one sentence and avoid repeating long descriptions.whenToUse when they matter, such as "approved implementation", "review-only", or "reconnaissance before planning".whenToUse first and fall back to description only when whenToUse is missing.skills: frontmatter or builtin override.--skill <path> entries.read tool so Pi can load the full skill file.If the agent has contact_supervisor, Agent Deck injects the generic supervisor protocol automatically. Add supervisor instructions to the agent body only for role-specific cases, such as when an explorer agent should send progress updates for discoveries that materially change the handoff.
systemPromptMode: replace for focused specialists.defaultExpectedOutcome: reportOnly for research, planning, review, and advisory agents.defaultExpectedOutcome: directProjectWrites for approved implementation agents that include edit/write.