Skip to content

Harden the validator on the marketplace file and the README pattern link - #304

Open
mukundzha wants to merge 1 commit into
blader:mainfrom
mukundzha:validator-marketplace-readme-link
Open

mukundzha wants to merge 1 commit into
blader:mainfrom
mukundzha:validator-marketplace-readme-link

Conversation

@mukundzha

Copy link
Copy Markdown

What changed

  • scripts/validate-package.py: malformed JSON in .claude-plugin/marketplace.json now exits with a plain-language message instead of a traceback, matching the guards on the two plugin manifests.
  • scripts/validate-package.py: the README pattern link must now point at the current pattern count, so a renumber cannot leave (#the-26-patterns) pointing at nothing. The heading and tables were already checked; the link was not.
  • AGENTS.md: the Patterns rule now names the link among the checks it describes.

Checks

  • python3 scripts/validate-package.py -> Humanizer package v3.1.0 is valid
  • npx --yes skills@1.5.20 add . --list -> Local path validated; found 1 skill
  • npx --yes @anthropic-ai/claude-code@2.1.237 plugin validate . -> Validation passed

Both new failure paths were tested in a scratch copy; each exits 1 with a one-line message.

Notes

No patterns, versions, or rewrite behavior changed. No CHANGELOG note or version bump, matching the last two validator-only changes (8f148ec, 61316ce). Happy to add a 3.1.1 entry if you prefer one.

- Malformed JSON in .claude-plugin/marketplace.json now exits with the same plain-language message as the two plugin manifests, not a traceback.
- The README pattern link must point at the current pattern count, so a renumber cannot leave (#the-26-patterns) pointing at nothing.
- AGENTS.md now names the link among the checks it describes.
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