Answer "how long will this take?" from this repository's own history (reference class forecasting): similar merged PRs first, your estimate second. Refuses with under 10 similar cases and logs forecasts so calibration can be checked.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joaquincuevas-skill-1763a112)
---
name: rcf
description: Answer "how long will this take?" from this repository's own history (reference class forecasting): similar merged PRs first, your estimate second. Refuses with under 10 similar cases and logs forecasts so calibration can be checked.
disable-model-invocation: true
argument-hint: [work to estimate]
---
# rcf — the outside view before the inside view
You are estimating how long a piece of work will take. A bundled script builds the history, picks similar past
work and reports its real durations. Your job is to describe the work honestly (which paths, how big) and to
report the outside view **before** any estimate of your own.
Work: $ARGUMENTS
## Tooling
Stdlib-only Python. Use whichever of `python3` / `python` exists:
```bash
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" build .clarent/rcf/history.json --gh OWNER/REPO # or --git . (merge commits)
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" forecast .clarent/rcf/history.json --exclude-author 'app/*' # optional: --path src/orders/ --size 200
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" log .clarent/rcf/history.json --id <branch> --path ... --inside 2
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" score --history .clarent/rcf/history.json
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" backtest .clarent/rcf/history.json --exclude-author 'app/*'
```
## Procedure
1. **Build the history** once (`--gh` for squash-merge repositories, `--git` for merge commits). Exclude bots
(`--exclude-author 'app/*'`, `--exclude-author 'dependabot*'`).
2. **Start from the whole history** (no `--path`): in the eval, similarity by folders and size did no better than
the whole history. Add `--path`, `--label` or `--size` only to check whether this kind of work differs, and say so.
3. **Forecast without `--inside` first** and show the P50/P80/P90. If it refuses (fewer than 10 similar items),
say so; widen the target or use `--any`, and say you did.
4. **Then** ask for (or give) the inside estimate and re-run with `--inside`: the report says where it falls.
5. **Log it** with `log --id` if the user wants calibration later; `score` compares logged forecasts with reality.
6. Run `backtest` once per repository and quote its coverage: it tells you how optimistic this history is.
## Rules
- Never present the inside view first, and never as a replacement for the outside view.
- Durations are calendar time from PR opened to merged (or first commit to merge), not effort.
- In the eval on pytest (evals/RESULTS.md), only 66% of real durations were under P80: say that forecasts from
merged-only history run optimistic.