Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Ml Lifecycle

ASecurity

Takes a model to production without fooling anyone: measure a non-learned baseline first, split by time, hunt leakage, compute features once for training and serving, evaluate the worst slice, roll out behind a shadow or canary, monitor input and prediction drift, and pin a rollback to the previous version. Use when shipping, retraining, or debugging a model whose live quality has degraded.

9 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsgodebugging

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add khuynh22/agent-dev-team --skill ml-lifecycle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ml Lifecycle?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Ml Lifecycle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khuynh22-ml-lifecycle/badge)](https://www.skillsdirectory.com/skills/khuynh22-ml-lifecycle)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: ml-lifecycle
description: Takes a model to production without fooling anyone: measure a non-learned baseline first, split by time, hunt leakage, compute features once for training and serving, evaluate the worst slice, roll out behind a shadow or canary, monitor input and prediction drift, and pin a rollback to the previous version. Use when shipping, retraining, or debugging a model whose live quality has degraded.
license: MIT
metadata:
  phase: build
  owners: [ml-engineer]
  version: "0.1.0"
---

# ML Lifecycle

A model in a notebook is a claim. A model in production with a baseline, a monitor, and a
rollback is a system. Offline accuracy is not evidence of online value, and the first
suspiciously good result is usually leakage rather than skill.

Standing reference: `references/data-quality-checklist.md`.

## Process

1. **Measure a non-learned baseline first.** Last observed value, majority class, a
   three-line heuristic. Every subsequent number is a delta against it. If the model is
   within noise of the baseline, the correct deliverable is the baseline.

2. **Split by time when the data has time in it,** and hold out a period the model never
   sees. A random split on temporal data trains on the future and produces a number that
   does not survive next week.

3. **Hunt leakage before celebrating.** Any feature computed after the label exists, or read
   from a table that is updated retroactively, is leakage. Audit each feature by asking what
   its value would have been at prediction time. A first result far above the baseline is an
   alarm, not a win.

4. **Compute features once.** Training and serving read the same code path. Otherwise you
   ship a model that scores differently in production than in the notebook, and the
   investigation costs a week. If the paths must differ, measure the skew as a number.

5. **Evaluate slices, not just the aggregate.** By segment, cohort, volume tier, and on the
   tail. Report the worst slice in the headline, because the worst slice is what generates
   complaints and it is invisible in the average.

6. **Tie the offline metric to a product metric.** State the link explicitly: this ranking
   metric maps to that conversion outcome because of this mechanism. An offline win with no
   stated link is a number, not a reason to ship.

7. **Roll out behind shadow, then canary.** Score live traffic without acting on it, compare
   against the incumbent on the same requests, then take a percentage with an abort
   condition written down in advance.

8. **Monitor inputs and outputs after launch.** Feature distribution drift, prediction
   distribution drift, and the product metric. A degrading model raises no exception; the
   only signal is a monitor somebody built.

9. **Write the rollback before the launch.** Which version, how it is pinned, how long it
   takes, and what triggers it. Retraining is not a rollback: it takes hours and might not
   help.

## Output

```markdown
## Model: <name> v<n>

- **Baseline:** <what> — <metric> = <n>
- **Model:** <metric> = <n> (delta <n>), worst slice <name> = <n> (n=<n>)
- **Split:** temporal, train <range>, holdout <range>
- **Leakage audit:** <features checked, what was removed and why>
- **Train/serve parity:** <shared path | measured skew>
- **Product link:** <offline metric> to <product metric> via <mechanism>
- **Rollout:** shadow <duration>, canary <n>%, abort if <condition>
- **Monitors:** input drift <how>, prediction drift <how>, product metric <how>
- **Rollback:** to v<n-1> via <mechanism>, takes <time>, tested on <date>
```

## Verification

- Baseline and model numbers come from the same holdout; both quoted.
- Every holdout row is later in time than every training row.
- Shadow and production scores were compared on the same requests, and the skew is a number.
- Drift monitors were run against deliberately shifted input and fired.
- The rollback was executed once outside production and timed.

## Red flags

| Thought | Reality |
|---------|---------|
| "0.97 on the first attempt" | Leakage. Find it before telling anyone the number. |
| "The baseline is too trivial to measure" | Then it is cheap, and it is the bar your model has to clear. |
| "Shuffle split is standard" | Not on temporal data. You trained on the future. |
| "Serving recomputes features slightly differently" | That is skew, and it is the most common silent production failure. |
| "Accuracy is 94%" | On which slice? The worst one is the one people complain about. |
| "It is doing fine in production" | Measured how? Models degrade without raising an error. |
| "We can retrain if it drifts" | Retraining is not a rollback. What serves traffic meanwhile? |
| "The offline metric improved" | Linked to which product outcome, by what mechanism? |

Attribution

khuynh22khuynh22
View sourceMore from khuynh22 →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

694821 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →