Add config field

From majesticlabs-dev/majestic-marketplace · View interactive version

Add config field is an AI agent skill from the GitHub repository majesticlabs-dev/majestic-marketplace. Add new field to .agents.yml config schema (updates init.md templates, version, migration)

How to use this skill

Skill file

Add Config Field

Add a new field to the .agents.yml config schema with proper versioning and migration support.

Files Changed

| File | Purpose |

|------|---------|

| plugins/majestic-engineer/commands/workflows/init.md | 4 YAML templates that generate .agents.yml |

| plugins/majestic-engineer/config-schema-version | Schema version number |

| plugins/majestic-engineer/agents/config-reader.md | Changelog + migration logic |

| plugins/majestic-engineer/.claude-plugin/plugin.json | Plugin version |

| .claude-plugin/marketplace.json | Marketplace version |

Input

Steps

1. Update init.md Templates

File: plugins/majestic-engineer/commands/workflows/init.md

Add field to ALL 4 templates (Rails, Python, Node, Generic). Find the appropriate section and add:

new_field: value              # Comment explaining purpose

Or for multi-line:

new_field:                    # Comment
  - item1
  - item2

2. Bump Schema Version

File: plugins/majestic-engineer/config-schema-version

Increment: 1.1 → 1.2

3. Update config-reader.md

File: plugins/majestic-engineer/agents/config-reader.md

A) Add to Version Changelog table:

| 1.2 | `new_field` | Description |

B) Update migration YAML block (in "Outdated config_version" section):

new_field: default_value

4. Bump Plugin Versions

Files:

5. Update Consumer Docs (if needed)

If a specific agent/command reads this field, update its documentation to mention the config.

Verification

# Count field in init.md (should be 4 - one per template)
grep -c "new_field" plugins/majestic-engineer/commands/workflows/init.md

# Check schema version
cat plugins/majestic-engineer/config-schema-version

# Check changelog entry
grep "new_field" plugins/majestic-engineer/agents/config-reader.md
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.