yaml-config-patch-{{AGENT_NAME_LOWER}}

Patch and synchronize dual config.yaml files for {{AGENT_NAME}} AI agent.

2|7|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill yaml-config-patch-agent-name-lower
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yaml-config-patch-{{AGENT_NAME_LOWER}}
Source: https://github.com/humanerd-drew/opencode-drewgent/tree/main/skills/software-development/yaml-config-patch-drewgent
Command: npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill yaml-config-patch-agent-name-lower

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yaml, mcp_patch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill safely updates {{AGENT_NAME}}'s config.yaml file, managing the dual-config pattern and avoiding common YAML patching pitfalls.

Core Features & Use Cases

  • Dual-Config Management: Handles the dual config.yaml pattern (~/.{{AGENT_NAME_LOWER}}/config.yaml + P5-ego/config/config.yaml) to ensure both configurations are updated correctly.
  • YAML Patching Gotchas: Provides rules and a verification script to prevent issues like partial patching and duplicate keys during mcp_patch operations.
  • Use Case: Ideal for maintaining consistency in config.yaml across different layers of the agent's architecture, ensuring seamless operation and avoiding downtime due to config errors.

Quick Start

Execute the patch for config.yaml with skill("yaml-config-patch-{{AGENT_NAME_LOWER}}").

Frequently Asked Questions about yaml-config-patch-{{AGENT_NAME_LOWER}}

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I patch a dual config.yaml file for an AI agent without causing duplicate keys?

YAML patching fails with mcp_patch due to partial patching or duplicate keys in nested sections. Proper dual-config management applies verification rules to synchronize both personal and P5-ego configurations, preventing these common pitfalls.

What is the dual config.yaml pattern for AI agent configuration?

The dual config.yaml pattern consists of a personal configuration file and a P5-ego configuration file. Synchronizing both ensures the AI agent maintains consistent settings across its architecture layers, preventing service disruption.

How do I synchronize personal and P5-ego config.yaml files?

Synchronizing personal and P5-ego config.yaml files requires applying targeted YAML patches that update both configurations simultaneously. This dual-config approach properly handles nested sections to keep both files consistent and avoid service disruption.

Can I use mcp_patch to update nested sections in a config.yaml file?

Yes, mcp_patch can update nested sections in config.yaml, but it requires careful handling to avoid partial patching. Applying specific verification rules ensures the nested YAML structure remains intact during the dual-config synchronization process.

Why does my config.yaml break after a partial YAML patch?

Config.yaml breaks after a partial YAML patch because mcp_patch operations can create duplicate keys or corrupt nested sections. Proper dual-config management applies verification rules to ensure complete, synchronized updates across both configuration files.

Do I need the yaml dependency to manage AI agent configuration files?

Yes, the yaml dependency is required to parse and apply patches to config.yaml files. It works alongside mcp_patch to safely modify nested sections and maintain configuration integrity for the dual-config pattern.