add-config-field
Original:🇺🇸 English
Translated
Add new field to .agents.yml config schema (updates init.md templates, version, migration)
15installs
Added on
NPX Install
npx skill4agent add majesticlabs-dev/majestic-marketplace add-config-fieldTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Add Config Field
Add a new field to the config schema with proper versioning and migration support.
.agents.ymlFiles Changed
| File | Purpose |
|---|---|
| 4 YAML templates that generate .agents.yml |
| Schema version number |
| Changelog + migration logic |
| Plugin version |
| Marketplace version |
Input
- Field name: e.g.,
auto_commit - Default value: e.g., or multi-line YAML
false - Section: Where in template (Workflow, Quality Gate, etc.)
- Comment: Inline explanation
- Used by: Agent/command that reads this field
Steps
1. Update init.md Templates
File:
plugins/majestic-engineer/commands/workflows/init.mdAdd field to ALL 4 templates (Rails, Python, Node, Generic). Find the appropriate section and add:
yaml
new_field: value # Comment explaining purposeOr for multi-line:
yaml
new_field: # Comment
- item1
- item22. Bump Schema Version
File:
plugins/majestic-engineer/config-schema-versionIncrement: →
1.11.23. Update config-reader.md
File:
plugins/majestic-engineer/agents/config-reader.mdA) Add to Version Changelog table:
markdown
| 1.2 | `new_field` | Description |B) Update migration YAML block (in "Outdated config_version" section):
yaml
new_field: default_value4. Bump Plugin Versions
Files:
- :
plugins/majestic-engineer/.claude-plugin/plugin.json→3.15.03.16.0 - : Update majestic-engineer entry version
.claude-plugin/marketplace.json
5. Update Consumer Docs (if needed)
If a specific agent/command reads this field, update its documentation to mention the config.
Verification
bash
# 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