forge-curate
Skill1 starsChanged 6 months agoMITView on GitHub
Filters the raw corpus by length and dedups, normalizes to the unified {id, text, metadata} schema, writes per-shard curated JSONL to S3. Runs LOCALLY (not on EC2) — pure CPU work that doesn't justify GPU spend. Replaced by forge-audit on v2 runs (audit also covers slop / off-domain / safety).
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Write curated shards to s3://.../data/curated/shard-NNNN.jsonl
- Distinctive: line 21
Write a curation stats file (input/output counts, rejection histogram)
- Very specific: line 36
If manifest.artifacts.curated_corpus_s3 is set, 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-curate
When this fires
Phase position: CURATE — after forge-source, before forge-shape.
v1-only phase; v2 runs use forge-audit which adds slop detection,
off-domain filtering, and safety boilerplate scrubbing on top of the
v1 length+dedup baseline.
What it does
- Stream-read every shard from
s3://.../data/raw/ - Apply length filters (drops too-short and too-long) and SHA-based dedup
- Normalize each surviving doc to
{id, text, metadata} - Write curated shards to
s3://.../data/curated/shard-NNNN.jsonl - Write a curation stats file (input/output counts, rejection histogram)
- Set
manifest.artifacts.curated_corpus_s3and advance toSHAPE
Inputs
$1= forge-ids3://FORGE_BUCKET/forge/<id>/data/raw/*(shards fromforge-source)manifest.spec.domain(only used for the metadata tag, not filtering in M2)
Outputs
s3://.../data/curated/shard-NNNN.jsonl(each ≤ 100k docs)s3://.../metadata/curation-stats.jsonmanifest.artifacts.curated_corpus_s3manifest.state.current_phase = SHAPE
Idempotency
If manifest.artifacts.curated_corpus_s3 is set, exits 0.
Failure modes
| Exit | Reason |
| 0 | curated or already-set |
| 1 | zero docs survive filtering (corpus is junk) |
| 64 | no forge-id provided |
A non-fatal warning is emitted when output / input < 10% (severe loss).
External resources
- AWS S3 (read raw, write curated, write stats)
Cost class
free — runs on the operator's laptop; no GPU spend.
Depends on
forge-source (raw corpus already in S3)
In this repository29 other files it gives its agents.
- slm-forgeSkill
- forge-analyzeSkill
- forge-architectSkill
- forge-auditSkill
- forge-bootstrapSkill
- forge-card-validatorSkill
- 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.

