forge-bootstrap
Skill1 starsChanged 6 months agoMITView on GitHub
Installs the training stack on a freshly-provisioned EC2 instance — Python venv, Torch with matching CUDA, transformers + peft + datasets + accelerate, and (in the background) llama.cpp so the build is ready by the time TRAIN finishes. Drops a sentinel file so re-runs skip cleanly. 30-minute SSM-command timeout by default.
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Verify manifest.compute_target.instance_id is Online in SSM
≈ “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-bootstrap
When this fires
Phase position: BOOTSTRAP — after forge-provision, before forge-train.
Runs entirely on the EC2 instance via SSM RunCommand.
What it does
- Verify
manifest.compute_target.instance_idisOnlinein SSM - Upload
scripts/bootstrap.shto the instance and execute it - Inside the instance: mount the EBS, create the Python venv, install torch + transformers + peft + datasets + accelerate + bitsandbytes
- In the background, start cloning + building
llama.cppso it's ready when QUANTIZE fires (overlaps with TRAIN to save wall-clock) - Drop
/workspace/.forge-bootstrap-completesentinel - Sync bootstrap logs to S3
- Set
manifest.compute_target.bootstrap_completed = trueand advance toTRAIN
Inputs
$1= forge-idmanifest.compute_target.instance_idscripts/bootstrap.sh(uploaded to the instance)FORGE_BOOTSTRAP_TIMEOUT_SEC(env, default 1800)
Outputs
/workspace/.forge-bootstrap-complete(sentinel on the instance)s3://.../logs/bootstrap.logmanifest.compute_target.bootstrap_completed = truemanifest.state.current_phase = TRAIN
Idempotency
If manifest.compute_target.bootstrap_completed == true, exits 0.
The bootstrap script itself is also idempotent (re-running on a
half-installed instance picks up where it left off).
Failure modes
| Exit | Reason |
| 0 | sentinel exists or already-set |
| 1 | SSM command timeout OR sentinel never created. Errors logged with recoverable=true so forge-resume can re-attempt. llama.cpp clone failure is non-fatal (background). |
| 64 | no forge-id provided |
External resources
- AWS EC2 + SSM (RunCommand)
- AWS S3 (log sync)
- GitHub (llama.cpp clone — background, non-fatal)
Cost class
spends GPU time — instance is already running and billing.
Depends on
forge-provision (instance live + SSM Online)
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- redteamlife/forge★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- slm-forgeSkill
- forge-analyzeSkill
- forge-architectSkill
- forge-auditSkill
- forge-card-validatorSkill
- forge-curateSkill
- forge-estimateSkill
- 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.

