babynames AGENTS.md

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

Install

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.

agentmods
npx agentmods add instructions/michaelcolenso/babynames/agents-md
Clone the repo
git clone --depth 1 https://github.com/michaelcolenso/babynames

Made for: Codex, OpenCode.

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. Scan, not verified.
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 $0.01099 $0.01099
Opus 5 $0.00549 $0.00549
Sonnet 5 $0.00220 $0.00220
Haiku 4.5 $0.00110 $0.00110

Measured 2d ago against content hash 6d29d6685c01, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 6d ago), licensed MIT. It adds 1,099 tokens to every session, about $0.0055 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens