agentleFS
datasetsdatasets/datapressr/skills/archive/SKILL.md

archive

Skill6 starsChanged 2 months agoMITView on GitHub

Use this skill when a captured source has been decided worth pursuing and needs its raw form saved safely before wrangling starts — moving a dataset from stub to status: archived. Downloads/saves the raw source into archive/ with provenance (source URL, retrieval date, license if known), separate from data/ which holds the cleaned output. Precedes structure — use the structure skill next once this is done.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan, status and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

Files
SKILL.md

Archive: get the raw bytes safely stored, with provenance

The step between "worth pursuing" and "worth cleaning." Once this is done, the raw source can't disappear out from under the wrangling work — the live URL going away, the file being edited upstream, the page changing — because a snapshot exists.

Steps

  1. Check scale before downloading anything. Same rule as structure: comfortably fits in memory in a single Node process, well under ~1GB. If the source is bigger, say so now rather than after downloading it — this workflow assumes small data.
  2. If the dataset directory doesn't exist yet, scaffold it first — /init <name> (creates datapackage.json with status: "stub", data/, AGENTS.md, scripts/validate-datapackage.mjs).
  3. Save the raw file(s) into archive/ at the dataset root, sibling to data/ — not inside it. This is real precedent from millennium-macroeconomic-data-uk, in the sibling datasets/economic-history repo, not an invented convention. For a live URL:

    import { writeFile } from "node:fs/promises";
    
    const res = await fetch(SRC_URL);
    if (!res.ok) throw new Error(`fetch failed: ${res.status}`);
    await writeFile("archive/<filename>", Buffer.from(await res.arrayBuffer()));

    For a file the user already has locally, just copy it in.

    For a paginated API or anything needing more than one request, use a separate fetch.ts that saves each raw response and writes a hashed archive/manifest.json — see structure → "JSON / REST API sources".

  4. Record provenance right away — this is the step most likely to get skipped and regretted later (see the rigor pass in docs/plans/skills-vision.md: shipping a dataset with no recorded source/license is a real liability, not a nice-to-have). At minimum, a comment at the top of wherever build.ts will live:

    // Source: <url>
    // Retrieved: <YYYY-MM-DD>
    // License: <if stated anywhere on the source page — otherwise say explicitly that it's unknown, don't just omit it>

    This becomes datapackage.json's sources/licenses fields in the structure step — capturing it now means not having to go back and re-find the source page later.

  5. Set "status": "archived" in datapackage.json.
  6. Hand off to structure (the structure skill) to turn the raw snapshot into a clean, typed dataset. Don't do both in one undifferentiated pass if the source is at all messy — archiving first means there's always a stable raw copy to re-run the build script against, even if the live source later changes or disappears.

What this doesn't cover

Re-fetching a source that updates on a schedule (a "living" dataset) is monitor's job, not this skill's — not designed yet, see docs/plans/skills-vision.md. This skill is a one-time snapshot.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.