Token导航 LogoToken导航

Agent Skill · 开发

aiconfig-create(aiconfig 创建)

aiconfig-create 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

aiconfig-create 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 4,903。

总安装 7,342周安装 309GitHub Stars 7下载 2,571核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aiconfig-create(aiconfig 创建)
来源仓库:https://github.com/launchdarkly/agent-skills
仓库路径:skills/aiconfig-create
安装命令:
npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-create
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-create

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

aiconfig-create 引导创建 LaunchDarkly AI Config 配置文件及其变体。适用于将硬编码提示词迁移至可管理配置体系的工程改造场景。生成后需手动开启 targeting 并将 fallthrough 指向目标 variation 才能生效。

首次创建时默认启用 disabled 模式,防止意外流量切换造成影响。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/aiconfig-create

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-cre…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

aiconfig-create 怎么安装?

在终端执行 npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-create。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

aiconfig-create 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

aiconfig-create 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-create 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

aiconfig-create 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

aiconfig-create 用的人多吗?

公开数据是累计安装 7,342 次,近一周安装 309 次,下载 2,571 次,GitHub 7 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

aiconfig-create 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
aiconfig-create

aiconfig 创建 · 本页

7,3427执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Create AI Config

You're using a skill that will guide you through creating an AI Config in LaunchDarkly. Your job is to understand the use case, choose the right mode, create the config and its variations, and verify everything is set up correctly.

⚠️ This skill creates a config — it does not make it servable. A freshly-created AI Config has its fallthrough pointing at an auto-generated disabled variation, not at the variation you just created. The SDK will return ai_config.enabled=False on every evaluation until you flip targeting on and point the fallthrough at your new variation. This is not a bug — it's the default state. You must run /aiconfig-targeting (or the equivalent REST / CLI call shown in Step 5) before verifying against the SDK, or verification will look like the LD-served path is broken when it isn't. The single most common failure mode users hit with this skill is skipping the targeting step and spending time debugging enabled=False in their application code.

Prerequisites

This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.

Primary MCP tool:

  • setup-ai-config -- create a config with its first variation in one step (recommended)

Alternative MCP tools (for more control):

  • create-ai-config -- create just the config shell (key, name, mode)
  • create-ai-config-variation -- add a variation with model, prompts, and parameters
  • get-ai-config -- verify the config was created correctly

Optional MCP tools (enhance workflow):

  • list-ai-configs -- browse existing configs to understand naming conventions
  • create-project -- create a project if one doesn't exist yet

Important: Bias Towards Action

When the user provides enough context (use case, model, mode), proceed through the entire workflow without stopping to ask for details you can infer. Use reasonable defaults for unspecified fields: default for variation key, the use case as the basis for instructions/messages, kebab-case for config keys. Complete all steps (create + verify) in one pass.

Workflow

Step 1: Understand the Use Case

Before creating, identify what you're building:

  • What framework? LangGraph, LangChain, CrewAI, Strands, OpenAI SDK, Anthropic SDK, custom
  • What does the AI need? Just text generation, or tools/function calling?
  • Agent or completion? See the decision matrix below

Step 2: Choose Agent vs Completion Mode

This choice is about input schema and framework compatibility, not execution behavior. Agent mode returns an instructions string; completion mode returns a messages array. Both provide provider abstraction, A/B testing, and metrics tracking.

Your NeedModeWhy
LangGraph, CrewAI, Strands, AutoGen frameworksAgentFrameworks expect goal/instruction input
Persistent instructions across interactionsAgentSingle instructions string, SDK method: agent_config() (Python) / agentConfig() (Node)
Direct OpenAI/Anthropic API callsCompletionMessages array maps directly to provider APIs
Full control of message structureCompletionSystem/user/assistant role-based messages
One-off text generationCompletionStandard chat format
Need online evaluations (LLM-as-judge)CompletionOnline evals are only available in completion mode

