Skip to content

Commit e98faf9

Browse files
committed
docs(skills): objectui page-builder eval 4 asks for a destructive action block and expects variant 'danger'
The first case in the bundle to exercise an action block's variant: a 'Delete product' button that must read as destructive and confirm first. The ideal answer writes "variant": "danger" with a confirmText on an action:button; "variant": "destructive" is a must_not_contain, spelled as the JSON key-value so an answer naming the Button primitive's word still passes. Paid down first: the three existing prompts and rubrics tightened, every must_contain token and fact kept (1206 -> 914 prose bytes). The CEILINGS row for skills/objectui/evals/page-builder.json moves 560 -> 684, pinned at the measurement (2238 -> 2735 bytes), under the maintainer ruling of 2026-10-27 quoted verbatim in the row's comment. No other row moves. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2dPRZXfgE1A2Vct3FU
1 parent 133ce6d commit e98faf9

2 files changed

Lines changed: 38 additions & 7 deletions

File tree

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,22 @@ export const CEILINGS = new Map([
11751175
['skills/objectui/evals/data-integration.json', 471],
11761176
['skills/objectui/evals/i18n.json', 439],
11771177
['skills/objectui/evals/mobile.json', 452],
1178-
['skills/objectui/evals/page-builder.json', 560],
1178+
// 560 -> 684 (card #27243, the `Skills-docs: follow-up owed` of the
1179+
// `destructive` -> `danger` rename on the action blocks): eval 4, the first
1180+
// case in the bundle to exercise an action block's `variant` — a 'Delete
1181+
// product' button that must read as destructive and confirm first; the ideal
1182+
// answer writes `"variant": "danger"` with a `confirmText` on an
1183+
// `action:button`, and `"variant": "destructive"` (the Button primitive's
1184+
// word, refused on an action block at save) is a `must_not_contain`, spelled
1185+
// as the JSON key-value so a correct answer naming the primitive's word still
1186+
// passes. PAID DOWN FIRST: the three existing prompts and rubrics tightened,
1187+
// every `must_contain` token and fact kept (1206 -> 914 prose bytes, -292).
1188+
// Arithmetic in priced bytes: 2238 -> 2735 (+789 added, -292 cut, +497 net)
1189+
// -> ceil(2735 / 4) = 684; headroom was 2 bytes, 0 tokens, so the ceiling
1190+
// moves +124, pinned AT the measurement. Maintainer ruling 2026-10-27 on the
1191+
// seat's decision card 「skills 修复卡的教学和 eval 都撞 token 天花板,怎么付?」,
1192+
// tap A verbatim and untranslated: 「A:先削重复,余额按实测提高」.
1193+
['skills/objectui/evals/page-builder.json', 684],
11791194
['skills/objectui/evals/plugin-development.json', 492],
11801195
['skills/objectui/evals/project-setup.json', 786],
11811196
['skills/objectui/evals/protocol.json', 761],

‎skills/objectui/evals/page-builder.json‎

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"evals": [
44
{
55
"id": 1,
6-
"prompt": "We have a React + Vite internal app for inventory. Please create a schema-driven list page for products with search, status filter, row actions, and a create-product action. Use ObjectUI patterns and include integration snippets.",
7-
"expected_output": "Produces a complete page schema JSON for list/grid behavior, includes integration wiring steps for SchemaRenderer and component registration, and provides a validation checklist.",
6+
"prompt": "Create a schema-driven list page for products in our React + Vite inventory app: search, status filter, row actions and a create-product action, with ObjectUI integration snippets.",
7+
"expected_output": "A complete list/grid page schema JSON, SchemaRenderer wiring and component registration steps, and a validation checklist.",
88
"files": [],
99
"assertions": {
1010
"must_contain": [
@@ -22,8 +22,8 @@
2222
},
2323
{
2424
"id": 2,
25-
"prompt": "Please convert our existing customer detail page to Schema-Driven UI. It needs three sections — Basic Info, Contacts, and Recent Orders — and the 'Edit Customer' button must be visible only to admins. Stack: React + TypeScript.",
26-
"expected_output": "Provides a structured detail-page schema with expression-based visibility for admin-only actions, keeps sections modular, and explains how to integrate into an app project.",
25+
"prompt": "Convert our customer detail page (React + TypeScript) to schema-driven UI: sections Basic Info, Contacts and Recent Orders, and an 'Edit Customer' button visible only to admins.",
26+
"expected_output": "A detail-page schema with modular sections, expression-based visibility on the admin-only action, and app integration steps.",
2727
"files": [],
2828
"assertions": {
2929
"must_contain": [
@@ -39,8 +39,8 @@
3939
},
4040
{
4141
"id": 3,
42-
"prompt": "Build a console-like analytics dashboard page in an existing ObjectUI project: KPI cards on top, trend chart in the middle, and recent activity list at the bottom. Also include action definitions for refresh and navigate-to-report.",
43-
"expected_output": "Generates dashboard schema with layout composition, plugin-oriented chart usage, action definitions as data, and testing guidance for responsiveness and interaction.",
42+
"prompt": "Build an analytics dashboard page in an existing ObjectUI project: KPI cards on top, a trend chart, a recent-activity list at the bottom, plus refresh and navigate-to-report actions.",
43+
"expected_output": "A dashboard schema with layout composition, a plugin chart, actions as data, and responsiveness and interaction testing guidance.",
4444
"files": [],
4545
"assertions": {
4646
"must_contain": [
@@ -51,6 +51,22 @@
5151
],
5252
"must_not_contain": []
5353
}
54+
},
55+
{
56+
"id": 4,
57+
"prompt": "Add a 'Delete product' button to the product detail page. It must read as destructive and ask the user to confirm before the record is removed.",
58+
"expected_output": "An action:button whose properties carry label, actionType, target, a confirmText question and variant 'danger': the button draws red and asks that question through the destructive confirm button. On an action block the Button primitive's spelling of that arm is refused at save; danger is the action runner's word.",
59+
"files": [],
60+
"assertions": {
61+
"must_contain": [
62+
"action:button",
63+
"\"variant\": \"danger\"",
64+
"confirmText"
65+
],
66+
"must_not_contain": [
67+
"\"variant\": \"destructive\""
68+
]
69+
}
5470
}
5571
]
5672
}

0 commit comments

Comments
 (0)