ml-pipeline-report
Skill4 starsChanged 6 months agoApache-2.0View on GitHub
Use when checking ML pipeline health, Metaflow flow status, failed runs, or generating an ML pipeline report. Trigger phrases: metaflow status, ML pipeline health, flow runs, metaflow report, are my flows running, ML pipeline check.
In this repository57 other files it gives its agents.
- autopilotSkill
- build-python-librarySkill
- build-temporalSkill
- canon-design-reviewSkill
- canon-pr-reviewSkill
- canon-reviewSkill
- ccr-modelsSkill
- ccr-runSkill
- chartSkill
- ci-health-reportSkill
- code-quality-trendsSkill
- competitive-matrixSkill
- councilSkill
- create-skillSkill
- deep-debug-ensemble-v1Skill
- deep-debugSkill
- deep-designSkill
- deep-ideaSkill
- deep-planSkill
- deep-qa-ensemble-v1Skill
- deep-qaSkill
- deep-researchSkill
- dependency-auditSkill
- deploy-status-reportSkill
- develop-board-gameSkill
- diagramSkill
- docxSkill
- dora-lite-reportSkill
- find-skillSkill
- flaky-test-diagnoserSkill
- gap-finderSkill
- gen-crash-testSkill
- gen-smokeSkill
- goal-managerSkill
- init-github-repoSkill
- loop-until-doneSkill
- magic-fetchSkill
- monitorSkill
- napSkill
- pipeline-health-reportSkill
- platform-friction-detectorSkill
- pptxSkill
- prod-readinessSkill
- prompt-clash-ensembleSkill
- prompt-clashSkill
- retrospectSkill
- slack-digestSkill
- slidesSkill
- specSkill
- sprint-retroSkill
- tableSkill
- team-temporalSkill
- timelineSkill
- update-stop-gateSkill
- user-activity-reportSkill
- vc-gauntletSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 68
Deliver as HTML: Follow the shared HTML delivery pattern in _shared/html-delivery.md.
- Distinctive: line 75
Deterministic math first, LLM narrates only: All classification (severity, flaky vs broken, pass/fail) must be computed deterministically …
- Distinctive: line 76
Pair metrics with counter-metrics: Never report velocity without stability.
- Distinctive: line 81
Check ALL configured flows, not a sample: Every flow in scope gets checked.
- Very specific: line 82
Include run IDs: Every run reference includes the run ID so the reader can debug-run it directly.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ML Pipeline Health Report
Produce an actionable report on Metaflow ML pipeline runs using Metaflow MCP tools and the debug-run skill.
Configuration
See _shared/report-config.md for the standard config resolution pattern.
Config schema (~/.claude/skills/ml-pipeline-report/config.json):
flows: list of Metaflow flow name stringsnamespaces: list of Metaflow namespace strings (default:["production"])lookback_days: number (default: 7)
Required scope: at least one of flows or namespaces.
Arguments
- flows: list of Metaflow flow names to check
- namespaces: Metaflow namespaces to search (default:
["production"]) - lookback_days: how far back to check runs (default: match your cadence — 1 for daily, 7 for weekly)
Workflow
- Discover recent runs. For each configured flow/namespace, query Metaflow for runs within lookback_days. Use the Metaflow MCP tools or invoke the
debug-runskill pattern to inspect runs. - Classify run status. For each run: succeeded, failed, running, or timed out. Record run ID, start time, end time (if complete), and duration.
- Diagnose failures. For every failed run, get the failing step, error message, and stack trace summary. Use
Skill(skill="debug-run", args="<FlowName>/<run_id>")to inspect the run's step-level status and logs. - Check resource usage. For running flows, note duration so far. Flag any run exceeding 2x its typical duration as "long-running" (compare against recent successful run durations if available).
- Generate report. Output markdown:
## ML Pipeline Health Report — {date}
Period: last {lookback_days} days | Flows checked: {N} | Total runs: {N}
### Summary
- Failed: {count} | Running: {count} | Succeeded: {count} | Timed out: {count}
### Failed Runs
(For each: flow name, run ID, failing step, error summary, duration, link/command to inspect)
### Long-Running
(For each: flow name, run ID, duration so far, expected duration)
### Currently Running
(Compact list: flow name, run ID, start time, current step)
### Recently Succeeded
(Compact table: flow name, run ID, duration, completion time)- Deliver as HTML. Follow the shared HTML delivery pattern in
_shared/html-delivery.md. Report name:ml-pipeline. TLDR includes flows checked, failure count, and longest running flow. - Terminate. Report is complete when all sections are populated.
Design Principles
- Team-level only. Aggregate to team level — it is the right granularity for a periodic digest. Individual-level detail (commits per person, PR count per author) is too noisy for a team report.
- Deterministic math first, LLM narrates only. All classification (severity, flaky vs broken, pass/fail) must be computed deterministically from data. The LLM writes prose around the numbers but never assigns severity or makes classification judgments.
- Pair metrics with counter-metrics. Never report velocity without stability. If showing deploy frequency, also show change failure rate. If showing PR throughput, also show rework rate.
Golden Rules
- Always get the failing step for failed runs. "Run X failed" without the step name and error is useless. Drill into step-level status.
- Check ALL configured flows, not a sample. Every flow in scope gets checked.
- Include run IDs. Every run reference includes the run ID so the reader can
debug-runit directly. - Failed runs first. Report sections ordered by severity.
- Duration context matters. A 2-hour run is fine if it usually takes 2 hours. Flag runs that are significantly longer than their historical average.
- "All clear" is still a report. Full structure with run counts and completion times even when everything passed.
Anti-Rationalization Counter-Table
| Excuse | Reality |
| "Run failed but I didn't check which step." | The step name and error message are what the ML engineer needs. Get them. |
| "I checked the main flow, the others are probably fine." | Check ALL configured flows. A failed feature pipeline can block downstream training. |
| "The run is still going, I'll skip it." | Running flows need duration tracking. A stuck run is worse than a failed one — at least failures are visible. |
| "I don't have the typical duration to compare against." | Use recent successful runs from the same lookback period as a baseline. No historical data = note it, don't skip the check. |
Termination Labels
| Label | Meaning |
report_complete | All flows checked, failures have step-level detail and error messages |
report_partial | Some flows checked but errors prevented full coverage |
no_flows_found | No runs found for configured flows — scope may be wrong |
api_error | Metaflow API unreachable or returning errors |
Self-Review Checklist
- All configured flows were checked
- Failed runs have failing step name and error message
- Run IDs present for every run referenced
- Long-running section compares against historical duration
- Failed section appears before succeeded section
- Report has date header and flow list noted
- HTML version uploaded to S3 with commuter link (unless
--no-htmlor upload failed with noted fallback) - Slack/chat delivery uses TLDR + link, not the full report
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

