forge-estimate
Skill1 starsChanged 6 months agoMITView on GitHub
Computes GPU hours, instance type, hourly rate, total cost, and wall-clock projection for the planned training run. Reads manifest.plan + manifest.spec.constraints + config/pricing.json (the ca-central-1 GPU rate snapshot). Output gates the BUDGET_GATE (rolled into PLAN_GATE in v2).
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Look up the recommended instance type for plan.target_params + plan.regime
- Distinctive: line 21
Add storage + transfer assumptions (small for the M2 size class)
- Very specific: line 22
Write manifest.estimate.* with a confidence band + assumptions[]
- Very specific: line 36
If manifest.estimate is already populated, exits 0.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
forge-estimate
When this fires
Phase position: ESTIMATE — after forge-architect, before forge-provision.
The output funds the cost-cap check that forge-provision makes against
spec.constraints.budget_cap_usd.
What it does
- Look up the recommended instance type for
plan.target_params+plan.regime - Estimate GPU-hours using regime-specific heuristics (lora-sft → fewer hours per token than full-sft; qlora-sft → larger model fits but throughput is lower)
- Multiply by the cached hourly rate from
config/pricing.json - Add storage + transfer assumptions (small for the M2 size class)
- Write
manifest.estimate.*with aconfidenceband +assumptions[] - Advance state to
BUDGET_GATE(legacy) — the v2 gate isPLAN_GATE
Inputs
$1= forge-idmanifest.plan(base_model, regime, target_params)manifest.spec.constraints(budget_cap_usd, max_wall_clock_hours)config/pricing.json(ca-central-1 GPU instance rate snapshot)
Outputs
manifest.estimate.{gpu_hours, instance_type, cost_per_hour_usd, total_cost_usd, wall_clock_hours, confidence, assumptions}manifest.state.current_phase = BUDGET_GATE
Idempotency
If manifest.estimate is already populated, exits 0.
Failure modes
| Exit | Reason |
| 0 | estimate written or already-set |
| 1 | config/pricing.json missing or unreadable |
| 64 | no forge-id provided |
External resources
- Local disk only —
config/pricing.jsonlookup
Cost class
free — pure arithmetic.
Depends on
forge-architect(populatedmanifest.plan)forge-shapeis optional but refines the token estimate when run before this; without it the estimate uses a coarse corpus-size proxy.
In this repository29 other files it gives its agents.
- slm-forgeSkill
- forge-analyzeSkill
- forge-architectSkill
- forge-auditSkill
- forge-bootstrapSkill
- forge-card-validatorSkill
- forge-curateSkill
- forge-evalSkill
- forge-ingest-dbSkill
- forge-ingestSkill
- forge-intakeSkill
- forge-monitorSkill
- forge-plan-fitSkill
- forge-planSkill
- forge-preflightSkill
- forge-prepSkill
- forge-provisionSkill
- forge-publishSkill
- forge-quantizeSkill
- forge-registerSkill
- forge-reportSkill
- forge-resumeSkill
- forge-shapeSkill
- forge-smoketestSkill
- forge-sourceSkill
- forge-statusSkill
- forge-synthSkill
- forge-teardownSkill
- forge-trainSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

