agentleFS
sdhilip200sdhilip200/api-warehouse/skills/api-warehouse/SKILL.md

api-warehouse

Skill0 starsChanged 5 months agoMITView on GitHub

Use whenever the user wants to ingest an API end to end, go from API docs to warehouse, or build a full ingestion pipeline from documentation — even if they don't name a step. Trigger phrases: "ingest an API end to end", "API to warehouse", "build an ingestion pipeline from API docs", "set up a full pipeline from this API", or any request to take API documentation all the way through to a scheduled warehouse load.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 0 are distinctive, and 6 are 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.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After all steps complete, run this skill's own EVALS.md and append any notable run quirks to MEMORY.md.

    line 41
  2. Very specific:

    Run the connect skill to verify credentials and destination reachability.

    line 50
  3. Very specific:

    Run the assess skill against the API documentation.

    line 62
  4. Very specific:

    After assess completes, stop and tell the user:

    line 74
  5. Very specific:

    Do not run land until the user explicitly confirms scope.

    line 80
  6. Very specific:

    Run the validate skill immediately after land completes.

    line 101

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

api-warehouse — Full API Ingestion Orchestrator

Security Rule

Secrets (API tokens, credentials, connection strings) must travel via environment variables, never typed into chat. Reference them by name (e.g. MY_API_TOKEN) and store values in .env or a secrets manager. See references/security.md for the full policy.

Scope Guard

RAW LANDING ONLY. This pipeline writes raw API responses to the destination unchanged. No transformation, renaming, or modelling happens here. Downstream work (dbt, etc.) is out of scope.


The Loop

Five step-skills run in order:

connect → assess → [CHECKPOINT] → land → validate → schedule

This orchestrator calls each step in sequence and pauses at the checkpoint after assess so the user can review findings and confirm scope before any data moves. Each step runs its own eval loop per ../../references/running-evals.md. After all steps complete, run this skill's own EVALS.md and append any notable run quirks to MEMORY.md. Apply the prose standards in ../../references/anti-slop.md to any generated summaries.


Step 1 — connect

Run the connect skill to verify credentials and destination reachability.

Invoke: /connect

Tests that the API token is valid, the base URL responds, and the destination warehouse accepts writes. No data is moved. The step ends with a pass/fail status for each check. Do not proceed until all checks pass.


Step 2 — assess

Run the assess skill against the API documentation.

Invoke: /assess

Reads the API docs, lists endpoints, determines pagination style, checks incremental support, fetches real sample rows, writes endpoints.json, and renders assessment.html.


CHECKPOINT — Review Before Landing

After assess completes, stop and tell the user:

assessment.html is ready. Open it, review the endpoint list, incremental verdict, and estimated volume. Confirm scope before we proceed to land — share it with your client for sign-off if needed.

Do not run land until the user explicitly confirms scope. This is where misunderstandings about which endpoints to include, key fields, or load strategy (full-replace vs incremental) get caught.


Step 3 — land

Once the user confirms scope, run the land skill.

Invoke: /land

Reads endpoints.json, calls build_rest_api_config to build the dlt pipeline config, runs the pipeline to fetch all in-scope endpoints, and writes raw rows to the destination as configured in references/destinations.md. Raw landing only — no transformation.


Step 4 — validate

Run the validate skill immediately after land completes.

Invoke: /validate

Calls render_validation to check row counts, schema presence, and freshness; produces a validation report; notes any checks skipped because they could not be automated. Fix any failures before scheduling.


Step 5 — schedule

Once validation passes, run the schedule skill.

Invoke: /schedule

Packages the pipeline into a container image using the project Dockerfile, generates a platform-specific deploy manifest (Cloud Run, Azure Container Apps, or AWS ECS), and registers the cron schedule. After this step, follow deploy/<platform>.md to run the pipeline on the agreed cadence yourself — v1 produces a deploy-ready bundle, it does not auto-deploy.


Quick Reference

StepSkillKey output
1connectcredential + destination health
2assessendpoints.json, assessment.html
CHECKPOINT—user/client sign-off
3landraw rows in warehouse
4validatevalidation report
5scheduledeployed, scheduled container

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.