PluginWorks in Claude CodeCurrent
Datarobot agent skills
DataRobot skills for AI/ML workflows — model training, deployment, predictions, feature engineering, monitoring, explainability, data preparation, App Framework CI/CD, and external agent monitoring.
0
Try it
See what this would do for you. No sign-up needed.
Install in Claude Code
Run these in Claude Code, in order. The first adds the marketplace, the second installs the plugin.
Step 1
/plugin marketplace add anthropics/claude-plugins-official
Step 2
/plugin install datarobot-agent-skills@claude-plugins-official
Review commands before running them. Promptu never runs code on your machine or pushes changes to your repo.
What's inside
16 skills
- datarobot-agent-assist
- datarobot-agent-llm-selection
- datarobot-app-framework-cicd
- datarobot-connectivity-datastore-sql
- datarobot-connectivity-jdbc-sql
- datarobot-data-preparation
- datarobot-discover
- datarobot-external-agent-monitoring
- datarobot-feature-engineering
- datarobot-model-deployment
- datarobot-model-explainability
- datarobot-model-monitoring
- datarobot-model-training
- datarobot-predictions
Details
<p align="center">
<a href="https://github.com/datarobot-oss/datarobot-agent-skills">
<img src="https://af.datarobot.com/img/datarobot_logo.avif" width="600px" alt="DataRobot Logo"/>
</a>
</p>
<p align="center">
<span style="font-size: 1.5em; font-weight: bold; display: block;">DataRobot Agent Skills</span>
</p>
<p align="center">
<a href="https://datarobot.com">Homepage</a>
·
<a href="https://docs.datarobot.com">Documentation</a>
·
<a href="https://docs.datarobot.com/en/docs/get-started/troubleshooting/general-help.html">Support</a>
</p>
<p align="center">
<a href="https://join.slack.com/t/datarobot-community/shared_invite/zt-3uzfp8k50-SUdMqeux25ok9_5wr4okrg">
<img src="https://img.shields.io/badge/%23skills-a?label=Slack&labelColor=30373D&color=81FBA6" alt="Slack #skills">
</a>
</p>
Agentic skills for DataRobot enterprise AI and agent workflows.
```bash
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills
```
## Overview
Agentic skills are modular, task-specific capability packages that help an AI agent move from general reasoning to reliable execution. Each skill bundles instructions, examples, and supporting resources so that the agent can load only what it needs for the current task, reducing context overload and improving tool use within a given workflow.
DataRobot skills are Agent Context Protocol (ACP) definitions for enterprise AI and agent workflows, including building, deploying, and governing agents, as well as AI/ML tasks such as model training, deployment, predictions, feature engineering, and monitoring. They work with major coding agents, including OpenAI Codex, Anthropic Claude Code, Google Gemini CLI, Cursor, and VS Code Copilot.
> [!NOTE]
> "Skills" is an Anthropic term used in Claude AI and Claude Code, but the concept applies more broadly. OpenAI Codex uses `AGENTS.md` to define agent instructions, and Gemini uses `gemini-extension.json` for extensions. This repository is compatible with all of them, and more.
## Quick start
> [!NOTE]
> Supported agents for DataRobot skills include: [Claude Code](https://www.anthropic.com/claude-code/), [Cursor](https://cursor.com), [Codex](https://developers.openai.com/codex/), [Amp](https://ampcode.com/), [VS Code Copilot (GitHub Copilot)](https://github.com/features/copilot), [Gemini CLI](https://geminicli.com/), [Goose](https://block.github.io/goose/), [Letta](https://www.letta.com/), [Kilo Code](https://kilocode.ai/), [OpenCode](https://opencode.ai/), and [Windsurf/Devin](https://devin.ai/).
Install all DataRobot skills, or only the ones you need, for **all** your AI agents with one command by using the [universal skills installer](https://github.com/skillcreatorai/Ai-Agent-Skills).
**For all skills:**
```bash
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills
```
**For a specific skill:**
```bash
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills/skills/datarobot-predictions
```
**For a specific agent:**
```bash
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills --agent cursor
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills --agent claude
```
> [!NOTE]
> By default, the installer copies skills to all supported agents at the same time. No configuration is required.
> For agent-specific installation methods, see the [Installation to your coding agent](#installation-to-your-coding-agent) section below.
### How do skills work?
Skills are self-contained folders that package instructions, scripts, and resources for a specific use case. Each folder includes a `SKILL.md` file with YAML frontmatter (`name` and `description`), followed by the guidance your coding agent uses while the skill is active.
> [!NOTE]
> All DataRobot skills follow the naming convention `datarobot-<category>`, where `<category>` describes the skill's focus area. This provides clear identification of DataRobot-specific skills, consistent naming across the skill library, and easy discovery and organization.
### Installation to your coding agent
DataRobot skills are compatible with Claude Code, Codex, Gemini CLI, Cursor, VS Code Copilot, Windsurf/Devin, and more. For the universal `npx` installer, see [Quick start](#quick-start) above.
Click on the section that corresponds to your coding agent below for agent-specific installation instructions.
<details><summary><strong>Claude Code</strong></summary>
Install all DataRobot skills from the official Claude plugins marketplace.
From your terminal:
```bash
claude plugin install datarobot-agent-skills@claude-plugins-official
```
From within a Claude Code CLI session:
```bash
/plugin install datarobot-agent-skills@claude-plugins-official
```
**Alternative:** register the repository as a plugin marketplace from within a Claude Code CLI session:
```bash
/plugin marketplace add datarobot-oss/datarobot-agent-skills
```
To install a specific skill, run:
```bash
/plugin install <skill-folder>@datarobot-skills
```
For example:
```bash
/plugin install datarobot-model-training@datarobot-skills
```
</details>
<details><summary><strong>Codex</strong></summary>
This repository includes a Codex plugin manifest at `.codex-plugin/plugin.json` and also exposes instructions through `AGENTS.md`.
**Install from GitHub**
You can also install this repository as a Codex plugin from GitHub:
```bash
codex plugin marketplace add https://github.com/datarobot-oss/datarobot-agent-skills.git
codex plugin add datarobot-agent-skills@datarobot-skills
```
After installation, Codex loads the plugin metadata from `.codex-plugin/plugin.json`.
For more details, see the [Build plugins for Codex](https://developers.openai.com/plugins/build/plugins) and [Codex `AGENTS.md`](https://developers.openai.com/codex/guides/agents-md) documentation.
</details>
<details><summary><strong>Gemini CLI</strong></summary>
This repository includes `gemini-extension.json` for Gemini CLI integration.
Install locally:
```bash
gemini extensions install . --consent
```
Or install from the GitHub URL:
```bash
gemini extensions install https://github.com/datarobot-oss/datarobot-agent-skills.git --consent
```
See the [Gemini CLI extensions](https://geminicli.com/docs/extensions/) documentation for more information.
</details>
<details><summary><strong>Cursor</strong></summary>
Cursor can automatically detect and use skills from this repository in two main ways:
**Option 1: Use `AGENTS.md`**
> NOTE: This option is the recommended approach.
When you open this repository as your workspace, Cursor automatically reads the `AGENTS.md` file. The skills are available immediately without additional configuration.
To verify that the skills are loaded:
1. Open Cursor in this repository.
2. Open the AI chat panel (`Cmd/Ctrl + L`).
3. Ask: "What DataRobot skills are available?"
**Option 2: Use `.cursorrules`**
You can also reference specific skills in your `.cursorrules` file to make sure they are always loaded:
```text
# .cursorrules
You have access to DataRobot skills in this repository.
Available skills (in datarobot-* folders):
- datarobot-model-training: Model training and project creation
- datarobot-predictions: Making predictions and generating templates
- datarobot-model-deployment: Deploying and managing models
- datarobot-feature-engineering: Feature analysis and engineering
- datarobot-model-monitoring: Model performance monitoring
- datarobot-model-explainability: Model explainability and diagnostics
- datarobot-data-preparation: Data upload and validation
- datarobot-app-framework-cicd: CI/CD pipelines for DataRobot application templates
- datarobot-external-agent-monitoring: External agent OTel instrumentation for DataRobot monitoring
- datarobot-agent-assist: Building and deploying agents
- datarobot-setup: Local DataRobot development setup (SDK, dr-cli, Agent Assist)
- datarobot-workload-api: Create, configure, debug, observe, and roll out container workloads on DataRobot's Workload API
- datarobot-connectivity-datastore-sql: SQL through DataRobot data connections (datastores)
- datarobot-connectivity-jdbc-sql: SQL through DataRobot with a caller-supplied JDBC URL
When asked to use a DataRobot skill, read the corresponding SKILL.md file for detailed guidance.
```
**Using skills in Cursor:**
- "Use the datarobot-predictions skill to generate a template for deployment abc123"
- "Follow the datarobot-model-training skill to create a new project"
- "Check the datarobot-model-monitoring skill to analyze data drift"
</details>
<details><summary><strong>VS Code Copilot (GitHub Copilot)</strong></summary>
VS Code with GitHub Copilot can automatically detect and use skills from this repository through the `AGENTS.md` file.
**Setup:**
1. Open this repository in VS Code.
2. Ensure that the GitHub Copilot extension is installed and activated.
3. Skills are automatically available through the `AGENTS.md` file.
**Verify that the skills are loaded:**
Open Copilot Chat (`Cmd/Ctrl + I`) and ask:
- "What DataRobot skills are available?"
- "List the available skills in this repository"
**Using skills in VS Code Copilot:**
In Copilot Chat, reference skills naturally:
- "Use the datarobot-predictions skill to generate a template for deployment abc123"
- "Following the datarobot-model-training skill, create a new project for customer churn prediction"
- "Check the datarobot-model-monitoring skill and help me analyze data drift"
> [!TIP]
> You can also use the `@workspace` agent in Copilot Chat to give it full context about the repository and available skills.
</details>
<details><summary><strong>OpenCode</strong></summary>
Add to your `~/.config/opencode/opencode.json`:
```json
{
"plugin": ["opencode-datarobot-skills"]
}
```
OpenCode automatically installs the plugin on startup. The plugin also includes a DataRobot-branded theme with full dark and light variants. To activate it, add `"theme": "datarobot"` to your `opencode.json`.
</details>
<details><summary><strong>Windsurf/Devin</strong></summary>
[Windsurf](https://windsurf.com/) and [Devin](https://devin.ai/) support the Agent Skills format. Install DataRobot skills using the universal installer from [Quick start](#quick-start) above.
**Install all skills:**
```bash
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills
```
**Install a specific skill:**
```bash
npx ai-agent-skills install datarobot-oss/datarobot-agent-skills/skills/datarobot-predictions
```
</details>
## Skills
This repository contains skills for common DataRobot workflows. You can also contribute your own skills.
### Available skills
| Skill Folder | Description | Documentation |
| ------------ | ----------- | ------------- |
| `skills/datarobot-model-training/` | Instructions and utilities for training models, managing projects, and running AutoML experiments. | [SKILL.md](skills/datarobot-model-training/SKILL.md) |
| `skills/datarobot-model-deployment/` | Tools for deploying models, managing deployments, and configuring prediction environments. | [SKILL.md](skills/datarobot-model-deployment/SKILL.md) |
| `skills/datarobot-predictions/` | Guidance for making predictions, batch scoring, real-time predictions, and generating prediction datasets. | [SKILL.md](skills/datarobot-predictions/SKILL.md) |
| `skills/datarobot-feature-engineering/` | Instructions for feature engineering, feature discovery, and feature importance analysis. | [SKILL.md](skills/datarobot-feature-engineering/SKILL.md) |
| `skills/datarobot-model-monitoring/` | Tools for monitoring model performance, tracking data drift, and managing model health. | [SKILL.md](skills/datarobot-model-monitoring/SKILL.md) |
| `skills/datarobot-model-explainability/` | Tools for model explainability, prediction explanations, SHAP values, and model diagnostics. | [SKILL.md](skills/datarobot-model-explainability/SKILL.md) |
| `skills/datarobot-data-preparation/` | Utilities for data upload, dataset management, and data validation. | [SKILL.md](skills/datarobot-data-preparation/SKILL.md) |
| `skills/datarobot-app-framework-cicd/` | Set up CI/CD pipelines for DataRobot application templates with GitLab and GitHub Actions. | [SKILL.md](skills/datarobot-app-framework-cicd/SKILL.md) |
| `skills/datarobot-external-agent-monitoring/` | Instrument any external AI agent with OpenTelemetry to send traces, logs, and metrics to DataRobot for monitoring and observability. Supports Google ADK, LangChain, LangGraph, CrewAI, LlamaIndex, PydanticAI, and generic Python agents. | [SKILL.md](skills/datarobot-external-agent-monitoring/SKILL.md) |
| `skills/datarobot-agent-assist/` | Build AI agents and deploy them to DataRobot. Supports building LangGraph, CrewAI, LlamaIndex, NAT and Base agents. Created agents can be bundled with MCP server, backend APIs & React frontend. | [SKILL.md](skills/datarobot-agent-assist/SKILL.md) |
| `skills/datarobot-connectivity-datastore-sql/` | Run SQL through DataRobot data connections: list connections, browse tables, preview rows, run queries, and run approved DML/DDL. | [SKILL.md](skills/datarobot-connectivity-datastore-sql/SKILL.md) |
| `skills/datarobot-connectivity-jdbc-sql/` | Run SQL through DataRobot against a database reached by a caller-supplied JDBC URL: test connectivity, list tables, run queries, and run approved DML/DDL. | [SKILL.md](skills/datarobot-connectivity-jdbc-sql/SKILL.md) |
## Using skills in your coding agent
Once a skill is installed, mention it directly in your instructions to the coding agent:
- "Use the DataRobot model training skill to create a new project and start AutoML training."
- "Use the DataRobot predictions skill to generate a prediction dataset template for deployment abc123."
- "Use the DataRobot feature engineering skill to analyze feature importance for my model."
- "Use the DataRobot model monitoring skill to check data drift for deployment xyz789."
- "Use the DataRobot external agent monitoring skill to instrument my agent for DataRobot monitoring."
Your coding agent automatically loads the corresponding `SKILL.md` instructions and any helper scripts it needs while completing the task.
### Helper scripts
Some skills include helper scripts that an agent can run directly:
- **datarobot-predictions**: `get_deployment_features.py`, `generate_prediction_data_template.py`, `validate_prediction_data.py`, `make_prediction.py`
- **datarobot-model-training**: `create_project.py`, `start_training.py`, `list_models.py`
- **datarobot-model-explainability**: `compute_shap_matrix.py`
- **datarobot-data-preparation**: `upload_dataset.py`
- **datarobot-external-agent-monitoring**: `create_shell_deployment.py`, `verify_otel_connection.py`
- **datarobot-agent-assist**: `select_framework.py`, `clone_template.py`, `setup_template.py`, `list_llm_models.py`, `rehearsal.py`, `env_utils.py`
- **datarobot-connectivity-datastore-sql**: `datastore_sql.py`
- **datarobot-connectivity-jdbc-sql**: `jdbc_sql.py`
These scripts are located in each skill's `scripts/` directory and can be executed directly or used as references when writing code.
## Additional documentation
- [Agent framework integration](docs/AGENT_FRAMEWORK_INTEGRATION.md)—how to load and inject skills when building agents with LangGraph, PydanticAI, CrewAI, LlamaIndex, and similar frameworks.
- [Contributing](CONTRIBUTING.md)—how to create skills, naming conventions, validation, and CI.
## Additional references
- Browse the latest instructions, scripts, and templates at [datarobot-oss/datarobot-agent-skills](https://github.com/datarobot-oss/datarobot-agent-skills).
- Review the [DataRobot documentation](https://docs.datarobot.com/) for the libraries and workflows referenced in each skill.
- See the [DataRobot Python SDK documentation](https://datarobot-public-api-client.readthedocs-hosted.com/) for API reference.
## skills/datarobot-agent-assist/SKILL.md
---
name: datarobot-agent-assist
description: >-
Use when the user wants to design, build, code, simulate, or deploy an AI agent (not a predictive
model) to DataRobot; mentions agent_spec.md, dr-assist, datarobot-agent-assist, dress rehearsal,
swarm simulation, or the DataRobot agent template; wants to scaffold a LangGraph, CrewAI, LlamaIndex, NAT, or Base
agent targeting DataRobot; wants to add an MCP server, backend API, or React frontend to a
DataRobot agent application; or uses the DataRobot CLI (dr) to build or deploy an agentic custom
application; or wants to harden, stress-test, or battle-test an agent. Covers the full workflow: agent design, agent_spec.md authoring, dress-rehearsal
simulation via the DataRobot LLM Gateway, adversarial swarm simulation, template-based coding, and deployment.
---
# DataRobot Agent Assist
This skill covers **agent design, coding, battle-testing, and deployment** with an optional **dress-rehearsal simulation** before any code is written.
A first message of `1`–`4` selects the corresponding category. If free text clearly maps to one category (e.g. "I want to build an agent" → Design), state the inference briefly and proceed. If ambiguous, ask which option applies — do not guess.
---
## Workflow Discipline
Follow this skill **sequentially**. These rules apply to every phase — design, coding, deployment, and every referenced checklist.
1. **Section order** — Complete each section and subsection in the order it appears in this file. Do not jump to a later section until the current one is finished.
2. **Reference files** — When this skill says **read and follow** a file under `agent-assist-build/references/`, read that file first, then execute every step in that file in order. Do not substitute a summary, shortcut, or a later menu for steps defined in the reference.
3. **Explicit skips only** — Skip a step only when this skill or the referenced file explicitly says to skip it (e.g. Pre-requisite Check when `<prerequisites_passed>` is true, or Frontend Check when `frontend.type` is already set).
4. **No auto-advance** — Completing one step (e.g. writing the spec, the user saying "move on", or a command succeeding) does not authorize skipping remaining steps. Proceed only when the current section or reference directs you to the next step.
5. **Menus and prompts** — When a section presents a menu or asks a question, wait for the user's reply. Do not assume a default or proceed on your own.
6. **One design gate per turn** — During design, do not combine prompts from different subsections in one message (e.g. do not ask about spec refinement and dress rehearsal in the same turn).
---
## On Activation
Present the four options clearly:
```
Welcome! I help you design, code, battle-test, and deploy AI agents.
What would you like to do?
1. Design an AI agent → Describe your idea (optional dress rehearsal before coding)
2. Code an AI agent → Load and implement an existing agent_spec.md
3. Battle-test the agent → Run adversarial swarm simulation on an implemented agent
4. Deploy → Deploy an implemented agent to DataRobot
```
Show this menu first. After the user selects an option (`1`, `2`, `3`, or `4`), run the **[Pre-requisite Check](#pre-requisite-check)** (once per session) and then the **[Script Path Resolution](#script-path-resolution)**.
- Options **1** and **2** — read and follow [agent-assist-build/references/workspace-resolution.md](agent-assist-build/references/workspace-resolution.md), then proceed to the selected workflow.
- Option **3** — read `agent-assist-simulate/SKILL.md` and jump to **Pre-flight Check** (Pre-requisite Check and Script Path Resolution still apply first).
- Option **4** — skip Workspace Resolution; `<target_dir>` is resolved in the [Pre-deployment Checklist](agent-assist-build/references/pre-deployment-checklist.md) when unset.
---
## Script Path Resolution
Before invoking any helper script, resolve `<skill_scripts_dir>` once for the session:
- `<skill_scripts_dir>` is the `agent-assist-build/scripts/` subdirectory of the directory containing this `SKILL.md` file.
- Confirm it exists with `ls <path_to_this_skill_dir>/agent-assist-build/scripts/`. If the directory is missing, tell the user the skill installation is incomplete and stop.
- Use the resolved absolute path for every `<skill_scripts_dir>/...` reference in this skill.
---
## Session State
Track these for the conversation:
- `<target_dir>` — project root. Set during [Workspace Resolution](agent-assist-build/references/workspace-resolution.md) or the [Pre-deployment Checklist](agent-assist-build/references/pre-deployment-checklist.md). Reuse across phases. Change only on explicit user request, [pre-coding Bootstrap step 2](agent-assist-build/references/pre-coding-checklist.md) (spec path recovery), [pre-coding step 7](agent-assist-build/references/pre-coding-checklist.md) (subdir recovery), or a new session.
- `<prerequisites_passed>` — `false` until the [Pre-requisite Check](#pre-requisite-check) completes successfully once this session.
- `<workspace_resolved>` — `false` until [Workspace Resolution](agent-assist-build/references/workspace-resolution.md) completes for menu options **1** or **2**.
- `<workspace_resolved_target_dir>` — the `<target_dir>` set when workspace resolution last completed.
- `<design_to_code>` — `false` until the user chooses **Code the agent** from [Post-design next steps](#post-design-next-steps) in the same session after design.
- `<design_messy_cwd>` — `false` until design runs in cwd with files other than `agent_spec.md` / `.env` (see [workspace-resolution](agent-assist-build/references/workspace-resolution.md)).
- `<dependency_check_passed>` — `false` until a passing `dr dependency check` in `<target_dir>`.
- `<dependency_check_target_dir>` — the `<target_dir>` value when the last check passed.
### `.env` placement
Project credentials and config live **only** at `<target_dir>/.env` — never in cwd when `<target_dir>` is a subdirectory. This includes DataRobot CLI credentials, LLM config, and **tool/service secrets**. Pulumi reads these from the environment at deploy time (`os.environ`); a secret missing from `.env` means the corresponding credential and runtime parameter are not created.
- Complete [Workspace Resolution](agent-assist-build/references/workspace-resolution.md) before any step that needs credentials or creates a `.env` file.
- Always pass `--target-dir <target_dir>` to helper scripts that read or create `.env` (`list_llm_models.py`, `rehearsal.py`, `setup_template.py`). Do **not** run `dr dotenv setup` in cwd.
- Never put secret values in `agent_spec.md` or source code — only env var **names** belong in infra; values stay in `.env`.
### Dependency check session rule
Before running dependency validation:
- If `<dependency_check_passed>` is true and `<target_dir>` equals `<dependency_check_target_dir>`, skip validation.
- Otherwise, read and follow [agent-assist-build/references/dependency-validation.md](agent-assist-build/references/dependency-validation.md) in `<target_dir>`.
Invalidate `<dependency_check_passed>` (set to false) when:
- `<target_dir>` changes
- `clone_template.py`, `select_framework.py`, or `setup_template.py` runs in `<target_dir>`
### Welcome menu reset
When showing the [welcome menu](#on-activation) again (e.g. user declined pre-coding step 7): set `<workspace_resolved>` = false, clear `<workspace_resolved_target_dir>`, `<design_to_code>` = false, and `<design_messy_cwd>` = false. Keep `<prerequisites_passed>` true.
---
## Workspace Resolution
Read and follow [agent-assist-build/references/workspace-resolution.md](agent-assist-build/references/workspace-resolution.md) after menu options **1** or **2**.
---
## Pre-requisite Check
If `<prerequisites_passed>` is true, skip this section.
Otherwise, run in order before proceeding:
1. **Git** — run `git --version`. If missing, tell the user to install from https://git-scm.com and stop.
2. **Python** — run `python --version`. If missing or below 3.11, tell the user to install Python 3.11+ from https://python.org and stop.
3. **DataRobot CLI** — read and follow [agent-assist-build/references/dr-cli-setup.md](agent-assist-build/references/dr-cli-setup.md):
- If missing, **ALWAYS RUN** the install command before proceeding
- **ALWAYS RUN** the upgrade command before proceeding
- If not authenticated, **ALWAYS RUN** the auth command before proceeding
4. **Codespace** — run `python <skill_scripts_dir>/check_codespace.py` (no-op outside a Codespace). On non-zero exit, relay its message and stop; otherwise relay any exposed-ports warning it prints.
On success, set `<prerequisites_passed>` = true.
---
## 1. Designing an AI Agent
When `<target_dir>/agent_spec.md` already exists, read and follow [resume-design.md](agent-assist-build/references/resume-design.md) after [workspace resolution](agent-assist-build/references/workspace-resolution.md) or when returning from [Spec issues](agent-assist-build/references/pre-coding-checklist.md#spec-issues). For a **new** agent (no spec yet), start at [Clarification Phase](#clarification-phase).
### Clarification Phase
- Ask **at most 2 rounds** of clarifying questions before proposing an initial draft spec. If tools are still ambiguous after two rounds, start simple.
- Focus questions on:
- What the agent does and who uses it
- What tools it needs and what external services those tools call
- Whether those services require authentication (API key, OAuth2, bearer token, etc.)
- Whether the user needs a custom frontend beyond the default chat UI
- If the user mentions UI-related needs early ("dashboard", "visualization", "multi-page", "admin panel", "settings page"), capture it immediately in the `frontend` field and write `frontend.type` to `agent_spec.md` — do **not** defer or wait for [Frontend Check](#frontend-check).
### Model Selection
- To check available models, run (requires `<target_dir>` from workspace resolution — see [.env placement](#env-placement)):
```
python <skill_scripts_dir>/list_llm_models.py \
--json \
--target-dir <target_dir>
```
**CRITICAL**: Always pass `--target-dir <target_dir>`. In case the script fails due to any reason, do **not** proceed. Instead, return the error message to the user and ask how they want to proceed.
- Read and follow [llm-selection.md](agent-assist-build/references/llm-selection.md) to recommend from the two sources (`gateway` and `deployed`) and record the choice.
- If the user's desired model is unavailable, suggest starting with an available one and updating after implementation.
### Frontend Check
Skip this section if `frontend.type` is already captured — either written to `<target_dir>/agent_spec.md`, or held in working memory from [Clarification Phase](#clarification-phase) before the first draft exists.
Before the first spec draft, if `frontend.type` is not yet set, **always ask**:
> "The template includes a default chat UI — is that sufficient, or would you like a custom frontend such as a dashboard, data visualization, or multi-page app?"
Then set `frontend` in the spec (write to `<target_dir>/agent_spec.md` when the file exists, or hold the value for the first draft in [Spec Display](#spec-display)):
- Default UI → `frontend.type: "chat"`
- Custom UI → `frontend.type: "multi-page"` or `"custom"` with `pages` and optional `requirements`
### Spec Display
- Before the first draft, read [agent-assist-build/references/agent-spec-schema.md](agent-assist-build/references/agent-spec-schema.md).
- **Always write the current spec to `<target_dir>/agent_spec.md`** (YAML format) whenever showing it to the user. The first draft must include `frontend.type` from [Frontend Check](#frontend-check) (or clarification).
- Show the spec frequently and iteratively — even if incomplete or partial.
- Do **not** summarize the spec in prose; display it as YAML in a code block.
- After displaying, invite the user to refine system prompts, tools, model, or examples. Do **not** ask about dress rehearsal, coding, template setup, or "moving on" in the same turn, and do **not** offer "proceed to coding" as an alternative to refinement (including on [Resume Design](agent-assist-build/references/resume-design.md) after pre-coding [Spec issues](agent-assist-build/references/pre-coding-checklist.md#spec-issues)).
- If the user requests changes, update the spec and show it again. If the user indicates they are done refining (e.g. "looks good", "no changes", "move on"), proceed to [Agent Simulation (Before Coding)](#agent-simulation-before-coding) in your **next** response — not to [Post-design next steps](#post-design-next-steps) or coding.
### Agent Simulation (Before Coding)
When spec refinement is complete, read [agent-assist-build/references/dress-rehearsal.md](agent-assist-build/references/dress-rehearsal.md) and present the **Initial prompt (design phase)** using that file's **exact wording** — in its own turn, with no spec-refinement question in the same message.
Then follow dress-rehearsal.md for the user's reply (yes → rehearsal; no → [Post-design next steps](#post-design-next-steps)).
### Post-design next steps
After the user declines the initial rehearsal prompt — or **after** a dress rehearsal session ends **and** `<target_dir>/rehearsal_report/rehearsal_report.md` has been written — present this menu (exact wording):
> What would you like to do next?
> 1. **Code the agent** — start implementation from `agent_spec.md`
> 2. **Review / edit spec** — refine `agent_spec.md`
> 3. **Run dress rehearsal** — simulate the agent before coding
> 4. **Review rehearsal report** — open `rehearsal_report/rehearsal_report.md`
Wait for their choice. **Do not** assume a default or proceed without a reply.
| Choice | Action |
|--------|--------|
| 1 or "code" / "implement" | Set `<design_to_code>` = true. Follow **[2. Coding an AI Agent](#2-coding-an-ai-agent)** — read and follow [pre-coding-checklist.md](agent-assist-build/references/pre-coding-checklist.md). This does **not** authorize cloning or subdirectory creation; if the workspace is not spec-only, complete [pre-coding step 7](agent-assist-build/references/pre-coding-checklist.md) and wait for explicit confirmation first. |
| 2 or "review" / "edit spec" | Display `<target_dir>/agent_spec.md` as YAML, invite changes, update the file, then show this menu again |
| 3 or "rehearsal" / "simulate" | Follow **[Dress Rehearsal](#dress-rehearsal)** |
| 4 or "review report" / "rehearsal report" | If `<target_dir>/rehearsal_report/rehearsal_report.md` exists, read it and present a structured summary (metadata, notes, conversation highlights, suggested changes). If missing, say no report exists yet and offer option 3. Then show this menu again. |
If the user's reply is unclear, re-display the menu and wait. Never skip straight to framework selection after a rehearsal decline.
---
## Dress Rehearsal
Read and follow [agent-assist-build/references/dress-rehearsal.md](agent-assist-build/references/dress-rehearsal.md) end to end.
---
## 2. Coding an AI Agent
**On Windows: coding is not supported. STOP and do NOT proceed with the next steps!**
### Pre-coding Checklist
Read and follow [agent-assist-build/references/pre-coding-checklist.md](agent-assist-build/references/pre-coding-checklist.md) end to end before writing or editing implementation code. Do not write or edit implementation code until the checklist is complete.
### Coding Rules
- Implement by adapting the template code — do not write from scratch
- Modify files only inside `<target_dir>` and its subdirectories
- Do not view `.env` files (`.env.template` files are OK)
- **Tool credentials** — when implementing a tool with `auth_spec` in `agent_spec.md`:
1. Choose a `SCREAMING_SNAKE_CASE` env var name (e.g. `PERPLEXITY_API_KEY`).
2. **Append** `VAR_NAME=` to `<target_dir>/.env` without reading the file.
3. Ask the user to paste the secret into `<target_dir>/.env` in their editor — never in chat, `agent_spec.md`, or committed code.
- Do not add code comments unless asked
- Do not mock tool implementations unless they would be complex to implement
- For tasks with 3+ steps, use the TodoWrite tool to manage your work
- Keep text responses **concise (1–3 sentences)** while coding — skip preamble and postamble
### File Write/Edit Discipline
- Always explain **why** the change is needed (purpose and impact) in 1–2 sentences before writing or editing a file
- Invoke at most **one shell command per response** — wait for the result before invoking another
### After Coding
1. Read `<target_dir>/AGENTS.md` to find the local test command.
2. Display the command in a code block.
3. Tell the user: "Run this command in a **new terminal** in `<target_dir>` to test the agent locally."
4. Do **not** run the command yourself.
5. Present next steps: revise the implementation, battle-test the agent (option 3), or deploy to DataRobot (option 4).
---
## 3. Battle-testing an AI Agent
Read `agent-assist-simulate/SKILL.md` and jump directly to **Pre-flight Check** — skip its On Activation menu. Also trigger directly when the user says "simulate my agent", "run swarm", "adversarial testing", "harden my agent", or "test my agent".
Swarm requires an implemented agent; if none exists, explain and offer option 2. If code exists and no option is chosen, proactively offer: "I can also battle-test your agent before deploying — want to run swarm simulation?"
---
## 4. Deploying an AI Agent
Read and follow [agent-assist-build/references/pre-deployment-checklist.md](agent-assist-build/references/pre-deployment-checklist.md) end to end.
---
## Error Handling
- If a tool returns an error, read the error message carefully before responding
- For dependency validation failures that cannot be fixed (install or re-check still fails): hard stop — return full output from all commands run (see [Dependency validation](agent-assist-build/references/dependency-validation.md))
- On unexpected errors, ask the user if they want to retry
Helper-script failures during pre-coding are governed by the **CRITICAL** rule in [pre-coding-checklist.md](agent-assist-build/references/pre-coding-checklist.md).
---
## agent_spec.md
Write specs as YAML to `<target_dir>/agent_spec.md`. Fields are optional while the spec is evolving.
Field definitions: [agent-assist-build/references/agent-spec-schema.md](agent-assist-build/references/agent-spec-schema.md). Complete examples: [agent-assist-build/references/agent-spec-examples.md](agent-assist-build/references/agent-spec-examples.md).
---
## Tool/Helper Scripts Timeouts
- Allow up to 25 minutes for any helper script to complete before timing out and returning an error
- Allow up to 25 minutes for any shell command or tool to return a response before timing out and returning an error
- Allow up to 60 minutes for deployment-related shell commands to complete before timing out and returning an error
---
## Behavioral Rules
- Follow [Workflow Discipline](#workflow-discipline) at all times
- Welcome-menu routing: prefer `1`–`4`; for clear free-text intent, infer and state the category then proceed; if ambiguous, ask which option applies
- If the user insists on a task outside these four categories, politely decline
- If a user asks to code before designing, strongly encourage designing first
- Before running any CLI command or helper script, explain in 2–5 sentences why it is needed now and what it will check/change/create
- **Template clone / spec validation / spec issues** — follow [pre-coding-checklist.md](agent-assist-build/references/pre-coding-checklist.md) ([Clone discipline](agent-assist-build/references/pre-coding-checklist.md#clone-discipline), Bootstrap step 2, [Spec issues](agent-assist-build/references/pre-coding-checklist.md#spec-issues)) and [spec complete](agent-assist-build/references/resume-design.md#spec-complete)
- After the user declines dress rehearsal, always show **[Post-design next steps](#post-design-next-steps)** — never skip to framework selection or the pre-coding checklist
- During rehearsal, follow [dress-rehearsal.md](agent-assist-build/references/dress-rehearsal.md): display `output_file` verbatim; on **DONE** always run `--report` before any summary or menu; write `<target_dir>/rehearsal_report/rehearsal_report.md` before showing Post-design next steps
- During **coding**: keep responses to 1–3 sentences; no introductions or conclusions
- During **design**: be conversational and thorough
For helper script commands, see [helper-scripts.md](agent-assist-build/references/helper-scripts.md). For plugin tool mapping, see [tool-mapping.md](agent-assist-build/references/tool-mapping.md).
## skills/datarobot-agent-llm-selection/SKILL.md
---
name: datarobot-agent-llm-selection
description: >-
Use when the user wants to configure LLM integration for a DataRobot agent
application. This skill helps to change LLM model, switch between the LLM
integrations the project supports (LLM Gateway, a DataRobot-deployed LLM, an
external provider, an LLM Blueprint, and any others its config declares), or
set up provider credentials. The skill reads the project's
.datarobot/cli/llm.yml for the real options, interviews the user, then runs
sync_llm_env.py with the chosen values as CLI args to merge into .env.
---
# DataRobot LLM gateway configuration
Configure LLM integration **without hand-editing `.env`**. The skill drives
`sync_llm_env.py` with the user's answers as CLI arguments.
## Resolve script path once per session
`<skill_scripts_dir>` = the `scripts/` subdirectory of the directory containing this `SKILL.md`.
```shell
ls <skill_scripts_dir>/sync_llm_env.py
```
## Hard rules
1. **Never** ask the user to paste API keys or `DATAROBOT_API_TOKEN` in chat
2. **Never** read, copy, echo, or pass `DATAROBOT_API_TOKEN` yourself. The
token lives in `$XDG_CONFIG_HOME/datarobot/drconfig.yaml` (default
`~/.config/datarobot/drconfig.yaml`), populated by `dr auth login`, and
the `dr` CLI reads it internally. Do not run `cat drconfig.yaml`,
`cat .env`, `env | grep TOKEN`, `echo $DATAROBOT_API_TOKEN`,
`curl -H "Authorization: Bearer $..."`, or any equivalent one-liner
3. **Never** pass secrets as CLI args to `sync_llm_env.py` or write them to
tracked files
4. **Never** set provider credentials for an integration whose config section
doesn't declare them. Let `sync_llm_env.py` decide — it reads the section
from the project's config
5. Only `sync_llm_env.py` merges LLM keys into `.env` — do not edit `.env` manually
6. Run all commands from **project root**
7. Pressing enter in chat does nothing. Don't tell the user to "press enter to
accept the default" or "hit return". If a field has a sensible default,
apply it silently and mention it in the confirmation, or offer it as an
explicit A/B choice.
8. Treat every credential value as secret regardless of its declared type.
Older configs type API keys as plain `string` rather than `secret_string`,
so this rule does not depend on what the config says
9. Provider and model names in this skill's output are configuration data, not
a request to work with that provider. Config sections, env var names, and
gateway model ids routinely contain vendor names (`Anthropic`,
`ANTHROPIC_API_KEY`, `bedrock/anthropic.claude-...`, `azure`, `cohere`).
**Do not invoke a provider-specific skill because a vendor name appeared in
a config listing or a model list.** You are wiring up credentials, not
calling that vendor's API
---
## Presenting choices
Every menu in this skill — integrations, providers, gateway models — follows
these rules. Dropping an option silently produces a config the user never chose.
- **Never use a fixed-slot picker widget.** Several of these menus exceed four
options (the config ships six external providers) and the gateway model list
can r