Both modes support tools. Not all models support agent mode -- check model compatibility if using agent mode. If unsure, start with completion mode (it's the API default and more flexible).

Step 3: Create the Config (Recommended: One Step)

Use setup-ai-config to create the config and its first variation in one call. This is the recommended approach: it handles creation, variation setup, and verification automatically.

Config fields:

  • key -- unique identifier (lowercase, hyphens)
  • name -- human-readable name
  • mode -- "agent" or "completion"
  • Optional: description, tags

Variation fields:

  • variationKey, variationName -- identifiers for the first variation
  • modelConfigKey -- must be Provider.model-id format (e.g., OpenAI.gpt-4o, Anthropic.claude-sonnet-4-5)
  • modelName -- the model identifier (e.g., gpt-4o). Always pass this in the initial call — leaving it off produces a variation that displays "NO MODEL" and forces a second PATCH to set it. The field is modelName; it is not name or model.name on this endpoint.

For agent mode, provide:

  • instructions -- a string with the agent's system instructions

Example agent-mode call:

{
  "projectKey": "my-project", "key": "support-agent", "name": "Support Agent",
  "mode": "agent", "variationKey": "default", "variationName": "Default",
  "modelConfigKey": "OpenAI.gpt-4o", "modelName": "gpt-4o",
  "instructions": "You are a customer support agent. Help users resolve their issues."
}

For completion mode, provide:

  • messages -- an array of {role, content} objects (system, user, assistant)

Example completion-mode call:

{
  "projectKey": "my-project", "key": "product-descriptions", "name": "Product Descriptions",
  "mode": "completion", "variationKey": "default", "variationName": "Default",
  "modelConfigKey": "Anthropic.claude-sonnet-4-5", "modelName": "claude-sonnet-4-5",
  "messages": [
    {"role": "system", "content": "You are a product copywriter. Write compelling descriptions."},
    {"role": "user", "content": "Write a description for: {{product_name}}"}
  ]
}

Optional:

  • parameters -- model parameters like {temperature: 0.7, max_tokens: 2000} (match the UI's snake_case keys)

The tool returns the full verified config detail with the variation attached.

Step 3 (Alternative): Two-Step Creation

If the user asks for more control or a step-by-step approach, use the individual tools:

  1. create-ai-config -- create the config shell
  2. create-ai-config-variation -- add the variation with model, prompts, and parameters
  3. get-ai-config -- verify the result

Execute all three steps without stopping to ask for details. Infer the variation key (default), name (Default), instructions/messages, and model from the user's request context. If the user asked for GPT-4o agent mode, you have enough to complete the entire flow. Only ask clarifying questions if the mode or model is truly ambiguous.

Step 4: Verify

If you used setup-ai-config, verification is automatic: the response includes the full config with variations. Check:

  1. Config exists with the correct mode
  2. Variation has a model assigned (not "NO MODEL")
  3. Instructions or messages are present
  4. Parameters are set

Use get-ai-config for the verification call — do not drop to raw curl + jq. The MCP tool returns a typed object you can inspect directly. Hand-rolled jq filters against the REST response routinely break: the AI Configs detail endpoint returns the variation list under different keys depending on expand, and a filter like .variations.items[] will fail with Cannot index array with string "items" when the response shape is a bare array. If you must call the REST API, use jq -e. first to inspect the actual shape before drilling in.

Report results:

  • Config created with correct structure
  • Variation has model assigned
  • Flag any missing model or parameters
  • Provide config URL: https://app.launchdarkly.com/projects/{projectKey}/ai-configs/{configKey}

Step 5: Make the variation servable

setup-ai-config and create-ai-config-variation create the variation but do not promote it to fallthrough. The new config will return enabled=False to every consumer until targeting is updated. This is the single most common "I created a config but my SDK still gets the fallback" failure. The workflow is not complete until this step is done.

What to tell the user

Print this checklist verbatim to the user after Step 4, then wait for confirmation. Do not claim the skill succeeded until the user confirms the fallthrough was flipped.

✅ Config and variation are created. 🔴 The SDK will return enabled=False until you flip targeting on. The fallthrough is currently pointing at an auto-generated disabled variation, not at the {variationKey} you just created. Next step — run /aiconfig-targeting with these inputs: - Project key: {projectKey} - Config key: {configKey} - Environment key: the env whose SDK key is in your .env (usually test or production) - Fallthrough variation: {variationKey} (the one this skill just created) Verify after targeting is flipped by: 1. Opening the AI Config in the LD UI, switching to the correct environment, and confirming "Default rule serves: {variationName}" is shown with targeting On. 2. Running a quick test: ai_config = ai_client.{completion|agent}_config(...) and asserting ai_config.enabled is True.
Direct shortcut if the user wants to flip targeting without invoking the sibling skill

aiconfig-targeting is the canonical path — it handles percentage rollouts, targeted rules, and variation-ID lookups. But for the simplest case ("promote the new variation to fallthrough in one environment"), you can run the underlying semantic PATCH yourself once you know the new variation's _id.

Get the variation ID (use get-ai-config MCP, or):

curl -s "https://app.launchdarkly.com/api/v2/projects/$PROJECT/ai-configs/$CONFIG_KEY/targeting?env=$ENV" \
  -H "Authorization: $LD_API_KEY" -H "LD-API-Version: beta" \
  | jq '.variations[] | {key, _id}'

Flip the fallthrough to point at it:

curl -X PATCH "https://app.launchdarkly.com/api/v2/projects/$PROJECT/ai-configs/$CONFIG_KEY/targeting?env=$ENV" \
  -H "Authorization: $LD_API_KEY" \
  -H "Content-Type: application/json; domain-model=launchdarkly.semanticpatch" \
  -H "LD-API-Version: beta" \
  -d '{"instructions":[{"kind":"updateFallthroughVariationOrRollout","variationId":"<id-from-step-above>"}]}'

Or the same thing via the LD CLI if it's installed locally:

ldcli resources ai-configs update-ai-config-targeting \
  --projectKey $PROJECT --configKey $CONFIG_KEY --envKey $ENV \
  --data '{"instructions":[{"kind":"updateFallthroughVariationOrRollout","variationId":"<id>"}]}'

Do not use turnTargetingOn — that semantic-patch instruction does not work for AI Configs. updateFallthroughVariationOrRollout is the only instruction that actually flips the fallthrough.

modelConfigKey Format

Required for models to display in the UI. Format: {Provider}.{model-id}

  • OpenAI.gpt-4o
  • OpenAI.gpt-4o-mini
  • Anthropic.claude-sonnet-4-5
  • Anthropic.claude-3-5-sonnet

The create-ai-config-variation tool validates this format and rejects invalid values.

Edge Cases

SituationAction
Config already existsAsk if user wants to update instead
Variation shows "NO MODEL"Use update-ai-config-variation to set modelConfigKey
Need to attach toolsCreate tools first (aiconfig-tools skill), then update the variation

What NOT to Do

  • Don't create configs without understanding the use case
  • Don't skip the two-step process (config then variation)
  • Don't try to attach tools during initial creation -- update the variation afterward
  • Don't forget modelConfigKey (models won't show in the UI)
  • Don't omit modelName from the initial variation call. It is required at create time; setting it via a follow-up PATCH is a workaround for a bug, not the intended flow. The PATCH field is also modelName, not name.
  • Don't drop to raw curl + jq for verification. Use get-ai-config (MCP) — it returns a typed object and avoids brittle jq filters that break on response-shape variation.
  • Don't consider the workflow complete until the user has been told to run aiconfig-targeting. A created variation that isn't promoted to fallthrough returns enabled=False to every consumer.

Related Skills

  • aiconfig-tools -- Create tools before attaching
  • aiconfig-variations -- Add more variations for experimentation
  • aiconfig-update -- Modify configs based on learnings

平台分布

Codex

34.07%
按下载量换算876

Claude

33.5%
按下载量换算861

Cursor

19.13%
按下载量换算492

Gemini CLI

10.2%
按下载量换算262

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/launchdarkly/agent-skills --skill aiconfig-create 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills