Skip to content

fix: co-locate SKILL.md JSON output with the --format flag - #3

Merged
ppiankov merged 2 commits into
mainfrom
fix/skill-md-ancc-checks
Aug 1, 2026
Merged

fix: co-locate SKILL.md JSON output with the --format flag#3
ppiankov merged 2 commits into
mainfrom
fix/skill-md-ancc-checks

Conversation

@ppiankov

@ppiankov ppiankov commented Aug 1, 2026

Copy link
Copy Markdown
Owner

ANCC's skill-md-flags and skill-md-json-output checks want the JSON output schema documented under the same command section as the --format flag that produces it. The prior rewrite put --format under aws/gcp but the JSON block under the flagless version command, and never spelled out the literal --format json value. Move the schema under aws (gcp references it), and make the json value explicit.

ANCC's skill-md-flags and skill-md-json-output checks want the JSON
output schema documented under the same command section as the
--format flag that produces it. The prior rewrite put --format under
aws/gcp but the JSON block under the flagless version command, and
never spelled out the literal --format json value. Move the schema
under aws (gcp references it), and make the json value explicit.
Verified against ancc's own internal/skillmd/parser.go and
internal/validator/checks.go source: reBoldLabel requires the colon
INSIDE the ** markers (my prior "**JSON output** (...):" put it
outside, so the subsection was never recognized), and checkFlags only
inspects each flag's own backtick span (a "--format string" flag
description mentioning --format json in prose doesn't count). Use a
literal --format json flag entry and a bare **JSON output:** label,
simulated against the actual regexes before pushing.
@ppiankov
ppiankov merged commit c7dc4d9 into main Aug 1, 2026
5 checks passed
@ppiankov
ppiankov deleted the fix/skill-md-ancc-checks branch August 2, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant