Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 2.51 KB

File metadata and controls

54 lines (39 loc) · 2.51 KB

LaunchDarkly CLI Agent Skills

AI agent skills for managing LaunchDarkly via ldcli — an alternative to the LaunchDarkly MCP server that works with any agent that can run shell commands.

Quick Start

# Install skills into Claude Code
cd skills/
./install.sh

See INSTALL.md for full setup instructions, customization, and uninstall.

Prerequisites

  • Claude Code installed
  • ldcli does not need to be pre-installed — each skill includes instructions for Claude to detect a missing ldcli and offer to install it automatically

Skills

Skill Description
setup Install, authenticate, and verify ldcli
feature-flags Create, read, update, toggle, and delete feature flags
flag-targeting Manage flag targeting rules, rollouts, and individual targets
projects-and-environments Manage projects and environments
segments Create and manage audience segments
members-and-teams Invite members, manage teams and roles
dev-server Run a local dev server for flag overrides
audit-and-observability Query audit logs, contexts, and metrics

Global Flags

All commands support these flags:

Flag Description
--access-token <token> LaunchDarkly API access token (or set LD_ACCESS_TOKEN)
-o json Output as JSON (recommended for programmatic use)
--base-uri <uri> Custom LaunchDarkly instance URI
-h / --help Help for any command

Tips for Agents

  1. Always use -o json for parseable output. Default plaintext is human-readable but harder to parse.
  2. Discover available resources with ldcli resources to see all resource commands.
  3. Get help on any command: ldcli <command> [subcommand] --help
  4. List before acting: always list/get resources first to confirm keys and IDs before making changes.
  5. Semantic patch for flag updates: use --semantic-patch with ldcli flags update for readable, intent-based changes.

Customization

After installing, edit ~/.claude/launchdarkly-conventions.md to set your org's defaults (project key, environments, naming conventions, safety rules). The skills describe how to use ldcli; the conventions file describes your standards. See INSTALL.md for details.