Skip to content
Back to skills

Config Reader

ASecurity

Read project config from .agents.yml and .agents.local.yml with local overrides. Supports dot notation for nested fields. Invoke with args "<field> <default>".

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsbashrailsgitbackend

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill config-reader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Config Reader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Config Reader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-config-reader/badge)](https://www.skillsdirectory.com/skills/majiayu000-config-reader)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: config-reader
description: Read project config from .agents.yml and .agents.local.yml with local overrides. Supports dot notation for nested fields. Invoke with args "<field> <default>".
argument-hint: "<field> [default]"
---

# 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
bash scripts/config_reader.sh FIELD DEFAULT
```

Replace `FIELD` and `DEFAULT` with the parsed arguments.

## Return Value

Return ONLY the config value (single line):
- `true`
- `rails`
- `github`

## Merge Logic

1. **Local checked first** - `.agents.local.yml` wins if key exists
2. **Fall back to base** - `.agents.yml` if not in local
3. **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) |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.