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.
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
./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
{
"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_timeoutevents) - Aggregate reports (extraction timing events)
- Observation feedback loop (
data/observations.jsonl)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?