elasticsearch-file-ingest

elasticsearch-file-ingest is a skill for Claude Code, Codex from aspectrr/deer. It costs 41 tokens per session (669 once invoked), scanned A, original, MIT.

A stream-based importer for loading and transforming JSON, CSV, Parquet, or Arrow IPC files into Elasticsearch. It can read files or standard input, apply a custom transform, and infer mappings from CSV data.

In plain words
What is it for?
Use it to test an Elasticsearch connection, import a data file into an index, transform records during import, read from standard input, or infer field mappings from a CSV.
Why use it?
It removes the need to write a separate one-off loader for each supported file format. Streaming helps process file data as it is read, while transforms adapt records before indexing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/ingest.js test.

Good fit Use it to test an Elasticsearch connection, import a data file into an index, transform records during import, read from standard input, or infer field mappings from a CSV.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aspectrr/deer
agentmods
npx agentmods add skills/aspectrr/deer/elasticsearch-file-ingest

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for elasticsearch-file-ingest

README.md
[![agentmods](https://agentmods.dev/badge/skills/aspectrr/deer/elasticsearch-file-ingest/github.svg)](https://agentmods.dev/skills/aspectrr/deer/elasticsearch-file-ingest)
Your own site
<a href="https://agentmods.dev/skills/aspectrr/deer/elasticsearch-file-ingest"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/elasticsearch-file-ingest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for elasticsearch-file-ingest

Your own site · 80×15
<a href="https://agentmods.dev/skills/aspectrr/deer/elasticsearch-file-ingest"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/elasticsearch-file-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00669
Opus 5 $0.00020 $0.00334
Sonnet 5 $0.00008 $0.00134
Haiku 4.5 $0.00004 $0.00067

Measured 9d ago against content hash ff06befe2d33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

elasticsearch-file-ingest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

deer-cli/internal/skill/defaults/elasticsearch-file-ingest/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Elasticsearch File Ingest

Stream-based ingestion and transformation of large data files (NDJSON, CSV, Parquet, Arrow IPC) into Elasticsearch.

Setup

Install dependencies and configure environment:

npm install
export ELASTICSEARCH_URL="https://elasticsearch:9200"
export ELASTICSEARCH_API_KEY="<your-api-key>"

Test connection:

node scripts/ingest.js test

Usage

Ingest a JSON file

node scripts/ingest.js ingest --file /path/to/data.json --target my-index

Ingest CSV

node scripts/ingest.js ingest --file /path/to/users.csv --source-format csv --target users

Ingest Parquet

node scripts/ingest.js ingest --file /path/to/users.parquet --source-format parquet --target users

Ingest with transformation

node scripts/ingest.js ingest --file /path/to/data.json --target my-index --transform transform.js

Infer mappings from CSV

node scripts/ingest.js ingest --file /path/to/users.csv --infer-mappings --target users

Command Reference

Required Options

--target <index>         # Target index name

Source Options (choose one)

--file <path>            # Source file (supports wildcards)
--stdin                  # Read NDJSON/CSV from stdin

Index Configuration

--mappings <file.json>          # Mappings file
--infer-mappings                # Infer mappings/pipeline from file
--delete-index                  # Delete target index if exists
--pipeline <name>               # Ingest pipeline name

Processing

--transform <file.js>    # Transform function
--source-format <fmt>    # ndjson|csv|parquet|arrow (default: ndjson)
--csv-options <file>     # CSV parser options (JSON file)

Transform Functions

export default function transform(doc) {
  return {
    ...doc,
    full_name: `${doc.first_name} ${doc.last_name}`,
    timestamp: new Date().toISOString(),
  };
}

Return null to skip a document. Return an array to split into multiple documents.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 120 lines · 41 tokens per session scan A ff06befe2d33

Subscribe to this mod's changes

elasticsearch-file-ingest is a skill published in the GitHub repository aspectrr/deer (404 stars, last pushed 4mo ago), licensed MIT. It adds 41 tokens to every session and 669 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

infrahub-sot

OpsMill Infrahub — infrastructure source of truth with schema-driven nodes, GraphQL queries, and branch-isolated changes. Use when querying Infrahub for device/IPAM inventory, browsing infrastructure schemas, running GraphQL queries, or making infrastructure changes safely via an auto-created session branch and a…

automateyournetwork/netclaw · 71 tokens

aws-essentials

Use when standing up the core AWS surface a small product needs: hardening a fresh account, a private S3 bucket, encrypted RDS Postgres, ECS Fargate vs EC2, CloudFront + OAC, or scoping an IAM policy to least privilege. NOT the CI pipeline that ships the container (that is deployment), NOT app-code access-control…

ericrisco/rsc-harness · 89 tokens

elasticsearch-expert

Expert-level Elasticsearch, search, ELK stack, and full-text search. Use when the user mentions search, ELK, Logstash, Kibana, or full text search.

personamanagmentlayer/pcl · 41 tokens

vector-db-ops

Use when vector database operations — Pinecone, Weaviate, Qdrant, ChromaDB. Indexing, querying, filtering, and managing vector embeddings for RAG and similarity search. Use when working with vector db ops.

oyi77/1ai-skills · 52 tokens

Database Optimization

Optimize database queries.

OpenLabor/openlabor · 6 tokens

elasticsearch

Guidance for managing Elasticsearch, a search and data-storage system that organizes information into searchable indexes. It covers cluster health, nodes, shards, indexes, and related status APIs.

chaterm/terminal-skills · 8 tokens