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/louisbrulenaudet/monorepo-templateWrote 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/louisbrulenaudet/monorepo-template/knip)<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/knip"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/knip/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/louisbrulenaudet/monorepo-template/knip"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/knip.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.00000 | $0.01389 |
| Opus 5.5 | $0.00000 | $0.00556 |
| Sonnet 5.5 | $0.00000 | $0.00278 |
| Haiku 4.5 | $0.00000 | $0.00139 |
Grade A, and why
knip 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 1mo 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 — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knip Configuration & Policy
Root knip.jsonc is intentionally comment-free; every override's rationale lives here.
Policy
- Diagnostic, never a gate: neither CI nor
pnpm run ciruns Knip. The PRCode qualitycomment diffs both passes against the base -pnpm knip(default) andpnpm knip:production(--production --strict: shipped code only, workspace isolation) - so a change sees only what it adds or resolves (quality-report.mdc); run them locally for the whole repo. - Never blanket-
ignore. Prefer scoped patterns:ignoreIssues,ignoreFiles, production-only suffixes ("dep!","!pattern!"). - An export kept solely for unit tests carries a bare JSDoc
@internaltag (production mode ignores tagged exports, so tests never mask dead shipped API); the tag is the whole reason, no prose restating "exported for tests". It is the last resort: the authoring gate in testing.mdc tests through the real entry first. - Auto-fix unused dependencies and catalog entries with
knip --fix --fix-type dependencies,catalog; agent-readable output:pnpm knip:agent(--reporter symbols). After--fix, review the diff, runpnpm install(the fix edits manifests, not the lockfile, so--frozen-lockfilewould fail), thenpnpm run check. - Generated files resolve cleanly today (
routeTree.gen.ts;.cloudflare/**is gitignored, and Knip skips gitignored files). If one ever false-positives, use a scopedignoreIssues, never a blanketignore.
Root options
includeEntryExports: true: every workspace isprivate, so entry and barrel files (packages/*/src/index.ts) get full unused-export auditing.treatConfigHintsAsErrors: true: a stale or redundant override (e.g. anentrya plugin now provides) makespnpm knipexit 1 instead of rotting silently.
Workspace overrides
- Both app keys (
apps/front-*,apps/!(front-*)):entry: ["cloudflare.config.ts"]- cf, the Vite plugin, and the Vitest plugin load it by convention and nothing imports it, so no Knip plugin knows it.includeEntryExports: false- an app's entry exports are consumed where Knip cannot see (the config's default export by cf and the Vite plugin, the Worker entrypoint's by the runtime); the Wrangler plugin's exemption formainexports went away with the Wrangler config. apps/front-*:ignoreDependenciesentries suffixed!apply in production mode only -@tanstack/*-devtools(imported byAppDevtools.tsx, lazy-loaded behindimport.meta.env.DEV, a conditional Knip's static graph cannot evaluate) andtailwindcss(consumed through@tailwindcss/viteand@import "tailwindcss").projectreplicates the default glob plus production-only negations ("!tests/helpers/**!","!vitest.setup.ts!"), so test infrastructure is never flagged as unused shipped code; notignoreorignoreFiles, which rejects the!suffix here.apps/!(front-*): every non-SPA app (worker-*today;queue-*/webhook-*/mcp-*later). A negation, not a prefix list, becausetreatConfigHintsAsErrorsmakes a key that matches nothing a hard error, so future prefixes cannot be declared ahead of time.ignoreDependencies: ["cloudflare"]:cloudflare:workersin pool tests is a runtime protocol specifier, not an npm package.- Root
".":projectexcludes.agents/**(vendored skills fromskills-lock.json; the Vitest plugin's default glob would make their*.test.cjsentries), in both forms -"!.agents/**"for the default pass and"!.agents/**!"for production mode, which reads only!-suffixed patterns. The restated default glob must keepcss(the Tailwind plugin compiles it) ortreatConfigHintsAsErrorsfails on a compiled-extension hint. Notignore/ignoreFiles: both still analyze the files. Same boundary asignorePatternsin.oxlintrc.json. - Root
ignoreDependencies(both passes):wrangler- kept only for the Wrangler-only commands (tail,secret put,preview secret put) run throughpnpm exec wranglerfrom scripts and by hand, which Knip does not read;skills- the pinned skills CLI, run only aspnpm exec skillsinside.agents/skills/skills-update/scripts/*.sh, which Knip does not parse;@vitest/ui- launched as a CLI by the DevTools Vitest dock, never imported, and the root has no Vitest config for Knip's plugin to bind to. It is a root devDependency on purpose: an app-local install fails the DevTools Vitest dock withVTDT0001, so never move it into an app (vite-config.mdc). - Root
ignoreBinaries: ["changeset!"](production mode only):.github/actions/**/*.mjsare production entries, andchangesets/lib.mjsspawns thechangesetCLI of the root devDependency@changesets/cli. Production mode counts onlydependencies, but those scripts run in CI after a full install, so the finding is a false positive there; the default pass still resolves the binary. packages/vitest-config:ignoreFiles: ["src/package-root.d.ts"](sidecar declarations forpackage-root.js; unlikeignore, the file stays analyzed for exports, types, and unresolved imports); rootignoreWorkspaces: ["packages/vitest-config!"](production mode only - build/test-time helper, never shipped).
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.
- 1mo ago Changed a7f72fc7d951
- 1mo ago Changed d8fd5b9cd472
- 1mo ago Changed bbcf975315f8
- 2mo ago Changed · +1 lines 1a4004eaceb3
- 2mo ago Changed · -17 lines 7d3364065bc2
- 2mo ago Changed 1dca688c3466
- 2mo ago Changed · +1 lines da9d18ba73b8
- 2mo ago First seen · 48 lines · 0 tokens per session scan A 6399377429f2
knip is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,389 tokens. 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-09-03.
knip compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kniplouisbrulenaudet/monorepo-template | Cursor rule | 19 | 8d ago | Apache-2.0 | A | 0 | Cursor |
| reviewJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 16 | Cursor |
| analyzeJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 14 | Cursor |
| pr-reviewsteipete/agent-rules | Cursor rule | 5.7k | 7mo ago | MIT | A | 518 | Cursor |
| code-analysissteipete/agent-rules | Cursor rule | 5.7k | 7mo ago | MIT | A | 245 | Cursor |
| general_clean_code_principlesnphausg/ai-agent-skills | Cursor rule | 2 | 4mo ago | Apache-2.0 | A | 6 | Cursor |
| optimize-dry-solid-principles-cursorrules-prompt-fPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 150 | Cursor |