Repository navigation
Fix the plugin submission entry contract and require screenshots - #3007
Merged
SawyerHood merged 1 commit intoSep 3, 2026
Merged
Conversation
The submit-a-plugin skill described an entry contract that the marketplace rejects. The sample entry carried an engines object, and two paragraphs told the agent to copy and narrow engine ranges, but neither marketplace schema defines engines and both set additionalProperties to false. The skill also never mentioned category, which marketplace CI requires for a changed entry file. It pointed the agent at the frozen v1 schema, which defines neither category nor screenshots. Point the skill at the v2 entry schema, remove engines, document category, and add screenshot and description guidance. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
SawyerHood
deleted the
bb/improve-plugin-submission-guidance-thr_pe3kekzsvh
branch
September 3, 2026 15:50
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.
Human comments
What was wrong
The built-in
submit-a-pluginskill described an entry contract that the marketplace rejects. Two defects blocked every submission it produced.enginesobject, and two paragraphs told the agent to copy engine ranges from the plugin manifest and narrow them. Neither marketplace schema definesengines, and both setadditionalProperties: false, sonpm run checkfails on any entry built from that sample.category.checkRequiredCategoriesin the marketplace'sscripts/marketplace-lib.mjspushes an error, not a warning, for a changed entry file with no category. Every new submission is a changed file, so marketplace CI failed every time. All 122 live entries carry one.The root cause of both is the same wrong pointer: the skill told the agent to read
schema/marketplace.schema.jsonand "treat those files as the contract". That file is the frozen v1 output document, which CI compares against the live registry. Entry files use the v2 fields. v1 defines neithercategorynorscreenshots, so an agent following the skill would conclude both fields were invalid.Separately, the skill said nothing about screenshots, although the store detail page renders them. 5 of the 122 live entries have one.
What changed
Guidance-only change to the skill, plus one test file. No product code.
Contract fixes
SKILL.mdpoints atschema/marketplace-v2.schema.jsonand states why v1 is not the entry contract.marketplace.base.jsonjoins the contract list, since it holds the category IDs and nothing else the skill read did.references/marketplace-entry.mddropsengines, lists the permitted and required fields explicitly, notes that the build writespublishedAt, and adds a "Choose the category" section.references/pull-request.mddrops the now-stale "Entry engine ranges do not exceed manifest ranges" check and gains checks for the category, the schema-rejected-field case, and screenshots.Screenshots
Capture is workflow step 6. The agent uses a browser or computer automation tool the harness supplies, and asks the user for the images when the harness has none — explicitly, it may not skip screenshots because a tool was absent. The reference carries the marketplace CI rules: max six, at least 1200 px wide, at or below 2 MiB, PNG/JPEG/WebP with a matching extension, no orphan files in
screenshots/, local path only. It also tells the agent to look at each image and strip tokens, email addresses, and home directory paths before commit.Description quality
New App Store-style guidance: a hook that must stand alone, then a body of one capability per sentence. This is anchored to real rendering rather than taste — a browse card clamps to
line-clamp-2(packages/shared-ui/src/components/ui/resource/collection.tsx:496), a compact row truncates to one line (resource/row.tsx:271), and the detail page renders it unclamped (apps/app/src/components/tools/PluginDetail.tsx:370). The reference ends with a nine-item quality check to run before the pull request.No wire change.
HOST_DAEMON_PROTOCOL_VERSIONis untouched; nothing here crosses the server/daemon boundary.How you verified
pnpm exec turbo run typecheck --filter=@bb/server— 5 tasks successful.pnpm exec turbo run test --filter=@bb/server --force -- test/skills/submit-a-plugin.test.ts test/skills/injected-skills.test.ts— 20 passed.git checkout origin/main -- .../submit-a-plugin/, the two new tests fail and the four pre-existing tests still pass (2 failed | 4 passed). Restored after.get-bb/marketplaceat43f25ef, not from memory: the v2 entry properties,checkRequiredCategories,validateScreenshotReference(1200 px, 2 MiB, format match, orphan rejection), the category IDs inmarketplace.base.json, and thaticons/README.md,npm run build, andnpm run checkall exist.Not in this change
marketplace-reviewhas the mirror-image gap — no screenshot check and no script besideicon-check.mjs— so nobody on the review side looks for private data in a submitted image.