---
title: "Agent Skills"
description: "Install the ConfigDirector agent skills, so your coding agent adds an SDK to your project, wraps a change in a feature flag, reads and tests configs the way these docs describe, checks config keys in CI, removes a settled flag from your code, moves your flags from LaunchDarkly, creates configs from your description, changes their targeting rules, and creates and changes segments"
canonical_url: "https://docs.configdirector.com/integrations/agents"
---
# Agent Skills

> Install the ConfigDirector agent skills, so your coding agent adds an SDK to your project, wraps a change in a feature flag, reads and tests configs the way these docs describe, checks config keys in CI, removes a settled flag from your code, moves your flags from LaunchDarkly, creates configs from your description, changes their targeting rules, and creates and changes segments

## Introduction

<note>

The agent skills are a pre-release. What a skill does may change before 1.0, and the [changelog](https://github.com/ConfigDirector/agent-skills/blob/main/CHANGELOG.md) lists every change.

</note>

An agent skill is a set of instructions your coding agent loads to carry out one ConfigDirector task, such as adding an SDK to your project or checking config keys in CI. Once the skills are installed, ask your agent to add feature flags to your app, and it picks the matching skill on its own and does the work the way someone who has read these docs would.

The skills use the shared [Agent Skills](https://agentskills.io) format, so they work with any coding agent that reads it. Two of them give your agent rules for writing and testing code that reads configs. They need no API token of their own, and run the [CLI](https://docs.configdirector.com/integrations/cli)'s checks only when your project already has the CLI set up.

## Install

Run this in your project:

```bash
npx skills add ConfigDirector/agent-skills
```

It asks which skills to install, which of your coding agents to install them into, and whether to install them in the current project, where you can commit them for your team, or for every project on your machine. Add `-g` to install for every project without being asked, or `--skill` with a skill's name to install only that one:

```bash
npx skills add ConfigDirector/agent-skills -g
npx skills add ConfigDirector/agent-skills --skill configdirector-setup
```

`npx skills add` works with Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf and [the other agents it supports](https://github.com/vercel-labs/skills#supported-agents). The skills live in the [ConfigDirector/agent-skills](https://github.com/ConfigDirector/agent-skills) repository on GitHub.

## The skills

The skills come in two groups. Developer skills are for working in a repository, such as adding the SDK or wrapping a change in a flag. Operator skills change your ConfigDirector account from what you describe, such as creating a config or changing its targeting rules.

### Developer skills

<table>
<thead>
  <tr>
    <th>
      Skill
    </th>
    
    <th>
      What it does
    </th>
    
    <th>
      API token permissions
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        configdirector-setup
      </code>
    </td>
    
    <td>
      Adds ConfigDirector to your project: picks the SDK for your framework, installs it, reads the SDK key from an environment variable, creates a first feature flag once you confirm it, or reads the flag you name, and evaluates the flag in your code.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
      
      , <code>
        Configs: Create
      </code>
      
      , for the first flag
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-connect
      </code>
    </td>
    
    <td>
      Sets up your agent's access to your ConfigDirector account, through the MCP server or the CLI, for each organization you work for, and checks it.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , plus the permissions you choose for the agent
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-flag-a-change
      </code>
    </td>
    
    <td>
      Wraps a code change in a new temporary feature flag: proposes a key, creates a boolean flag that is off in every environment once you confirm it, and reads it in your code so the change runs where the flag is on and your app behaves as before where it is off, with a test for each branch.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
      
      , <code>
        Configs: Create
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-use-configs-in-code
      </code>
    </td>
    
    <td>
      Gives your agent the rules for code that reads a config: what the in-code default value is for, the type to read each config as, which SDKs receive it, the evaluation context, keys the CLI can check, and one client per app. Applies when your agent writes or reviews such code. When your agent can reach your account, checks that your project has a config before writing a read, and offers to create one it lacks.
    </td>
    
    <td>
      None of its own; with your agent's access, <code>
        Projects: Read
      </code>
      
       and <code>
        Configs: Read
      </code>
      
       to check a config
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-test-with-flags
      </code>
    </td>
    
    <td>
      Gives your agent the rules for testing code that reads a config: the SDK's test client or the OpenFeature in-memory provider instead of a mock, no real SDK key, a test for each branch of a flag, and test values of the config's type. Applies when your agent writes tests around flagged code.
    </td>
    
    <td>
      None of its own
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-validate-in-ci
      </code>
    </td>
    
    <td>
      Adds <a href="https://docs.configdirector.com/integrations/cli#validate">
        <code>
          configdirector validate
        </code>
      </a>
      
       to your repository's CI, so the build fails when the code reads a config key that does not exist, was renamed, or has the wrong type. On GitHub, it adds the <a href="https://docs.configdirector.com/integrations/cli#github-actions">
        ConfigDirector Code Scan action
      </a>
      
      , which can also upload where each config is read on pushes to your default branch, so each config's <strong>
        Code references
      </strong>
      
       tab shows the code that reads it.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
      
      , plus <code>
        Code references: Update
      </code>
      
       for the upload, for an organization API token used only by CI
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-clean-up-flag
      </code>
    </td>
    
    <td>
      Removes a settled temporary feature flag from your code when you ask, keeping the branch it serves: reads the flag's <a href="https://docs.configdirector.com/monitoring/lifecycle">
        lifecycle state
      </a>
      
      , its recent evaluations and every reference <a href="https://docs.configdirector.com/integrations/cli#scan">
        <code>
          configdirector scan
        </code>
      </a>
      
       finds, edits the code and runs your project's checks, and hands you the diff to review. Asks first only when what it read leaves you a decision, such as live environments that do not serve one value. Stops with the facts when the flag is still in use.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Environments: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-migrate-from-launchdarkly
      </code>
    </td>
    
    <td>
      Moves your flags from LaunchDarkly, following the <a href="https://docs.configdirector.com/migration-guides/launchdarkly">
        migration guide
      </a>
      
      . Recreates a LaunchDarkly project's segments and flags in your project, with the targeting rules of each environment and an <a href="https://docs.configdirector.com/getting-started/experiments">
        experiment
      </a>
      
       for each flag that runs one, from flag data you export in your own terminal, so your agent never handles a LaunchDarkly token: proposes which flags to move, which to hardcode, and which to leave in LaunchDarkly until their running experiment ends, shows each batch of configs next to LaunchDarkly's settings and rules before creating it, and checks the rules with an evaluation. Then switches one application's SDK calls over, its <code>
        track
      </code>
      
       calls included, runs <a href="https://docs.configdirector.com/integrations/cli#validate">
        <code>
          configdirector validate
        </code>
      </a>
      
       and your checks, and removes the LaunchDarkly package once no read remains. Skips every key your project already has, and changes nothing in LaunchDarkly.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Environments: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
      
      , <code>
        Configs: Create
      </code>
      
      , <code>
        Configs: Update targeting rules
      </code>
      
      , <code>
        Segments: Read
      </code>
      
      , <code>
        Segments: Create
      </code>
      
      , plus <code>
        Tags: Read
      </code>
      
       for flags with tags
    </td>
  </tr>
</tbody>
</table>

### Operator skills

<table>
<thead>
  <tr>
    <th>
      Skill
    </th>
    
    <th>
      What it does
    </th>
    
    <th>
      API token permissions
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        configdirector-create-config
      </code>
    </td>
    
    <td>
      Creates a config of any <a href="https://docs.configdirector.com/getting-started/configs#roles">
        role
      </a>
      
       and type from your description, such as a kill switch, a timespan with a range, an enum, or an experiment with variations, the metrics it measures and its hypothesis, with the SDKs that receive it and its tags. Marks the tags and metrics your project does not have yet as new, shows every setting and the default targeting rule value every environment starts with, asks for the ones it cannot work out from your description, and creates the config, with any new tags and metrics, once you confirm, then attaches the metrics, or shows you, through the CLI, the metrics to attach on its <strong>
        Settings
      </strong>
      
       tab. Creates a metric that counts only the events whose details match a filter, such as the checkouts on the Team plan, or sums a field of those details, such as the items bought, when you describe one, and asks which metric you mean when several have the event name you give. Also creates a ratio, a funnel or a retention metric when you describe one, such as revenue per order, getting from the cart to a purchase, or coming back in the second week, and says among the settings you confirm that its definition cannot be changed afterwards, and when a retention metric's first numbers show. Asks for the <a href="https://docs.configdirector.com/getting-started/configs#lifetime">
        lifetime
      </a>
      
       only for a general config, since a feature flag, kill switch or experiment always has the same one. Also updates a feature flag's role to kill switch, which makes it permanent, or a kill switch's to feature flag, after showing what the update does.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
      
      , <code>
        Configs: Create
      </code>
      
      , plus <code>
        Tags: Read
      </code>
      
       to find the tags your project already has, <code>
        Tags: Create
      </code>
      
       to make new ones, <code>
        Metrics: Read
      </code>
      
       to find the metrics your project already has, <code>
        Metrics: Create
      </code>
      
       to make new ones, and <code>
        Configs: Update settings
      </code>
      
       to attach metrics through the MCP server and to update a role
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-roll-out
      </code>
    </td>
    
    <td>
      Changes a config's <a href="https://docs.configdirector.com/getting-started/core-concepts#targeting-rules">
        targeting rules
      </a>
      
       in one environment from your description: turns a flag on or off, rolls a change out to a percentage, targets specific users, contexts with certain attributes, or a segment, sets an experiment split, or changes the value it serves. Shows the environment's current rules next to the resulting rules and changes them once you confirm, and in a live environment asks for an explicit yes. Ships an experiment's variation or stops its run the same way, so the run records how it ended. On request, shows what a context you describe now gets, or how an experiment's run is going: its <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed">
        results
      </a>
      
       on each metric the experiment measures, with each variation's verdict against the control, starting with any guardrail likely worse. It names each metric by its event name, filter and value field, and a ratio, a funnel or a retention metric by its kind first, and says since when the run counted a metric attached while it was going, or that the run did not count one. It reports a ratio with its two totals, a funnel with how many contexts reached each step, and a retention metric with how many contexts have had their days so far, and while a retention metric has no numbers yet, says when the first can appear, with no verdict. On request, or when no variation shows a clear difference yet, also tells you <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#how-long-a-run-needs">
        how much longer the run needs
      </a>
      
      : for a real lift of 2%, 5%, 10%, 20% and 50% on the primary metric, the exposures so far against those needed, and about how many more days that takes at the run's recent pace, taken as the least the run needs, with the advice to run at least one full week. Before you ship a variation, it gives you every guardrail likely worse for it and the primary metric's verdict, and keeps the reason you give for shipping or stopping as the run's note.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Environments: Read
      </code>
      
      , <code>
        Configs: Read
      </code>
      
      , <code>
        Configs: Update targeting rules
      </code>
      
      , plus <code>
        Segments: Read
      </code>
      
       for segments and <code>
        Contexts: Read
      </code>
      
       to evaluate a saved context
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        configdirector-segments
      </code>
    </td>
    
    <td>
      Creates a <a href="https://docs.configdirector.com/getting-started/segments">
        segment
      </a>
      
       or changes one from your description: who is in it, as condition groups, its name or key, and an <a href="https://docs.configdirector.com/getting-started/segments#environment-overrides">
        environment override
      </a>
      
       added, changed or removed. Shows the current and resulting definition side by side with the configs that use the segment in the environments the change reaches, and writes it once you confirm; when one of those environments is live and a config uses the segment there, asks for an explicit yes. Never deletes a segment: it shows what uses it and gives you the command or the dashboard page to delete it yourself.
    </td>
    
    <td>
      <code>
        Projects: Read
      </code>
      
      , <code>
        Environments: Read
      </code>
      
      , <code>
        Segments: Read
      </code>
      
      , plus <code>
        Segments: Create
      </code>
      
       to create a segment and <code>
        Segments: Update
      </code>
      
       to change one
    </td>
  </tr>
</tbody>
</table>

## Use with your other skills

The ConfigDirector skills work alongside the other skills you use. Name several skills in one prompt, and your agent follows each one for its part of the work.

For example, say you implement changes with a skill named `implement`. Name it together with `configdirector-flag-a-change`, and the change your `implement` skill writes will end up behind a new feature flag that is off in every environment. In Claude Code, type a slash before each skill's name:

```text [Claude Code]
Use /implement to add CSV export to the reports page, and /configdirector-flag-a-change to ship it behind a new flag.
```

Other agents call a skill by name in their own way.

## How the skills reach your account

Besides `configdirector-connect`, eight skills work with your ConfigDirector account. `configdirector-setup` and `configdirector-flag-a-change` create a flag, `configdirector-create-config` creates a config and updates a feature flag's role to kill switch or back, `configdirector-roll-out` changes a config's targeting rules, including shipping an experiment's variation and stopping its run, `configdirector-segments` creates and changes segments, `configdirector-migrate-from-launchdarkly` recreates your LaunchDarkly segments and flags, and `configdirector-clean-up-flag` reads a flag's lifecycle state and targeting rules, through the [MCP server](https://docs.configdirector.com/integrations/mcp) when your agent has it set up, and through the [CLI](https://docs.configdirector.com/integrations/cli) otherwise. The CLI has no command that updates a role or attaches metrics to an experiment, so through the CLI, `configdirector-create-config` shows you the role update or the metrics to attach on the config's **Settings** tab instead. Three skills also run the CLI on their own: `configdirector-validate-in-ci` checks your code with `validate`, the same command your CI runs, `configdirector-clean-up-flag` finds every reference to a flag with [`scan`](https://docs.configdirector.com/integrations/cli#scan), and `configdirector-migrate-from-launchdarkly` checks the application it switched with `validate`.

Each needs access set up with an API token you generate. Ask your agent to connect ConfigDirector, and `configdirector-connect` sets it up with you:

1. It asks what you want the agent to do, and names the permissions for it.
2. In the ConfigDirector dashboard, you open **API tokens** and generate a user API token with those permissions and an expiration. A user API token belongs to you, so the changes your agent makes carry your name.
3. If your agent supports MCP servers, it adds the MCP server with the configuration the [MCP page](https://docs.configdirector.com/integrations/mcp) gives for your agent, and when you work for more than one organization, with a variable named for the repository's organization, as [More than one organization](https://docs.configdirector.com/integrations/mcp#more-than-one-organization) describes. Otherwise, it has you install the CLI and sign in with [`configdirector login`](https://docs.configdirector.com/integrations/cli#sign-in-on-your-machine) in your own terminal, once for each organization you work for.
4. It checks the access with one read through the MCP server, or two through the CLI, and tells you what the token can do. Through the CLI, it also tells you which organization the token belongs to.

When the CLI is signed in to several organizations and a repository's `configdirector.json` names none, a skill asks which one you mean, adds it to the file with [`configdirector init`](https://docs.configdirector.com/integrations/cli#more-than-one-organization), and tells you the file changed, so it goes in your next commit. When the token belongs to another organization than the one the repository names, such as a `CONFIGDIRECTOR_TOKEN` set for another organization, a skill tells you so and sends you to `configdirector-connect` instead of using it.

A skill that changes your account and finds neither set up stops and asks how to go on: you set up access with `configdirector-connect` and the skill tries again, or you make the change in the dashboard. When your request also asks for code, such as the SDK `configdirector-setup` adds, the skill can go on with the code without the change, and your code reads its in-code default value until the flag or config exists. You can also set up either one by hand from its page.

The token's permissions decide what your agent can do, and its project access decides in which projects: a token with selected projects reaches only those. The MCP server offers only the tools its permissions allow, so a read-only token makes a read-only agent, and the CLI refuses a command that needs a permission the token lacks. A skill that changes your account reads the token's permissions before proposing anything, so a missing one shows up before you confirm a change: the skill names it as the **API tokens** page does, and asks how to go on, as above. Changes your agent makes show in the [audit log](https://docs.configdirector.com/integrations/admin-api#terraform-opentofu-the-cli-and-the-audit-log) with the source **MCP** or **CLI** and the token's name. With a user API token, they also show your name; a change made with an organization API token shows the token, with no member.

## Safety

The skills follow these rules:

- Your agent never sees your API token. The MCP configuration reads the token from an environment variable or your editor's secret prompt, and you sign in to the CLI with `configdirector login` in your own terminal. Never paste a token into the chat, where it would stay in the transcript. If you do, the skill asks you to revoke it and create another.
- Every change to your account is confirmed: a skill shows what it will create or change, and waits for your yes.
- A skill that cannot make a change tells you at once, before any other work, and asks how to go on. It checks the token's permissions first, and every hand-over starts with anything you asked for that was not created or changed.
- Before a skill changes the targeting rules of an environment, it shows you the current and the resulting rules side by side. In a live environment, it also tells you the environment serves real traffic and waits for an explicit yes. That goes for shipping a variation or stopping a run too: the skill asks, since the MCP tools and CLI commands for these ask for no confirmation of their own.
- Before a skill changes a [segment](https://docs.configdirector.com/getting-started/segments), it shows you the current and the resulting definition side by side, which environments the change reaches, and the configs that use the segment there. When one of those environments is live and a config uses the segment there, it also tells you so and waits for an explicit yes.
- `configdirector-clean-up-flag` removes a settled flag from your code as soon as you ask, since you review the diff and nothing reaches production until you deploy. It asks first only when what it read leaves you a decision, such as which branch stays when your live environments do not serve one value.
- Before `configdirector-migrate-from-launchdarkly` switches an application, it shows you every read of a LaunchDarkly flag it found and waits for your yes.
- No skill archives or deletes anything in your account.

## Versions

The skills are released together under one version number, and the [changelog](https://github.com/ConfigDirector/agent-skills/blob/main/CHANGELOG.md) lists what each release changed. To update the skills you installed, run `npx skills update`.


## Sitemap

See the full [sitemap](https://docs.configdirector.com/sitemap.md) for all pages.
