Skip to content
Back to skills

Learn Timeout

ASecurity

General-purpose timeout estimation skill. Trains dual models (duration regression + risk classification) from corpus data and observation feedback. Returns calibrated timeout predictions with confidence intervals for any task type.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
businessbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add grahama1970/agent-skills --skill learn-timeout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Learn Timeout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Learn Timeout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grahama1970-learn-timeout/badge)](https://www.skillsdirectory.com/skills/grahama1970-learn-timeout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: learn-timeout
triggers:
  - learn-timeout
  - timeout prediction
  - estimate timeout
  - predict timeout
  - timeout model
description: General-purpose timeout estimation skill. Trains dual models (duration regression + risk classification) from corpus data and observation feedback. Returns calibrated timeout predictions with confidence intervals for any task type.

provides:
  - learn-timeout
composes:
  - task-monitor
  - agentic-evals
disciplines:
  - ml-training
  - observability-operations
---

# Learn Timeout

General-purpose timeout estimation that replaces fragmented Ridge/Logistic models with a unified GradientBoosting-based predictor.

## Commands

```bash
./run.sh collect                    # Gather training data from all sources
./run.sh train                      # Train both models
./run.sh predict '{"task_type":"pdf_extraction","page_count":400}'
./run.sh observe --task-id X --actual-seconds Y
./run.sh status                     # Model health dashboard
./run.sh benchmark                  # Classifier-lab backbone comparison
```

## Prediction Output

```json
{
  "estimated_seconds": 4200,
  "confidence_interval": [2800, 6300],
  "risk_probability": 0.35,
  "risk_label": "medium",
  "recommended_timeout_seconds": 6300,
  "features_used": ["page_count", "table_pages", "domain"],
  "model_version": "2026-02-13_v1",
  "duration_model_available": true,
  "risk_model_available": true
}
```

## Task Types

| task_type | Key Features |
|-----------|-------------|
| `pdf_extraction` | page_count, tables, figures, file_size, domain |
| `llm_api_call` | prompt_tokens, model, provider, image_count |
| `subprocess` | command_type, input_size, complexity_hints |
| `remediation` | issue_count, issue_severity, skill_name |

## Training Data Sources

- Corpus `profile.json` + `timings.jsonl` (S00 features + actual durations)
- Supervisor run logs (`extract_timeout` events)
- Aggregate reports (extraction timing events)
- Observation feedback loop (`data/observations.jsonl`)

Files in this skill

  • SKILL.md2 KB
  • fixtures/agentic_eval.json491 B
  • lib/__init__.py60 B
  • lib/features.py3.7 KB
  • lib/models.py8.8 KB
  • lib/sources.py12.8 KB
  • lib/storage.py4.9 KB
  • pyproject.toml394 B
  • run.sh2.1 KB
  • sanity.sh1.3 KB
  • scripts/collect.py4.3 KB
  • scripts/observe.py2.2 KB
  • scripts/predict.py2.1 KB
  • scripts/status.py3.5 KB
  • scripts/train.py6 KB

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.