Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PostHog/posthog-foss --skill building-dagster-jobsgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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.
[](https://agentmods.dev/skills/posthog/posthog-foss/building-dagster-jobs)<a href="https://agentmods.dev/skills/posthog/posthog-foss/building-dagster-jobs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/building-dagster-jobs/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.
<a href="https://agentmods.dev/skills/posthog/posthog-foss/building-dagster-jobs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/building-dagster-jobs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00220 | $0.01587 |
| Opus 5.5 | $0.00088 | $0.00635 |
| Sonnet 5.5 | $0.00044 | $0.00317 |
| Haiku 4.5 | $0.00022 | $0.00159 |
Grade A, and why
building-dagster-jobs 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building Dagster jobs
Setup, code locations, owners, Slack alerts, and local development live in posthog/dags/README.md. This skill is the design and review pass on top of it: how to shape a job so it is correct, recoverable, and cheap.
The one number to estimate first
Dagster+ bills every op execution and every asset materialization, including retries and the ops of a run that does nothing. Before you write or approve a job, write down:
op executions per month = runs per day × ops per run × 30
Ops per run is where cost hides. A DynamicOut fan-out of one op per N rows scales with the fleet, and a sensor that launches one run per item scales with traffic.
Size both against today's production volume, not the test fixture.
references/cost-model.md has the patterns that blew up and how to measure a job's real cost.
Design checklist
Work through these in order. Each one names the shared helper that already solves it.
- Trigger. A schedule for time-based work, a sensor for event-driven work, an asset for data that other assets depend on.
A schedule or sensor that has nothing to do returns
dagster.SkipReason. A skipped tick launches no run and costs nothing, so check for work there instead of in the first op. - Overlap. Decorate a schedule with
@skip_if_already_running, or callcheck_for_concurrent_runs, unless overlapping runs are safe and cheap. Add@skip_on_kill_switchto schedules that query ClickHouse. - Fan-out. Split work into a fixed number of batches with
bounded_batches(items, max_batches=..., min_batch_size=...), not into one op per N rows. Startmax_batchesnear the executor'smax_concurrent: more batches add no parallelism, only ops. When items vary in cost, measure batch durations and allow a few batches per worker, so the slowest batch does not set the run time. Keep query sizes bounded by chunking inside the service function (itertools.batched), not by adding ops. - CPU parallelism. When shards exist only so CPU-bound Python gets its own process, run them with
run_in_processes(fn, shards)inside one op instead of mapping one op per shard. Shard code takes aLogContext, so a child process can passProcessLogContext(log=...). - One run per item. A sensor that launches a run per request or per team turns traffic into cost. Claim a batch of items in one run, and keep each item's state transition and locking per item.
- Sequential ops. Ops that only hand data to the next op can be one op. Keep separate ops where a boundary buys something: a different retry policy, a re-executable step, or output another job reuses.
- Cadence. Run as often as the consumer needs, not hourly by default. Check the TTL of whatever the job writes: a cache that lives for days does not need an hourly refresh.
- Thin ops. Ops read config, call a function, and report metadata. Business logic goes in a plain function the op calls, so a test can call it directly.
- Owner and limits. Tag the job with
JobOwners, adddagster/max_runtimefor anything that can hang, and request pod resources (dagster-k8s/config) for heavy runs. - Query tagging. Call
get_query_tags().with_dagster(dagster_tags(context))at the start of ops that query ClickHouse, or passsettings_with_log_comment(context).
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago First seen · 78 lines · 220 tokens per session scan A d37480ec9fa4
building-dagster-jobs is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 220 tokens to every session and 1,587 once invoked, about $0.0009 per session on Opus 5.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-12-01.
building-dagster-jobs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| building-dagster-jobsPostHog/posthog-foss | Skill | 736 | today | MIT | A | 220 | Claude Code, Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 6d ago | MIT | A | 21 | Claude Code |