Agent skill

learn-timeout

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.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/learn-timeout

SKILL.md

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)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results