aiconfig-projects by launchdarkly/agent-skills
npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-projects您正在使用一个技能,它将指导您在代码库中设置 LaunchDarkly 项目管理。您的任务是探索代码库以了解技术栈和模式,评估哪种方法合理,从参考资料中选择正确的实现路径,执行设置,并验证其是否正常工作。
选择一项:
projects:write 权限的 LaunchDarkly API 访问令牌在提示用户输入 API 密钥之前,尝试自动检测:
LAUNCHDARKLY_API_KEY、LAUNCHDARKLY_API_TOKEN 或 LD_API_KEY广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
~/.claude/config.jsonmcpServers.launchdarkly.env.LAUNCHDARKLY_API_KEY有关 API 使用模式,请参阅 快速开始。
项目是 LaunchDarkly 顶级的组织容器,其中包含:
可以将项目视为需要自己独立配置集的单独应用程序、服务或团队。
在实现任何内容之前,先了解现有架构:
识别技术栈:
检查环境管理:
寻找模式:
理解用例:
根据您的探索,确定正确的方法:
| 场景 | 推荐路径 |
|---|---|
| 新项目,无 LaunchDarkly 集成 | 快速设置 - 创建项目并保存 SDK 密钥 |
| 现有 LaunchDarkly 使用 | 添加到现有项目 - 创建新项目或使用现有项目 |
| 多个服务/微服务 | 多项目 - 为每个服务创建项目 |
| 多区域或多租户 | 项目克隆 - 克隆模板项目 |
| 基础设施即代码 (IaC) 设置 | 自动化设置 - 基于脚本的创建 |
| 需要项目管理工具 | CLI/管理工具 - 构建项目管理实用程序 |
选择与您的技术栈和用例相匹配的参考指南:
按语言/技术栈:
按用例:
按照选定的参考指南来实现项目管理。关键考虑因素:
API 身份验证:
项目命名:
SDK 密钥管理:
错误处理:
创建项目后,验证其是否正常工作:
通过 API 获取以确认其存在:
curl -X GET "https://app.launchdarkly.com/api/v2/projects/{projectKey}?expand=environments" \
-H "Authorization: {api_token}"
确认响应包含项目、环境和 SDK 密钥。
测试 SDK 集成: 运行快速验证以确保 SDK 密钥有效:
from ldclient import set_config, Config
set_config(Config("{sdk_key}"))
# SDK 初始化成功
报告结果:
项目键必须遵循以下规则:
✓ 良好示例:
- "support-ai"
- "chat-bot-v2"
- "internal-tools"
✗ 不良示例:
- "Support_AI" # 不能有大写字母或下划线
- "123-project" # 必须以字母开头
- "my.project" # 不允许使用点
命名建议:
platform-ai → 平台团队 AI
customer-ai → 客户成功团队 AI
internal-ai → 内部工具团队 AI
mobile-ai → 移动应用 AI 配置
web-ai → Web 应用 AI 配置
api-ai → API 服务 AI 配置
ai-us → 美国区域
ai-eu → 欧洲区域
ai-apac → 亚太区域
| 情况 | 操作 |
|---|---|
| 项目已存在 | 检查是否是正确项目;使用它或用不同的键创建 |
| 需要多个项目 | 为每个服务/区域/团队单独创建 |
| 跨服务共享配置 | 使用同一项目,通过 SDK 上下文区分 |
| 令牌缺少权限 | 请求 projects:write 或使用 MCP 服务器 |
| 项目名称冲突 | 键必须是唯一的,名称可以相似 |
设置项目后:
aiconfig-create 技能aiconfig-sdk 技能aiconfig-targeting 技能aiconfig-create - 在项目中创建 AI 配置aiconfig-sdk - 在您的应用程序中集成 SDKaiconfig-targeting - 配置 AI 配置的目标定位aiconfig-variations - 管理配置变体每周安装次数
115
代码仓库
GitHub 星标数
2
首次出现
2026年2月6日
安全审计
安装于
claude-code104
github-copilot53
codex53
opencode52
gemini-cli52
cursor50
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.
Choose one:
projects:write permissionBefore prompting the user for an API key, try to detect it automatically:
LAUNCHDARKLY_API_KEY, LAUNCHDARKLY_API_TOKEN, or LD_API_KEY~/.claude/config.json for mcpServers.launchdarkly.env.LAUNCHDARKLY_API_KEYSee Quick Start for API usage patterns.
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 project and save 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:
Error Handling:
After creating the project, verify it works:
Fetch via API to confirm it exists:
curl -X GET "https://app.launchdarkly.com/api/v2/projects/{projectKey}?expand=environments" \
-H "Authorization: {api_token}"
Confirm the response includes the project, environments, and SDK keys.
Test SDK integration: Run a quick verification to ensure the SDK key works:
from ldclient import set_config, Config
set_config(Config("{sdk_key}"))
# SDK initializes successfully
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 AI
customer-ai → Customer Success Team AI
internal-ai → Internal Tools Team AI
mobile-ai → Mobile App AI Configs
web-ai → Web App AI Configs
api-ai → API Service AI 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:
aiconfig-create skillaiconfig-sdk skillaiconfig-targeting skillaiconfig-create - Create AI Configs in projectsaiconfig-sdk - Integrate SDK in your applicationaiconfig-targeting - Configure AI Config targetingaiconfig-variations - Manage config variationsWeekly Installs
115
Repository
GitHub Stars
2
First Seen
Feb 6, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykFail
Installed on
claude-code104
github-copilot53
codex53
opencode52
gemini-cli52
cursor50
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
133,300 周安装
PowerShell Windows 模式指南:语法规则、常见陷阱与最佳实践
1,100 周安装
Novel Writer 小说创作工作流指南:7步系统化方法,AI辅助写作与质量分析
1,100 周安装
Medusa 电商店铺前端最佳实践:UI/UX、SEO、移动端响应式设计全指南
1,100 周安装
Vibe Coding 指南:用 AI 和自然语言构建软件原型与 MVP 的完整框架
1,200 周安装
Tailwind CSS 实用优先CSS框架 - 快速构建自定义UI界面 | v4.1.18教程
1,100 周安装
PHP 8.x 最佳实践指南:51条规则掌握现代PHP开发、PSR标准与SOLID原则
1,100 周安装