docs(templates): consumer bootstrap kit and enforcement map - #6
Conversation
Add copy-paste consumer bootstrap (templates → tools/ → npm run validate/score) and README enforcement table aligned with validate-suite.sh grep rules and score-tests.js rubric (grep spot-check 2026-05-24). Verification: node --check tools/score-tests.js PASS; validate/score require consumer tests/ tree (no in-repo dogfood per ARCH.MD). Co-authored-by: Cursor <cursoragent@cursor.com>
SDK code review (trainer → form-check + review-rigor)Verdict:
Summary
Findings (ranked)F1 · P4 · ARC · conf 78%Dual onboarding paths — Quick Setup vs Consumer bootstrap
Downstream consequence: Future SDK/agents may copy the shorter Quick Setup block and fail before validate gates — undermining the PR's consumer-kit goal. Remediation (human follow-on): Either deprecate Quick Setup in favor of Consumer bootstrap, or fix Quick Setup paths to match bootstrap ( Scorecard (S1–S7): S1 evidence ✓ (read F2 · P4 · COR · conf 72%CI wording — consumer Consumer bootstrap (line 70) says CI should run Downstream consequence: Low — consumers get stricter gates than dogfood, which is desirable. Wording may confuse maintainers comparing CI matrices. Remediation: Optional one-line qualifier: "dogfood runs the validate-suite + score subset; consumer Scorecard: S1 ✓ · S2 ✓ · S3 low · S4 trivial edit · S5 pre-existing pattern · S6 N/A · S7 P4. F3 · P4 · ARC · conf 65%Order of Operations summary vs bootstrap step numbering The new cross-link to Consumer bootstrap helps, but the Order of Operations numbered list still reads as a parallel path without explicitly stating that Downstream consequence: Minimal — Scorecard: S1 ✓ · S2 ✓ · S3 low · S4 optional doc tweak · S5 nit · S6 N/A · S7 P4. Merge recommendationMerge. The enforcement map and consumer bootstrap materially improve SDK consumability and are factually aligned with tooling source. Address F1 (Quick Setup path drift) in a follow-up PR to avoid two conflicting onboarding paths. Posted by |
Summary
Automated SDK weekend worker +
_sdk_verify_and_pr.shverification.SDK code review (trainer → form-check + review-rigor)
Verdict:
APPROVEQueue:
playwrighter-consumer-kitBranch:
feat/consumer-kit-sdk· Repo:weijia-89/playwrighterlocalonly/sdk-reviews/playwrighter-consumer-kit-feat-consumer-kit-sdk.mdcursor-sdk-playground/prompts/reviews/playwrighter-consumer-kit-feat-consumer-kit-sdk.mdSummary
CHANGELOG.md, rootREADME.mdenforcement map, andtemplates/README.mdconsumer bootstrap. No runtime/tool code changes.tools/validate-suite.sh(check_error/check_warning) andtools/score-tests.js(rubric comment +scoreFile()). Penalties, severities, and "—" cells match source (including.toBeTruthy()error-only in validate vs both in score, CSS class-only warnings in validate vs class/id in score, and score-only rows for TC IDs, tags, fixtures import, file size).templates/package.jsonscripts (validate= check-tools → validate-suite → lint → typecheck;score= check-tools → score-tests --threshold=80),templates/scripts/check-tools.js, andfixtures.ts./pages/import layout when pages land undertests/pages/.ARCH.MD#enforcement-pipeline,skill/SKILL.md#mandatory-workflow, and rootREADME.md§ Integration anchors exist. "23 pattern files" matchespatterns/*.mdcount._sdk_playwrighter_verify.sh(syntax-check + northwind-qa dogfood validate/score) is appropriate for a docs change that documents those tools; ran clean (exit 0).Quick Setupblock (unchanged) still copies pages flat intotests/— incompatible withfixtures.ts— while new Consumer bootstrap uses the correcttests/pages/layout.Full ranked findings are in the PR review comment posted by the SDK hook.
Posted by
_sdk_verify_and_pr.shafter_sdk_trainer_codereview.sh. Merge still requires CI green and human review;BLOCK/REQUEST_CHANGES(withSDK_CODEREVIEW_STRICT=1) stop the hook before push.Test plan
bash "/Users/wjia/Projects/cursor-sdk-playground/scripts/_sdk_playwrighter_verify.sh" "/Users/wjia/Projects/playwrighter/.worktrees/worktree-consumer-kit"SDK_CODEREVIEW_SKIP=1)