Skip to content

Fix the plugin submission entry contract and require screenshots - #3007

Merged
SawyerHood merged 1 commit into
mainfrom
bb/improve-plugin-submission-guidance-thr_pe3kekzsvh
Sep 3, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/improve-plugin-submission-guidance-thr_pe3kekzsvh

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The built-in submit-a-plugin skill described an entry contract that the marketplace rejects. Two defects blocked every submission it produced.

  1. The sample entry carried an engines object, and two paragraphs told the agent to copy engine ranges from the plugin manifest and narrow them. Neither marketplace schema defines engines, and both set additionalProperties: false, so npm run check fails on any entry built from that sample.
  2. The skill never mentioned category. checkRequiredCategories in the marketplace's scripts/marketplace-lib.mjs pushes 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.json and "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 neither category nor screenshots, 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.md points at schema/marketplace-v2.schema.json and states why v1 is not the entry contract. marketplace.base.json joins the contract list, since it holds the category IDs and nothing else the skill read did.
  • references/marketplace-entry.md drops engines, lists the permitted and required fields explicitly, notes that the build writes publishedAt, and adds a "Choose the category" section.
  • references/pull-request.md drops 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_VERSION is 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.
  • Fail-before proof: with 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.
  • Every contract claim was checked against get-bb/marketplace at 43f25ef, not from memory: the v2 entry properties, checkRequiredCategories, validateScreenshotReference (1200 px, 2 MiB, format match, orphan rejection), the category IDs in marketplace.base.json, and that icons/README.md, npm run build, and npm run check all exist.

Not in this change

marketplace-review has the mirror-image gap — no screenshot check and no script beside icon-check.mjs — so nobody on the review side looks for private data in a submitted image.

AGENT GENERATED

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
SawyerHood merged commit fa778fe into main Sep 3, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/improve-plugin-submission-guidance-thr_pe3kekzsvh branch September 3, 2026 15:50
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