Cookbook 02 · Foundations
Precision Skills
A support-tone skill measured on 40 trigger cases (30 right, then 40), calibrated, applied, rolled back, packaged and archived.
FoundationsStarter45–75 min
What you build. A narrow skill,
support-tone-and-citation, that gives customer-facing support replies one voice (calm, no over-promising, cited knowledge-base ids, an escalation hint) and must not fire on engineering work. You run a 40-case trigger set against the real, deterministic skill selector, tighten the trigger phrases, pin the baseline, then calibrate, review, Apply and roll back, export and re-import it as a ZIP package, try the failure paths and archive it. Needs only CALIBER_FEATURE_COOKBOOKS=true; calibration is simulated.
Surfaces: Cookbooks Skills Administration Audit Log
What you learn
- Author a skill in Build Skill: the selector reads name, tags, summary and trigger phrases, never the long-form content
- Render Preview: variable substitution, and what stays unresolved (a partial set shows 2 unresolved)
- Run the 40 trigger cases: the six starter phrases get
30/40right (8 false positives, 2 false negatives); tightened phrases (3 should-trigger, 14 should-not-trigger) get40/40 - Pin that run as the baseline, Calibrate, read the review (Simulated evaluation — not evidence,
0 evaluation examples), Apply to skill (v2), then Roll back (v3 with the text of v1) - Download ZIP, then Import ZIP with reject (409), rename or merge: the package holds the instructions, not the tags, category or trigger phrases
- Failure paths: invalid content (400, duplicate name 409), a calibration with no baseline (still works), a viewer's Apply, Calibrate, Roll back and Create (403)
Implementation flow
flowchart TD A["Skills: Build Skill, v1 live"] --> B["Render Preview: full and partial variables"] A --> C["Trigger Tests and Scenario Sets: round 1"] C -->|"starter phrases: 30 of 40"| D["Details and package: tighten trigger phrases"] D --> E["Round 2: 40 of 40"] E --> F["Runs: Set as baseline"] F --> G["Calibrate: simulated candidate"] G --> H["Review and apply: v2"] H --> I["Roll back: v3 has the text of v1"] A --> J["Download ZIP: SKILL.md and openai.yaml"] J --> K["Import ZIP: reject, rename, merge"] I --> L["Archive"]
Step-by-step UI only
Each step shows the exact navigation path, the fields to fill, the button to click, and a snapshot of the CALIBER screen you'll be on.
Get started › Cookbooks, then the top bar workspace selectorcreates · workspace: lab02Confirm the Precision Skills card is Ready (you do not install it; the lab runs on Skills). Then create a workspace for the lab with the + in the top bar, so a viewer can be added later.Fill inWorkspace name lab02-<suffix>Click Create and selectYou'll see: The card listsskills,trigger tests,packages,calibration; the top bar shows the new workspace as active.Screen snapshotcaliber · Get started › Cookbooks, then the top bar workspace selectorCreate and selectAgent resources › Skills › Build Skillcreates · skill: support-tone-and-citation support-tone-and-citation.md ↓Author the skill in the wizard. The one-line summary is read by the selector together with the name, tags and trigger phrases; the content is never read by it. The name box turns spaces and underscores into hyphens; names must be kebab-case and must not start withclaudeoranthropic.Fill inName support-tone-and-citation-<suffix>Owner adminCategory Customer SupportTags support, tone, citation, escalation, customer-facingSummary the summaryline of the asset fileContent the body of the asset file, below its front matter Should NOT trigger (Triggers step) stack trace,signing key,database index,sql migration,latency metrics,unit testClick Create SkillYou'll see: Back on the list, Open the skill: the header showsv1and the Author stage's version history shows version 1 live.Screen snapshotcaliber · Agent resources › Skills › Build SkillCreate SkillSkills › support-tone-and-citation › Render Previewrender-vars.json ↓Render the skill with all three variables, then with only one. Render Preview substitutes{{ vars }}and badges what it could not resolve.Fill inVariables JSON the variablesobject of render-vars.json, then itspartial.variablesClick Render SkillYou'll see: Rendered Output containsCite [KB-1042] (duplicate-charge refunds)andAudience: non-technical customer, with no unresolved badge. With onlyaudience: 2 unresolved and{{ policy_context }}stays in the output.Screen snapshotcaliber · Skills › support-tone-and-citation › Render PreviewRender SkillSkills › support-tone-and-citation › Trigger Teststrigger-cases.jsonl ↓Check one positive, one negative and one near miss. Trigger testing is deterministic (no model): it returns whether the skill is selected, a score and the reason.Fill inUser message T01,T07,T27from trigger-cases.jsonlArtifact type / Session goal the row's values (optional) Click Check selectionYou'll see:T01: selected (auto:...).T07: not selected,excluded:negative_trigger:signing key.T27: selected (auto:summary), a false positive the starter phrases let through.Screen snapshotcaliber · Skills › support-tone-and-citation › Trigger TestsCheck selectionSkills › support-tone-and-citation › Scenario Sets, then Trigger Testscreates · run: round 1 (starter phrases)Add twelve cases as scenarios (T01 T07 T28 T14 T15 T23 T27 T29 T31 T32 T34 T35; untick Expected: skill should be selected for the engineering ones) and run them. The runner sends the message alone.Click Run 12 scenarios, then Save as runYou'll see: 9 regression markers and 3 matches expectation;Saved run SKR-…. Scenarios live in the page and are cleared when you leave it.Screen snapshotcaliber · Skills › support-tone-and-citation › Scenario Sets, then Trigger TestsRun 12 scenarios, then Save as runSkills › support-tone-and-citation › Details & packagetrigger-phrases.json ↓Tighten the trigger phrases. The detail page's Edit form has a Metadata JSON box; replace thetest_triggersblock with the one in the asset file (3 positive, 14 negative phrases) and keep the rest. This is metadata, so the version does not change.Fill inMetadata JSON › test_triggers the test_triggersobject of trigger-phrases.jsonClick SaveYou'll see: Saved. and theskill_metadatapanel listskubernetesamong the exclusions.Screen snapshotcaliber · Skills › support-tone-and-citation › Details & packageSaveSkills › support-tone-and-citation › Trigger Tests, then Runscreates · pinned baseline: round 2Open the skill again, add the same twelve scenarios and run them: all twelve match. Save the run, then on Runs pin it as the baseline and compare the older run against it.Click Set as baselineYou'll see: 12 matches expectation, no regression. The latest run is100%and gets the Baseline marker; viewing the older run showsNet score -75%and9 regressions.Screen snapshotcaliber · Skills › support-tone-and-citation › Trigger Tests, then RunsSet as baselineSkills › support-tone-and-citation › Runscreates · calibration run: candidate_readyQueue a calibration. It runs in the background and ends at a candidate you review. On the default simulated stack it needs nothing else; on a real-provider stack (--real-llm) first create the skill's test set (Test Sets, thenassets/dataset/skill-eval-cases.jsonl, eight rows) and pick it in the Test set box next to Calibrate, with a note on what should change.Click Calibrate, then Review & applyYou'll see:Calibration queued — job RFN-…; the run reachescandidate_ready. Simulated stack: the review shows Simulated evaluation — not evidence,0 evaluation examples, gate passed, and a diff withRefinement added by SkillMetaPrompt. Real provider: no simulated banner,8 evaluation examples, the test set id,gate passed, and a model-written diff (the gate can also reject a run: it then showsrejectedwith the reason, so calibrate again).Screen snapshotcaliber · Skills › support-tone-and-citation › RunsCalibrate, then Review & applySkills › support-tone-and-citation › Runs, then Authorcreates · versions 1, 2, 3Apply the candidate, then undo it from the version history. Rolling back never rewrites history: it restores the earlier text as a new version.Click Apply to skill, then Roll back (on version 2)You'll see:the skill is now version 2; version 2 live. After Roll back and confirm, version 3 is live with the original text.Screen snapshotcaliber · Skills › support-tone-and-citation › Runs, then AuthorApply to skill, then Roll back (on version 2)Skill detail page (/skills/<skill_id>)creates · skill package: <name>.zipExport the skill as a package, then try to import it back. The package holdsSKILL.mdandagents/openai.yaml: the instructions, not the tags, category or trigger phrases.Fill inConflict strategy Reject conflicts, then Rename import Renamed skill name <name>-copyClick Download ZIP, then Import ZIPYou'll see: Reject:Import failed: ... already exists; choose rename or merge explicitly. Rename: the copy's detail page, withopenai_packagebut notest_triggersin its metadata;T28is selected on the copy and not on the original.Screen snapshotcaliber · Skill detail page (/skills/<skill_id>)Download ZIP, then Import ZIPSkills › Build Skill; Runs; AdministrationProvoke the failures: a name that is not kebab-case (the page blocks it), a reserved name and a summary with angle brackets (the server refuses), a calibration on a skill with no baseline (it works the same), and a Viewer who tries to Apply (403).Fill inName -support-tone-, thenclaude-helper-<suffix>Summary Use <b>bold</b> repliesAdministration › Accounts / Project access create a user, add it to the workspace with role Viewer Click Create Skill; Calibrate; Apply to skill (as the viewer)You'll see:Must be kebab-casewith Continue disabled;skill names starting with 'claude' are reserved;summary must not contain XML angle brackets; No saved runs yet and a normal calibration with no baseline; and for the viewer a red alert with the403message (missing required scope) and noAppliedbanner.Screen snapshotcaliber · Skills › Build Skill; Runs; AdministrationCreate Skill; Calibrate; Apply to skill (as the viewer)Skills › support-tone-and-citation › Details & packagecreates · skills archivedArchive every skill the lab created.Click ArchiveYou'll see:Skill archived.and on the Skills list the card offers Restore.Screen snapshotcaliber · Skills › support-tone-and-citation › Details & packageArchive
Assets (copy-paste)
The exact files this cookbook uses — copy each into the matching field. Source: docs-site/cookbooks/02-skill-trigger-packaging-lab/assets/.
---
name: support-tone-and-citation
summary: "Voice and citation rules for customer-facing support replies (billing, refunds, account, how-to); NOT for engineering, code, API, infra, or schema questions."
category: customer_support
tags: [support, tone, citation, escalation, customer-facing]
should_not_trigger: [stack trace, signing key, database index, sql migration, latency metrics, unit test]
render_variables: [user_message, audience, policy_context]
---
You shape how a support reply is written. You do NOT decide the underlying
policy outcome (refund approved/denied, account unlocked, etc.) — that decision
arrives in `{{ policy_context }}`. Your job is to deliver it to the customer in
the right voice, with the right citations and the right escalation hint.
Apply this only to **customer-facing support replies**. If the request is an
engineering, code, API, infrastructure, database, or internal-tooling question,
this skill does not apply — defer to the relevant engineering skill instead.
## Tone rules
- Stay calm and plain-spoken. Acknowledge the customer's situation in one
sentence before getting to the answer; do not gush or over-apologize.
- Write for `{{ audience }}`. A non-technical customer gets no product
internals; a technical contact may get precise field/feature names but still
no internal system names.
- No internal jargon. Never expose internal team names, ticket/queue ids,
service or component names, codenames, or model/provider names.
- No over-promising. Do not commit to dates, amounts, or outcomes that are not
already stated in `{{ policy_context }}`. If something is "under review", say
exactly that — never "this will be fixed" or "you'll get a full refund"
unless `{{ policy_context }}` says so.
- One ask at a time. If you need information from the customer, request a single
clear thing.
## Citation hints
- When you assert a fact, a policy, or an eligibility rule, cite the supporting
knowledge-base article by id (e.g. `[KB-1042]`) inline right after the claim.
- Only cite article ids that appear in `{{ policy_context }}`. Never invent a
KB id, and never cite an id you were not given.
- If `{{ policy_context }}` contains no supporting article for a claim, soften
the claim to what you can support and add: "I'm confirming the exact policy
and will follow up." Do not fabricate a citation to fill the gap.
## Escalation hints
- Escalate (hand to a human/specialist) when `{{ policy_context }}` is empty or
contradictory, when the customer is at financial or security risk, or when the
resolution requires an action this reply cannot itself authorize.
- When escalating, tell the customer plainly that you are routing them to
someone who can help and set a realistic next-step expectation — without
naming the internal team or queue.
## Output
Produce only the customer-facing reply text. No headers, no internal notes, no
JSON. End with a single concrete next step or a clear closing line.
Audience: {{ audience }}
Policy context (decision + any KB article ids to cite):
"""
{{ policy_context }}
"""
Customer message:
"""
{{ user_message }}
"""
Write the reply now.
{
"variables": {
"user_message": "Hi — I was charged twice for my Team plan this month and I'd like one of the charges refunded. This is really frustrating.",
"audience": "non-technical customer",
"policy_context": "Decision: duplicate-charge refund APPROVED for the second charge; refunds post in 5-7 business days. Cite [KB-1042] (duplicate-charge refunds) and [KB-1007] (refund timing). Do not promise a specific calendar date."
},
"expected": {
"unresolved_variables": []
},
"notes": "Paste the `variables` object into Skills -> Render Preview (POST /skills/{id}/test-render {variables:{...}}). All three render_contract variables (user_message, audience, policy_context) are supplied, so the response's `unresolved_variables` must be []. The rendered output should read as a calm reply that cites [KB-1042]/[KB-1007] and avoids a fixed date. The `partial` block supplies only `audience`; Render Preview then reports `policy_context` and `user_message` as unresolved and leaves their `{{ ... }}` placeholders in the output.",
"partial": {
"variables": {
"audience": "non-technical customer"
},
"expected": {
"unresolved_variables": [
"policy_context",
"user_message"
]
}
}
}
{"id": "T01", "tags": ["positive"], "inputs": {"user_message": "How do I get a refund for the duplicate charge on my account?", "artifact_type": "support_reply", "session_goal": "Draft a customer-facing support reply"}, "expectations": {"is_selected": true}}
{"id": "T02", "tags": ["positive"], "inputs": {"user_message": "A customer is upset about a billing delay — draft a calm response that references our policy.", "artifact_type": "support_reply", "session_goal": "Reply to an upset billing customer"}, "expectations": {"is_selected": true}}
{"id": "T03", "tags": ["positive"], "inputs": {"user_message": "Customer can't access their account after a lockout and wants to know what to do next.", "artifact_type": "support_reply", "session_goal": "Help a customer with account lockout"}, "expectations": {"is_selected": true}}
{"id": "T04", "tags": ["positive"], "inputs": {"user_message": "Write a reply explaining why we can't approve the refund, but keep the tone friendly.", "artifact_type": "support_reply", "session_goal": "Decline a refund politely"}, "expectations": {"is_selected": true}}
{"id": "T05", "tags": ["positive"], "inputs": {"user_message": "How do I tell the customer their plan downgrade takes effect next billing cycle?", "artifact_type": "support_reply", "session_goal": "Explain a plan downgrade to a customer"}, "expectations": {"is_selected": true}}
{"id": "T06", "tags": ["positive"], "inputs": {"user_message": "Customer emailed asking where to find their invoice — draft a helpful support response.", "artifact_type": "support_reply", "session_goal": "Answer a customer how-to about invoices"}, "expectations": {"is_selected": true}}
{"id": "T07", "tags": ["negative"], "inputs": {"user_message": "How do I rotate the JWT signing key without invalidating active sessions?", "artifact_type": "code_answer", "session_goal": "Implement secure key rotation"}, "expectations": {"is_selected": false}}
{"id": "T08", "tags": ["negative"], "inputs": {"user_message": "Fix this Python stack trace: KeyError: 'order_id' in handler.py line 42.", "artifact_type": "code_answer", "session_goal": "Debug a backend exception"}, "expectations": {"is_selected": false}}
{"id": "T09", "tags": ["negative"], "inputs": {"user_message": "What's the right database index strategy for our orders table given these query patterns?", "artifact_type": "code_answer", "session_goal": "Design a database index strategy"}, "expectations": {"is_selected": false}}
{"id": "T10", "tags": ["negative"], "inputs": {"user_message": "Generate a SQL migration plan for the schema changes in this PR.", "artifact_type": "code_answer", "session_goal": "Plan a schema migration"}, "expectations": {"is_selected": false}}
{"id": "T11", "tags": ["negative"], "inputs": {"user_message": "Summarize deployment latency metrics for the engineering team.", "artifact_type": "report", "session_goal": "Report infra metrics to engineers"}, "expectations": {"is_selected": false}}
{"id": "T12", "tags": ["negative"], "inputs": {"user_message": "Write a unit test for the refund-eligibility function in billing.py.", "artifact_type": "code_answer", "session_goal": "Add test coverage to the billing module"}, "expectations": {"is_selected": false}}
{"id": "T13", "tags": ["positive"], "inputs": {"user_message": "Draft an apology to a customer whose order arrived damaged and who wants their money back.", "artifact_type": "support_reply", "session_goal": "Apologise and resolve a damaged-order complaint"}, "expectations": {"is_selected": true}}
{"id": "T14", "tags": ["positive"], "inputs": {"user_message": "A client says they were billed again after cancelling their subscription. Write the reply.", "artifact_type": "support_reply", "session_goal": "Reply about a post-cancellation charge"}, "expectations": {"is_selected": true}}
{"id": "T15", "tags": ["positive"], "inputs": {"user_message": "Respond to this angry email: 'You charged me twice and nobody has answered my tickets for a week.'", "artifact_type": "support_reply", "session_goal": "Calm an angry customer who was charged twice"}, "expectations": {"is_selected": true}}
{"id": "T16", "tags": ["positive"], "inputs": {"user_message": "Compose a friendly note telling a customer their password reset link has expired and how to request a new one.", "artifact_type": "support_reply", "session_goal": "Help a customer with an expired reset link"}, "expectations": {"is_selected": true}}
{"id": "T17", "tags": ["positive"], "inputs": {"user_message": "Customer asks whether they can switch from monthly to annual billing mid-cycle. What do we tell them?", "artifact_type": "support_reply", "session_goal": "Answer a billing-plan question"}, "expectations": {"is_selected": true}}
{"id": "T18", "tags": ["positive"], "inputs": {"user_message": "Explain to a customer, in plain language, why their payment was declined and what they can try next.", "artifact_type": "support_reply", "session_goal": "Explain a declined payment"}, "expectations": {"is_selected": true}}
{"id": "T19", "tags": ["positive"], "inputs": {"user_message": "Write a short reply to a customer asking when their refund will arrive.", "artifact_type": "support_reply", "session_goal": "Give a refund status update"}, "expectations": {"is_selected": true}}
{"id": "T20", "tags": ["positive"], "inputs": {"user_message": "Help me answer a customer who wants to close their account and export their data.", "artifact_type": "support_reply", "session_goal": "Handle an account-closure request"}, "expectations": {"is_selected": true}}
{"id": "T21", "tags": ["positive"], "inputs": {"user_message": "Write a polite hand-off note for a billing dispute so the customer knows who will contact them and when.", "artifact_type": "support_reply", "session_goal": "Escalate a billing dispute"}, "expectations": {"is_selected": true}}
{"id": "T22", "tags": ["positive"], "inputs": {"user_message": "How should I phrase 'we are still investigating' to a customer without promising a fix date?", "artifact_type": "support_reply", "session_goal": "Set expectations on an open issue"}, "expectations": {"is_selected": true}}
{"id": "T23", "tags": ["edge", "positive"], "inputs": {"user_message": "refund?"}, "expectations": {"is_selected": true}}
{"id": "T24", "tags": ["edge", "positive"], "inputs": {"user_message": "Customer is asking about their invoice. Cite KB-1042 in the reply.", "artifact_type": "support_reply", "session_goal": "Reply with a policy citation"}, "expectations": {"is_selected": true}}
{"id": "T25", "tags": ["edge", "positive"], "inputs": {"user_message": "URGENT: customer can't log in to their account, write the reply now.", "artifact_type": "support_reply", "session_goal": "Reply to a locked-out customer"}, "expectations": {"is_selected": true}}
{"id": "T26", "tags": ["negative"], "inputs": {"user_message": "Refactor the retry logic in the payment webhook handler to use exponential backoff.", "artifact_type": "code_answer", "session_goal": "Harden a webhook handler"}, "expectations": {"is_selected": false}}
{"id": "T27", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Why is the Kubernetes pod for the billing service crash-looping with OOMKilled?", "artifact_type": "code_answer", "session_goal": "Debug a crash-looping service"}, "expectations": {"is_selected": false}}
{"id": "T28", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Add a customer_id foreign key to the invoices table and backfill the existing rows.", "artifact_type": "code_answer", "session_goal": "Change the invoices schema"}, "expectations": {"is_selected": false}}
{"id": "T29", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Write an API endpoint that returns a customer's refund status by order id.", "artifact_type": "code_answer", "session_goal": "Build a refund-status endpoint"}, "expectations": {"is_selected": false}}
{"id": "T30", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Review this pull request that changes the invoice rounding logic.", "artifact_type": "code_answer", "session_goal": "Review a billing code change"}, "expectations": {"is_selected": false}}
{"id": "T31", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Summarize this week's support ticket volume and average resolution time for the operations dashboard.", "artifact_type": "report", "session_goal": "Report support volume to operations"}, "expectations": {"is_selected": false}}
{"id": "T32", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Draft the engineering postmortem for yesterday's billing outage, for internal review.", "artifact_type": "report", "session_goal": "Write an internal postmortem"}, "expectations": {"is_selected": false}}
{"id": "T33", "tags": ["negative"], "inputs": {"user_message": "Translate this README section about the CLI install steps into German.", "artifact_type": "document", "session_goal": "Translate documentation"}, "expectations": {"is_selected": false}}
{"id": "T34", "tags": ["near-miss", "negative"], "inputs": {"user_message": "What is the difference between OAuth and API keys for service-to-service authentication?", "artifact_type": "code_answer", "session_goal": "Choose a service authentication scheme"}, "expectations": {"is_selected": false}}
{"id": "T35", "tags": ["near-miss", "negative"], "inputs": {"user_message": "Generate a Python script that parses CSV exports of customer accounts.", "artifact_type": "code_answer", "session_goal": "Write a data-parsing script"}, "expectations": {"is_selected": false}}
{"id": "T36", "tags": ["negative"], "inputs": {"user_message": "Explain the difference between a left join and an inner join.", "artifact_type": "code_answer", "session_goal": "Teach SQL joins"}, "expectations": {"is_selected": false}}
{"id": "T37", "tags": ["negative"], "inputs": {"user_message": "Rewrite this function to use async/await instead of callbacks.", "artifact_type": "code_answer", "session_goal": "Modernise JavaScript"}, "expectations": {"is_selected": false}}
{"id": "T38", "tags": ["negative"], "inputs": {"user_message": "Help me choose a colour palette for our marketing landing page.", "artifact_type": "design", "session_goal": "Pick a palette"}, "expectations": {"is_selected": false}}
{"id": "T39", "tags": ["negative"], "inputs": {"user_message": "Draft a blog post announcing our new pricing tiers.", "artifact_type": "marketing_copy", "session_goal": "Write a blog post"}, "expectations": {"is_selected": false}}
{"id": "T40", "tags": ["negative"], "inputs": {"user_message": "What is the capital of Australia?"}, "expectations": {"is_selected": false}}
{
"test_triggers": {
"should_trigger": [
"refund",
"subscription",
"charged me twice"
],
"should_not_trigger": [
"stack trace",
"signing key",
"database index",
"sql migration",
"latency metrics",
"unit test",
"kubernetes",
"foreign key",
"api endpoint",
"pull request",
"ticket volume",
"postmortem",
"oauth",
"python script"
]
},
"notes": "The tightened trigger metadata for support-tone-and-citation. The skill is created with only the six starter exclusions from support-tone-and-citation.md; trigger round 1 then misses 10 of the 40 cases. Replacing skill_metadata.test_triggers with this object (PATCH /skills/{id}, or Skill detail -> Edit -> Metadata JSON) gets round 2 to 40 of 40. should_trigger adds +8 to a match; should_not_trigger forces score 0. A phrase matches as a substring of the message (\"refund\" matches \"refunds\" and \"refund-eligibility\"), or when at least 80% of its words (every word of a one-word phrase) appear in the message, so keep phrases specific."
}
Evaluation & quality gates
| Quality gate | Target |
|---|---|
| Trigger accuracy (round 1, starter phrases) | 30/40 right: false positives T27-T32, T34, T35; false negatives T14, T23 |
| Trigger accuracy (round 2, tightened phrases) | 40/40, above trigger_accuracy_min 0.95; that run is the pinned baseline |
| Apply and rollback | candidate_ready with simulated: true and n_examples 0; history 3, 2, 1 and version 3 has the text of version 1 |
| Package round trip | ZIP holds exactly SKILL.md and agents/openai.yaml; same-name re-import 409; decisions match after restoring metadata (gate 1.0) |
| Failure paths | viewer Apply, Calibrate, Roll back, Create each 403; invalid content 400; every skill the lab created is archived |
Developer notes & gotchas
- Feature flag.
CALIBER_FEATURE_COOKBOOKS=trueonly opens the Cookbooks gallery; Skills work without it. No Aria, integrations or release-candidate flag is needed. - What is simulated. Trigger selection (
test-selection) is deterministic code and real on every stack; there is no LLM judge. Calibration is simulated by default (canned0.94vs0.88,provider: fake);n_examplesis0because a skill has no test set, so the 40 cases score selection only. It proves wiring, not that the candidate is better. - Selector gotchas. One summary word is enough to select; a positive sharing no word with name, tags or summary is not selected (
T14,T23). A matching should-not-trigger phrase ends the score at 0. Fix misses with phrases, never content edits; scores depend on the skill name, so assert decisions, not scores. - Package limits. A package carries instructions only: the copy gets category
custom, no tags, no trigger phrases and a 64-character summary, so its decisions differ (13 cases in the run) until you restore them. A merge import (admin only) overwrites the summary with the shortened one. - Roles and names. Create needs operator; patching metadata and rolling back need admin. Names are kebab-case, must not start with
claudeoranthropic, are unique across the deployment, and an archived skill keeps its name. - Background worker. Calibration stays
queuedunlessCALIBER_BACKGROUND_TASKS_ENABLED=true(set byscripts/cookbook-env.sh). Scenario Sets live in the page and clear on leaving it. - Not covered. The Bind stage, a calibration that improves the skill, project roles other than Viewer, and Aria choosing the skill. Run it with
scripts/cookbook-env.sh up lab02 --flags cookbooks,sdk/caliber-sdk/examples/cookbooks/cookbook_02_precision_skills.pyande2e/cookbooks/labs/02-skill-trigger-packaging.spec.ts.