Inline body field schema and realistic example payloads into SKILL.md - #16
Open
dm1tryG wants to merge 1 commit into
Open
Inline body field schema and realistic example payloads into SKILL.md#16dm1tryG wants to merge 1 commit into
dm1tryG wants to merge 1 commit into
Conversation
SKILL.md previously showed a generic --body '{"key": "value"}' for
every endpoint with a request body, regardless of its actual schema.
An agent reading only SKILL.md had to run --help first to discover
the real field names, types, required-ness, and enums.
Reuses cli_generator's _body_schema_help() to list each command's real
body fields under it, and generates a realistic example payload (using
schema defaults/enums where available) instead of the generic
placeholder in the Examples section.
Closes #10
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.
Summary
cli_generator._body_schema_help()instead of a generic--body '{...}'placeholder.{"key": "value"}.Test plan
uv run pytest— 33 passeduv run ruff check .— clean\nescapes leak into the Markdown, and the_example_payload_jsonfallback still works for bodies with no propertiesCloses #10