跳到正文
cccskills
免费在 GitHub 公开

config-orchestration

Orchestrates project configuration operations — generate, validate, diff, and add-env.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Config Orchestration

Manage project configuration for SDD projects. Each operation delegates to the system CLI.

Input

Invoked by sdd-run.md with:

  • operation — The config operation to perform
  • args — Remaining arguments after the operation

Operations

OperationDescription
generateGenerate merged config file for a target environment
validateValidate config against schemas
diffShow differences between environments
add-envAdd a new environment directory

No Arguments

When invoked without an operation, display usage:

⚠ Missing required operation argument.

USAGE:
  /sdd-run config <operation> [options]

OPERATIONS:
  generate    Generate merged config file for a target environment
  validate    Validate config against schemas
  diff        Show differences between environments
  add-env     Add a new environment directory

EXAMPLES:
  /sdd-run config generate --env production
  /sdd-run config validate
  /sdd-run config diff local production
  /sdd-run config add-env staging

generate

Generate a merged config file for a target environment.

/sdd-run config generate --env <env> [--component <name>] [--output <path>]

Arguments:

  • --env <env> (required): Target environment (e.g., local, staging, production)
  • --component <name> (optional): Extract only this component's config section
  • --output <path> (optional): Write to file instead of stdout

Behavior:

  1. Merges envs/default/config.yaml with envs/{env}/config.yaml
  2. Validates against schemas/config.schema.json before outputting (fails if invalid)
  3. Places schema alongside output (e.g., config.yaml + config.schema.json) for runtime validation
  4. If --component specified, extracts just that section (outputs section contents only, no wrapper key)

Implementation:

<plugin-root>/fullstack-typescript/system/system-run.sh config generate --env <env> [--component <name>] [--output <path>]

validate

Validate config files against schemas.

/sdd-run config validate [--env <env>]

Arguments:

  • --env <env> (optional): Validate only this environment. If omitted, validates all environments.

Behavior:

  1. Reads config YAML files from envs/{env}/
  2. Validates against JSON Schema in schemas/config.schema.json
  3. Reports all schema violations with line numbers

Implementation:

<plugin-root>/fullstack-typescript/system/system-run.sh config validate [--env <env>]

diff

Show differences between two environments.

/sdd-run config diff <env1> <env2>

Arguments:

  • <env1> (required): First environment to compare
  • <env2> (required): Second environment to compare

Behavior:

  1. Generates merged config for both environments
  2. Shows additions, removals, and changes between them
  3. Outputs in a readable format

Implementation:

<plugin-root>/fullstack-typescript/system/system-run.sh config diff <env1> <env2>

add-env

Add a new environment directory.

/sdd-run config add-env <env-name>

Arguments:

  • <env-name> (required): Name of the new environment

Behavior:

  1. Creates envs/{env-name}/ directory
  2. Creates config.yaml with schema reference and empty structure
  3. Config inherits from envs/default/

Implementation:

<plugin-root>/fullstack-typescript/system/system-run.sh config add-env <env-name>

Merge Algorithm

When merging envs/default/ → envs/{env}/:

  • Objects: Recursively merged (both levels' keys preserved)
  • Arrays: Replaced entirely (env array replaces default array)
  • Primitives: Env value replaces default value
  • Null values: Explicitly setting null removes the key

Related

  • config-scaffolding skill - Creates the config component
  • config-standards skill - Standards for configuration management
  • helm-standards skill - How Helm charts consume config
  • docs/config-guide.md - User-facing guide covering Local Development workflows, Production deployment, and SDD_CONFIG_PATH usage

Output

Returns the system CLI output for the requested operation.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Scaffolds Node.js/TypeScript backend components with CMDO architecture, driven by component settings.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

CMDO architecture standards for Node.js/TypeScript backends with strict layer separation.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Intent-to-command mappings for fullstack-typescript tech pack features.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Create change specification and implementation plan with dynamic phase generation. Supports feature, bugfix, refactor, and epic types.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Orchestrates the full change lifecycle — routes actions to phase-specific sub-files.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

查看 LiorCohen 的全部技能

报告此技能的问题