etl-handler

etl-handler is a skill for Claude Code, Codex from eSlider/2dph. It costs 0 tokens per session (1,101 once invoked), scanned A, original, MIT.

A Go pattern for adding file-type handlers to a corpus pipeline, a system that extracts and transforms collected files. It supports nested formats, such as an email containing a ZIP file containing another email or PDF.

In plain words
What is it for?
Use it when implementing handlers, extractors, decoders, or transforms for new file formats in a Go corpus pipeline. The pattern covers matching files, extracting content, and processing attachments.
Why use it?
It gives each file type one handler while a central registry manages recursion through nested files. Typed results preserve extracted text, metadata, and child attachments in a structured tree.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go run ./bin/stack/sync.go --dry-run # print the wave.

Good fit Use it when implementing handlers, extractors, decoders, or transforms for new file formats in a Go corpus pipeline. The pattern covers matching files, extracting content, and processing attachments.

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/eSlider/2dph
agentmods
npx agentmods add skills/eslider/2dph/etl-handler

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 etl-handler

README.md
[![agentmods](https://agentmods.dev/badge/skills/eslider/2dph/etl-handler/github.svg)](https://agentmods.dev/skills/eslider/2dph/etl-handler)
Your own site
<a href="https://agentmods.dev/skills/eslider/2dph/etl-handler"><img src="https://agentmods.dev/badge/skills/eslider/2dph/etl-handler/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 etl-handler

Your own site · 80×15
<a href="https://agentmods.dev/skills/eslider/2dph/etl-handler"><img src="https://agentmods.dev/badge/skills/eslider/2dph/etl-handler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,101 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.00000 $0.01101
Opus 5.5 $0.00000 $0.00440
Sonnet 5.5 $0.00000 $0.00220
Haiku 4.5 $0.00000 $0.00110

Measured 1mo ago against content hash 237341fec475, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

etl-handler 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 1mo 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.

skills/etl-handler/SKILL.md · 114 lines

How it starts

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

Skill: etl-handler — canonical Go ETL extraction pattern

Use when implementing file-type handlers, extractors, decoders or transforms for the corpus pipeline. Mandatory before writing such code (AGENTS.md, code standards #8–#11).

Core idea: any format may nest any other format (.eml → zip → .eml → pdf). One handler per type; a central registry recurses; results are typed trees of URL-addressable nodes.

Contracts

// Blob is an addressable unit of content flowing through the pipeline.
type Blob struct {
	SHA256 string        // integrity + idempotency key
	Name   string        // sanitized filename
	MIME   string        // declared × sniffed (mismatch wins for safety)
	Size   int64
	Open   func(ctx context.Context) (io.ReadCloser, error) // lazy
}

type Attachment = Blob // child inside a Result

type Result struct {
	MIME     string      // resolved type of this node
	Meta     Meta        // typed per-handler metadata (struct, not map)
	Text     []byte      // extracted text/markdown when applicable
	Children []Attachment // nested parts — recurse via Registry
}

type Handler interface {
	Match(declaredMIME string, sniff []byte) bool
	Handle(ctx context.Context, src Blob) (*Result, error) // sync, ctx-first
}
  • Node identity: URL scheme://platform/thread/msg/path-segments[#anchor] (e.g. mail://gmail/T42/M17/body/p[3]/table[0]#r2,c5); node ID = sha256(URL)[:16]; separate sha256(body) for integrity.
  • Parts reference each other only via URLs; href/src become LINKS_TO edges.
  • Content splits granularly BEFORE insertion: html/md/pdf yield mime-typed blocks (paragraph / table / image / link / page).

Walker safety (hard limits)

  • Max depth 10; per-item size cap; total-size and file-count caps;
  • zip-ratio guard: uncompressed/compressed > N → refuse;
  • reject names with .., absolute paths, null bytes, control chars, length > 255; collisions get -<hash8> suffix;
  • large payloads spool to var/tmp (cleaned after processing); Body []byte only under the small-size threshold (~1 MB);
  • per-child errors are collected — never fatal to the whole tree.

Read the full file on GitHub · 114 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. 1mo ago First seen · 114 lines · 0 tokens per session scan A 237341fec475

Subscribe to this mod's changes

etl-handler is a skill published in the GitHub repository eSlider/2dph (3 stars, last pushed 24d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,101 tokens. 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-31.

Related

Other skills, from other repositories

sf-knowledge-api-asynch

Apply Salesforce knowledge and best practices for Bulk API 2.0 and Bulk API Developer Guide.

Avinava/sf-documentation-knowledge · 25 tokens

gemini-api-agent-platform

Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK for enterprise AI applications. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

davila7/claude-code-templates · 61 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens