Skip to main content
What you will learn: This page explains how Agent Skills work, how to create and manage them, how to use Skill Packs to get started quickly, and how to use AI-assisted skill proposal to build a knowledge-driven skill library automatically.

🔢 Table of Contents

  1. Overview
  2. Endpoint Reference
  3. Authentication & Permissions
  4. Skills — Create & Manage
  5. Skill Packs
  6. AI-Proposed Skills
  7. Skill Optimization
  8. Agent Cortex Mode
  9. Agent Specialists
  10. Response Format
  11. Error Handling
  12. Best Practices
  13. Troubleshooting

1. Overview

What are Agent Skills?

Agent Skills are structured knowledge units that teach your AI Employee how to behave in specific situations. Each skill contains:
  • Name — A clear label (e.g., “Handle Refund Request”)
  • Slug — A machine-readable unique identifier (e.g., handle-refund-request)
  • Description — When this skill should activate
  • Content — The detailed instructions the AI follows when this skill applies
  • Statusdraft, active, or archived
  • Scopeagent (single AI) or organization (shared across all AIs)

Why Use Skills?

Without skills, your AI Employee relies only on its base instructions and knowledge base. Skills allow you to:
  • Define specific behaviors for recurring situations
  • Reuse knowledge across multiple AI Employees (organization scope)
  • Enable the AI Cortex to automatically select the right skill at runtime
  • Maintain and version your AI’s behavioral logic independently from its prompt

How Skills are Used at Runtime

When a conversation is in progress, the Agent Cortex (in advisory or active mode) reads all active skills and selects the most relevant one based on context. The selected skill’s content is injected into the AI’s context window as an additional instruction layer.

2. Endpoint Reference


3. Authentication & Permissions

All endpoints require an active session cookie tied to an authenticated user who belongs to the organization owning the agent.
The system verifies that agentId belongs to the authenticated user’s current organization (assertAgentBelongsToOrganization) before any operation.

4. Skills — Create & Manage

List Skills

Retrieves all skills for a given agent, including both agent-scoped and organization-scoped skills, plus any pending action approvals related to skills. Request:
Response:

Create a Skill

Request:
Request Body: Example:
cURL:
TypeScript:

Update a Skill

Request:
All fields from the create schema are optional. Only fields provided will be updated. Status Lifecycle:
Setting status to active or archived automatically updates lastReviewedAt.
Slug Conflict: If a new slug is provided that already exists in the organization, the API returns 409 Conflict.

5. Skill Packs

Skill Packs are pre-built collections of skills curated by ZappWay for common use cases. They allow you to bootstrap a skill library in seconds.

List Available Packs

Returns packs adapted to the agent’s locale and current skill configuration. Response:

Apply a Skill Pack

Request Body: Example:

6. AI-Proposed Skills

ZappWay can use AI to automatically generate skill suggestions based on your agent’s configuration or knowledge base.

Propose Skills from Configuration

Analyzes the agent’s instructions and existing tools to suggest new skills.
Returns an array of ActionApproval objects — suggested skills waiting for your review and acceptance.

Propose Skills from Knowledge Base (RAG)

Analyzes the agent’s connected datastores and datasources to extract recurring topics and create skill suggestions.
Response:
Proposals that closely match existing skills are automatically skipped (skipped count).

7. Skill Optimization

Request AI-generated optimization suggestions for existing skills to improve their effectiveness.
Returns a list of ActionApproval objects with suggested improvements for existing skills. These are reviewed via the Approvals system before being applied. Response:

8. Agent Cortex Mode

The Agent Cortex controls how the AI autonomously selects and applies skills at runtime.

Get Current Mode

Response:

Update Mode

Request Body:

9. Agent Specialists

Specialists allow an agent to delegate conversations to other specialized agents based on routing rules.

List Specialists

Response:

Activate/Deactivate a Routing Rule

Request Body: Creates a new specialist link between two agents. The system prevents self-loops and circular delegation chains.
Request Body:
Cycle Detection: The system blocks delegation cycles at depth 1 (e.g., A→B when B→A already exists). Returns 400 Conflict with reasonCode: "CYCLE_BLOCKED".

10. Response Format

Status Codes


11. Error Handling


12. Best Practices

Writing Effective Skills

Do:
  • Keep each skill focused on one specific situation or behavior
  • Use the description field to explain exactly when the skill should activate
  • Write content as actionable step-by-step instructions
  • Start with draft status while testing, then promote to active
  • Use organization scope for skills shared across multiple AI Employees
Avoid:
  • Skills with vague names like “General Help” — be specific
  • Packing too many behaviors into a single skill
  • Leaving all skills in draft status (they won’t be used by the Cortex)
  • Creating duplicate skills with different names but the same behavior

Cortex Mode Selection

Organization vs Agent Scope


13. Troubleshooting