Marketplace

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>".

$ Instalar

git clone https://github.com/majesticlabs-dev/majestic-marketplace /tmp/majestic-marketplace && cp -r /tmp/majestic-marketplace/plugins/majestic-engineer/skills/config-reader ~/.claude/skills/majestic-marketplace

// tip: Run this command in your terminal to install the skill


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 " ". argument-hint: " [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 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

FieldDescriptionTypical Default
auto_previewAuto-open markdown filesfalse
plan.auto_create_taskAuto-create tasks from plansfalse
tech_stackPrimary tech stackgeneric
task_managementTask tracking backendnone
workflowGit workflow stylebranches
default_branchMain branch namemain
toolbox.build_task.design_system_pathDesign system location(none)

Repository

majesticlabs-dev
majesticlabs-dev
Author
majesticlabs-dev/majestic-marketplace/plugins/majestic-engineer/skills/config-reader
13
Stars
0
Forks
Updated4d ago
Added1w ago