agentleFS
NVIDIAKnown publisherNVIDIA/Personal-AI-Router/.cursor/rules/build-and-typecheck.mdc

Personal-AI-Router / rules

Cursor rule1.5k starsChanged 2 months agoApache-2.0View on GitHub

Build, typecheck, and the local gate to run before pushing; rules around .d.ts / tsbuildinfo files

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 10 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/Personal-AI-Router repository that our weekly crawl found: only 10 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about NVIDIA/Personal-AI-Router

The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 10

Talked about on GitHub, Hacker News and Bluesky (10 times).

On GitHub · 6

1 more on GitHub

On Hacker News · 2

The file

Files
build-and-typecheck.mdc
---
description: Build, typecheck, and the local gate to run before pushing; rules around .d.ts / tsbuildinfo files
alwaysApply: true
---
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->

# Build & Typecheck

## Run the full gate before pushing

CI fails the branch on any of these, so run all of them locally first. A red
pipeline costs a full round trip; these take about a minute. From `desktop/`:

```bash
npm run typecheck
npm run lint
npm run dead-code:check
npm run test:unit
npm run service-contracts:check
```

The first four are exactly what `test:monorepo-gate` runs, in that order;
`service-contracts:check` is the separate `verify:service-contracts` job. Do not
report work as pushed or ready for review with any of them unrun.

`dead-code:check` is the one most often missed, because nothing else in the
local loop catches it — typecheck and lint both pass on an export that has no
importer. knip flags any exported value or type nothing imports, so a helper
exported out of habit fails the build. Fix it by:

- deleting it, if it is genuinely unused; or
- dropping the `export` when it is only referenced inside its own file — a type
  can annotate an exported function's signature without being exported itself
  (see `type-discipline.mdc`); or
- adding a justified entry to `desktop/dead-code-omissions.json`, only for a
  real false positive such as an export consumed by an external tool.

`npm run dead-code` (no `--check`) writes the same report without failing.

## Typecheck

- **Use `npm run typecheck`** to check types — not `npx tsc --noEmit` directly.
  The project has split tsconfig targets (`typecheck:node`, `typecheck:web`).
- **NEVER delete `.d.ts` files.** Some `.d.ts` files are authored sources
  (e.g. ambient type declarations in `src/`). Bulk-deleting them is destructive
  and irreversible. If `tsc` reports TS6305 ("Output file has not been built
  from source"), ignore those errors — they come from stale incremental output
  and do not affect the build.
- **Delete `*.tsbuildinfo` only** if incremental caches cause issues. These are
  safe to remove.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.