babynames: Instructions file for Codex

AGENTS.md

babynames AGENTS.md is an instructions file for Codex, OpenCode from michaelcolenso/babynames. It costs 1,099 tokens per session, scanned A, original, from a forked repository, MIT.

Repository instructions for working on Name Vitals, a web app that tracks United States baby-name popularity using Social Security Administration data from 1880 onward. They document its Cloudflare services, commands, database, and deployment steps.

In plain words
What is it for?
Running the web app and data-ingestion worker, checking types, building, applying D1 database migrations, loading initial data, deploying, and verifying API compatibility.
Why use it?
They give a coding agent the project-specific commands and release checks needed to make changes without guessing how the app is built or deployed.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

This is michaelcolenso/babynames's own configuration. It tells Codex and OpenCode how to work on babynames itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything babynames configures →

Reuse

Borrowing it

Nothing to install: this file belongs to michaelcolenso/babynames. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/michaelcolenso/babynames/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/michaelcolenso/babynames

Made for: Codex, OpenCode.

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 babynames AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/michaelcolenso/babynames/agents-md/github.svg)](https://agentmods.dev/instructions/michaelcolenso/babynames/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/michaelcolenso/babynames/agents-md"><img src="https://agentmods.dev/badge/instructions/michaelcolenso/babynames/agents-md/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 babynames AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/michaelcolenso/babynames/agents-md"><img src="https://agentmods.dev/badge/instructions/michaelcolenso/babynames/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,099 This file is loaded in full into every session.
When invoked 1,099 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
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.01099 $0.01099
Opus 5.5 $0.00440 $0.00440
Sonnet 5.5 $0.00220 $0.00220
Haiku 4.5 $0.00110 $0.00110

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

Security

Grade A, and why

babynames AGENTS.md 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.

AGENTS.md · 85 lines

How it starts

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

Project: Name Vitals — US baby name popularity tracker (SSA data, 1880–present) on Cloudflare Pages, D1, and Workers

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Commands

# Development
npm run dev:web          # Pages dev server at :8788 (includes local D1)
npm run dev:ingest       # Ingest Worker dev server

# Type checking
npm run typecheck        # Type-check all apps + shared package

# Build
npm run build            # Compile packages/shared only (apps use wrangler bundling)

# Deploy
npm run deploy:web       # Deploy Cloudflare Pages
npm run deploy:ingest    # Deploy Ingest Worker

# Database migrations
npm run migrations:apply:local   # Apply migrations to local D1
npm run migrations:apply         # Apply migrations to remote D1

# Scripts
npm run seed                                    # One-time D1 population from legacy shards (run once pre-deploy)
npm run verify-parity -- --base=<preview-url>  # Validate API parity before DNS cutover

# Test cron trigger
npm run -w @nv/ingest-worker test:scheduled    # Test scheduled handler locally

Architecture

Name Vitals — Tracks US baby name popularity using SSA data (1880–present). Monorepo with three deployment units:

Package Type Purpose
apps/web Cloudflare Pages Static assets + Pages Functions (API + SSR)
apps/ingest-worker Cloudflare Worker Weekly SSA data ingestion via cron + queues
packages/shared npm package Shared types, classification, D1 queries, renderers

Shared Package (@nv/shared)

Path alias @nv/shared maps to packages/shared/src/ in all apps. Key exports:

  • classify.ts — Single source of truth for name status (rising/stable/declining/endangered/extinct) and all trend metrics. Used by ingest at write-time; do not duplicate this logic.
  • d1-queries.ts — Typed D1 query helpers shared by Pages Functions and ingest.
  • schema.ts — TypeScript types mirroring the D1 schema (NameRow, SearchHit, API contract types).
  • render-name.ts — Full-page SSR renderer for /name/:name — used by both edge SSR and client hydration.
  • spark-blob.ts — Encodes yearly counts into a 60-byte normalized BLOB (encodeSpark/decodeSpark). Stored in names.spark_blob, used for landing-page sparklines without fetching full series.

Read the full file on GitHub · 85 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 · 85 lines · 1,099 tokens per session scan A 6d29d6685c01

Subscribe to this mod's changes

babynames AGENTS.md is an instructions file published in the GitHub repository michaelcolenso/babynames (0 stars, last pushed 2d ago), licensed MIT. It adds 1,099 tokens to every session, about $0.0044 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other instructions, from other repositories