backlog-forecast
Skill3 starsChanged 19 days agoMITView on GitHub
Forecasts what the backlog can deliver from what it delivered before: what fits in the next cycle (a prudent and a likely set), a cycle-by-cycle plan with dates, how long a given set of features takes, and how many cycles and what date it takes to finish the known backlog, each as a range (typical, prudent, very prudent) learnt from the weekly pace of the last weeks. That pace already contains the limits of the Claude subscription, the time spent on bugs and the interruptions, so none of them is typed in. Read-only. TRIGGER when asked what could be built next or in the next cycle, when the pending backlog could be done, how many cycles or weeks are left, for a delivery date or a roadmap, or how long some features would take. For what was already delivered use backlog-report instead.
- Commits and pushes
In this repository17 other files it gives its agents.
- backlog-cycleSkill
- backlog-importSkill
- backlog-reportSkill
- bug-fixSkill
- bug-reportSkill
- bugs-archiveSkill
- bugs-nextSkill
- bugs-statusSkill
- bugs-triageSkill
- decision-recordSkill
- feature-developmentSkill
- feature-planSkill
- features-archiveSkill
- features-nextSkill
- features-statusSkill
- features-triageSkill
- gitflowSkill
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 58
Offer, do not decide: If the user wants to act on the next cycle, point to features-next (which feature to start) and …
- Distinctive: line 64
Read-only: never edit a backlog file or save the forecast.
- Distinctive: line 65
Always run the script against the current files.
- Distinctive: line 66
Never present the output as a promise.
- Very specific: line 67
If features-planned.md is missing or has no table, report that and stop.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Forecast what the backlog can still deliver and by when, from <backlog>/features-planned.md and the history of <backlog>/features-implemented.md. Read-only: it prints a forecast and never edits a file.
<backlog> is docs/backlog unless .backlog-kit.toml sets [paths] backlog_dir.
Input: Optionally what the user wants to know and how to look at it. Map their words to the script's options: "in one-week cycles" is --cycle-weeks 1; "how long would #19 and #22 take" is --features 19,22; "the pace since I changed plan" is --since YYYY-MM-DD; "assume 15 points a week" is --capacity 15. With nothing given, use the defaults: cycles of the length in .backlog-kit.toml ([cycles] weeks, 2 by default), the last 12 complete weeks as history, a plan of six cycles.
Script
scripts/forecast.py does the counting and the simulation. Run it from this skill's base directory and show its output as it is, instead of working the numbers out by hand:
python3 scripts/forecast.py <repo-root> [--weeks N | --since YYYY-MM-DD] [--cycle-weeks N] [--cycles N] [--capacity POINTS_PER_WEEK] [--features 19,22] [--json]It learns the pace from the points and the features delivered in each complete week of the history window, resamples those weeks at random 20,000 times with a fixed seed (the same data gives the same output) and reads the answer off the runs:
- Typical (P50): half of the runs finish by then.
- Prudent (P85): 85 of 100 runs finish by then. For a cycle, the prudent capacity is what 85 of 100 cycles reached.
- Very prudent (P95): used only for the finishing date of the whole backlog.
It prints the history, the pace of one cycle, the next cycle (a prudent and a likely set of features), the set you asked about, a cycle-by-cycle table with the date each group of features is reached (typical and prudent), the finish of the known backlog by points and by number of features, a Read this first list of warnings and a What this does not say list.
The order of the work is the one features-next recommends, with a feature placed after the pending prerequisite it is blocked on.
The history and the dates behind it come from the same code as backlog-report, including the date of the archived SDD change.
When the project keeps cycle files (see backlog-cycle), the output also says what the closed cycles show: how often the forecast capacity was reached, the share of the commitment that was delivered, and which sizes slip. From 4 closed cycles that delivered less than they committed, the next-cycle sets are scaled by that share (--no-calibration shows them unscaled); say so when it applies. To record a cycle, point to backlog-cycle.
How the subscription enters: the kit cannot read the limit of the user's plan and does not need to. The weekly pace already holds it, together with the time spent on bugs, the interruptions and how fast Claude worked. The price is that the forecast assumes the next weeks look like the window. If the plan, its limits or the way of working changed, start the window after the change with --since.
Reading the result
- Give ranges, never a single date. Say what the columns mean in plain words ("in half of the simulated runs it is done by 20 November; in 85 of 100 by 27 November") and say which history window the pace comes from.
- Start with "Read this first" when it has anything. Each note names a reason to doubt the numbers: little history, a recent pause, many weeks with nothing delivered, a very wide range, points and features disagreeing, features without points, dates that are not reliable. Say which apply before quoting a date. A
no_historywarning means there is nothing to forecast from: do not invent a pace; ask for a window with deliveries (--since) or a pace by hand (--capacity). - Points are ordinal. A sum of points is a rough size; that is why the finish is also given by number of features. When the two differ a lot, say the remaining work is bigger or smaller than what was delivered.
- Bugs are not forecast apart. Their cost is already in the pace. If the user expects a burst of bugs, or fewer, suggest a pace by hand (
--capacity) instead of adjusting the dates yourself. - Only the known backlog. Features planned later are not in it, so the finishing date is a date for what is written down today.
- Unsized features are left out. A pending feature without points is not in the cycles or in the points; offer to estimate it with
feature-plan. - Offer, do not decide. If the user wants to act on the next cycle, point to
features-next(which feature to start) andfeatures-batch-development(to run a list); do not start work from here.
Guardrails
- Read-only: never edit a backlog file or save the forecast. If the user wants to keep it, show it in the chat for them to copy.
- Always run the script against the current files; never reuse an earlier forecast.
- Never present the output as a promise. The forecast is a range under the assumption that the pace of the window continues.
- If
features-planned.mdis missing or has no table, report that and stop. - Never run
git commit,git pushor open a PR.
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.

