nextjs-reusable-table 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

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/ninsau/nextjs-reusable-table/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.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.svg" alt="Measured on agentmods" 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. 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.00728 $0.00728
Opus 5 $0.00364 $0.00364
Sonnet 5 $0.00146 $0.00146
Haiku 4.5 $0.00073 $0.00073

Measured 5d ago against content hash edc142a47f3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 6mo ago), licensed 0BSD. It adds 728 tokens to every session, about $0.0036 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.