hotwire-codex-skills: Instructions file for Codex

AGENTS.md

hotwire-codex-skills AGENTS.md is an instructions file for Codex, OpenCode from davidteren/hotwire-codex-skills. It costs 1,062 tokens per session, scanned A, original, MIT.

A project guide for a suite of coding skills for Rails and Hotwire apps across web, progressive web, iOS, and Android. It explains the project's background, skill-file structure, and rules for grounding claims in real application code.

In plain words
What is it for?
Use it when adding or editing skills, checking their references and templates, running their scripts, or understanding how the suite was built from the Piazza app repositories.
Why use it?
It prevents skills from becoming disconnected from the code they describe and makes their templates, scripts, and references easier to maintain.

Instructions file for CodexOpenCode

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

This is davidteren/hotwire-codex-skills's own configuration. It tells Codex and OpenCode how to work on hotwire-codex-skills 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 hotwire-codex-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to davidteren/hotwire-codex-skills. 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/davidteren/hotwire-codex-skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/davidteren/hotwire-codex-skills

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 hotwire-codex-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/davidteren/hotwire-codex-skills/agents-md.svg)](https://agentmods.dev/instructions/davidteren/hotwire-codex-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/davidteren/hotwire-codex-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/davidteren/hotwire-codex-skills/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,062 This file is loaded in full into every session.
When invoked 1,062 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 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.01062 $0.01062
Opus 5 $0.00531 $0.00531
Sonnet 5 $0.00212 $0.00212
Haiku 4.5 $0.00106 $0.00106

Measured 7d ago against content hash da42972dce69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

hotwire-codex-skills 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 7d 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 · 83 lines

How it starts

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

AGENTS.md — hotwire-codex-skills

A suite of Claude Code skills + tools for Rails + Hotwire apps that target web/PWA + iOS + Android. See README.md for the catalog.

Unofficial skillset inspired by The Rails and Hotwire Codex by Ayush Newatia, published with his permission. Not an official product of the book; reuses none of its text or source code.

What this is

Knowledge extracted from building the Piazza app (the Rails and Hotwire Codex example) across three platforms, packaged as reusable skills. The companion app repos hold the source + the code-grounded analysis notes this suite is distilled from: piazza-web, piazza-ios, piazza-android (each has wip/analysis/).

How a skill is structured

skills/<name>/
  SKILL.md          # YAML frontmatter: name + description (the trigger). Then usage.
  references/*.md    # the contract/conventions reference (traceable to path:line)
  templates/*.tmpl   # code templates; placeholder tokens like __COMPONENT_NAME__
  scripts/*.sh       # runnable bash (generators + linters); 3 linters also need ruby

Conventions for adding/editing skills

  • Ground every claim in real code. A reference statement should trace to a path:line in one of the app repos. No invented APIs.
  • Scripts are plain bash (no deps beyond bash; 3 linters also require ruby), and must set -euo pipefail (or document why not). A generator must refuse to overwrite. A linter must exit non-zero on drift and name its ceiling (e.g. "heuristic scan, not a parser").
  • Verify before shipping. Run a new linter against the real Piazza repos and confirm it catches the known divergence (the nav-menu icon drop) with no false positives. Test a generator end-to-end (dry-run + real-write + overwrite guard) before committing.
  • One built and verified beats five stubs. Build a new skill on demand from its source analysis note — don't scaffold empty dirs.

Read the full file on GitHub · 83 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. 7d ago First seen · 83 lines · 1,062 tokens per session scan A da42972dce69

Subscribe to this mod's changes

hotwire-codex-skills AGENTS.md is an instructions file published in the GitHub repository davidteren/hotwire-codex-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 1,062 tokens to every session, about $0.0053 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-31.

Related

Other instructions, from other repositories

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

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

next.js AGENTS.md

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

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,469 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

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