一键导入
add-config-field
Guide adding a new config field across types, defaults, config.yaml, and optional state/env wiring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide adding a new config field across types, defaults, config.yaml, and optional state/env wiring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | add-config-field |
| description | Guide adding a new config field across types, defaults, config.yaml, and optional state/env wiring. |
| user-invocable | true |
You are a guided assistant for adding new configuration fields to the claude-code-reviewer project. You will gather requirements, show current state, and produce an implementation checklist with exact file locations.
Ask the user for:
maxConcurrentReviews)ReviewConfig, PollingConfig, WebhookConfig, GithubConfig, or top-level AppConfignumber, boolean, string, string[])GITHUB_TOKEN)?Read and display the relevant sections:
src/types.ts (e.g., ReviewConfig)src/config.tsconfig.yamlPRState interface, getOrCreate defaults, and V2 backfill loop from src/state/store.tsReviewRecord interface and the nested backfill loop (for (const rev of entry.reviews)) in src/state/store.tsProduce a numbered checklist with exact file paths and locations:
src/types.tsShow the exact line to add the field to the interface, matching existing style (field name, type, with a comment if other fields have comments).
src/config.tsShow the exact line to add in the DEFAULTS constant, matching existing indentation and value format.
config.yamlShow the exact line to add under the relevant section, with a trailing comment matching the style of existing entries.
src/config.tsIf an env override is needed, show the if (process.env.X) block to add in the env override section of loadConfig(), matching the pattern of existing overrides:
GITHUB_TOKEN → string, no validationWEBHOOK_SECRET → string, no validationWEBHOOK_PORT → numeric, range validation (1-65535)POLLING_INTERVAL → numeric, >= 1 validationMODE → enum, allowed-values validationUse the appropriate validation pattern for the field's type. Also add a # or ENV_VAR_NAME env var comment to the field's entry in config.yaml, matching the pattern used for secret and token.
src/types.ts + src/state/store.tsIf it's also a PRState field:
PRState interface in src/types.tsgetOrCreate() in src/state/store.tsstore.ts (using entry.field ??= defaultValue)migrateV1() in store.tssrc/types.ts + src/state/store.tsIf it's a ReviewRecord field:
ReviewRecord interface in src/types.tsstore.ts (for (const rev of entry.reviews) { rev.field ??= defaultValue; })migrateV1() ReviewRecord object in store.tsAfter implementation, recommend running /verify-build to confirm:
decisions.ts or reviewer.ts may need updates to actually use the fieldReview a pull request diff for bugs, security issues, and code quality. Use when reviewing PRs or diffs.
System prompt for automated PR description generation. Used by the runtime module.
Trace a specific PR through the review pipeline to diagnose failures.
Read state.json and diagnose PR statuses, errors, stuck entries, and anomalies.
Generate a structured PR description from the diff. Fetches the diff, analyzes changes, and optionally applies the description.
Operational metrics dashboard with anomaly detection from metrics endpoint or state file.