Distilled from 4,533 real repositories · 20 stack & framework starters · Pre-verified by AgentLint
    切换中文版

    Verified CLAUDE.md & AGENTS.md templates by stack.

    Every template pairs empirical adoption statistics from real open-source codebases with copy-paste commands, Don't/Instead/Because boundaries, and pre-verified AgentLint scores.

    1,533 repos analyzed 100/100

    TypeScript

    Strict types, fast Vitest loops, and ESM/CJS boundaries distilled from 1,533 TypeScript repos.

    npx vitest run src/path/to/unit.test.tsGet template
    929 repos analyzed 100/100

    Python

    pytest, ruff, uv/venv isolation, and strict typing rules distilled from 929 Python repos.

    uv run pytest tests/unit/test_target.py -x -qGet template
    259 repos analyzed 100/100

    JavaScript

    ESM/CJS hygiene, Node test runners, and dependency discipline distilled from 259 JavaScript repos.

    node --test test/unit.test.jsGet template
    211 repos analyzed 100/100

    Rust

    Fast cargo check loops, clippy strictness, and zero-unwrap discipline from 211 Rust repos (including uv & ruff).

    cargo test -p <crate> <test_name> -- --nocaptureGet template
    210 repos analyzed 100/100

    Go

    Table-driven tests, race detector flags, and explicit error wrapping from 210 Go repos.

    go test ./pkg/target/... -run TestName -vGet template
    304 repos analyzed 85/100

    Shell / Bash

    set -euo pipefail, ShellCheck compliance, and BSD/GNU portability from 304 Shell repos.

    bash tests/test_core.shGet template
    120 repos analyzed 98/100

    Java

    Targeted Gradle/Maven test execution, null-safety, and Spring/JVM patterns from Java repos.

    ./gradlew :module:test --tests '*TargetTest'Get template
    95 repos analyzed 89/100

    C++

    CMake/Ninja presets, clang-format, sanitizers, and RAII safety distilled from C++ repos.

    ctest --preset debug -R TargetTest --output-on-failureGet template
    99 repos analyzed 95/100

    C# / .NET

    dotnet test filters, nullable reference types, and analyzer enforcement from 99 C# repos.

    dotnet test --no-restore --filter FullyQualifiedName~TargetTestsGet template
    80 repos analyzed 89/100

    Swift

    SwiftPM targeted tests, strict concurrency, and SwiftLint rules distilled from Swift repos.

    swift test --filter TargetTestsGet template
    70 repos analyzed 94/100

    Kotlin

    Coroutines safety, ktlint/detekt gates, and Gradle test filtering from Kotlin repos.

    ./gradlew :app:testDebugUnitTest --tests '*TargetTest'Get template
    64 repos analyzed 87/100

    PHP

    Pest/PHPUnit filters, PHPStan strictness, and Composer scripts from 64 PHP repos.

    vendor/bin/pest --filter=TargetTestGet template
    55 repos analyzed 89/100

    Dart / Flutter

    flutter test filters, dart analyze strictness, and widget testing rules from Dart/Flutter repos.

    flutter test test/unit/target_test.dartGet template
    420 repos analyzed 95/100

    Monorepo (Turborepo / Nx / Workspace)

    Scoped root + package CLAUDE.md/AGENTS.md hierarchy and conditional loading for multi-package repos.

    pnpm --filter @org/pkg test -- src/target.test.tsGet template
    439 repos analyzed 100/100

    Next.js (App Router)

    Server vs Client component boundaries, App Router caching, and fast Vitest/Playwright checks from 439 Next.js repos.

    npx vitest run src/app/billing/page.test.tsxGet template
    1,031 repos analyzed 100/100

    React + Vite

    Strict component props, predictable hooks, and fast Vitest/Testing Library loops distilled from 1,031 React repos.

    npx vitest run src/components/CheckoutForm.test.tsxGet template
    Verified framework starter 100/100

    FastAPI (Python)

    Async/sync boundary safety, Pydantic v2 validation, Alembic migrations, and fast pytest loops for FastAPI services.

    uv run pytest tests/unit/test_routes.py -x -q -m 'not slow'Get template
    Verified framework starter 100/100

    Django (Python)

    Migration safety, N+1 query prevention, DRF serializer guards, and fast targeted manage.py / pytest runs.

    uv run pytest apps/billing/tests/test_models.py -x -qGet template
    Verified framework starter 100/100

    Vue 3 / Nuxt

    Composition API <script setup>, Vue Reactivity hygiene, vue-tsc typechecking, and fast Vitest loops.

    npx vitest run src/composables/useCart.test.tsGet template
    Verified framework starter 100/100

    SvelteKit (Svelte 5)

    Svelte 5 runes ($state, $derived), svelte-check type safety, and server-only $env/static/private guards.

    npx vitest run src/lib/server/auth.test.tsGet template