config-reader
Read project config from .agents.yml and .agents.local.yml with local overrides. Supports dot notation for nested fields. Invoke with args "<field> <default>".
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Config Reader
Read and merge .agents.yml and .agents.local.yml configuration files. Local config overrides base config.
Requires: yq (brew install yq or snap install yq)
Arguments
$ARGUMENTS format: <field> [default]
Examples:
-
auto_preview false- get top-level field, default to "false" -
plan.auto_create_task false- get nested field, default to "false" -
tech_stack generic- get top-level field, default to "generic" -
browser.type chrome- get nested browser type -
toolbox.build_task.design_system_path- get deeply nested field
Execution
Run the config reader script with parsed arguments:
bash {baseDir}/scripts/config_reader.sh FIELD DEFAULT
Replace FIELD and DEFAULT with the parsed arguments from $ARGUMENTS.
Return Value
Return ONLY the config value (single line):
-
true -
rails -
github
Merge Logic
-
Local checked first -
.agents.local.ymlwins if key exists -
Fall back to base -
.agents.ymlif not in local - Default - provided default if neither has the key
Common Fields
| Field | Description | Typical Default |
|---|---|---|
auto_preview |
Auto-open markdown files | false |
plan.auto_create_task |
Auto-create tasks from plans | false |
tech_stack |
Primary tech stack | generic |
task_management |
Task tracking backend | none |
workflow |
Git workflow style | branches |
toolbox.build_task.design_system_path |
Design system location | (none) |
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-04
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!