nextjs-reusable-table: Instructions file for Codex

AGENTS.md

nextjs-reusable-table AGENTS.md is an instructions file for Codex, OpenCode from ninsau/nextjs-reusable-table. It costs 728 tokens per session, scanned A, original, 0BSD.

A repository guide for a reusable table library built with Next.js, React, and TypeScript. It describes the project layout, development commands, coding rules, and checks for changes.

In plain words
What is it for?
It guides work on table components, TypeScript interfaces, helper functions, scoped CSS, tests, linting, type checking, and builds.
Why use it?
It gives coding agents the library's expected patterns before they modify components or utilities. This helps keep public types, styling, tests, and build output consistent.

Instructions file for CodexOpenCode

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

This is ninsau/nextjs-reusable-table's own configuration. It tells Codex and OpenCode how to work on nextjs-reusable-table 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 nextjs-reusable-table configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ninsau/nextjs-reusable-table. 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/ninsau/nextjs-reusable-table/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ninsau/nextjs-reusable-table

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 nextjs-reusable-table AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ninsau/nextjs-reusable-table/agents-md"><img src="https://agentmods.dev/badge/instructions/ninsau/nextjs-reusable-table/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 728 This file is loaded in full into every session.
When invoked 728 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.00728 $0.00728
Opus 5.5 $0.00291 $0.00291
Sonnet 5.5 $0.00146 $0.00146
Haiku 4.5 $0.00073 $0.00073

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

Security

Grade A, and why

nextjs-reusable-table 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 2mo 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 · 70 lines

How it starts

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

AI Agent Guide — nextjs-reusable-table

This file is read by AI coding assistants (Cursor, Claude Code, GitHub Copilot, etc.) when contributing to this library.

For full coding standards, setup instructions, and contribution guidelines, see CONTRIBUTING.md.


Quick Commands

npm run check:fix   # fix all lint + format issues (run this first)
npm run type-check  # TypeScript validation
npm run test        # Jest test suite
npm run build       # tsup + Tailwind CSS build
npm run validate    # all of the above in sequence

Project Layout

src/components/           # React components (TableComponent, ActionDropdown, …)
src/components/__tests__/ # Jest test files (*.test.tsx)
src/types/index.ts        # All TypeScript interfaces — add new ones here
src/utils/helpers.ts      # Pure utility functions
src/styles/tableStyles.css # Scoped @layer rtbl { .rtbl-* } CSS only
src/index.ts              # Public exports
.cursor/rules/            # Cursor IDE rules (auto-attached per file type)
skills/                   # agentskills.io installable skill

AI-Specific Rules

What to always do

  • Check existing patterns in the component being modified before adding new code
  • Add any new prop to src/types/index.ts (the TableProps<T> or relevant sub-interface), never inline
  • Verify useMemo/useCallback/useState are called before any early return (Rules of Hooks)
  • Run npm run check:fix && npm run test before declaring a task complete

What never to do

  • Do not add @import of any third-party CSS to src/styles/tableStyles.css
  • Do not place CSS rules outside @layer rtbl { ... } in tableStyles.css
  • Do not introduce bare element selectors (e.g., table { }, th { }) — use .rtbl-table th
  • Do not use any type — Biome will reject it
  • Do not omit "use client" on any component file
  • Do not move React hooks below conditional branches

CSS Style Isolation

The dist/index.css ships only .rtbl-* classes wrapped in @layer rtbl. The react-loading-skeleton CSS is intentionally excluded from the CSS bundle and loaded on-demand by TableSkeleton.tsx. This was the source of style leaking in earlier versions — do not revert this.

Read the full file on GitHub · 70 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. 2mo ago First seen · 70 lines · 728 tokens per session scan A edc142a47f3c

Subscribe to this mod's changes

nextjs-reusable-table AGENTS.md is an instructions file published in the GitHub repository ninsau/nextjs-reusable-table (6 stars, last pushed 8mo ago), licensed 0BSD. It adds 728 tokens to every session, about $0.0029 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-08-31.

Related

nextjs-reusable-table AGENTS.md compared with instructions from other repositories

nextjs-reusable-table AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-reusable-table AGENTS.mdninsau/nextjs-reusable-tableInstructions file68mo ago0BSDA728Codex, OpenCode
create-trimble-app typescript.instructions.mdjulianoczkowski/create-trimble-appInstructions file34mo agoMITA583GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot