Snippet Templates
Starter snippets for scaffolding .xcaf resource manifests.
Type a snippet prefix in any .xcaf file and press Tab to expand a complete manifest skeleton.
Agent
Prefix: agent, kind: agent
.xcaf
---
kind: agent
version: "1.0"
name: <agent-name>
description: "<Brief description of the agent's role>"
model: <sonnet|opus|haiku>
tools: [<Read, Write, Edit, Bash, Glob, Grep>]
---
Skill
Prefix: skill, kind: skill
.xcaf
---
kind: skill
version: "1.0"
name: <skill-name>
description: "<Brief description of what the skill does>"
allowed-tools: [<Read, Write, Edit, Bash>]
---
Rule
Prefix: rule, kind: rule
.xcaf
---
kind: rule
version: "1.0"
name: <rule-name>
description: "<Brief description of the rule's guardrail>"
always-apply: <true|false>
---
Workflow
Prefix: workflow, kind: workflow
.xcaf
---
kind: workflow
version: "1.0"
api-version: workflow/v1
name: <workflow-name>
description: "<Brief description of the workflow goal>"
---
Mcp
Prefix: mcp, kind: mcp
.xcaf
kind: mcp
version: "1.0"
name: <server-name>
description: "<Brief description of the MCP server>"
command: <npx>
args: [<@modelcontextprotocol/server>]