/launchdarkly:projectsfrom launchdarkly
Guides setting up LaunchDarkly projects in your codebase by assessing your stack, choosing the right approach, and integrating project management that fits your architecture.
Ships in launchdarkly. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You're using a skill that will guide you through setting up LaunchDarkly project management in a codebase. Your job is to explore the codebase to understand the stack and patterns, assess what approach makes sense, choose the right implementation path from the references, execute the setup, and verify it works.
projects:write permission, only if you're building code that creates projects (scripts, IaC, admin tools)When you create or inspect a project yourself, use the LaunchDarkly MCP server tools: create-project and get-projects (with projectKey for one project and its environments). They authenticate via OAuth and need no token.
To get the server-side SDK key the app needs, call get-sdk-key with projectKey and environmentKey. get-environment returns only the client-side ID and mobile key. Do not search environment variables, .env files, or agent/MCP config files for credentials.
The reference guides call the REST API because they build code that runs without the agent.
Projects are LaunchDarkly's top-level organizational containers that hold:
Think of projects as separate applications, services, or teams that need their own isolated set of configurations.
Before implementing anything, understand the existing architecture:
Identify the tech stack:
Check environment management:
Look for patterns:
Understand the use case:
Based on your exploration, determine the right approach:
| Scenario | Recommended Path |
|---|---|
| New project, no LaunchDarkly integration | Quick Setup - Create the project with create-project, then save its SDK keys |
| Existing LaunchDarkly usage | Add to Existing - Create new project or use existing |
| Multiple services/microservices | Multi-Project - Create projects per service |
| Multi-region or multi-tenant | Project Cloning - Clone template project |
| Infrastructure-as-Code (IaC) setup | Automated Setup - Script-based creation |
| Need project management tooling | CLI/Admin Tools - Build project management utilities |
Select the reference guide that matches your stack and use case:
By Language/Stack:
By Use Case:
Follow the chosen reference guide to implement project management. Key considerations:
API Authentication:
Project Naming:
SDK Key Management:
LD_SDK_KEY. The Python and Node.js AI SDKs read that variable and initialize on the first AI call. They don't read LAUNCHDARKLY_SDK_KEY.Error Handling:
After creating the project, verify it works:
Fetch to confirm it exists. Call the get-projects MCP tool and check that the project has its environments. Code without MCP access can call the REST API instead:
curl -X GET "https://app.launchdarkly.com/api/v2/projects/{projectKey}?expand=environments" \
-H "Authorization: {api_token}"
Do not pipe the response straight into a .environments.items[]-style jq filter. The shape of environments varies by expand parameter — sometimes it's {items: [...]}, sometimes a bare array — and a hand-rolled filter will fail with Cannot index array with string "items". Run jq -e . first to inspect the actual shape, or use jq '.environments | if type == "object" then .items else . end' to handle both.
Test SDK integration:
Put the key in .env as LD_SDK_KEY, then initialize the AI SDK from the project directory. Python needs pip install launchdarkly-server-sdk launchdarkly-ai-server python-dotenv:
import asyncio
from dotenv import load_dotenv
from launchdarkly_ai_server import init_client, get_client, shutdown
load_dotenv()
async def main():
await init_client()
print("SDK initialized:", get_client().is_initialized())
# shutdown() flushes pending events before closing the connection.
await shutdown()
asyncio.run(main())
Node.js needs npm install @launchdarkly/ai-node dotenv:
import 'dotenv/config';
import { initClient, shutdown } from '@launchdarkly/ai-node';
// Resolves once connected; throws LDTimeoutError if the key is invalid
await initClient();
console.log('SDK initialized: true');
await shutdown();
A valid key prints SDK initialized: True (Python) or true (Node.js). With an invalid key, Python logs HTTP error 401 (invalid SDK key) and prints False, and Node.js throws LDTimeoutError after 10 seconds. With no key, both raise an error that asks for LD_SDK_KEY.
Report results:
Project keys must follow these rules:
✓ Good examples:
- "support-ai"
- "chat-bot-v2"
- "internal-tools"
✗ Bad examples:
- "Support_AI" # No uppercase or underscores
- "123-project" # Must start with letter
- "my.project" # No dots allowed
Naming Recommendations:
platform-ai → Platform Team Agent
customer-ai → Customer Success Team Agent
internal-ai → Internal Tools Team Agent
mobile-ai → Mobile App configs
web-ai → Web App configs
api-ai → API Service configs
ai-us → US Region
ai-eu → Europe Region
ai-apac → Asia-Pacific Region
| Situation | Action |
|---|---|
| Project already exists | Check if it's the right one; use it or create with different key |
| Need multiple projects | Create separately for each service/region/team |
| Shared configs across services | Use same project, separate by SDK context |
| Token lacks permissions | Request projects:write or use MCP server |
| Project name conflict | Keys must be unique, names can be similar |
After setting up projects:
configs-create skillsdk-install skillconfigs-targeting skillconfigs-create - Create configs in projectssdk-install - Integrate SDK in your applicationconfigs-targeting - Configure config targetingconfigs-variations - Manage config variationsREADME.md (opens in a new tab)references/admin-tooling.md (opens in a new tab)references/env-config.md (opens in a new tab)references/go-setup.md (opens in a new tab)references/iac-automation.md (opens in a new tab)references/multi-language-setup.md (opens in a new tab)references/nodejs-setup.md (opens in a new tab)references/project-cloning.md (opens in a new tab)references/python-setup.md (opens in a new tab)references/quick-start.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub launchdarkly/ai-tooling --plugin launchdarkly56 skills in this plugin
/agent-graphsCreate and manage agent graphs — directed graphs of configs connected by edges with handoff logic. Use when building multi-agent workflows where configs route to each other./aiconfig-agent-graphsDEPRECATED redirect — this skill was renamed to agent-graphs. Do not use this skill; invoke agent-graphs instead. Kept only so old references to aiconfig-agent-graphs still point users to the new name./aiconfig-ai-metricsDEPRECATED redirect — this skill was renamed to built-in-metrics. Do not use this skill; invoke built-in-metrics instead. Kept only so old references to aiconfig-ai-metrics still point users to the new name.Other plugins' skills for the same job