Skip to content
Agentmart
Submit a tool

threshold-calibration

Compute ROC sweep for the quality_score pass threshold.

Skill by mat-lucie

IndexedMIT★ 7
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mat-lucie-threshold-calibration

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Compute ROC sweep for the quality_score pass threshold. Math-only — opens a recommendation queue row; never changes the live threshold.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/threshold-calibration

What's inside

Skill name
threshold-calibration
Description
Compute ROC sweep for the quality_score pass threshold. Math-only — opens a recommendation queue row; never changes the live threshold.
License
MIT
Instructions
46 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# /threshold-calibration

Operator runs this weekly (Sunday cadence recommended, after
`/data-quality-report`). Replaces the 06:30 Sunday cron. Pure Attio
read + numpy/scipy ROC math; zero LLM cost.

Ships in PR-45.5 — until then this skill prints a "not yet shipped"
message and exits.

## Step 0 — Verify Attio MCP scope

Same as `/sales-daily`.

## Step 1 — Run the calibration

```bash
sales threshold-calibration
```

Options:
- `--dry-run` — print the ROC table without opening the recommendation
  queue row.

## Output

The script:
1. Queries LinkedIn Outreach for labeled prospects (stage ∈ {QUALIFIED,
   CALL_BOOKED, NOT_INTERESTED, RESPONDED} AND `response_classification
   ∈ {positive, defensive}` AND `quality_score IS NOT NULL`).
2. Sweeps thresholds 40..80 step 5; computes max-Youden + cost-weighted
   recommendations.
3. Opens a `threshold_recommendation` queue row with the ROC table.

## Abstain semantics

When `n_labeled < 50`, the function returns `{"status": "abstain"}`
and opens a `threshold_recommendation_insufficient_data` row. The
operator sees the abstain explicitly — never silently skipped.

## Operator decision

The script NEVER changes the live threshold in `quality_gate.score_prospect`.
The recommendation queue row is for operator confirmation; a separate
PR is required to flip the threshold in code.

From mat-lucie/outbound-sales-agent, MIT.

Signals

Stars
7
Forks
1
Open issues
0
Last commit (this folder)
Jun 10, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mat-lucie

Cite this page

threshold-calibration skill. Agent Mart. https://agentmart.dev/skills/mat-lucie-threshold-calibration (last updated 2026-10-24)