domainstack.io AGENTS.md

Repository instructions for a Next.js web application using TypeScript, pnpm, a database, and automated code checks.

In plain words
What is it for?
Running the development server, building the app, checking types, linting, formatting, testing, and managing database changes.
Why use it?
They provide the exact commands and standards needed to verify code before committing it.

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/jakejarvis/domainstack.io/agents-md
Clone the repo
git clone --depth 1 https://github.com/jakejarvis/domainstack.io

Made for: Codex, OpenCode.

Per session 4,784 This file is loaded in full into every session.
When invoked 4,784 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.04784 $0.04784
Opus 5 $0.02392 $0.02392
Sonnet 5 $0.00957 $0.00957
Haiku 4.5 $0.00478 $0.00478

Measured 2d ago against content hash 16113fa3ff9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

domainstack.io 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 · 554 lines

How it starts

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

Repository Guidelines

Pre-Commit Checklist

CRITICAL: Before declaring victory on any task and before committing to git, the following four commands must pass with NO WARNINGS:

  1. pnpm lint — Must pass with zero warnings
  2. pnpm fmt:check — Must pass with zero warnings
  3. pnpm check-types — Must pass with zero warnings
  4. pnpm test — Must pass with zero warnings

Do not proceed with commits until all four checks are clean.

Commands

Development

  • pnpm dev — Start Next.js dev server at http://localhost:3000
  • pnpm build — Compile production bundle
  • pnpm check-types — Run tsc --noEmit for type diagnostics

Linting & Formatting

  • pnpm lint — Run oxlint lint
  • pnpm fmt — Apply oxfmt formatting

Testing

  • pnpm test — Run all tests once
  • pnpm test path/to/file.test.ts — Run a single test file
  • pnpm test -t "test name" — Run tests matching a pattern
  • pnpm test:coverage — Run tests with coverage report

Database

  • pnpm db:generate — Generate Drizzle migrations
  • pnpm db:push — Push schema to database
  • pnpm db:migrate — Apply migrations
  • pnpm db:studio — Open Drizzle Studio

Code Style

General

  • TypeScript only, strict enabled
  • 2-space indentation (oxfmt enforces)
  • Prefer small, pure modules
  • Node.js >= 24 required

Naming Conventions

  • Files/folders: kebab-case (user-settings.ts)
  • React components: PascalCase exports (UserSettings)
  • Helpers/hooks: camelCase named exports (useUserSettings)

Imports

  • Use @/... path aliases for app-specific imports
  • Import shared UI components from @domainstack/ui/* (e.g., @domainstack/ui/button)
  • oxfmt auto-organizes imports on save
  • Client components must start with "use client"

Types

  • Shared domain types in @domainstack/types package
  • Enum const arrays (primitives) in @domainstack/constants (Drizzle pgEnums derive from these)
  • Do NOT use Zod for simple enums or internal database types
  • Import types from @domainstack/types

Read the full file on GitHub · 554 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 · 554 lines · 4,784 tokens per session scan A 16113fa3ff9a

Subscribe to this mod's changes

domainstack.io AGENTS.md is an instructions file published in the GitHub repository jakejarvis/domainstack.io (285 stars, last pushed 2d ago), licensed MIT. It adds 4,784 tokens to every session, about $0.0239 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 instructions, from other repositories