Assistants & Skills
Relevant source files
The following files were used as context for generating this wiki page:
- client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts
- server/internal/skills/manifest.go
- client/dashboard/src/pages/assistants/onboarding/tools/useOnboardingTools.tsx
- server/internal/demoseed/queries/05_skills.sql
- client/dashboard/src/pages/assistants/onboarding/AssistantOnboarding.tsx
- client/dashboard/src/pages/assistants/onboarding/personalities.ts
- server/internal/assistants/managed_assistant_instructions.txt
Assistants are persistent AI workers that execute tasks using Large Language Models (LLMs) and specialized toolsets. Skills provide reusable instruction sets that define specific behaviors or domain knowledge for these assistants. Together, they enable automated workflows, such as Slack event handling or scheduled data synchronization.
Sources: client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:1-10, client/dashboard/src/pages/assistants/onboarding/AssistantOnboarding.tsx:100-110
Assistant Architecture
An Assistant consists of a runtime process and a configuration set that defines its capabilities and identity. Every assistant includes a built-in headless browser for web research and navigation without requiring additional toolsets.
Core Components
- Instructions: The system prompt, divided into Personality, Behavior, and Tasks sections.
- Model: The underlying LLM (e.g., Anthropic Claude, OpenAI GPT, Google Gemini).
- Toolsets: Bundles of HTTP, MCP, or function-based tools.
- Environment: A shared credential bag for tool authentication.
- Triggers: Events that initiate assistant execution, such as
cronschedules or Slack webhooks. - Runtime: A sandboxed, warm-reused process that executes the assistant's logic.
Sources: client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:2-20
This diagram illustrates the hierarchical relationship between an assistant's configuration and its operational components.
System Prompt Sections
The runtime prompt is managed in three distinct H1 Markdown sections:
- # Personality: Defines the voice, tone, and formatting habits.
- # Behavior: Operational rules derived automatically from attached toolsets.
- # Tasks: Specific role-based guidance defining how the assistant interprets events and uses tools.
Sources: client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:32-42
Skills Management
Skills are reusable instruction documents stored as SKILL.md files. They allow developers to distribute domain-specific knowledge across multiple assistants or plugins.
Skill Manifests
A skill manifest contains a YAML frontmatter block followed by Markdown content. The system validates these manifests for specific fields and structure.
| Field | Type | Description |
|---|---|---|
name | String | Unique normalized identifier (max 64 chars). |
description | String | Purpose of the skill (max 1024 chars). |
compatibility | String | Environment or model requirements. |
metadata | Mapping | Additional key-value pairs. |
Sources: server/internal/skills/manifest.go:420-470
Validation and Normalization
The server parses manifests to ensure they are spec-valid. It enforces NFC normalization for strings and generates canonical SHA-256 digests for version tracking.
The flow represents the backend pipeline for ingesting and validating a new skill version.
Onboarding and Lifecycle
Assistant creation is handled through an onboarding agent that uses a sequence of specialized tools to configure the assistant.
Creation Workflow
- Naming: The user selects a coworker-style first name via
propose_name. - Personality: The user chooses a preset or describes a custom persona via
propose_personality. - Tasks: Goal-specific guidance is set using
set_tasks. - Tools/Integrations: Toolsets are discovered via
list_toolsetsand attached withattach_toolset. - Environment: Credentials are declared with
add_environment_keysand requested viarequest_environment_secrets. - Triggers: The execution path is finalized by creating a
cronorslacktrigger.
Sources: client/dashboard/src/pages/assistants/onboarding/tools/useOnboardingTools.tsx:250-350, client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:134-150
The sequence diagram demonstrates the multi-step interaction between the user and the onboarding system to initialize a new assistant.
Data Schema for Skills
The system uses PostgreSQL to track skills, versions, and their distribution to various targets.
| Table | Purpose | Key Columns |
|---|---|---|
skills | Core skill metadata | id, project_id, name, display_name |
skill_versions | Immutable content snapshots | id, skill_id, content, canonical_sha256 |
skill_distributions | Mapping to plugins/assistants | id, skill_id, channel, assistant_id |
mcp_skill_links | Links to MCP servers | mcp_server_id, skill_id, target_kind |
Sources: server/internal/demoseed/queries/05_skills.sql:20-100
Managed Assistant Instructions
Managed assistants, such as the Speakeasy platform assistant, use pre-defined instructions for specialized domains like log analysis and risk policy management. These instructions enforce strict rules, such as treating all 4xx HTTP status codes as errors and prohibiting the echoing of PII or secrets.
Sources: server/internal/assistants/managed_assistant_instructions.txt:1-20
Skill Distribution Logic
Managed assistants can author and distribute skills using specific platform tools:
platform_create_skill: Saves a newSKILL.mdand generates a version.platform_distribute_skill: Links a skill to a specific plugin or assistant ID.platform_undistribute_skill: Revokes a distribution without deleting the skill content.
Sources: server/internal/assistants/managed_assistant_instructions.txt:10-30
Assistant and skill systems are integrated components that allow users to build, secure, and scale AI-driven automation. By combining persistent assistant configurations with reusable skill manifests, the platform provides a modular architecture for organizational AI workflows.