Agent skill
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>".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/config-reader
SKILL.md
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 typetoolbox.build_task.design_system_path- get deeply nested field
Execution
Run the config reader script with parsed arguments:
bash scripts/config_reader.sh FIELD DEFAULT
Replace FIELD and DEFAULT with the parsed arguments.
Return Value
Return ONLY the config value (single line):
truerailsgithub
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 |
default_branch |
Main branch name | main |
toolbox.build_task.design_system_path |
Design system location | (none) |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?