agentleFS
TanStackTanStack/ai/.github/instructions/copilot-instructions.md

ai / instructions

Copilot instructions3.2k starsChanged 2 months agoMITView on GitHub

Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes. Whenever you want to build the packages to test if they work you should run pnpm run build from the root of the repository. If you want to check if the examples work you need to go to examples/<example-name> and run pnpm run dev. When writing code, please follow these guidelines: If you get an error "address already in use :::42069 you…

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 1 mentionAug 2026: 5 mentionsSep 2026: 10 mentionsOct 2026: 6 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the TanStack/ai repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about TanStack/ai

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

See all 30

Talked about on GitHub and Bluesky (30 times).

On GitHub · 28

23 more on GitHub

On Bluesky · 2

The file

We split this copilot-instructions.md into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you want to check if the examples work you need to go to examples/<example-name> and run pnpm run dev.

    line 9
  2. Distinctive:

    When writing code, please follow these guidelines:

    line 11
  3. Distinctive:

    Use TypeScript for all new code.

    line 13
  4. Distinctive:

    Ensure all new code is covered by tests.

    line 14
  5. Very specific:

    Do not use any type; prefer specific types or generics.

    line 15
  6. Distinctive:

    Follow existing code style and conventions.

    line 16
  7. Distinctive:

    If you get an error "address already in use :::42069 you should kill the process using that port.

    line 18
  8. Very specific:

    If we add a new functionality add a section about it in the docs/ folder explaining how to use it and update the README.md file to mention …

    line 20
  9. Distinctive:

    Write tests for any new functionality.

    line 22
  10. Distinctive:

    When defining new types, first check if the types exist somewhere and re-use them, do not create new types that are similar to existing …

    line 24
  11. Distinctive:

    When modifying existing functionality, ensure backward compatibility unless there's a strong reason to introduce breaking changes.

    line 26
  12. Very specific:

    Do not add Select-Object -Last X at the end of PowerShell commands in the CI scripts.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.

Whenever you want to build the packages to test if they work you should run pnpm run build from the root of the repository.

If you want to check if the examples work you need to go to examples/<example-name> and run pnpm run dev.

When writing code, please follow these guidelines:

  • Use TypeScript for all new code.
  • Ensure all new code is covered by tests.
  • Do not use any type; prefer specific types or generics.
  • Follow existing code style and conventions.

If you get an error "address already in use :::42069 you should kill the process using that port.

If we add a new functionality add a section about it in the docs/ folder explaining how to use it and update the README.md file to mention it.

Write tests for any new functionality.

When defining new types, first check if the types exist somewhere and re-use them, do not create new types that are similar to existing ones.

When modifying existing functionality, ensure backward compatibility unless there's a strong reason to introduce breaking changes. If breaking changes are necessary, document them clearly in the relevant documentation files.

Under no circumstances should casting as any be used in the codebase. Always strive to find or create the appropriate type definitions. Avoid casting unless absolutely neccessary, and even then, prefer using satisfies for type assertions to maintain type safety.

Do not add Select-Object -Last X at the end of PowerShell commands in the CI scripts. This can hide important error messages and make debugging more difficult and it also makes the process hang

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.