Claude-skill-registry 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
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/config-reader" ~/.claude/skills/majiayu000-claude-skill-registry-config-reader && rm -rf "$T"
manifest:
skills/data/config-reader/SKILL.mdsource content
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:
- get top-level field, default to "false"auto_preview false
- get nested field, default to "false"plan.auto_create_task false
- get top-level field, default to "generic"tech_stack generic
- get nested browser typebrowser.type chrome
- get deeply nested fieldtoolbox.build_task.design_system_path
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 -
wins if key exists.agents.local.yml - Fall back to base -
if not in local.agents.yml - Default - provided default if neither has the key
Common Fields
| Field | Description | Typical Default |
|---|---|---|
| Auto-open markdown files | |
| Auto-create tasks from plans | |
| Primary tech stack | |
| Task tracking backend | |
| Git workflow style | |
| Main branch name | |
| Design system location | (none) |