Publish an agent guide for the markdown field type (ADR 0013) - #6
Merged
Merged
Conversation
Enabling this plugin now teaches AI agents how to drive its field. The plugin registers a short markdown fragment via the new `skills()` capability (NimbusCMS ADR 0013), served over MCP as `nimbus://guide/plugin/nimbuscms.markdown`: send/receive raw Markdown source (never HTML), whitespace is preserved, and the optional `max_length` caps the character count. As the official reference plugin, this is also the first real consumer of the skill capability — proving the contract end to end, the same way it proves field types. Bumps the `nimbuscms/nimbus` dev dependency to the core that ships `skills()`, and adapts one test to core's structured `FieldError` validation results (core's `Validator::validate` now returns FieldError objects, not strings). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enabling this plugin now teaches AI agents how to drive its field. The plugin registers a short markdown fragment via the new
skills()capability (NimbusCMS ADR 0013), served over MCP asnimbus://guide/plugin/nimbuscms.markdown.The guide tells an agent the
markdownfield's contract: send/receive raw Markdown source (never HTML), whitespace is preserved verbatim, and the optionalmax_lengthcaps the character count.As the official reference plugin, this is the first real consumer of the skill capability — proving the contract end to end, the same way it proves field types (the core capability landed in nimbus#172 with a test-fixture consumer; this is the real one).
Also
Core's
Validator::validatenow returns structuredFieldErrorobjects, so one test's assertion is updated from a string check to->message. (composer.lock is gitignored, so CI resolvesnimbuscms/nimbus: dev-mainfresh and picks upskills().)Gates
Verified against core
dev-main(9545934): php-cs-fixer clean · PHPStan L(max) clean · phpunit 30/30 green (incl. the new agent-guide test).🤖 Generated with Claude Code