pair-test-style
Skill1.5k starsChanged 2 months agoApache-2.0View on GitHub
Write, refactor, or review tests in Personal AI Router using focused cases, descriptive subtests, explicit error handling, and structured assertions. Use when adding or changing Go service or desktop tests; apply to the tests in scope rather than starting a repository-wide cleanup.
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about NVIDIA/Personal-AI-Router
- A Hacker News story“Nvidia Personal-AI-Router”Hacker News · Sep 10, 2026 · 3 points
- A Hacker News story“Nvidia Personal AI Router (Pair)”Hacker News · Sep 6, 2026 · 2 points
- @mint-echosphere.bsky.social“「遊んでるPCがデータセンターに」——そこ、ちょっと看板が先に走ります🌿 NVIDIA PAIR。家の中のマシンへ、独立した推論リクエストを振り分ける仮想ルーターです。 …”Bluesky · Sep 10, 2026 · 1 likes
- turnstonelabs/turnstone“Investigate NVIDIA PAIR and NeMo Switchyard as OpenAI-compatible backends”GitHub · Sep 26, 2026
- @camilleroux.com“PAIR (NVIDIA) : router qui distribue l'inférence entre les machines du réseau local, détecte les nœuds …”Bluesky · Sep 16, 2026
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
- Sep 26, 2026Investigate NVIDIA PAIR and NeMo Switchyard as OpenAI-compatible backends — turnstonelabs/turnstone0 reactions · 1 comment
- Sep 15, 2026feat(AGENT-634): NVIDIA PAIR FORMAT fleet router + S25 node — IgorGanapolsky/trading0 reactions · 5 comments
- Sep 7, 2026[Package Request]: NVIDIA PAIR — pl4nty/winget-extras0 reactions
- Sep 6, 2026[Investigate] NVIDIA Pair support — appatalks/eva-agent0 reactions
- Sep 5, 2026Technology Radar — 2026-09-05 — carlosasantoss73-tech/AUREA0 reactions
1 more on GitHub
- Sep 5, 2026README and docs still link to the upstream NVIDIA repository — waynehoggett/Personal-AI-Router0 reactions · 1 comment
On Hacker News · 2
- Sep 10, 2026Nvidia Personal-AI-Router3 points
- Sep 6, 2026Nvidia Personal AI Router (Pair)2 points
On Bluesky · 2
- Sep 10, 2026「遊んでるPCがデータセンターに」——そこ、ちょっと看板が先に走ります🌿 NVIDIA PAIR。家の中のマシンへ、独立した推論リクエストを振り分ける仮想ルーターです。 https://x.com/so_sthbryan/status/2098000027977449906… — @mint-echosphere.bsky.social1 likes and repost · 1 reply
- Sep 16, 2026PAIR (NVIDIA) : router qui distribue l'inférence entre les machines du réseau local, détecte les nœuds disponibles, gère Ollama et LM… — @camilleroux.com0 likes and reposts · 1 reply
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/absolute-imports.mdcCursor rule
- .cursor/rules/agent-onboarding.mdcCursor rule
- .cursor/rules/architecture.mdcCursor rule
- .cursor/rules/backend-constants.mdcCursor rule
- .cursor/rules/build-and-typecheck.mdcCursor rule
- .cursor/rules/commit-sign-off.mdcCursor rule
- .cursor/rules/communication-layers.mdcCursor rule
- .cursor/rules/engines-vs-backends-naming.mdcCursor rule
- .cursor/rules/file-editing.mdcCursor rule
- .cursor/rules/imports-discipline.mdcCursor rule
- .cursor/rules/ipc-patterns.mdcCursor rule
- .cursor/rules/model-registry.mdcCursor rule
- .cursor/rules/no-legacy-fallbacks.mdcCursor rule
- .cursor/rules/no-push-to-main.mdcCursor rule
- .cursor/rules/platform-helpers.mdcCursor rule
- .cursor/rules/proxy-inference-routing.mdcCursor rule
- .cursor/rules/readme-ownership.mdcCursor rule
- .cursor/rules/renderer-stores.mdcCursor rule
- .cursor/rules/security.mdcCursor rule
- .cursor/rules/service-contracts.mdcCursor rule
- .cursor/rules/services-agent-onboarding.mdcCursor rule
- .cursor/rules/services-change-propagation.mdcCursor rule
- .cursor/rules/state-and-auto-start.mdcCursor rule
- .cursor/rules/system-architecture.mdcCursor rule
- .cursor/rules/test-type-discipline.mdcCursor rule
- .cursor/rules/type-discipline.mdcCursor rule
- .cursor/rules/type-safety.mdcCursor rule
- kaizen-uiSkill
- sync-backendSkill
- pair-github-prSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Keep each test's setup, action, and expected behavior easy to follow.
- Distinctive: line 24
Keep a table-driven test dedicated to its related cases.
- Distinctive: line 26
Prefer explicit cases over nested loops and boolean mode matrices when the combinations obscure what is being checked.
- Distinctive: line 40
Use ordinary tables when they are clearer.
- Distinctive: line 46
Keep helpers local unless reuse across tests justifies a shared fixture.
- Distinctive: line 50
Check setup, file I/O, encoding, decoding, and operation errors.
- Very specific: line 53
Prefer explicit t.Fatalf checks or a small test-only must-succeed helper that fails immediately.
- Very specific: line 57
Avoid strings.Contains as evidence that a serialized response or persisted configuration has the correct values.
- Distinctive: line 59
Use substring assertions when the contract is actually unstructured text, such as a diagnostic, and the selected text is what the test …
- Very specific: line 61
Use named constants such as http.StatusBadGateway and http.MethodPut instead of magic protocol values.
- Distinctive: line 71
Do not introduce a new framework or production-only test hooks for this style.
- Distinctive: line 73
Run the relevant existing tests and required repository checks.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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.
Files
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->PAIR test style
Keep each test's setup, action, and expected behavior easy to follow. These conventions apply to contributors and coding agents working on repository tests. They guide test structure; they do not require new coverage or unrelated rewrites.
Focus each test
- Give each top-level test one behavior to prove. Split long tests that combine validation, persistence, restart, and recovery into independently readable tests.
- Keep a table-driven test dedicated to its related cases. Put an unrelated one-off assertion or scenario in its own test function.
- Prefer explicit cases over nested loops and boolean mode matrices when the combinations obscure what is being checked. Keep a matrix when the combinations themselves are the behavior under test and the names explain them.
- Name subtests after their scenario or outcome:
process mode,command mode,rejects bind override, orpreserves response body, rather thantrue,false, or an index.
Share setup without hiding the cases
For Go cases with the same setup and assertions, prefer a local helper closure
that captures shared setup and calls t.Run. List explicit, named calls below
it. A signature such as test := func(name, input, wantError string) often makes
cases easier to read than a large table with mode-dependent branches.
Use ordinary tables when they are clearer. Separate acceptance and rejection helpers when that removes branching and makes expected outcomes explicit. Keep mutable state fresh per case so cases do not depend on execution order.
Mark Go assertion and setup helpers with t.Helper(). Pass the subtest's
*testing.T to helpers that report failures so errors belong to the right case.
Keep helpers local unless reuse across tests justifies a shared fixture.
Check errors and structured results
- Check setup, file I/O, encoding, decoding, and operation errors. Do not discard an error just because the fixture is expected to be valid. Fail at the operation that failed, with enough context to diagnose it.
- Prefer explicit
t.Fatalfchecks or a small test-only must-succeed helper that fails immediately. AMusthelper is optional; avoid adding an abstraction when an explicit check is clearer. - Decode JSON and other structured output, then assert the relevant fields.
Avoid
strings.Containsas evidence that a serialized response or persisted configuration has the correct values. Check parsing errors before fields. - Use substring assertions when the contract is actually unstructured text, such as a diagnostic, and the selected text is what the test intends to verify.
- Use named constants such as
http.StatusBadGatewayandhttp.MethodPutinstead of magic protocol values. Format multiline fixtures and header maps readably; rungofmton changed Go tests.
Fit the existing test suite
For desktop tests, carry over the same focus, naming, error handling, and structured assertions using Vitest's existing patterns. Follow desktop test conventions for typed mocks, module-boundary fakes, network isolation, and temporary-directory cleanup. Do not introduce a new framework or production-only test hooks for this style.
Run the relevant existing tests and required repository checks. In review, verify that each changed test has a clear failure condition, names the behavior it proves, checks its setup errors, and can be understood without tracing an unrelated scenario. State any verification that could not be run.
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
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.

