CALIBER
Quickstart

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/40 right (8 false positives, 2 false negatives); tightened phrases (3 should-trigger, 14 should-not-trigger) get 40/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.

  1. Get started › Cookbooks, then the top bar workspace selector creates · workspace: lab02
    Confirm 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 in
    Workspace namelab02-<suffix>
    Click Create and select
    You'll see: The card lists skills, trigger tests, packages, calibration; the top bar shows the new workspace as active.
    Screen snapshot
    caliber · Get started › Cookbooks, then the top bar workspace selector
    Cookbooks, then the top bar workspace selector
    Create and select
  2. Agent resources › Skills › Build Skill creates · 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 with claude or anthropic.
    Fill in
    Namesupport-tone-and-citation-<suffix>
    Owneradmin
    CategoryCustomer Support
    Tagssupport, tone, citation, escalation, customer-facing
    Summarythe summary line of the asset file
    Contentthe 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 test
    Click Create Skill
    You'll see: Back on the list, Open the skill: the header shows v1 and the Author stage's version history shows version 1 live.
    Screen snapshot
    caliber · Agent resources › Skills › Build Skill
    SkillsBuild Skill
    Create Skill
  3. Skills › support-tone-and-citation › Render Preview render-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 in
    Variables JSONthe variables object of render-vars.json, then its partial.variables
    Click Render Skill
    You'll see: Rendered Output contains Cite [KB-1042] (duplicate-charge refunds) and Audience: non-technical customer, with no unresolved badge. With only audience: 2 unresolved and {{ policy_context }} stays in the output.
    Screen snapshot
    caliber · Skills › support-tone-and-citation › Render Preview
    SkillsRender Preview
    Render Skill
  4. Skills › support-tone-and-citation › Trigger Tests trigger-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 in
    User messageT01, T07, T27 from trigger-cases.jsonl
    Artifact type / Session goalthe row's values (optional)
    Click Check selection
    You'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 snapshot
    caliber · Skills › support-tone-and-citation › Trigger Tests
    SkillsTrigger Tests
    Check selection
  5. Skills › support-tone-and-citation › Scenario Sets, then Trigger Tests creates · 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 run
    You'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 snapshot
    caliber · Skills › support-tone-and-citation › Scenario Sets, then Trigger Tests
    SkillsScenario Sets, then Trigger Tests
    Run 12 scenarios, then Save as run
  6. Skills › support-tone-and-citation › Details &amp; package trigger-phrases.json ↓
    Tighten the trigger phrases. The detail page's Edit form has a Metadata JSON box; replace the test_triggers block 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 in
    Metadata JSON › test_triggersthe test_triggers object of trigger-phrases.json
    Click Save
    You'll see: Saved. and the skill_metadata panel lists kubernetes among the exclusions.
    Screen snapshot
    caliber · Skills › support-tone-and-citation › Details &amp; package
    SkillsDetails &amp; package
    Save
  7. Skills › support-tone-and-citation › Trigger Tests, then Runs creates · pinned baseline: round 2
    Open 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 baseline
    You'll see: 12 matches expectation, no regression. The latest run is 100% and gets the Baseline marker; viewing the older run shows Net score -75% and 9 regressions.
    Screen snapshot
    caliber · Skills › support-tone-and-citation › Trigger Tests, then Runs
    SkillsTrigger Tests, then Runs
    Set as baseline
  8. Skills › support-tone-and-citation › Runs creates · calibration run: candidate_ready
    Queue 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, then assets/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 &amp; apply
    You'll see: Calibration queued — job RFN-…; the run reaches candidate_ready. Simulated stack: the review shows Simulated evaluation — not evidence, 0 evaluation examples, gate passed, and a diff with Refinement 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 shows rejected with the reason, so calibrate again).
    Screen snapshot
    caliber · Skills › support-tone-and-citation › Runs
    SkillsRuns
    Calibrate, then Review &amp; apply
  9. Skills › support-tone-and-citation › Runs, then Author creates · versions 1, 2, 3
    Apply 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 snapshot
    caliber · Skills › support-tone-and-citation › Runs, then Author
    SkillsRuns, then Author
    Apply to skill, then Roll back (on version 2)
  10. Skill detail page (/skills/&lt;skill_id&gt;) creates · skill package: &lt;name&gt;.zip
    Export the skill as a package, then try to import it back. The package holds SKILL.md and agents/openai.yaml: the instructions, not the tags, category or trigger phrases.
    Fill in
    Conflict strategyReject conflicts, then Rename import
    Renamed skill name<name>-copy
    Click Download ZIP, then Import ZIP
    You'll see: Reject: Import failed: ... already exists; choose rename or merge explicitly. Rename: the copy's detail page, with openai_package but no test_triggers in its metadata; T28 is selected on the copy and not on the original.
    Screen snapshot
    caliber · Skill detail page (/skills/&lt;skill_id&gt;)
    SkillsSkill detail page (/skills/&lt;skill_id&gt;)
    Download ZIP, then Import ZIP
  11. Skills › Build Skill; Runs; Administration
    Provoke 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 in
    Name-support-tone-, then claude-helper-<suffix>
    SummaryUse <b>bold</b> replies
    Administration › Accounts / Project accesscreate 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-case with 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 the 403 message (missing required scope) and no Applied banner.
    Screen snapshot
    caliber · Skills › Build Skill; Runs; Administration
    SkillsBuild Skill; Runs; Administration
    Create Skill; Calibrate; Apply to skill (as the viewer)
  12. Skills › support-tone-and-citation › Details &amp; package creates · skills archived
    Archive every skill the lab created.
    Click Archive
    You'll see: Skill archived. and on the Skills list the card offers Restore.
    Screen snapshot
    caliber · Skills › support-tone-and-citation › Details &amp; package
    SkillsDetails &amp; package
    Archive

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/.

assets/skills/support-tone-and-citation.md
---
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.
assets/dataset/render-vars.json
{
  "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"
      ]
    }
  }
}
assets/dataset/trigger-cases.jsonl
{"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}}
assets/skills/trigger-phrases.json
{
  "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 gateTarget
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 rollbackcandidate_ready with simulated: true and n_examples 0; history 3, 2, 1 and version 3 has the text of version 1
Package round tripZIP holds exactly SKILL.md and agents/openai.yaml; same-name re-import 409; decisions match after restoring metadata (gate 1.0)
Failure pathsviewer 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=true only 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 (canned 0.94 vs 0.88, provider: fake); n_examples is 0 because 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 claude or anthropic, are unique across the deployment, and an archived skill keeps its name.
  • Background worker. Calibration stays queued unless CALIBER_BACKGROUND_TASKS_ENABLED=true (set by scripts/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.py and e2e/cookbooks/labs/02-skill-trigger-packaging.spec.ts.

CALIBER : Contextual Adaptive Lifecycle for Intelligent Build, Evaluation, and Refinement — Cookbooks — every recipe is UI-implementable on the shipped platform. Source + assets under docs-site/cookbooks/<nn>-…/. Regenerate with python3 docs-site/cookbooks/training/build.py.