🤖👷♂️ Agentspecs
YAML-based specifications for AI agents, MCP servers, skills, and environment variables.
What is Agentspecs?
Agentspecs is a repository of declarative specifications that define AI agent configurations and their capabilities. All specifications are written in YAML format and serve as the single source of truth for agent systems.
Specification Types
This repository contains five types of specifications:
📊 Agent Specifications
Agent configurations organized by category (code-ai/, codemode-paper/, datalayer-ai/). Each agent spec defines its capabilities, model, MCP servers, skills, UI customization, and system prompts.
🔌 MCP Server Specifications
MCP (Model Context Protocol) server configurations including commands, arguments, environment variables, and transport protocols.
🛠️ Skill Specifications
Agent skills with Python module references, dependencies, and environment variable requirements.
🔐 Environment Variable Specifications
Environment variable definitions with descriptions, registration URLs, and metadata.
🧠 Model Specifications
AI model configurations with provider, credentials, and default designation.
Key Features
- Single Source of Truth: YAML files are the authoritative specification
- Declarative: Define what agents can do, not how they do it
- Composable: Agents reference MCP servers, skills, and models by ID
- Validated: JSON Schema ensures consistency and correctness
- Extensible: Easy to add new fields or specification types
- Human-Readable: YAML format is easy to read and edit
Directory Structure
agentspecs/
├── agents/ # Agent specifications (organized by category)
│ ├── code-ai/ # Code-focused agents
│ ├── codemode-paper/ # Research paper agents
│ └── datalayer-ai/ # Data-focused agents
├── mcp-servers/ # MCP server specifications
├── models/ # AI model specifications
├── skills/ # Skill specifications
├── envvars/ # Environment variable specifications
└── agent-spec.schema.yaml # JSON Schema for validation
Quick Start
Creating a New Agent
- Choose the appropriate folder:
code-ai/,codemode-paper/, ordatalayer-ai/ - Create
agentspecs/agents/<folder>/my-agent.yaml - The agent ID will automatically become
<folder>/my-agent
Example:
# File: agentspecs/agents/code-ai/my-agent.yaml
# Full ID: "code-ai/my-agent"
id: my-agent
name: My Custom Agent
description: A helpful agent for coding tasks
tags:
- code
- development
enabled: true
mcp_servers:
- github
- filesystem
icon: code
emoji: 💻
color: "#6366F1"
Agent ID Format
Agents are automatically prefixed with their folder name:
code-ai/simple- Simple agent in code-ai foldercodemode-paper/financial-viz- Financial visualization in codemode-paper folderdatalayer-ai/data-acquisition- Data acquisition in datalayer-ai folder
This prevents ID conflicts and improves organization.
Documentation
📄️ Agentspecs
YAML-based specifications for AI agents, MCP servers, skills, and environment variables.
📄️ Agents
Agent specifications define AI agent configurations, capabilities, and behavior.
📄️ MCP Servers
MCP (Model Context Protocol) server specifications define how agents connect to external tools and services.
📄️ Skills
Skill specifications define reusable capabilities that agents can use, implemented as Python modules.
📄️ Environment Variables
Environment variable specifications define configuration values required by MCP servers and skills.
📄️ Models
Model specifications define the AI models available to agents. Each specification captures the model's identity, provider, required credentials, and whether it is the default model used when no explicit model is configured.
Best Practices
- Naming: Use kebab-case for IDs (
data-acquisition). Exception: envvars use UPPER_SNAKE_CASE - Descriptions: Be specific about capabilities and use cases
- Tags: Use consistent tags for better categorization
- Environment Variables: Always define in
envvars/directory and reference by ID - System Prompts: Keep base
system_promptgeneral, usesystem_prompt_codemode_addonsfor execution-specific instructions
License
Copyright (c) 2025-2026 Datalayer, Inc.
Distributed under the terms of the Modified BSD License.