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.
git clone --depth 1 https://github.com/ninsau/nextjs-reusable-tableWrote 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.
[](https://agentmods.dev/rules/ninsau/nextjs-reusable-table/general)<a href="https://agentmods.dev/rules/ninsau/nextjs-reusable-table/general"><img src="https://agentmods.dev/badge/rules/ninsau/nextjs-reusable-table/general/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.
<a href="https://agentmods.dev/rules/ninsau/nextjs-reusable-table/general"><img src="https://agentmods.dev/badge/rules/ninsau/nextjs-reusable-table/general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00582 | $0.00582 |
| Opus 5.5 | $0.00233 | $0.00233 |
| Sonnet 5.5 | $0.00116 | $0.00116 |
| Haiku 4.5 | $0.00058 | $0.00058 |
Grade A, and why
general 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nextjs-reusable-table — General Conventions
Tech Stack
- Language: TypeScript 5.x (strict mode, no
any) - Framework: React 18+ / Next.js 13+ (App Router,
"use client"directive required on all components) - Styling: Tailwind CSS utility classes in JSX + scoped
@layer rtbl { ... }CSS insrc/styles/tableStyles.css - Linter/Formatter: Biome 2.x (
npm run check:fixto auto-fix) - Build: tsup (ESM + CJS dual output) + Tailwind CLI for CSS
- Tests: Jest 30 + React Testing Library
Code Style (Biome enforced)
- Indent: 2 spaces, LF line endings, 80-char line width
- Quotes: double for JS/JSX (
"use client", JSX attributes) - Semicolons: always
- Arrow functions: always parenthesise (
(x) => x) - No
any— use proper interfaces. No non-null assertion without comment.
TypeScript Patterns
- Table data is always generic
<T>— never typed asobjectorRecord<string, unknown> - Props interfaces follow
ComponentNameProps<T>naming and live insrc/types/index.ts - Use
ReadonlyArray<keyof T>for props/columns arrays - Export types from
src/index.tsviaexport * from "./types"
Key Constraints
- All components must include
"use client"at the top (line 1) - Never use React Context for state that can be passed as props
useMemo/useCallbackhooks must be called before any early returns (Rules of Hooks)- CSS class prefix is
rtbl-— never introduce bare element or global selectors intableStyles.css react-loading-skeletonCSS is loaded byTableSkeleton.tsxJS import only — do NOT re-add@importto the CSS file
Quality Checks (run before committing)
npm run check:fix # fix lint + format
npm run type-check # TypeScript
npm run test # Jest
npm run build # tsup + Tailwind CSS
File Layout
src/components/ # React components (TableComponent, ActionDropdown, …)
src/components/__tests__ # Jest tests (*.test.tsx)
src/types/index.ts # All TypeScript interfaces
src/utils/helpers.ts # Pure utility functions
src/styles/tableStyles.css
src/index.ts # Public exports
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.
- 3mo ago First seen · 53 lines · 582 tokens per session scan A 8708c6e3bcd6
general is a cursor rule published in the GitHub repository ninsau/nextjs-reusable-table (6 stars, last pushed 8mo ago), licensed 0BSD. It adds 582 tokens to every session, about $0.0023 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.
general compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generalninsau/nextjs-reusable-table | Cursor rule | 6 | 8mo ago | 0BSD | A | 582 | Cursor |
| java-import-fqnhenryxm/autumn | Cursor rule | 50 | 2d ago | Apache-2.0 | A | 443 | Cursor |
| autumn-test-scopehenryxm/autumn | Cursor rule | 50 | 2d ago | Apache-2.0 | A | 193 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 204k | 11d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | today | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |