Baz Baz

Skills Library

Browse hundreds of reusable prompts you can apply directly as skills.

Open any skill to inspect copy-ready guidance and use it as a practical skill distilled from real-world code review comments.

Skills (4824)

  • Canonical Documentation Entries

    EbookFoundation/free-programming-books
    Documentation Markdown
    47
    ⭐ 388003

    When adding or updating documentation entries (e.g., course/resource lists), use canonical metadata and URL...

    ⛶
  • documentation clarity standards

    remix-run/react-router
    React Markdown
    30
    ⭐ 55270

    Ensure all React-related documentation, comments, and descriptions maintain high standards of clarity, accu...

    ⛶
  • Use runServerless utility

    serverless/serverless
    Testing JavaScript
    25
    ⭐ 46810

    All new tests must be written using the `runServerless` utility instead of legacy testing approaches. This ...

    ⛶
  • Complete locale translations

    RooCodeInc/Roo-Code
    Documentation Json
    25
    ⭐ 17288

    Ensure that all text strings in locale-specific files are properly translated into their respective languag...

    ⛶
  • Configuration ownership and determinism

    p-e-w/heretic
    Configurations Python
    25
    ⭐ 5002

    Summary - Ensure configuration is explicit, owned by the correct component (application vs plugin), and det...

    ⛶
  • Use environment variables

    hashicorp/terraform
    Configurations Other
    21
    ⭐ 45532

    When working with configurations that require sensitive data (credentials, tokens, passwords), always use e...

    ⛶
  • reduce complexity for readability

    servo/servo
    Code Style Rust
    20
    ⭐ 32962

    Prioritize code readability by reducing complexity through better organization and clearer patterns. Use ea...

    ⛶
  • Prevent sensitive data exposure

    bridgecrewio/checkov
    Security Python
    20
    ⭐ 7667

    Never log or store sensitive information (passwords, tokens, secrets) in clear text. This common security v...

    ⛶
  • Use descriptive names

    strands-agents/sdk-python
    Naming Conventions Python
    19
    ⭐ 4044

    Choose names that clearly convey purpose and intent rather than generic or ambiguous terms. Names should be...

    ⛶
  • Docstring Standards

    TheAlgorithms/Python
    Documentation Python
    19
    ⭐ 220912

    Apply a single documentation rule set across the codebase: - **Module/file docstring:** Each file should h...

    ⛶
  • API authentication requirements

    langflow-ai/langflow
    API Markdown
    19
    ⭐ 111046

    Ensure all API documentation and code examples include proper authentication headers and clearly explain au...

    ⛶
  • configuration value consistency

    traefik/traefik
    Configurations Markdown
    18
    ⭐ 55772

    Ensure configuration values follow consistent formats, use meaningful defaults, and accurately distinguish ...

    ⛶
  • Complete network configurations

    traefik/traefik
    Networking Markdown
    17
    ⭐ 55772

    Network configuration examples and documentation should include all essential networking components such as...

    ⛶
  • Optimize allocation hotspots

    netty/netty
    Performance Optimization Java
    17
    ⭐ 34227

    Identify and optimize object allocation in performance-critical paths by applying appropriate allocation st...

    ⛶
  • Configuration documentation clarity

    langflow-ai/langflow
    Configurations Markdown
    17
    ⭐ 111046

    Ensure configuration documentation clearly distinguishes between deployment contexts and uses consistent te...

    ⛶
  • no braces short ifs

    hyprwm/Hyprland
    Code Style C++
    17
    ⭐ 28863

    Remove braces around single-statement if blocks to maintain consistent code style and improve readability. ...

    ⛶
  • Use meaningful names

    juspay/hyperswitch
    Naming Conventions Rust
    17
    ⭐ 34028

    Use descriptive, self-explanatory names for variables, methods, fields, and types. Avoid single-letter vari...

    ⛶
  • optimize database operations

    apache/spark
    Database Other
    16
    ⭐ 41554

    When working with database operations, prioritize batching multiple statements and pushing operations down ...

    ⛶
  • Use descriptive semantic names

    serverless/serverless
    Naming Conventions JavaScript
    16
    ⭐ 46810

    Variable and function names should clearly communicate their purpose, type, and scope without requiring add...

    ⛶
  • Validate boundary conditions

    rust-lang/rust
    Algorithms Rust
    16
    ⭐ 105254

    Ensure algorithms handle boundary conditions and edge cases correctly by adding explicit validation for all...

    ⛶
  • documentation formatting consistency

    nuxt/nuxt
    Next Markdown
    16
    ⭐ 57769

    Ensure consistent formatting throughout documentation by applying these standards: wrap code terms, variabl...

    ⛶
  • Comprehensive test coverage

    kubernetes/kubernetes
    Testing Go
    16
    ⭐ 116489

    Ensure comprehensive test coverage by systematically considering all scenarios, edge cases, and feature com...

    ⛶
  • Model integration rules

    p-e-w/heretic
    AI Python
    16
    ⭐ 5002

    When adding or changing model loading, quantization, LoRA/abliteration logic, or merging behavior, follow t...

    ⛶
  • Consistent module organization

    p-e-w/heretic
    Code Style Python
    16
    ⭐ 5002

    Keep code organized by responsibility and centralize reusable logic. Concretely: - Centralize helpers: mov...

    ⛶
  • Extract for clarity

    elastic/elasticsearch
    Code Style Java
    16
    ⭐ 73104

    Extract complex or reused logic into focused, well-named methods with single responsibilities. This improve...

    ⛶
  • Protect sensitive data

    bridgecrewio/checkov
    Security Python
    16
    ⭐ 7668

    Never log, display, or store sensitive information like passwords, tokens, or secrets in clear text. This c...

    ⛶
  • Comprehensive documentation standards

    tokio-rs/axum
    Documentation Rust
    16
    ⭐ 22100

    Create clear, well-structured API documentation following proper formatting, correct references, informativ...

    ⛶
  • Use descriptive names

    vlang/v
    Naming Conventions Other
    15
    ⭐ 36582

    Choose variable, function, and parameter names that clearly communicate their purpose and avoid confusion. ...

    ⛶
  • realistic documentation examples

    sveltejs/svelte
    Documentation Markdown
    15
    ⭐ 83580

    Use practical, complete examples in documentation rather than oversimplified or contrived ones that cut cor...

    ⛶
  • Avoid code duplication

    BerriAI/litellm
    Code Style Python
    15
    ⭐ 28310

    Eliminate redundant code by leveraging existing utilities, extracting reusable helper functions, and organi...

    ⛶
  • Docstrings With Intent

    langchain-ai/langchain
    Documentation Python
    15
    ⭐ 136312

    Adopt a single documentation standard: every docstring/comment should (1) explain intent and observable beh...

    ⛶
  • Organize code structure

    juspay/hyperswitch
    Code Style Rust
    15
    ⭐ 34028

    Maintain clean and well-organized code structure by following consistent organizational patterns. This impr...

    ⛶
  • Explain non-obvious code

    flutter/flutter
    Documentation Other
    15
    ⭐ 172252

    Add explanatory comments for any code that isn't immediately self-explanatory, including magic numbers, imp...

    ⛶
  • Use specific assertion methods

    fastify/fastify
    Testing JavaScript
    15
    ⭐ 34000

    Choose the appropriate assertion method based on the data type being tested. This improves test readability...

    ⛶
  • Database type consistency

    drizzle-team/drizzle-orm
    Database TypeScript
    15
    ⭐ 29461

    Ensure database-specific types, imports, and serialization are used consistently throughout the codebase. T...

    ⛶
  • Use descriptive, unambiguous names

    bazelbuild/bazel
    Naming Conventions Java
    15
    ⭐ 24489

    Choose names that clearly communicate their purpose and avoid ambiguity or misinterpretation. Names should ...

    ⛶
  • Simplify complex code

    bazelbuild/bazel
    Code Style Java
    15
    ⭐ 24489

    Break down complex code structures into simpler, more readable forms to improve maintainability and reduce ...

    ⛶
  • Consistent terminology propagation

    appwrite/appwrite
    Naming Conventions PHP
    15
    ⭐ 51959

    When changing terminology or naming conventions in a codebase, ensure complete and consistent propagation a...

    ⛶
  • eliminate unnecessary code

    Unstructured-IO/unstructured
    Code Style Python
    14
    ⭐ 12116

    Remove redundant operations, unnecessary code blocks, and verbose constructs to improve code clarity and ma...

    ⛶
  • Optimize regex patterns

    getsentry/sentry-php
    Algorithms PHP
    14
    ⭐ 1873

    When using regular expressions, optimize for both performance and precision to ensure efficient and accurat...

    ⛶
  • Internationalize all text

    RooCodeInc/Roo-Code
    Documentation TSX
    14
    ⭐ 17288

    All user-facing text must be wrapped with translation functions instead of using hardcoded English strings....

    ⛶
  • Consistent naming patterns

    octokit/octokit.net
    Naming Conventions C#
    14
    ⭐ 2793

    Follow consistent naming conventions throughout the codebase to improve readability and maintainability: 1...

    ⛶
  • Consistency And Readability

    Tencent/ncnn
    Code Style C++
    14
    ⭐ 23205

    Apply a single, repeatable style checklist across all new/modified code: 1) Remove unused/redundant code -...

    ⛶
  • Guard against null

    n8n-io/n8n
    Null Handling TypeScript
    14
    ⭐ 122978

    Always use optional chaining (`?.`) and nullish coalescing (`??`) operators when accessing potentially unde...

    ⛶
  • Handle async operation errors

    elie222/inbox-zero
    Error Handling TSX
    14
    ⭐ 8267

    Always wrap asynchronous operations in try-catch-finally blocks to prevent unhandled promise rejections and...

    ⛶
  • Keep CI configurations minimal

    laravel/framework
    CI/CD Yaml
    14
    ⭐ 33763

    When configuring CI workflows, include only the extensions, tools, and settings that are necessary for the ...

    ⛶
  • SQLAlchemy 2.0 patterns

    langgenius/dify
    Database Python
    14
    ⭐ 114231

    Migrate from legacy SQLAlchemy 1.x query patterns to modern 2.0 style for better performance, clarity, and ...

    ⛶
  • Consistent naming standards

    home-assistant/core
    Naming Conventions Json
    14
    ⭐ 80450

    Ensure all user-facing strings follow Home Assistant's naming conventions for consistency and proper intern...

    ⛶
  • Configuration validation messages

    cloudflare/workers-sdk
    Configurations TypeScript
    13
    ⭐ 3379

    Ensure configuration validation provides clear, actionable error messages that guide users toward correct c...

    ⛶
  • avoid expensive repeated operations

    vlang/v
    Performance Optimization Other
    13
    ⭐ 36582

    Cache results of expensive computations and order operations from cheapest to most expensive to minimize pe...

    ⛶
  • Add comprehensive test coverage

    vlang/v
    Testing Other
    13
    ⭐ 36582

    When adding functionality or fixing bugs, always add new test functions rather than modifying existing ones...

    ⛶
  • Enforce scope boundaries

    gravitational/teleport
    Security Markdown
    13
    ⭐ 19109

    When implementing hierarchical permission systems with scopes, ensure that permissions granted at a specifi...

    ⛶
  • Spring code style

    spring-projects/spring-framework
    Code Style Java
    13
    ⭐ 58382

    Follow Spring Framework's code style guidelines to ensure consistency across the codebase. Key rules includ...

    ⛶
  • Use semantically accurate names

    servo/servo
    Naming Conventions Rust
    13
    ⭐ 32962

    Variable, method, and type names should accurately reflect their actual purpose, content, and behavior. Avo...

    ⛶
  • Consistent descriptive naming

    prometheus/prometheus
    Naming Conventions Go
    13
    ⭐ 59616

    Ensure variable, function, and type names are consistent, descriptive, and follow Go naming conventions. Na...

    ⛶
  • Code for readability

    opencv/opencv
    Code Style C++
    13
    ⭐ 82865

    Prioritize human readability when writing code. Split complex expressions into steps with meaningful variab...

    ⛶
  • Descriptive consistent naming

    ghostty-org/ghostty
    Naming Conventions Other
    13
    ⭐ 32864

    Use descriptive, consistent naming that follows language and platform conventions. Choose names that clearl...

    ⛶
  • Use descriptive names

    flutter/flutter
    Naming Conventions Other
    13
    ⭐ 172252

    Names should clearly describe what they represent or do, rather than how they're implemented or using gener...

    ⛶
  • API parameter consistency

    electron/electron
    API Other
    13
    ⭐ 117644

    Ensure consistent parameter handling across API methods by using appropriate defaults, proper type conversi...

    ⛶
  • Clean up your code

    deeplearning4j/deeplearning4j
    Code Style Java
    13
    ⭐ 14036

    Maintain clean, professional code by removing development artifacts and improving readability: 1. **Remove...

    ⛶
  • Centralized Config Standards

    eosphoros-ai/DB-GPT
    Configurations Python
    13
    ⭐ 18703

    When implementing new behavior behind feature flags or configuration (paths, env vars, index dimensions, to...

    ⛶
  • Use descriptive contextual names

    alacritty/alacritty
    Naming Conventions Rust
    13
    ⭐ 59675

    Choose variable, function, and struct names that clearly communicate their purpose and content while consid...

    ⛶
  • Design interfaces, not implementations

    zed-industries/zed
    API Rust
    12
    ⭐ 62119

    Create intuitive API interfaces that abstract away implementation details while providing a consistent expe...

    ⛶
  • Use testify assertion libraries

    vitessio/vitess
    Testing Go
    12
    ⭐ 19815

    Replace manual if-error checks with `testify`'s `assert` and `require` packages to make tests more readable...

    ⛶
  • Use semantically clear names

    Unstructured-IO/unstructured
    Naming Conventions Python
    12
    ⭐ 12117

    Choose variable, method, and class names that clearly express their purpose and functionality to avoid conf...

    ⛶
  • simplify control flow patterns

    twentyhq/twenty
    Code Style TypeScript
    12
    ⭐ 35477

    Improve code readability by simplifying control flow structures and avoiding unnecessary complexity. This i...

    ⛶
  • Simplify complex expressions

    tree-sitter/tree-sitter
    Code Style Rust
    12
    ⭐ 21799

    Break down complex code structures into simpler, more readable forms. This includes avoiding deep nesting, ...

    ⛶
  • Configuration validation consistency

    traefik/traefik
    Configurations Go
    12
    ⭐ 55772

    Ensure configuration fields use consistent validation patterns, appropriate data types, and proper bounds c...

    ⛶
  • Use semantic naming

    microsoft/terminal
    Naming Conventions Other
    12
    ⭐ 99242

    Names should clearly communicate their purpose, type, and behavior to improve code maintainability and acce...

    ⛶
  • Guide structure consistency

    gravitational/teleport
    Documentation Other
    12
    ⭐ 19109

    Documentation guides should follow a consistent structure and provide clear, descriptive content to improve...

    ⛶
  • consistent descriptive naming

    SigNoz/signoz
    Naming Conventions Go
    12
    ⭐ 23369

    Use meaningful, descriptive names that clearly convey purpose and maintain consistency across similar conce...

    ⛶
  • eliminate code duplication

    sgl-project/sglang
    Code Style Python
    12
    ⭐ 17245

    Actively identify and eliminate code duplication by extracting common patterns into reusable components. Wh...

    ⛶
  • API consistency patterns

    remix-run/react-router
    API TypeScript
    12
    ⭐ 55270

    Ensure API design follows consistent patterns for naming, typing, and composition to improve developer expe...

    ⛶
  • CI workflow correctness

    TheAlgorithms/Python
    CI/CD Yaml
    12
    ⭐ 220912

    All CI workflows must be syntactically valid, reliably triggered, and logically non-redundant. Apply these...

    ⛶
  • Parameterize similar tests

    python-poetry/poetry
    Testing Python
    12
    ⭐ 33496

    Use `pytest.mark.parametrize` to consolidate similar test cases instead of duplicating test code. This appr...

    ⛶
  • Component naming consistency

    n8n-io/n8n
    Vue TypeScript
    12
    ⭐ 122978

    Ensure component usage in templates matches registered components. Vue components must be referenced in tem...

    ⛶
  • Clean and consistent code

    n8n-io/n8n
    Code Style Other
    12
    ⭐ 122978

    Maintain clean and consistent code by removing unnecessary elements and following standard practices: 1. *...

    ⛶
  • Eliminate redundant constructs

    apache/mxnet
    Code Style Python
    12
    ⭐ 20801

    Remove unnecessary coding patterns that add complexity without providing value. Focus on clarity and simpli...

    ⛶
  • Model specification accuracy

    lobehub/lobe-chat
    AI TypeScript
    12
    ⭐ 65138

    Ensure AI model configurations accurately reflect official specifications and avoid hardcoded assumptions. ...

    ⛶
  • prefer OpenAI compatibility

    BerriAI/litellm
    AI Python
    12
    ⭐ 28310

    When integrating new LLM providers or AI services, prioritize OpenAI-compatible patterns and reuse existing...

    ⛶
  • Mock tests in tests/litellm

    BerriAI/litellm
    Testing Python
    12
    ⭐ 28310

    All new functionality must include mock tests placed in the `tests/litellm/` directory structure. Mock exte...

    ⛶
  • Use descriptive names

    istio/istio
    Naming Conventions Go
    12
    ⭐ 37192

    Names should accurately reflect their actual functionality and behavior. Avoid misleading or vague identifi...

    ⛶
  • consistent highlighting patterns

    helix-editor/helix
    Code Style Other
    12
    ⭐ 39026

    Maintain consistency in syntax highlighting patterns by using appropriate, specific scopes and avoiding ove...

    ⛶
  • Lint-Compliant Markdown Links

    EbookFoundation/free-programming-books
    Code Style Markdown
    12
    ⭐ 388003

    When adding/updating entries in markdown lists, follow the repository’s lint-safe formatting and platform/l...

    ⛶
  • Use extensible parameter objects

    electron/electron
    API Markdown
    12
    ⭐ 117644

    When designing APIs that may need additional parameters in the future, use objects instead of individual pa...

    ⛶
  • Provide contextual explanations

    electron/electron
    Documentation Markdown
    12
    ⭐ 117644

    Documentation should explain not just what APIs and features do, but when, why, and how to use them. Provid...

    ⛶
  • Use descriptive identifiers

    discourse/discourse
    Naming Conventions Ruby
    12
    ⭐ 44898

    Choose names that clearly communicate purpose and reduce cognitive load for future readers. Avoid generic, ...

    ⛶
  • Follow existing naming patterns

    docker/compose
    Naming Conventions Go
    12
    ⭐ 35858

    Maintain consistency with established naming conventions throughout the codebase. When adding new flags, fu...

    ⛶
  • consistent readable patterns

    snyk/cli
    Code Style TypeScript
    12
    ⭐ 5178

    Maintain consistent coding patterns and prioritize readability to make code easier to understand and mainta...

    ⛶
  • Limit token permissions

    chef/chef
    Security Yaml
    12
    ⭐ 7860

    Always specify the minimum required permissions for the GITHUB_TOKEN in GitHub Actions workflows to enhance...

    ⛶
  • Readable formatting and idioms

    celery/celery
    Code Style Python
    12
    ⭐ 28464

    Prioritize readability through consistent formatting and modern, simple idioms. For code style changes, ens...

    ⛶
  • Maintain consistent style

    oven-sh/bun
    Code Style Other
    12
    ⭐ 79093

    Maintain consistent style patterns throughout the codebase to improve readability, reduce maintenance overh...

    ⛶
  • Follow support tiers

    Homebrew/brew
    Configurations Markdown
    12
    ⭐ 44168

    Configure your Homebrew installation according to the defined support tiers to ensure optimal functionality...

    ⛶
  • maintain consistent style

    angular/angular
    Code Style TypeScript
    12
    ⭐ 98611

    Ensure consistent application of coding style conventions throughout the codebase, including naming pattern...

    ⛶
  • Use descriptive naming

    volcano-sh/volcano
    Naming Conventions Go
    11
    ⭐ 4899

    Choose variable, function, and method names that clearly communicate their purpose and behavior. Avoid ambi...

    ⛶
  • Optimize algorithmic efficiency

    volcano-sh/volcano
    Algorithms Go
    11
    ⭐ 4899

    Choose efficient algorithms and data structures to minimize computational overhead and improve code maintai...

    ⛶
  • Eliminate code redundancy

    vllm-project/vllm
    Code Style Python
    11
    ⭐ 51730

    Keep your codebase maintainable by eliminating both unnecessary and duplicated code: 1. **Remove debugging...

    ⛶
  • PEP 257 docstring compliance

    Unstructured-IO/unstructured
    Documentation Python
    11
    ⭐ 12116

    All public modules, classes, methods, and functions must have docstrings that follow PEP 257 formatting sta...

    ⛶
  • explicit None handling

    Unstructured-IO/unstructured
    Null Handling Python
    11
    ⭐ 12116

    Always handle potential None values explicitly through defensive programming patterns, proper type annotati...

    ⛶
  • Minimize allocation hotspots

    spring-projects/spring-framework
    Performance Optimization Java
    11
    ⭐ 58382

    Reduce object creation in performance-critical paths by carefully evaluating allocation patterns. For frequ...

    ⛶
  • Improve code organization

    sgl-project/sglang
    AI Python
    11
    ⭐ 17245

    Prioritize clean code structure and readability in AI/ML codebases by avoiding inline conditionals, using d...

    ⛶
  • optimize algorithmic complexity

    servo/servo
    Algorithms Rust
    11
    ⭐ 32962

    Prioritize algorithmic efficiency by choosing operations and data structures that minimize computational co...

    ⛶
  • comprehensive API documentation

    servo/servo
    Documentation Rust
    11
    ⭐ 32962

    All public items, struct fields, and methods must have comprehensive documentation. When implementing web s...

    ⛶
  • Split for better readability

    getsentry/sentry-php
    Code Style PHP
    11
    ⭐ 1873

    Break long lines and complex structures across multiple lines to improve code readability. Follow these gui...

    ⛶
  • require module documentation

    semgrep/semgrep
    Documentation Other
    11
    ⭐ 12598

    All modules containing functions should have corresponding .mli files with comprehensive documentation. The...

    ⛶
  • Optimize for readability

    dotnet/runtime
    Code Style C#
    11
    ⭐ 16578

    Write code that clearly communicates intent by using appropriate naming and formatting techniques. Improve ...

    ⛶
  • Device-agnostic acceleration code

    pytorch/pytorch
    AI Python
    11
    ⭐ 91345

    Avoid hardcoding specific device types like 'cuda' in AI code. Instead, use device-agnostic approaches such...

    ⛶
  • Validate Inputs Explicitly

    TheAlgorithms/Python
    Error Handling Python
    11
    ⭐ 220912

    Enforce each function’s documented input contract with early, explicit checks; raise specific exceptions wi...

    ⛶
  • maintain code consistency

    emcie-co/parlant
    Code Style Python
    11
    ⭐ 12205

    Ensure consistent patterns, formatting, and conventions throughout the codebase. Inconsistencies in code st...

    ⛶
  • Craft actionable errors

    opentofu/opentofu
    Error Handling Go
    11
    ⭐ 25901

    Create error messages that provide precise context, avoid unnecessary details, and give users clear actions...

    ⛶
  • precise language usage

    nuxt/nuxt
    Documentation Markdown
    11
    ⭐ 57769

    Use precise, natural language in documentation to improve clarity and readability. Focus on accurate word c...

    ⛶
  • Idempotent error-safe disposers

    nodejs/node
    Error Handling Markdown
    11
    ⭐ 112178

    When implementing resource cleanup logic, especially disposers for explicit resource management, always des...

    ⛶
  • Follow modern C++ guidelines

    maplibre/maplibre-native
    Code Style Other
    11
    ⭐ 1411

    Adhere to the C++ Core Guidelines for improved code quality, readability, and maintainability. Follow these...

    ⛶
  • consolidate algorithmic patterns

    ggml-org/llama.cpp
    Algorithms CUDA
    11
    ⭐ 83559

    Avoid duplicating similar algorithmic logic across multiple functions by consolidating them into generic, t...

    ⛶
  • AI model data validation

    BerriAI/litellm
    AI Json
    11
    ⭐ 28310

    All AI model configuration parameters must be verified against official provider documentation before mergi...

    ⛶
  • Organize documentation content

    langflow-ai/langflow
    Documentation Markdown
    11
    ⭐ 111046

    Structure documentation to prevent information overload and improve readability by using appropriate organi...

    ⛶
  • Use semantically clear names

    kubernetes/kubernetes
    Naming Conventions Go
    11
    ⭐ 116489

    Choose names that accurately reflect the actual functionality, purpose, or semantic meaning rather than usi...

    ⛶
  • Feature gate field preservation

    kubernetes/kubernetes
    Configurations Go
    11
    ⭐ 116489

    When implementing feature-gated fields, always preserve existing field values when the feature gate is disa...

    ⛶
  • Names express clear intent

    JetBrains/kotlin
    Naming Conventions Kotlin
    11
    ⭐ 50857

    Choose names that clearly express intent and follow established conventions. Prefer explicit, descriptive n...

    ⛶
  • comprehensive test coverage

    apache/kafka
    Testing Java
    11
    ⭐ 30575

    Ensure tests cover not only the happy path but also edge cases, error scenarios, and complete workflows. Ma...

    ⛶
  • consistent command flag design

    jj-vcs/jj
    API Rust
    11
    ⭐ 21171

    Design command-line interfaces with consistent flag semantics and leverage framework features for validatio...

    ⛶
  • Sanitize all inputs

    elie222/inbox-zero
    Security TypeScript
    11
    ⭐ 8267

    Properly sanitize or escape all user-provided inputs before using them in sensitive contexts to prevent inj...

    ⛶
  • explicit error handling

    juspay/hyperswitch
    Error Handling Rust
    11
    ⭐ 34028

    Avoid catch-all patterns and implicit error handling. Handle each error case explicitly, use the ? operator...

    ⛶
  • Use clear names

    p-e-w/heretic
    Naming Conventions Python
    11
    ⭐ 5002

    Rule: choose concise, semantically accurate, and responsibility-respecting names for identifiers (variables...

    ⛶
  • Surface errors clearly

    p-e-w/heretic
    Error Handling Python
    11
    ⭐ 5002

    Rule: Fail fast, validate assumptions, and distinguish user cancellation. Motivation - Hidden or silently ...

    ⛶
  • Use descriptive naming

    duckdb/duckdb
    Naming Conventions C++
    11
    ⭐ 32061

    Choose names that clearly communicate intent and purpose rather than being generic, abbreviated, or potenti...

    ⛶
  • Use descriptive names

    duckdb/duckdb
    Naming Conventions Other
    11
    ⭐ 32061

    Names should be descriptive and unambiguous, clearly communicating their purpose and intent. Avoid abbrevia...

    ⛶
  • Use descriptive names

    stanfordnlp/dspy
    Naming Conventions Python
    11
    ⭐ 27813

    Choose variable, method, class, and parameter names that clearly communicate their purpose and avoid ambigu...

    ⛶
  • Mock external dependencies only

    home-assistant/core
    Testing Python
    11
    ⭐ 80450

    When writing tests for Home Assistant integrations, mock external library dependencies rather than Home Ass...

    ⛶
  • Use descriptive semantic names

    ClickHouse/ClickHouse
    Naming Conventions C++
    11
    ⭐ 42425

    Names should accurately reflect their purpose, behavior, and semantic meaning to avoid confusion and improv...

    ⛶
  • Avoid unnecessary allocations

    ClickHouse/ClickHouse
    Performance Optimization C++
    11
    ⭐ 42425

    Minimize memory allocations, data copying, and expensive operations by implementing early exits, using move...

    ⛶
  • Add explanatory comments

    bazelbuild/bazel
    Documentation Java
    11
    ⭐ 24489

    Add explanatory comments and documentation for complex logic, non-obvious code behavior, method parameters,...

    ⛶
  • Standardize platform-agnostic configuration

    zed-industries/zed
    Configurations Rust
    10
    ⭐ 62119

    Ensure configuration handling is consistent and platform-agnostic by following these guidelines: 1. Use en...

    ⛶
  • prioritize code clarity

    cloudflare/workerd
    Code Style Other
    10
    ⭐ 6989

    Write code that prioritizes readability and clarity over minor optimizations or clever shortcuts. When face...

    ⛶
  • Validate nullability with types

    microsoft/vscode
    Null Handling TypeScript
    10
    ⭐ 174887

    Always handle null and undefined values explicitly through proper type declarations and validation patterns...

    ⛶
  • Document code thoroughly

    vllm-project/vllm
    Documentation Python
    10
    ⭐ 51730

    Always include comprehensive documentation for your code through both docstrings and explanatory comments. ...

    ⛶
  • Improve code clarity

    vlang/v
    Code Style Other
    10
    ⭐ 36582

    Write code that clearly expresses intent through explicit patterns, simplified logic, and readable structur...

    ⛶
  • prioritize code clarity

    unionlabs/union
    Code Style Rust
    10
    ⭐ 74800

    Write code that prioritizes readability and explicitness over brevity. This includes using explicit type co...

    ⛶
  • Configuration documentation clarity

    astral-sh/ty
    Configurations Markdown
    10
    ⭐ 11919

    Configuration documentation should be precise, specific, and include helpful context for users. Avoid vague...

    ⛶
  • Use proper types

    tensorflow/tensorflow
    Code Style Other
    10
    ⭐ 190625

    Maintain code clarity by using appropriate type declarations and parameter passing conventions: 1. **Prefe...

    ⛶
  • Organize code by functionality

    gravitational/teleport
    Code Style Go
    10
    ⭐ 19109

    Structure code based on what it does rather than how it's implemented. Group related functionality together...

    ⛶
  • Complete API documentation

    spring-projects/spring-framework
    Documentation Java
    10
    ⭐ 58382

    Documentation should be complete, accurate, and follow Spring Framework conventions. Ensure your Javadocs i...

    ⛶
  • Purposeful documentation standards

    getsentry/sentry-php
    Documentation PHP
    10
    ⭐ 1873

    Documentation should convey purpose and behavior, not just replicate code structure. Each docblock should e...

    ⛶
  • Clear Semantic Identifier Naming

    redis/redis
    Naming Conventions C
    10
    ⭐ 74261

    Adopt naming conventions that are (1) case-consistent by identifier kind and (2) semantically self-document...

    ⛶
  • Thread-safe shared state

    facebook/react-native
    Concurrency Java
    10
    ⭐ 123178

    Ensure that shared mutable state is properly protected against concurrent access to prevent race conditions...

    ⛶
  • Config Documentation Constraints

    infiniflow/ragflow
    Configurations Markdown
    10
    ⭐ 80174

    When adding or updating configuration-related docs (env vars, config files, feature/transport flags, and de...

    ⛶
  • Standardize configuration paths

    quarkusio/quarkus
    Configurations Other
    10
    ⭐ 14667

    Follow consistent patterns for storing and referencing configuration files across projects. Place custom co...

    ⛶
  • Automate All Behavior Tests

    TheAlgorithms/Python
    Testing Python
    10
    ⭐ 220912

    For every algorithmic change (and every public function/class), require automated tests that lock in both c...

    ⛶
  • Next.js directory structure

    prowler-cloud/prowler
    Code Style TypeScript
    10
    ⭐ 11834

    Keep the Next.js `/app` directory strictly for routing purposes as per framework conventions. Non-routing r...

    ⛶
  • simplify complex algorithms

    prometheus/prometheus
    Algorithms Go
    10
    ⭐ 59616

    When implementing algorithms, prioritize simplicity and maintainability over premature optimization. Comple...

    ⛶
  • Safe null handling

    pola-rs/polars
    Null Handling Rust
    10
    ⭐ 34296

    Always implement robust null handling patterns to prevent unexpected behavior and crashes. Consider all edg...

    ⛶
  • Extract duplicated code

    pola-rs/polars
    Code Style Rust
    10
    ⭐ 34296

    Identify and extract duplicated code into reusable functions or move common fields to parent structures. Th...

    ⛶
  • prefer simple readable code

    python-poetry/poetry
    Code Style Python
    10
    ⭐ 33496

    Write code that prioritizes clarity and simplicity over cleverness. This improves maintainability and reduc...

    ⛶
  • Use descriptive identifier names

    microsoft/playwright
    Naming Conventions TypeScript
    10
    ⭐ 76113

    Choose specific, descriptive names for variables, methods, types, and other identifiers that clearly commun...

    ⛶
  • Consistent descriptive naming

    opencv/opencv
    Naming Conventions Other
    10
    ⭐ 82865

    Use clear, descriptive names that follow consistent patterns established in the codebase and broader progra...

    ⛶
  • configuration resolution patterns

    nuxt/nuxt
    Configurations TypeScript
    10
    ⭐ 57769

    When defining configuration schemas, use consistent patterns for safe property access, async resolution, an...

    ⛶
  • type-safe database operations

    rocicorp/mono
    Database TypeScript
    10
    ⭐ 2091

    Implement proper type conversion and validation when working with different database systems to prevent run...

    ⛶
  • Precise Scenario-Based Testing

    mermaid-js/mermaid
    Testing TypeScript
    10
    ⭐ 87952

    When writing tests, ensure they (1) match the scenario name and input data, (2) exercise behavior through t...

    ⛶
  • Consistent Naming Rules

    mermaid-js/mermaid
    Naming Conventions TypeScript
    10
    ⭐ 87952

    Adopt consistent, explicit identifier naming across diagrams and TypeScript APIs. **Rules** 1) **Diagram i...

    ⛶
  • Avoid unnecessary auto

    llvm/llvm-project
    Code Style C++
    10
    ⭐ 33702

    Use explicit types instead of `auto` unless the type is obvious from the right-hand side of the assignment ...

    ⛶
  • TypeScript naming standards

    langchain-ai/langchainjs
    Naming Conventions TypeScript
    10
    ⭐ 15004

    Follow consistent naming conventions in TypeScript to improve code clarity, type safety, and developer expe...

    ⛶
  • simplify code structure

    kubernetes/kubernetes
    Code Style Go
    10
    ⭐ 116489

    Prioritize code simplification by removing unnecessary complexity, avoiding duplication, and leveraging exi...

    ⛶
  • Define technical terms clearly

    jj-vcs/jj
    Documentation Markdown
    10
    ⭐ 21171

    Always define technical terms and concepts explicitly in documentation rather than assuming reader knowledg...

    ⛶
  • Handle errors with care

    elie222/inbox-zero
    Error Handling TypeScript
    10
    ⭐ 8267

    Always implement comprehensive error handling for asynchronous operations, external API calls, and database...

    ⛶
  • Minimize allocations and syscalls

    helix-editor/helix
    Performance Optimization Rust
    10
    ⭐ 39026

    Optimize performance by minimizing unnecessary memory allocations and system calls. Key practices: 1. Avoi...

    ⛶
  • AI model integration patterns

    google-gemini/gemini-cli
    AI TypeScript
    10
    ⭐ 65062

    When integrating with AI models and LLMs, structure your code to properly handle model responses, separate ...

    ⛶
  • Validate Block JSON

    freeCodeCamp/freeCodeCamp
    CI/CD Json
    10
    ⭐ 444449

    Ensure every `curriculum/structure/blocks/*.json` file matches the CI-validated schema and constraints. - ...

    ⛶
  • Documentation clarity rules

    freeCodeCamp/freeCodeCamp
    Documentation Markdown
    10
    ⭐ 444449

    When writing technical curriculum/docs, ensure the content is (a) accurate, (b) unambiguous about what lear...

    ⛶
  • Optimize for code readability

    laravel/framework
    Code Style PHP
    10
    ⭐ 33763

    Prioritize code readability over clever solutions by: 1. Using early returns to reduce nesting 2. Leveragin...

    ⛶
  • optimize algorithmic efficiency

    electron/electron
    Algorithms Other
    10
    ⭐ 117644

    Choose efficient data structures and algorithms to minimize computational overhead and improve performance....

    ⛶
  • Use descriptive names

    langgenius/dify
    Naming Conventions Python
    10
    ⭐ 114231

    Choose names that clearly describe the purpose, behavior, or content of variables, methods, and classes. Av...

    ⛶
  • Safe null handling

    langgenius/dify
    Null Handling Python
    10
    ⭐ 114231

    Handle null and undefined values safely by using appropriate fallback patterns, validating critical paramet...

    ⛶
  • organize code structure

    denoland/deno
    Code Style Rust
    10
    ⭐ 103714

    Maintain clean code organization by moving implementation details to appropriate locations, extracting reus...

    ⛶
  • Centralize dependency management

    deeplearning4j/deeplearning4j
    Configurations Xml
    10
    ⭐ 14036

    Manage dependencies at the top level using `` to ensure version consistency across mo...

    ⛶
  • Graceful error handling

    snyk/cli
    Error Handling TypeScript
    10
    ⭐ 5178

    Implement robust error handling that provides fallback mechanisms, ensures proper resource cleanup, and del...

    ⛶
  • Restrict public access

    bridgecrewio/checkov
    Networking Python
    10
    ⭐ 7667

    Cloud resources should be configured to restrict public network access by default to minimize potential att...

    ⛶
  • Extract focused functions

    bridgecrewio/checkov
    Code Style Python
    10
    ⭐ 7667

    Break down complex logic into small, well-named functions that each do one thing well. This improves code r...

    ⛶
  • Consistent naming conventions

    bridgecrewio/checkov
    Naming Conventions Python
    10
    ⭐ 7668

    Maintain consistent naming patterns throughout the codebase to improve readability and reduce confusion: 1...

    ⛶
  • Document version annotations

    celery/celery
    Documentation Other
    10
    ⭐ 28464

    When a doc section introduces a new configuration option or feature, include accurate version metadata (Cel...

    ⛶
  • Deterministic exception handling

    celery/celery
    Error Handling Python
    10
    ⭐ 28464

    When handling errors, ensure (1) you don’t accidentally change which exception path fires, (2) recovery/cle...

    ⛶
  • Avoid Unnecessary Work

    celery/celery
    Performance Optimization Python
    10
    ⭐ 28464

    Prefer eliminating work that can’t affect observable behavior and prevent resource retention in hot paths. ...

    ⛶
  • Prefer explicit nil handling

    Homebrew/brew
    Null Handling Ruby
    10
    ⭐ 44168

    Handle nil values explicitly and consistently to improve code clarity and type safety. Follow these guideli...

    ⛶
  • consistent configuration handling

    better-auth/better-auth
    API TypeScript
    10
    ⭐ 19651

    Ensure configuration options are handled uniformly across all API endpoints and providers. Configuration sh...

    ⛶
  • Type-safe flexible APIs

    tokio-rs/axum
    API Rust
    10
    ⭐ 22100

    Design APIs that favor both type safety and flexibility. Use strongly typed wrappers instead of primitive t...

    ⛶
  • Validate environment variables

    appwrite/appwrite
    Configurations PHP
    10
    ⭐ 51959

    Always validate environment variables before use and implement proper fallback strategies. For required var...

    ⛶
  • Handle errors gracefully always

    appwrite/appwrite
    Error Handling PHP
    10
    ⭐ 51959

    Always implement graceful error handling for resource lookups, data parsing, and system operations. Catch s...

    ⛶
  • Enforce API endpoint consistency

    appwrite/appwrite
    API PHP
    10
    ⭐ 51959

    When implementing or modifying API endpoints, ensure consistency across related routes by checking: 1. Par...

    ⛶
  • optimize algorithmic efficiency

    alacritty/alacritty
    Algorithms Rust
    10
    ⭐ 59675

    Eliminate unnecessary operations and choose appropriate data structures to improve algorithmic efficiency. ...

    ⛶
  • Consistent semantic naming

    vercel/ai
    Naming Conventions TypeScript
    10
    ⭐ 15590

    Use clear, consistent, and semantic naming patterns across your codebase to improve readability and maintai...

    ⛶
  • Stable, Controllable API

    colinhacks/zod
    API TypeScript
    9
    ⭐ 42628

    When changing or adding public API in schema/validation libraries, prioritize a stable, user-controlled sur...

    ⛶
  • Prefer idiomatic Option handling

    zed-industries/zed
    Null Handling Rust
    9
    ⭐ 62119

    When handling null values in Rust, use idiomatic Option patterns instead of verbose nested conditionals. Th...

    ⛶
  • Manage bindings and state

    wavetermdev/waveterm
    React TSX
    9
    ⭐ 17328

    Ensure components explicitly initialize reactive state, manage input/keybinding lifecycle, and decide wheth...

    ⛶
  • Structured, Meaningful Tests

    warpdotdev/warp
    Testing Rust
    9
    ⭐ 56893

    Tests should follow consistent structure and provide high-signal coverage. Apply these rules: 1) Put tests...

    ⛶
  • Eliminate unnecessary code patterns

    microsoft/vscode
    Code Style TypeScript
    9
    ⭐ 174887

    Remove redundant code patterns that add complexity without value. This includes: 1. Duplicate code blocks ...

    ⛶
  • Extract reusable functions

    volcano-sh/volcano
    Code Style Go
    9
    ⭐ 4899

    When you identify duplicate code blocks, complex logic that can be simplified, or functionality that doesn'...

    ⛶
  • Avoid magic numbers

    vllm-project/vllm
    AI Python
    9
    ⭐ 51730

    Replace hardcoded values and magic numbers in AI model code with named constants or configuration parameter...

    ⛶
  • Write clear test cases

    Unstructured-IO/unstructured
    Testing Python
    9
    ⭐ 12116

    Structure test cases for maximum readability and maintainability by following these principles: 1. Organiz...

    ⛶
  • validate configuration defaults

    Unstructured-IO/unstructured
    Configurations Python
    9
    ⭐ 12116

    Configuration parameters should be properly validated with appropriate defaults and clear handling of edge ...

    ⛶
  • Use descriptive specific names

    twentyhq/twenty
    Naming Conventions TypeScript
    9
    ⭐ 35477

    Names should be descriptive and specific enough to clearly communicate their purpose and avoid confusion. T...

    ⛶
  • Propagate errors with context

    vercel/turborepo
    Error Handling Rust
    9
    ⭐ 28115

    Properly propagate errors to callers with sufficient context rather than handling them prematurely or hidin...

    ⛶
  • Release locks before waking

    tokio-rs/tokio
    Concurrency Rust
    9
    ⭐ 28989

    In concurrent systems, it's critical to release locks before performing operations that might trigger reent...

    ⛶
  • Use consistent error handling

    tensorflow/tensorflow
    Error Handling Other
    9
    ⭐ 190625

    Apply standardized error handling patterns across your codebase for improved reliability and debugging. For...

    ⛶
  • Use descriptive names

    gravitational/teleport
    Naming Conventions Go
    9
    ⭐ 19109

    Choose names that clearly indicate their purpose and behavior rather than using generic or ambiguous terms....

    ⛶
  • thoughtful configuration design

    gravitational/teleport
    Configurations Markdown
    9
    ⭐ 19109

    When designing configuration schemas and fields, carefully consider their placement, validation, and long-t...

    ⛶
  • use modern null-safe operators

    sveltejs/svelte
    Null Handling JavaScript
    9
    ⭐ 83580

    Prefer modern JavaScript null-safe operators over verbose conditional checks to improve code readability an...

    ⛶
  • prefer simple code patterns

    sveltejs/svelte
    Code Style JavaScript
    9
    ⭐ 83580

    Choose straightforward, readable code patterns over complex or clever alternatives. This improves maintaina...

    ⛶
  • Configurable model selection

    browserbase/stagehand
    AI TypeScript
    9
    ⭐ 16443

    Avoid hard-coding model names and provider-specific configurations throughout the codebase. Instead, implem...

    ⛶
  • Preserve API compatibility

    spring-projects/spring-boot
    API Java
    9
    ⭐ 77637

    When evolving APIs, maintain backward compatibility to avoid breaking client code. Consider these guideline...

    ⛶
  • avoid unwrap and panic

    servo/servo
    Error Handling Rust
    9
    ⭐ 32962

    Replace `.unwrap()` and `panic!()` calls with proper error handling to prevent crashes and improve robustne...

    ⛶
  • API design patterns

    servo/servo
    API Rust
    9
    ⭐ 32962

    Design APIs with appropriate parameter types, place conversion functions as trait implementations in the co...

    ⛶
  • consistent async/await usage

    serverless/serverless
    Concurrency JavaScript
    9
    ⭐ 46810

    When refactoring code to use async/await, ensure complete and consistent adoption throughout the function o...

    ⛶
  • Descriptive identifier naming

    getsentry/sentry-php
    Naming Conventions PHP
    9
    ⭐ 1873

    Choose meaningful, self-explanatory names for variables, parameters, properties, and methods that clearly c...

    ⛶
  • Use descriptive names

    semgrep/semgrep
    Naming Conventions Other
    9
    ⭐ 12598

    Names should clearly and accurately describe their purpose, avoiding abbreviations, acronyms, and misleadin...

    ⛶
  • prefer simple readable code

    semgrep/semgrep
    Code Style Other
    9
    ⭐ 12598

    Choose clarity and simplicity over clever or complex constructs. Avoid unnecessary abstractions, complex fu...

    ⛶
  • avoid failwith patterns

    semgrep/semgrep
    Error Handling Other
    9
    ⭐ 12598

    Avoid using `failwith`, `assert false`, and similar blunt error handling mechanisms that can turn recoverab...

    ⛶
  • Keep documentation purposefully minimal

    rust-lang/rust
    Documentation Rust
    9
    ⭐ 105254

    Documentation should be concise, focused, and maintainable. Follow these principles: 1. Keep examples shor...

    ⛶
  • Specific exceptions with context

    dotnet/runtime
    Error Handling C#
    9
    ⭐ 16578

    Always throw the most specific exception type appropriate for the error condition and include contextual in...

    ⛶
  • Optimize memory access

    dotnet/runtime
    Algorithms C#
    9
    ⭐ 16578

    When implementing performance-critical algorithms, carefully consider memory access patterns. Document alig...

    ⛶
  • Follow naming patterns

    dotnet/runtime
    Naming Conventions C#
    9
    ⭐ 16578

    Maintain consistent naming patterns throughout your code to improve readability and maintainability. Follow...

    ⛶
  • Protect shared state access

    RooCodeInc/Roo-Code
    Concurrency TypeScript
    9
    ⭐ 17288

    Ensure thread-safe access to shared state by using appropriate synchronization mechanisms and atomic operat...

    ⛶
  • Thread Ownership Discipline

    redis/redis
    Concurrency C
    9
    ⭐ 74261

    When code can run on both main and IO threads, require an explicit ownership + synchronization rule for eve...

    ⛶
  • Nullable Contracts Enforcement

    redis/redis
    Null Handling C
    9
    ⭐ 74261

    Adopt explicit, consistent nullability contracts for pointer/optional-field parameters and honor them at ev...

    ⛶
  • Bounded Prefetch Batches

    redis/redis
    Performance Optimization C
    9
    ⭐ 74261

    When adding performance optimizations (prefetch/batching/fast paths), make them bounded, gated, and semanti...

    ⛶
  • prefer Kotlin idioms

    facebook/react-native
    Code Style Kotlin
    9
    ⭐ 123178

    Use Kotlin-specific constructs and syntax patterns instead of Java-style code to improve readability and ma...

    ⛶
  • Self-documenting identifier names

    rails/rails
    Naming Conventions Ruby
    9
    ⭐ 57027

    Use clear, self-documenting names for variables, methods, and classes that express intent without exposing ...

    ⛶
  • Layer security defenses

    rails/rails
    Security Markdown
    9
    ⭐ 57027

    Implement multiple layers of security throughout your application rather than relying on a single protectio...

    ⛶
  • Bound Work and Queries

    infiniflow/ragflow
    Performance Optimization Python
    9
    ⭐ 80174

    When improving performance, make sure code neither (a) fetches too much data, nor (b) does the same expensi...

    ⛶
  • Verify token security level

    quarkusio/quarkus
    Security Other
    9
    ⭐ 14667

    When refreshing or updating authentication tokens, always verify the new token maintains or exceeds the ori...

    ⛶
  • Self-Documenting Naming Rules

    TheAlgorithms/Python
    Naming Conventions Python
    9
    ⭐ 220912

    Use self-documenting identifiers: variable/function/class names should explain intent without relying on co...

    ⛶
  • minimize memory allocations

    prometheus/prometheus
    Performance Optimization Go
    9
    ⭐ 59616

    Prioritize memory allocation minimization through buffer reuse, pre-allocation, and efficient data structur...

    ⛶
  • refactor complex conditions

    prettier/prettier
    Code Style JavaScript
    9
    ⭐ 50772

    Break down complex inline conditions and nested logic into separate, well-named functions or simpler expres...

    ⛶
  • Use descriptive names

    PostHog/posthog
    Naming Conventions Python
    9
    ⭐ 28460

    Choose names that clearly communicate purpose and accurately represent what they describe. Avoid ambiguous ...

    ⛶
  • Appropriate error handling

    pola-rs/polars
    Error Handling Rust
    9
    ⭐ 34296

    Distinguish between implementation errors (invariant violations) and expected failure cases. For implementa...

    ⛶
  • explicit configuration specification

    python-poetry/poetry
    Configurations Markdown
    9
    ⭐ 33496

    Always explicitly specify configuration values rather than relying on defaults or implicit behavior. Poetry...

    ⛶
  • Use semantically accurate names

    commaai/openpilot
    Naming Conventions Python
    9
    ⭐ 58214

    Variable, method, and class names should accurately reflect their actual behavior and purpose. Misleading o...

    ⛶
  • Prefer explicit readable code

    commaai/openpilot
    Code Style Python
    9
    ⭐ 58214

    Write code that prioritizes readability and explicitness over cleverness or brevity. This includes several ...

    ⛶
  • Standardize Typed Errors

    openai/openai-python
    Error Handling Python
    9
    ⭐ 30731

    Use consistent, typed exceptions at the point of failure, with structured context, and never rely on unchec...

    ⛶
  • Preserve API Contracts

    openai/openai-python
    API Python
    9
    ⭐ 30731

    When transforming data to/from the API, always implement the backend’s explicit contract: ordering invarian...

    ⛶
  • Code Style, Typing, DRY

    openai/openai-python
    Code Style Python
    9
    ⭐ 30731

    Adopt a “type-safe, clean, DRY” style for readability and maintainability. - Prefer module-scope imports: ...

    ⛶
  • Semantic over generic names

    netty/netty
    Naming Conventions Java
    9
    ⭐ 34227

    Choose specific, descriptive names that clearly convey purpose over generic or abbreviated identifiers. Nam...

    ⛶
  • Document public APIs

    netty/netty
    Documentation Java
    9
    ⭐ 34227

    All public-facing APIs must be thoroughly documented with clear javadocs. This includes: 1. **Classes and ...

    ⛶
  • Explicit default configurations

    nestjs/nest
    Configurations TypeScript
    9
    ⭐ 71767

    Always provide explicit default values for configuration options to improve code readability and maintainab...

    ⛶
  • Choose meaningful identifier names

    nestjs/nest
    Naming Conventions TypeScript
    9
    ⭐ 71767

    Names for variables, methods, and classes should be descriptive, semantically accurate, and consistent with...

    ⛶
  • Deterministic CI Runs

    karpathy/nanochat
    CI/CD Yaml
    9
    ⭐ 53189

    Ensure GitHub Actions CI runs are repeatable, targeted, and don’t rely on brittle hacks. 1) Run tests usin...

    ⛶
  • Vue component test requirement

    n8n-io/n8n
    Testing Other
    9
    ⭐ 122978

    Every Vue component (.vue file) that is created or modified must have at least one corresponding unit test ...

    ⛶
  • Avoid Duplication Magic

    mermaid-js/mermaid
    Code Style TypeScript
    9
    ⭐ 87952

    When updating code, prioritize maintainability and readability by removing duplicated blocks, eliminating m...

    ⛶
  • Use descriptive specific names

    mastodon/mastodon
    Naming Conventions Ruby
    9
    ⭐ 48691

    Choose descriptive, specific names that clearly communicate intent and behavior rather than generic or ambi...

    ⛶
  • Ensure semantic naming accuracy

    logseq/logseq
    Naming Conventions Other
    9
    ⭐ 37695

    Names should accurately reflect the actual behavior, purpose, and scope of functions, variables, and classe...

    ⛶
  • Use descriptive consistent names

    LMCache/LMCache
    Naming Conventions Python
    9
    ⭐ 3800

    Choose names that clearly convey their purpose, role, and meaning while maintaining consistency with establ...

    ⛶
  • Safe access patterns

    BerriAI/litellm
    Null Handling Python
    9
    ⭐ 28310

    Always use safe access methods when working with potentially null or undefined values. Use .get() for dicti...

    ⛶
  • AI provider documentation completeness

    BerriAI/litellm
    AI Markdown
    9
    ⭐ 28310

    Ensure comprehensive documentation for AI/ML provider integrations that covers all usage patterns, uses pre...

    ⛶
  • Sync documentation with code

    langfuse/langfuse
    Documentation TypeScript
    9
    ⭐ 13574

    Always ensure documentation and comments accurately reflect the actual code implementation. When modifying ...

    ⛶
  • Consolidate related information

    langflow-ai/langflow
    Documentation Other
    9
    ⭐ 111046

    Keep related documentation content together on a single page rather than fragmenting it across multiple pag...

    ⛶
  • API documentation completeness

    langflow-ai/langflow
    API Other
    9
    ⭐ 111046

    Ensure API documentation provides comprehensive, accurate information including limitations, complete workf...

    ⛶
  • Prefer Robust Testing Assertions

    langchain-ai/langchain
    Testing Python
    9
    ⭐ 136312

    When adding/changing tests, optimize for (1) clear intent, (2) stability against refactors, and (3) determi...

    ⛶
  • Avoid shared mutable state

    langchain-ai/langchain
    Concurrency Python
    9
    ⭐ 136312

    When working with concurrency (threads/async), ensure code is safe under parallel invocations and does not ...

    ⛶
  • Use semantically accurate names

    apache/kafka
    Naming Conventions Java
    9
    ⭐ 30575

    Choose names that accurately reflect the purpose, scope, and semantics of variables, methods, and classes. ...

    ⛶
  • eliminate redundant code

    jj-vcs/jj
    Code Style Rust
    9
    ⭐ 21171

    Remove unnecessary code, operations, and annotations that don't add value. This includes redundant type ann...

    ⛶
  • Simplify code structure

    istio/istio
    Code Style Go
    9
    ⭐ 37192

    Prioritize code simplicity and readability by leveraging standard library functions, improving control flow...

    ⛶
  • Add explanatory comments

    istio/istio
    Documentation Go
    9
    ⭐ 37192

    Code should include explanatory comments that help future maintainers understand complex logic, design deci...

    ⛶
  • Use transactions for consistency

    elie222/inbox-zero
    Database TypeScript
    9
    ⭐ 8267

    Always wrap multiple related database operations in a transaction to ensure data consistency and prevent pa...

    ⛶
  • Remove commented code

    elie222/inbox-zero
    Code Style TSX
    9
    ⭐ 8267

    Commented-out code should be removed from the codebase rather than left as comments. Keeping commented code...

    ⛶
  • plugin contract API

    p-e-w/heretic
    API Python
    9
    ⭐ 5002

    Define a clear, minimal plugin contract and loader API for all external/ built-in plugins. Motivation: plug...

    ⛶
  • Extract repeated code

    grafana/grafana
    Code Style Go
    9
    ⭐ 68825

    Identify and extract repeated code patterns into well-named functions to improve readability, maintainabili...

    ⛶
  • eliminate code duplication

    block/goose
    Code Style Rust
    9
    ⭐ 19037

    Actively identify and eliminate code duplication by extracting repeated logic into reusable functions, usin...

    ⛶
  • Code structure clarity

    ghostty-org/ghostty
    Code Style Other
    9
    ⭐ 32864

    Write code with clear structural organization that enhances readability and maintainability. Extract duplic...

    ⛶
  • organize code by responsibility

    google-gemini/gemini-cli
    Code Style TSX
    9
    ⭐ 65062

    Place code at the appropriate abstraction level and extract complex logic to dedicated modules. Large files...

    ⛶
  • Explicit null handling

    laravel/framework
    Null Handling PHP
    9
    ⭐ 33763

    Use explicit identity comparisons for null checks and leverage modern PHP null-handling features to create ...

    ⛶
  • minimize memory allocations

    gofiber/fiber
    Performance Optimization Go
    9
    ⭐ 37560

    Prioritize reducing memory allocations and choosing efficient data structures to improve performance. Avoid...

    ⛶
  • Ensure comprehensive test coverage

    gofiber/fiber
    Testing Go
    9
    ⭐ 37560

    All code paths, error conditions, and edge cases must have corresponding unit tests to ensure robust functi...

    ⛶
  • Documentation translation guidelines

    fastapi/fastapi
    Documentation Markdown
    9
    ⭐ 86871

    Maintain consistency and accuracy when translating documentation. Ensure technical terms and special format...

    ⛶
  • conditional feature initialization

    electron/electron
    Configurations Other
    9
    ⭐ 117644

    Only initialize configuration-dependent features, systems, or resources when the relevant settings, flags, ...

    ⛶
  • Name reflects meaning

    elastic/elasticsearch
    Naming Conventions Java
    9
    ⭐ 73104

    Choose names that clearly communicate the intent, behavior, and semantics of code elements. Names should be...

    ⛶
  • Eliminate code duplication

    duckdb/duckdb
    Code Style C++
    9
    ⭐ 32061

    Actively identify and eliminate code duplication to improve maintainability and reduce the risk of inconsis...

    ⛶
  • avoid silent failures

    stanfordnlp/dspy
    Error Handling Python
    9
    ⭐ 27813

    Always provide clear feedback when operations fail, even when continuing with fallbacks or alternative appr...

    ⛶
  • Use modern null handling

    discourse/discourse
    Null Handling Other
    9
    ⭐ 44898

    Leverage modern JavaScript operators and patterns for cleaner, more robust null and undefined handling. Thi...

    ⛶
  • minimize memory allocations

    denoland/deno
    Performance Optimization Rust
    9
    ⭐ 103714

    Identify and eliminate unnecessary memory allocations in performance-critical code paths. This includes pre...

    ⛶
  • Remove debugging artifacts

    deeplearning4j/deeplearning4j
    Code Style C++
    9
    ⭐ 14036

    Production code should be free from debugging artifacts that reduce readability and maintainability. Remove...

    ⛶
  • Extract repeated logic

    comfyanonymous/ComfyUI
    Code Style Python
    9
    ⭐ 83726

    When you notice code patterns being repeated across functions or methods, extract the common logic into sep...

    ⛶
  • Use descriptive names

    snyk/cli
    Naming Conventions TypeScript
    9
    ⭐ 5178

    Choose names that clearly communicate purpose, content, and intent. Avoid generic or ambiguous identifiers ...

    ⛶
  • Fail gracefully always

    chef/chef
    Error Handling Ruby
    9
    ⭐ 7860

    Ensure code handles errors robustly by using protective patterns that prevent resource leaks, provide clear...

    ⛶
  • Safe dictionary navigation

    bridgecrewio/checkov
    Null Handling Python
    9
    ⭐ 7668

    Always use the `.get()` method with appropriate default values when accessing dictionaries instead of direc...

    ⛶
  • Centralize environment variables

    bridgecrewio/checkov
    Configurations Python
    9
    ⭐ 7668

    All environment variables should be defined in a centralized location (`checkov/common/util/env_vars_config...

    ⛶
  • Thread-safe lifecycle isolation

    celery/celery
    Concurrency Python
    9
    ⭐ 28464

    When changing concurrency/background execution, ensure (a) state is isolated per thread/consumer/instance, ...

    ⛶
  • Authorization hierarchy verification

    calcom/cal.com
    Security TypeScript
    9
    ⭐ 37732

    Always implement comprehensive authorization checks that verify user permissions at the appropriate hierarc...

    ⛶
  • Ensure comprehensive test coverage

    bazelbuild/bazel
    Testing Java
    9
    ⭐ 24489

    When implementing new functionality or modifying existing code, always add corresponding tests that compreh...

    ⛶
  • Documentation quality standards

    Azure/azure-sdk-for-net
    Documentation Markdown
    9
    ⭐ 5809

    Ensure documentation is specific, complete, and actionable for developers: 1. **Provide meaningful content...

    ⛶
  • Axum Code Review: Interaction Patterns

    tokio-rs/axum
    Axum TypeScript
    9
    ⭐ 22100

    When implementing Axum-based applications, it is crucial to ensure that the interaction patterns between co...

    ⛶
  • Ensure database transactional integrity

    appwrite/appwrite
    Database PHP
    9
    ⭐ 51959

    When performing multiple related database operations, use transactions and proper error handling to maintai...

    ⛶
  • comprehensive test coverage

    angular/angular
    Testing TypeScript
    9
    ⭐ 98611

    Ensure test suites provide comprehensive coverage by including edge cases, different input scenarios, and a...

    ⛶
  • Preserve and Map Errors

    colinhacks/zod
    Error Handling TypeScript
    8
    ⭐ 42628

    Standardize error handling so failures remain diagnosable and user-facing messages are complete. Apply the...

    ⛶
  • Hot-Path Performance Rules

    colinhacks/zod
    Performance Optimization TypeScript
    8
    ⭐ 42628

    Default to the cheapest behavior: gate expensive work behind explicit options or conditions, and keep the p...

    ⛶
  • Assert meaningful outcomes

    colinhacks/zod
    Testing TypeScript
    8
    ⭐ 42628

    When writing tests, validate the *actual user-visible behavior and structured error data*, not just a subst...

    ⛶
  • Use descriptive names

    cloudflare/workers-sdk
    Naming Conventions TypeScript
    8
    ⭐ 3379

    Choose names that clearly describe their purpose, behavior, and data type rather than generic or ambiguous ...

    ⛶
  • Informative error messages

    cloudflare/workers-sdk
    Error Handling TypeScript
    8
    ⭐ 3379

    Error messages should provide specific context and actionable guidance to help developers understand and re...

    ⛶
  • dependency version constraints

    cloudflare/workers-sdk
    Configurations Json
    8
    ⭐ 3379

    Ensure consistent and appropriate dependency version constraints across all package.json files. Use flexibl...

    ⛶
  • Use appropriate exception types

    cloudflare/workerd
    Error Handling Other
    8
    ⭐ 6989

    Choose the correct exception handling mechanism and type based on the error condition's nature and audience...

    ⛶
  • Prioritize descriptive naming

    cloudflare/workerd
    Naming Conventions Other
    8
    ⭐ 6989

    Choose clear, self-explanatory names that prioritize readability over brevity. Avoid abbreviations, obscure...

    ⛶
  • isolate lock safety

    cloudflare/workerd
    Concurrency Other
    8
    ⭐ 6989

    Always ensure proper isolate lock management and thread-safe access patterns when working with JavaScript c...

    ⛶
  • Protect shared state

    wavetermdev/waveterm
    Concurrency Go
    8
    ⭐ 17328

    Ensure mutable shared data is never exposed or accessed without explicit synchronization. When data crosses...

    ⛶
  • Favor reusable helpers

    wavetermdev/waveterm
    Code Style TSX
    8
    ⭐ 17328

    Centralize repeated UI logic and prefer modern, consistent JS style. When you see duplicated logic, ad-hoc ...

    ⛶
  • Secure Input and Secret Handling

    warpdotdev/warp
    Security Rust
    8
    ⭐ 56893

    Adopt a consistent rule: anything coming from persistence, other platforms/accounts, terminal escape sequen...

    ⛶
  • Bound Large Work

    warpdotdev/warp
    Performance Optimization Rust
    8
    ⭐ 56893

    When code performs expensive IO/compute or reacts to frequent events, (1) gate side effects to meaningful s...

    ⛶
  • Vectorize over Python loops

    vllm-project/vllm
    Performance Optimization Python
    8
    ⭐ 51730

    Replace Python loops and list comprehensions with vectorized operations when processing tensors or performi...

    ⛶
  • Catch specific exception types

    vllm-project/vllm
    Error Handling Python
    8
    ⭐ 51730

    Avoid using broad exception handlers like `except Exception:` or bare `except:`. Instead, catch specific ex...

    ⛶
  • Prevent concurrent access races

    vitessio/vitess
    Concurrency Go
    8
    ⭐ 19815

    When sharing data across goroutines, always use proper synchronization mechanisms to prevent race condition...

    ⛶
  • Meaningful consistent naming

    vitessio/vitess
    Naming Conventions Go
    8
    ⭐ 19815

    Use descriptive, semantically clear names that follow consistent patterns throughout the codebase. Names sh...

    ⛶
  • Names should be descriptive

    astral-sh/uv
    Naming Conventions Rust
    8
    ⭐ 60322

    Use clear, descriptive names while avoiding redundant qualifiers. Choose full words over abbreviations unle...

    ⛶
  • Clear precise documentation

    astral-sh/uv
    Documentation Rust
    8
    ⭐ 60322

    Documentation should use direct, precise language that accurately describes components and their behavior. ...

    ⛶
  • Use descriptive semantic names

    unionlabs/union
    Naming Conventions Rust
    8
    ⭐ 74800

    Choose names that clearly communicate purpose, intent, and functionality rather than generic or abbreviated...

    ⛶
  • Optimize critical loops

    microsoft/typescript
    Algorithms TypeScript
    8
    ⭐ 105378

    When implementing algorithms with nested loops or recursive operations, carefully analyze the computational...

    ⛶
  • simplify code structure

    twentyhq/twenty
    Code Style TSX
    8
    ⭐ 35477

    Write code that is easy to read and understand by avoiding unnecessary complexity in structure and logic. T...

    ⛶
  • Validate configurations comprehensively

    vercel/turborepo
    Configurations Rust
    8
    ⭐ 28115

    When implementing configuration systems, ensure comprehensive validation, testing, and documentation. Key r...

    ⛶
  • Descriptive, unambiguous identifiers

    vercel/turborepo
    Naming Conventions Rust
    8
    ⭐ 28115

    Choose names that clearly express intent and behavior while avoiding ambiguity. Identifiers should communic...

    ⛶
  • ensure documentation completeness

    traefik/traefik
    Documentation Markdown
    8
    ⭐ 55772

    Documentation should include all necessary information for users to successfully implement features. This i...

    ⛶
  • Write focused single-purpose tests

    tokio-rs/tokio
    Testing Rust
    8
    ⭐ 28981

    Break down large test cases into smaller, focused tests that each verify a single feature or behavior. Each...

    ⛶
  • Optimize algorithmic complexity

    tokio-rs/tokio
    Algorithms Rust
    8
    ⭐ 28989

    Always consider the time and space complexity implications of your code. Choose data structures and algorit...

    ⛶
  • Return results not panics

    huggingface/tokenizers
    Error Handling Rust
    8
    ⭐ 9868

    Libraries should never panic as this can crash applications using the library. Always return a `Result` typ...

    ⛶
  • Use descriptive identifiers

    microsoft/terminal
    Naming Conventions C++
    8
    ⭐ 99242

    Choose clear, self-documenting names for variables, methods, parameters, and properties that explicitly con...

    ⛶
  • optimize algorithmic choices

    microsoft/terminal
    Algorithms C++
    8
    ⭐ 99242

    Choose efficient algorithms and data structures to improve performance and reduce computational overhead. T...

    ⛶
  • Cache expensive computations

    microsoft/terminal
    Performance Optimization C++
    8
    ⭐ 99242

    Identify and cache the results of expensive operations that are computed repeatedly with the same inputs. T...

    ⛶
  • Names reflect precise behavior

    temporalio/temporal
    Naming Conventions Go
    8
    ⭐ 14953

    Choose names that accurately reflect the behavior and purpose of code elements. Names should be semanticall...

    ⛶
  • Descriptive specific names

    spring-projects/spring-framework
    Naming Conventions Java
    8
    ⭐ 58382

    Choose names that are specific, descriptive, and accurately reflect the purpose and domain of variables, me...

    ⛶
  • Optimize test case design

    spring-projects/spring-boot
    Testing Java
    8
    ⭐ 77637

    Write focused, efficient tests that validate core functionality without unnecessary complexity. Key princip...

    ⛶
  • Follow consistent style conventions

    spring-projects/spring-boot
    Code Style Java
    8
    ⭐ 77637

    Spring Boot projects maintain specific coding style conventions for consistency and readability. When contr...

    ⛶
  • Explicit security configurations

    spring-projects/spring-boot
    Security Java
    8
    ⭐ 77637

    When configuring security-related features, always use the most specific configurer classes to make securit...

    ⛶
  • Eliminate redundant operations

    sgl-project/sglang
    Performance Optimization Python
    8
    ⭐ 17245

    Avoid duplicate function calls, repeated tensor operations, and redundant computations that can significant...

    ⛶
  • avoid unsafe unwrapping

    servo/servo
    Null Handling Rust
    8
    ⭐ 32962

    Replace `.unwrap()` calls and sentinel values with safe null handling patterns to prevent runtime panics an...

    ⛶
  • avoid unnecessary work

    servo/servo
    Performance Optimization Rust
    8
    ⭐ 32962

    Identify and eliminate computational work that serves no purpose, particularly for inactive, hidden, or irr...

    ⛶
  • prefer simple readable patterns

    serverless/serverless
    Code Style JavaScript
    8
    ⭐ 46810

    Choose simple, readable code patterns over complex alternatives. Avoid unnecessary complexity that doesn't ...

    ⛶
  • maintain backwards compatibility

    strands-agents/sdk-python
    API Python
    8
    ⭐ 4044

    When modifying public APIs, always preserve backwards compatibility to avoid breaking existing consumers. P...

    ⛶
  • Precise type narrowing

    astral-sh/ruff
    Algorithms Markdown
    8
    ⭐ 40619

    Implement sound type narrowing algorithms that balance precision with correctness. When narrowing types: 1...

    ⛶
  • Use descriptive, conflict-free names

    TanStack/router
    Naming Conventions TypeScript
    8
    ⭐ 11590

    Choose descriptive names that clearly convey purpose while avoiding conflicts with existing APIs, built-in ...

    ⛶
  • Dependency version specification

    TanStack/router
    Configurations Json
    8
    ⭐ 11590

    Ensure proper dependency version specification and compatibility management in package.json files. Use expl...

    ⛶
  • Extract reusable patterns

    RooCodeInc/Roo-Code
    Code Style TSX
    8
    ⭐ 17288

    Extract repetitive or complex code into reusable functions, components, or custom hooks. This improves code...

    ⛶
  • Improve Readability Style

    redis/redis
    Code Style C
    8
    ⭐ 74261

    Adopt a “review-first” style for complex C code: keep control flow and conditions small, make side effects ...

    ⛶
  • Fail/Clamp Error Contracts

    redis/redis
    Error Handling C
    8
    ⭐ 74261

    When implementing commands with numeric failure modes (overflow, out-of-range, NaN/Inf) or multi-option par...

    ⛶
  • Fail Fast Input Validation

    redis/redis
    Security C
    8
    ⭐ 74261

    Apply a single security rule: validate arity, lengths, ranges, and invariants before using inputs to index ...

    ⛶
  • Doc Semantics Consistency

    redis/redis
    Documentation C
    8
    ⭐ 74261

    Ensure comments and public-facing documentation precisely match the actual behavior and contract. Apply th...

    ⛶
  • API Contracts And Compatibility

    redis/redis
    API C
    8
    ⭐ 74261

    When adding or evolving APIs (commands, module interfaces, persistence callbacks), make the contract explic...

    ⛶
  • Organize tests for clarity

    rails/rails
    Testing Ruby
    8
    ⭐ 57027

    Structure tests to maximize clarity and maintainability by: 1. Placing related tests together in appropriat...

    ⛶
  • Unified Error Handling

    infiniflow/ragflow
    Error Handling Python
    8
    ⭐ 80174

    Adopt a single error-handling standard across LLM/provider layers: 1) Retry only transient failures (inclu...

    ⛶
  • Documentation Precision

    infiniflow/ragflow
    Documentation Markdown
    8
    ⭐ 80174

    All documentation must accurately reflect product/API behavior, use exact feature names, and be unambiguous...

    ⛶
  • Optimize numerical precision

    pytorch/pytorch
    AI C++
    8
    ⭐ 91345

    When implementing AI operations that involve matrix multiplication or neural network components, explicitly...

    ⛶
  • Pure Functions and Main Guard

    TheAlgorithms/Python
    Code Style Python
    8
    ⭐ 220912

    Keep reusable code clean and production-ready: reusable/algorithmic functions should be side-effect free (n...

    ⛶
  • Use configurable default values

    prowler-cloud/prowler
    Configurations Python
    8
    ⭐ 11834

    Make configuration values flexible and robust by avoiding hardcoded values and providing sensible defaults....

    ⛶
  • Specific exception handling

    prowler-cloud/prowler
    Error Handling Python
    8
    ⭐ 11834

    Handle exceptions with specificity rather than using broad catch-all blocks. Catch specific exception types...

    ⛶
  • Write meaningful documentation

    prometheus/prometheus
    Documentation Go
    8
    ⭐ 59616

    Documentation comments should be accurate, concise, and add genuine value rather than restating obvious cod...

    ⛶
  • metrics registration lifecycle

    prometheus/prometheus
    Observability Go
    8
    ⭐ 59616

    Ensure proper metrics registration and lifecycle management to maintain observability system stability. Han...

    ⛶
  • Configuration mutual exclusivity validation

    prometheus/prometheus
    Configurations Go
    8
    ⭐ 59616

    Ensure configuration options that are mutually exclusive are properly validated with clear, actionable erro...

    ⛶
  • explicit null handling

    prisma/prisma
    Null Handling TypeScript
    8
    ⭐ 42967

    Prefer explicit null and undefined handling over optional or nullable types. When possible, provide default...

    ⛶
  • dependency classification standards

    prisma/prisma
    Configurations Json
    8
    ⭐ 42967

    Ensure proper classification and versioning of package dependencies in package.json files. Dependencies sho...

    ⛶
  • Use descriptive variable names

    prettier/prettier
    Naming Conventions JavaScript
    8
    ⭐ 50772

    Choose variable and function names that clearly communicate their purpose, type, and context. Avoid abbrevi...

    ⛶
  • Documentation example consistency

    prettier/prettier
    Code Style Markdown
    8
    ⭐ 50772

    Ensure all code examples and documentation maintain consistent formatting standards, use descriptive variab...

    ⛶
  • Explicit null handling

    python-poetry/poetry
    Null Handling Python
    8
    ⭐ 33496

    Use explicit and clear patterns when handling null/None values to improve code readability and maintainabil...

    ⛶
  • API consistency standards

    emcie-co/parlant
    API Python
    8
    ⭐ 12205

    Maintain consistent patterns across all API endpoints, including naming conventions, response structures, H...

    ⛶
  • Separate configuration lifecycles

    opentofu/opentofu
    Configurations Go
    8
    ⭐ 25901

    Maintain clear separation between different stages of configuration processing by creating dedicated struct...

    ⛶
  • Log effectively for debugging

    opentofu/opentofu
    Logging Go
    8
    ⭐ 25901

    Always include meaningful log messages at appropriate levels to aid in debugging and system monitoring. Fol...

    ⛶
  • Document intent and limitations

    opentofu/opentofu
    Documentation Go
    8
    ⭐ 25901

    Clearly document the intended purpose, scope limitations, and design decisions in your code. For all export...

    ⛶
  • Secure Auth and Logging

    openai/openai-python
    Security Python
    8
    ⭐ 30731

    Security-sensitive code must ensure (1) the correct auth path is used without accidental overrides, (2) sen...

    ⛶
  • Follow GoDoc conventions

    ollama/ollama
    Documentation Go
    8
    ⭐ 145704

    Document code following Go's official documentation style guide (https://tip.golang.org/doc/comment). All e...

    ⛶
  • Descriptive balanced naming

    ollama/ollama
    Naming Conventions Go
    8
    ⭐ 145704

    Choose identifier names that clearly communicate their purpose while maintaining an appropriate balance bet...

    ⛶
  • Use specific assertions

    octokit/octokit.net
    Testing C#
    8
    ⭐ 2793

    Always write assertions that verify specific, expected values rather than simple existence or boolean check...

    ⛶
  • Document public API elements

    octokit/octokit.net
    Documentation C#
    8
    ⭐ 2793

    Every public API element (classes, methods, properties, constructors) must have XML documentation comments ...

    ⛶
  • explicit null safety

    novuhq/novu
    Null Handling TypeScript
    8
    ⭐ 37700

    Always perform explicit null and undefined checks before processing values, and use the nullish coalescing ...

    ⛶
  • Complete OpenAPI annotations

    novuhq/novu
    API TypeScript
    8
    ⭐ 37700

    Ensure all API endpoints have complete and accurate OpenAPI annotations to support proper SDK generation an...

    ⛶
  • Informative error messages

    nodejs/node
    Error Handling JavaScript
    8
    ⭐ 112178

    Error messages should be specific, actionable, and include context that helps developers understand and fix...

    ⛶
  • Evolve return values

    nodejs/node
    API Markdown
    8
    ⭐ 112178

    When extending APIs with new capabilities, carefully consider how changes to return values affect consumers...

    ⛶
  • Technical documentation precision

    vercel/next.js
    Documentation Mdx
    8
    ⭐ 133000

    Ensure technical documentation is precise, accurate, and correctly formatted to prevent confusion and impro...

    ⛶
  • Secure Data Handling in Next.js Applications

    vercel/next.js
    Next.js JavaScript
    8
    ⭐ 133000

    When building Next.js applications that handle sensitive data, it's crucial to implement robust security me...

    ⛶
  • Effective Cache Management in Next.js Applications

    vercel/next.js
    Next.js JavaScript
    8
    ⭐ 133000

    When implementing caching in Next.js applications, it is crucial to be intentional about the caching behavi...

    ⛶
  • reduce test verbosity

    neovim/neovim
    Testing Other
    8
    ⭐ 91433

    Write concise, efficient tests by eliminating repetitive code and combining related test cases. Avoid verbo...

    ⛶
  • consistent naming conventions

    neovim/neovim
    Naming Conventions Other
    8
    ⭐ 91433

    Maintain consistent naming patterns and terminology across the codebase to reduce cognitive load and improv...

    ⛶
  • Design domain-specific error types

    neondatabase/neon
    Error Handling Rust
    8
    ⭐ 19015

    Create and use domain-specific error types instead of generic errors or anyhow. This improves error handlin...

    ⛶
  • Spec-aligned Algorithm Correctness

    Tencent/ncnn
    Algorithms C++
    8
    ⭐ 23205

    All algorithm implementations must be spec-aligned for the exact operator variant, tensor shapes/axes, and ...

    ⛶
  • Platform-Targeted Flags

    Tencent/ncnn
    Configurations Other
    8
    ⭐ 23205

    When enabling/disabling CPU features or platform-specific APIs, derive decisions from the *configured targe...

    ⛶
  • Consistent Semantic Identifiers

    Tencent/ncnn
    Naming Conventions C++
    8
    ⭐ 23205

    When adding/changing code, use names that (1) match existing project conventions, (2) clearly express inten...

    ⛶
  • Use structured logging

    n8n-io/n8n
    Logging TypeScript
    8
    ⭐ 122978

    Always use the project's structured logger instead of direct console methods (`console.log`, `console.error...

    ⛶
  • Prevent null reference exceptions

    n8n-io/n8n
    Null Handling Other
    8
    ⭐ 122978

    Always use optional chaining and nullish coalescing operators to prevent runtime errors when accessing prop...

    ⛶
  • Technical precision matters

    apache/mxnet
    AI Markdown
    8
    ⭐ 20801

    When documenting AI models, frameworks, and optimization techniques, precision in language is as important ...

    ⛶
  • Consistent Style And Diffs

    mermaid-js/mermaid
    Code Style JavaScript
    8
    ⭐ 87952

    Apply a consistent, tool-friendly coding style to reduce formatting churn and improve readability. **Rules...

    ⛶
  • Consistent Readability Rules

    mermaid-js/mermaid
    Code Style Other
    8
    ⭐ 87952

    Code should be readable and consistent: avoid inline “magic” expressions, prefer named values/helpers, and ...

    ⛶
  • Changeset release hygiene

    mermaid-js/mermaid
    CI/CD Markdown
    8
    ⭐ 87952

    Ensure changeset PRs produce correct and minimal release automation output. Apply these rules before submi...

    ⛶
  • Validate noexcept guarantees

    maplibre/maplibre-native
    Error Handling Other
    8
    ⭐ 1411

    Only mark functions as `noexcept` when you can guarantee they won't throw exceptions under any circumstance...

    ⛶
  • Environment variable access

    lobehub/lobe-chat
    Configurations TypeScript
    8
    ⭐ 65138

    Use direct `process.env` access and standardized configuration management instead of custom environment var...

    ⛶
  • Use descriptive names

    llvm/llvm-project
    Naming Conventions C++
    8
    ⭐ 33702

    Choose names that clearly describe the purpose, behavior, and content of functions, variables, and constant...

    ⛶
  • maintain naming consistency

    ggml-org/llama.cpp
    Naming Conventions C++
    8
    ⭐ 83559

    Follow established naming patterns and conventions consistently throughout the codebase. This includes usin...

    ⛶
  • Extract repeated code

    langfuse/langfuse
    Code Style TypeScript
    8
    ⭐ 13574

    Follow the DRY (Don't Repeat Yourself) principle by extracting repeated code patterns into helper functions...

    ⛶
  • Semantic naming for schemas

    langchain-ai/langchain
    Naming Conventions Python
    8
    ⭐ 136312

    Use names that communicate intent and framework semantics—especially for (a) schemas and (b) callback param...

    ⛶
  • Preserve AI Structure Invariants

    langchain-ai/langchain
    AI Python
    8
    ⭐ 136312

    When working with LLM/chat “auxiliary” content (reasoning, tool calls/results, structured content blocks, a...

    ⛶
  • Keep Helpers Small

    langchain-ai/langchain
    Code Style Python
    8
    ⭐ 136312

    Favor readability and maintainability by keeping functions/methods short, extracting complex logic into wel...

    ⛶
  • Boundary API Format Enforcement

    langchain-ai/langchain
    API Python
    8
    ⭐ 136312

    When building provider requests or consuming provider responses, enforce that all intermediate representati...

    ⛶
  • API field documentation

    kubernetes/kubernetes
    API Go
    8
    ⭐ 116489

    API fields must be comprehensively documented with clear behavior specifications, format constraints, and i...

    ⛶
  • Effective API samples

    JetBrains/kotlin
    Documentation Kotlin
    8
    ⭐ 50857

    Create clear, comprehensive, and properly structured code samples to document API usage. Follow these princ...

    ⛶
  • Conditional configuration management

    kilo-org/kilocode
    Configurations TypeScript
    8
    ⭐ 7302

    Ensure configurations are conditional, context-aware, and resilient. Use feature flags to control functiona...

    ⛶
  • prefer modern collection APIs

    apache/kafka
    Code Style Java
    8
    ⭐ 30575

    Use modern collection creation methods instead of legacy alternatives for improved readability and concisen...

    ⛶
  • Use descriptive names

    influxdata/influxdb
    Naming Conventions Go
    8
    ⭐ 30268

    Names in code should be self-documenting, accurately reflect purpose, and follow consistent conventions. Ap...

    ⛶
  • Promote code clarity

    influxdata/influxdb
    Code Style Rust
    8
    ⭐ 30268

    Write code that prioritizes clarity and maintainability over brevity. This involves several key practices: ...

    ⛶
  • Minimize critical path allocations

    influxdata/influxdb
    Performance Optimization Rust
    8
    ⭐ 30268

    Avoid unnecessary memory allocations in performance-critical code paths. These allocations not only consume...

    ⛶
  • Lock with defer unlock

    influxdata/influxdb
    Concurrency Go
    8
    ⭐ 30268

    Always follow the lock-defer-unlock pattern when protecting shared resources with mutexes. Acquire the lock...

    ⛶
  • Choose appropriate lock primitives

    influxdata/influxdb
    Concurrency Rust
    8
    ⭐ 30268

    Select lock types based on access patterns - prefer RWLock over Mutex for read-heavy operations to enable c...

    ⛶
  • Maintain clean code structure

    hyprwm/Hyprland
    Code Style Other
    8
    ⭐ 28863

    Keep code well-organized by separating interface from implementation, managing dependencies properly, and f...

    ⛶
  • Protect sensitive data

    juspay/hyperswitch
    Security Rust
    8
    ⭐ 34028

    Wrap all sensitive data fields in Secret<> types to prevent accidental exposure through logs, debug output,...

    ⛶
  • Manage tensors proactively

    p-e-w/heretic
    Performance Optimization Python
    8
    ⭐ 5002

    Motivation: Large models and matrix ops can produce big ephemeral tensors, cross-device copies, and tempora...

    ⛶
  • Config schema conventions

    p-e-w/heretic
    Configurations Toml
    8
    ⭐ 5002

    Provide a clear, stable, and discoverable configuration schema. Apply the following rules to all TOML/envir...

    ⛶
  • Documentation clarity and formatting

    ghostty-org/ghostty
    Documentation Yaml
    8
    ⭐ 32864

    Ensure documentation is clear, precise, and consistently formatted. Key practices include: 1. **Be explici...

    ⛶
  • Prevent concurrent state races

    google-gemini/gemini-cli
    Concurrency TypeScript
    8
    ⭐ 65062

    When multiple operations can execute concurrently (e.g., multiple keystrokes in the same React event loop, ...

    ⛶
  • Consistent Snippet Style

    freeCodeCamp/freeCodeCamp
    Code Style Markdown
    8
    ⭐ 444449

    All code snippets, hints, seed code, and automated checks must follow a single, consistent formatting and s...

    ⛶
  • Consistent Identifier Naming

    freeCodeCamp/freeCodeCamp
    Naming Conventions Markdown
    8
    ⭐ 444449

    When updating curriculum challenges or UI code, ensure all identifiers are spelled, cased, and named consis...

    ⛶
  • Use semantic exceptions

    laravel/framework
    Error Handling PHP
    8
    ⭐ 33763

    Choose exception types that accurately reflect the nature of the error. Use `LogicException` for developer ...

    ⛶
  • Precise type annotations

    laravel/framework
    Documentation PHP
    8
    ⭐ 33763

    Always use the most specific and accurate type information possible in PHPDoc comments to improve static an...

    ⛶
  • Follow naming patterns

    gofiber/fiber
    Naming Conventions Go
    8
    ⭐ 37560

    Maintain consistent naming conventions throughout the codebase by following established patterns and avoidi...

    ⛶
  • Write clear documentation

    fastify/fastify
    Documentation Markdown
    8
    ⭐ 34000

    Documentation should be clear, precise, and self-contained while following established style conventions. W...

    ⛶
  • Isolate configuration concerns

    fastapi/fastapi
    Configurations Markdown
    8
    ⭐ 86871

    Keep configuration settings separate from application code by using environment variables or dedicated conf...

    ⛶
  • Document all responses

    fastapi/fastapi
    API Markdown
    8
    ⭐ 86871

    When designing APIs, thoroughly document all possible responses your endpoints can return, not just the "ha...

    ⛶
  • Single source documentation

    expressjs/express
    Documentation Markdown
    8
    ⭐ 67300

    Maintain documentation with a single source of truth to prevent inconsistencies and reduce maintenance burd...

    ⛶
  • Enforce null safety patterns

    expressjs/express
    Null Handling JavaScript
    8
    ⭐ 67300

    Implement comprehensive null safety patterns to prevent runtime errors and ensure predictable behavior. Fol...

    ⛶
  • use optional types safely

    electron/electron
    Null Handling Other
    8
    ⭐ 117644

    When functions may not return valid values, use `std::optional` or `absl::optional` instead of raw types th...

    ⛶
  • Optimize before implementing

    elastic/elasticsearch
    Algorithms Java
    8
    ⭐ 73104

    Before implementing algorithms, evaluate their efficiency implications, especially for operations that may ...

    ⛶
  • Handle optional dependencies gracefully

    stanfordnlp/dspy
    AI Python
    8
    ⭐ 27813

    When integrating with external AI libraries, models, or services, handle optional dependencies gracefully t...

    ⛶
  • verify authorization explicitly

    discourse/discourse
    Security Ruby
    8
    ⭐ 44898

    Always perform explicit authorization checks rather than assuming existing security controls are sufficient...

    ⛶
  • Doc Intro And Links

    kamranahmedse/developer-roadmap
    Documentation Markdown
    8
    ⭐ 354523

    For roadmap/technical documentation pages, follow these rules: - **Use correct Markdown structure**: prefe...

    ⛶
  • Avoid ambiguous naming

    denoland/deno
    Naming Conventions Rust
    8
    ⭐ 103714

    Choose names that clearly convey their purpose and avoid ambiguous identifiers that can be misinterpreted. ...

    ⛶
  • Document API completely

    deeplearning4j/deeplearning4j
    Documentation Java
    8
    ⭐ 14036

    All public APIs must have comprehensive and clear documentation that helps developers understand functional...

    ⛶
  • Semantic Naming Rules

    eosphoros-ai/DB-GPT
    Naming Conventions Python
    8
    ⭐ 18703

    Use names that accurately reflect meaning, scope (internal vs external), and responsibility—and keep them c...

    ⛶
  • Semantic naming patterns

    crewaiinc/crewai
    Naming Conventions Python
    8
    ⭐ 33945

    Names should clearly communicate purpose, relationships, and domain context. Choose identifiers that reveal...

    ⛶
  • Prefer pythonic simplicity

    crewaiinc/crewai
    Code Style Python
    8
    ⭐ 33945

    Use Python's expressive features to write cleaner, more maintainable code by reducing nesting and improving...

    ⛶
  • Clear variable naming

    home-assistant/core
    Naming Conventions Python
    8
    ⭐ 80450

    Use descriptive, unambiguous variable and function names that clearly convey their purpose and avoid confli...

    ⛶
  • avoid code duplication

    home-assistant/core
    Code Style Python
    8
    ⭐ 80450

    Create reusable components instead of duplicating similar code patterns. When you find yourself writing sim...

    ⛶
  • Environment variable validation

    docker/compose
    Configurations Go
    8
    ⭐ 35858

    Always validate environment variables and provide appropriate fallbacks when using them for configuration. ...

    ⛶
  • break down large files

    cline/cline
    Code Style TypeScript
    8
    ⭐ 48299

    Large files with multiple responsibilities should be broken down into focused, single-responsibility module...

    ⛶
  • validate before executing operations

    ClickHouse/ClickHouse
    Database C++
    8
    ⭐ 42425

    Always validate inputs and preconditions before executing database operations, and fail explicitly rather t...

    ⛶
  • Use centralized loggers

    snyk/cli
    Logging Go
    8
    ⭐ 5178

    Always use centrally supplied loggers from the invocation context or configuration instead of creating new ...

    ⛶
  • Extract and organize methods

    chef/chef
    Code Style Ruby
    8
    ⭐ 7860

    Break down large, complex methods into smaller, focused methods with clear names that describe their purpos...

    ⛶
  • Write pythonic code

    bridgecrewio/checkov
    Code Style Python
    8
    ⭐ 7668

    Embrace Python's idiomatic programming style to make your code more readable, concise, and maintainable. Fo...

    ⛶
  • Safe dictionary access

    bridgecrewio/checkov
    Null Handling Python
    8
    ⭐ 7667

    Always use safe dictionary access patterns when handling potentially null or missing values. This prevents ...

    ⛶
  • Restrict public network

    bridgecrewio/checkov
    Networking Python
    8
    ⭐ 7668

    Always configure cloud resources to restrict or disable public network access unless explicitly required fo...

    ⛶
  • Choose optimal algorithms

    bridgecrewio/checkov
    Algorithms Python
    8
    ⭐ 7667

    Always select appropriate data structures and algorithms based on their performance characteristics and the...

    ⛶
  • Meaningful Tests For Guards

    celery/celery
    Testing Python
    8
    ⭐ 28464

    When adding tests for new behavior, deprecations, or environment-dependent code paths, ensure the test actu...

    ⛶
  • Explicit dependency constraints

    celery/celery
    Configurations Txt
    8
    ⭐ 28464

    In configuration/requirements files, make compatibility explicit: bound versions to prevent silent breakage...

    ⛶
  • Explicit config behavior

    celery/celery
    Configurations Python
    8
    ⭐ 28464

    Ensure configuration behavior is predictable, validated, and migration-friendly: - Precedence: When combin...

    ⛶
  • Document Behavior Changes

    celery/celery
    Documentation Python
    8
    ⭐ 28464

    Update documentation every time code behavior changes or new public APIs are introduced. Apply this checkl...

    ⛶
  • Write self-documenting tests

    boto/boto3
    Testing Python
    8
    ⭐ 9417

    Tests should clearly communicate their purpose and expectations without requiring readers to analyze implem...

    ⛶
  • Wrap errors with context

    argoproj/argo-cd
    Error Handling Go
    8
    ⭐ 20149

    When propagating errors up the call stack, always wrap them with contextual information about the failing o...

    ⛶
  • Comprehensive migration planning

    appwrite/appwrite
    Migrations PHP
    8
    ⭐ 51959

    When changing identifier systems (e.g., from using `getInternalId()` to `getSequence()`), implement compreh...

    ⛶
  • consistent null handling patterns

    angular/angular
    Null Handling TypeScript
    8
    ⭐ 98611

    Use consistent and meaningful null/undefined handling patterns throughout your code. Prefer positive type g...

    ⛶
  • Explain code intent

    alacritty/alacritty
    Documentation Rust
    8
    ⭐ 59675

    Comments and documentation should explain WHY code exists and what purpose it serves, not just describe wha...

    ⛶
  • Use descriptive action names

    apache/airflow
    Naming Conventions Python
    8
    ⭐ 40858

    Names should clearly indicate purpose and behavior using appropriate action verbs and descriptive terms. Th...

    ⛶
  • Secure Input Validation Rules

    colinhacks/zod
    Security TypeScript
    7
    ⭐ 42628

    When validating security-sensitive inputs (IDs, hostnames, tokens, IPs, payment-like numbers), ensure the i...

    ⛶
  • Guard nullable inputs

    colinhacks/zod
    Null Handling TypeScript
    7
    ⭐ 42628

    When a value can be `undefined`/`null`, do not assume it exists—guard it before access and keep the type mo...

    ⛶
  • Centralize Complex Regex

    colinhacks/zod
    Code Style TypeScript
    7
    ⭐ 42628

    When adding validation logic that uses complex literals (especially RegExp), keep it consistent and maintai...

    ⛶
  • Test through public APIs

    zed-industries/zed
    Testing Rust
    7
    ⭐ 62119

    Write comprehensive tests that validate functionality through public interfaces rather than testing impleme...

    ⛶
  • Document compatibility flags comprehensively

    cloudflare/workerd
    Configurations Other
    7
    ⭐ 6989

    All compatibility flags must include comprehensive documentation that clearly explains their purpose, behav...

    ⛶
  • comprehensive assertion testing

    cloudflare/workerd
    Testing JavaScript
    7
    ⭐ 6989

    Ensure test assertions are thorough and complete by testing both expected behavior and error conditions wit...

    ⛶
  • Extract Shared Helpers

    warpdotdev/warp
    Code Style Rust
    7
    ⭐ 56893

    When review finds repeated or “very similar” logic patterns, don’t leave copy-paste growth—refactor into a ...

    ⛶
  • Config Gating And Validation

    warpdotdev/warp
    Configurations Rust
    7
    ⭐ 56893

    When behavior depends on platform features, build features, feature flags, or user-provided configuration, ...

    ⛶
  • Avoid redundant operations

    volcano-sh/volcano
    Performance Optimization Go
    7
    ⭐ 4899

    Eliminate duplicate computations, unnecessary API calls, and redundant processing to improve performance an...

    ⛶
  • Add explicit nil checks

    volcano-sh/volcano
    Null Handling Go
    7
    ⭐ 4899

    Always add explicit nil checks before accessing object properties and after type assertions to prevent null...

    ⛶
  • Follow logging best practices

    vllm-project/vllm
    Logging Python
    7
    ⭐ 51730

    Maintain high-quality logging throughout the codebase by following these best practices: 1. **Use appropri...

    ⛶
  • Check before access

    vllm-project/vllm
    Null Handling Python
    7
    ⭐ 51730

    Always verify that objects, attributes, and variables are not None before accessing their properties, calli...

    ⛶
  • Dynamic configuration needs validation

    vitessio/vitess
    Configurations Go
    7
    ⭐ 19815

    When implementing dynamic configuration options, validate that the system actually supports runtime changes...

    ⛶
  • Descriptive consistent naming

    vitejs/vite
    Naming Conventions TypeScript
    7
    ⭐ 74031

    Choose variable, function, and class names that accurately reflect their purpose while maintaining consiste...

    ⛶
  • informative error messages

    vlang/v
    Error Handling Other
    7
    ⭐ 36582

    Error messages should be specific, contextual, and include relevant information to aid debugging and user u...

    ⛶
  • function documentation standards

    vlang/v
    Documentation Other
    7
    ⭐ 36582

    All public functions and methods must be documented with comments that `v doc` can understand. Documentatio...

    ⛶
  • Clear technical writing

    vlang/v
    Naming Conventions Markdown
    7
    ⭐ 36582

    Ensure technical documentation uses clear, grammatically correct language with consistent formatting when e...

    ⛶
  • Choose efficient data structures

    vlang/v
    Algorithms Other
    7
    ⭐ 36582

    Select data structures and algorithms based on performance characteristics and actual usage patterns rather...

    ⛶
  • Structure for readability

    astral-sh/uv
    Code Style Rust
    7
    ⭐ 60322

    Organize code to maximize readability and maintainability. When code becomes complex, break it down into sm...

    ⛶
  • Redact URL credentials

    astral-sh/uv
    Security Rust
    7
    ⭐ 60322

    Always redact sensitive credentials in URLs before logging, displaying in error messages, or serializing to...

    ⛶
  • Choose efficient data structures

    unionlabs/union
    Algorithms Rust
    7
    ⭐ 74800

    Select data structures and algorithms that optimize for the specific use case rather than defaulting to gen...

    ⛶
  • Organize tailwind classes

    shadcn-ui/ui
    Code Style TSX
    7
    ⭐ 90568

    Structure your Tailwind CSS classes for readability and maintainability. Instead of long chains of conditio...

    ⛶
  • Names reveal semantic purpose

    microsoft/typescript
    Naming Conventions TypeScript
    7
    ⭐ 105378

    Choose names that clearly communicate the semantic purpose and behavior of code elements. Variable and func...

    ⛶
  • Document function behavior completely

    microsoft/typescript
    Documentation TypeScript
    7
    ⭐ 105378

    Functions should be documented with comprehensive JSDoc comments that cover: 1. Purpose and behavior descri...

    ⛶
  • prefer compile-time configuration

    tree-sitter/tree-sitter
    Configurations Rust
    7
    ⭐ 21799

    Use compile-time configuration checks with `cfg!` macros instead of runtime environment variable parsing wh...

    ⛶
  • avoid unnecessary Option operations

    tree-sitter/tree-sitter
    Null Handling Rust
    7
    ⭐ 21799

    When working with Option types, prefer efficient and safe access patterns over unnecessary operations. Use ...

    ⛶
  • Use descriptive names

    traefik/traefik
    Naming Conventions Go
    7
    ⭐ 55772

    Choose names that clearly express the purpose, behavior, or semantic meaning of variables, functions, and t...

    ⛶
  • Graceful, Specific Error Handling

    TauricResearch/TradingAgents
    Error Handling Python
    7
    ⭐ 71953

    When handling failures, prefer predictable, safe behavior over broad or crash-prone exception handling—espe...

    ⛶
  • Structure conditional compilation

    tokio-rs/tokio
    Configurations Rust
    7
    ⭐ 28981

    Use organized structural patterns for conditional compilation to improve code maintainability and readabili...

    ⛶
  • Follow naming conventions

    tokio-rs/tokio
    Naming Conventions Rust
    7
    ⭐ 28981

    Choose names that follow established API conventions and guidelines to create a consistent, intuitive codeb...

    ⛶
  • Meaningful consistent names

    tensorflow/tensorflow
    Naming Conventions Other
    7
    ⭐ 190625

    Choose names that are both semantically precise and follow consistent conventions. Names should accurately ...

    ⛶
  • Measure performance impact

    sveltejs/svelte
    Performance Optimization JavaScript
    7
    ⭐ 83580

    Before making performance-related changes, measure the actual impact with benchmarks and profiling. Many pe...

    ⛶
  • Document structure consistency

    supabase/supabase
    Documentation Other
    7
    ⭐ 86070

    Maintain consistent document structure and formatting in documentation to improve readability and user expe...

    ⛶
  • Use AssertJ correctly

    spring-projects/spring-framework
    Testing Java
    7
    ⭐ 58382

    Spring Framework tests must use AssertJ for assertions rather than JUnit's `Assertions`, Spring's `Assert` ...

    ⛶
  • Maintain consistent naming patterns

    spring-projects/spring-boot
    Naming Conventions Java
    7
    ⭐ 77637

    Follow established naming patterns and conventions throughout the codebase to ensure consistency and clarit...

    ⛶
  • Consistent observability data

    spring-projects/spring-boot
    Observability Java
    7
    ⭐ 77637

    When implementing observability features, always ensure consistency in your data model, especially with tag...

    ⛶
  • Simplify conditional structures

    apache/spark
    Code Style Other
    7
    ⭐ 41554

    Organize complex conditional logic using clear, sequential patterns rather than nested structures or multip...

    ⛶
  • validate memory bounds

    bytedance/sonic
    Null Handling C
    7
    ⭐ 8532

    Always validate array and string bounds before accessing memory to prevent out-of-bounds access and potenti...

    ⛶
  • Package organization standards

    SigNoz/signoz
    Code Style Go
    7
    ⭐ 23369

    Maintain proper package organization by following established structural patterns and separation of concern...

    ⛶
  • Promise error handling patterns

    serverless/serverless
    Error Handling JavaScript
    7
    ⭐ 46810

    When handling promise errors, use the second callback parameter of `.then()` instead of `.catch()` when you...

    ⛶
  • Eliminate redundant operations

    serverless/serverless
    Performance Optimization JavaScript
    7
    ⭐ 46810

    Identify and eliminate repeated expensive operations to improve performance. Look for opportunities to cach...

    ⛶
  • API schema validation accuracy

    serverless/serverless
    API JavaScript
    7
    ⭐ 46810

    Ensure that JSON schema validation for API configurations precisely matches the actual service requirements...

    ⛶
  • Language-agnostic configuration design

    oraios/serena
    Configurations Python
    7
    ⭐ 14465

    Design configuration parameters to be language-agnostic when possible, use established configuration object...

    ⛶
  • Use data providers effectively

    getsentry/sentry-php
    Testing PHP
    7
    ⭐ 1873

    Organize your test suite by using data providers to consolidate similar test cases rather than creating mul...

    ⛶
  • Evolve API safely

    getsentry/sentry-php
    API PHP
    7
    ⭐ 1873

    When modifying existing APIs, implement changes that maintain backward compatibility while enabling new fun...

    ⛶
  • Minimize mocks verify behavior

    getsentry/sentry
    Testing Python
    7
    ⭐ 41297

    Write tests that verify actual system behavior rather than implementation details by minimizing mock usage ...

    ⛶
  • eliminate code duplication

    strands-agents/sdk-python
    Code Style Python
    7
    ⭐ 4044

    Identify and consolidate duplicate code patterns by extracting common logic into reusable functions and uni...

    ⛶
  • Choose appropriate synchronization

    strands-agents/sdk-python
    Concurrency Python
    7
    ⭐ 4044

    Select the correct synchronization mechanism based on your execution context and avoid unnecessary synchron...

    ⛶
  • Standardize configuration value handling

    rust-lang/rust
    Configurations Rust
    7
    ⭐ 105254

    Implement robust and type-safe configuration handling to avoid fragile hardcoding and improve maintainabili...

    ⛶
  • Ensure complete test coverage

    rust-lang/rust
    Testing Rust
    7
    ⭐ 105254

    Write comprehensive tests that cover all relevant cases and variations while maintaining proper organizatio...

    ⛶
  • Simplify code expressions

    dotnet/runtime
    Code Style C++
    7
    ⭐ 16578

    Strive for clarity by simplifying code expressions and reducing unnecessary complexity. Complex or verbose ...

    ⛶
  • Choose error strategies deliberately

    astral-sh/ruff
    Error Handling Rust
    7
    ⭐ 40619

    Make deliberate choices about error handling strategies based on the context. Decide between early returns ...

    ⛶
  • SSR documentation completeness

    TanStack/router
    Next Markdown
    7
    ⭐ 11590

    Ensure server-side rendering documentation provides complete implementation details with proper build confi...

    ⛶
  • Validate nullable values explicitly

    RooCodeInc/Roo-Code
    Null Handling TypeScript
    7
    ⭐ 17288

    Always handle potentially null or undefined values explicitly using type guards, null coalescing operators,...

    ⛶
  • Preserve error context chain

    RooCodeInc/Roo-Code
    Error Handling TypeScript
    7
    ⭐ 17288

    When catching and re-throwing errors, always preserve the original error context using the `cause` option o...

    ⛶
  • Maintain consistent terminology patterns

    RooCodeInc/Roo-Code
    Naming Conventions Json
    7
    ⭐ 17288

    Ensure consistent terminology usage across the codebase, especially in localization files and technical doc...

    ⛶
  • Document i18n string usage

    RooCodeInc/Roo-Code
    Documentation TypeScript
    7
    ⭐ 17288

    All user-facing strings must be documented with translation function usage to ensure proper internationaliz...

    ⛶
  • Consistent localization formatting

    RooCodeInc/Roo-Code
    Code Style Json
    7
    ⭐ 17288

    Ensure all localization strings maintain consistent formatting patterns within each locale file. This inclu...

    ⛶
  • Configure with care

    RooCodeInc/Roo-Code
    Configurations TypeScript
    7
    ⭐ 17288

    Always validate configuration values before use, provide sensible defaults, and centralize constants in sha...

    ⛶
  • Correct Fast-Path Semantics

    redis/redis
    Algorithms C
    7
    ⭐ 74261

    When implementing algorithmic optimizations (fast paths, binary search vs linear, prefetch/slot routing, re...

    ⛶
  • CI/CD Workflow Guardrails

    redis/redis
    CI/CD Yaml
    7
    ⭐ 74261

    When building or modifying CI/CD GitHub Actions workflows, structure them as an explicit DAG of artifact-dr...

    ⛶
  • organize related code together

    remix-run/react-router
    Code Style TypeScript
    7
    ⭐ 55270

    Keep related functionality grouped together to improve code discoverability and maintainability. This inclu...

    ⛶
  • simplify redundant logic

    facebook/react-native
    Code Style Other
    7
    ⭐ 123178

    Eliminate redundant conditional logic, extract duplicated code, and choose simpler patterns over complex im...

    ⛶
  • extract complex logic

    facebook/react-native
    Code Style JavaScript
    7
    ⭐ 123178

    Break down complex functions and large files into smaller, focused units with clear responsibilities. Extra...

    ⛶
  • Configuration validation and defaults

    facebook/react-native
    Configurations JavaScript
    7
    ⭐ 123178

    Always validate configuration structure before accessing properties and provide sensible defaults while pre...

    ⛶
  • avoid !! operator

    facebook/react-native
    Null Handling Kotlin
    7
    ⭐ 123178

    Avoid using the not-null assertion operator (`!!`) as it can cause runtime crashes if the assumption about ...

    ⛶
  • Database-specific query optimization

    rails/rails
    Database Ruby
    7
    ⭐ 57027

    Leverage database-specific features to optimize queries and improve performance. Different database engines...

    ⛶
  • Configure at proper scope

    rails/rails
    Configurations Ruby
    7
    ⭐ 57027

    Place configuration options at their proper scope within the framework hierarchy. Avoid tight coupling betw...

    ⛶
  • Test isolation and tiers

    infiniflow/ragflow
    Testing Python
    7
    ⭐ 80174

    When adding or changing behavior, require unit tests that are (a) comprehensive for the logic contract, (b)...

    ⛶
  • Meaningful error communication

    quarkusio/quarkus
    Error Handling Java
    7
    ⭐ 14667

    Error handling should be designed to provide clear, actionable information to developers while avoiding red...

    ⛶
  • Document configuration comprehensively

    quarkusio/quarkus
    Configurations Java
    7
    ⭐ 14667

    Configuration properties should be thoroughly documented with explicit details about constraints, units, de...

    ⛶
  • API evolution strategy

    quarkusio/quarkus
    API Java
    7
    ⭐ 14667

    Design APIs with future extensibility in mind by using parameter objects instead of direct method parameter...

    ⛶
  • Document code rationale

    pydantic/pydantic
    Documentation Python
    7
    ⭐ 24377

    Add clear comments that explain the "why" behind non-obvious code decisions, complex logic, or special-case...

    ⛶
  • Consistent term capitalization

    pydantic/pydantic
    Naming Conventions Markdown
    7
    ⭐ 24377

    Follow consistent capitalization rules for technical terms, acronyms, and library names throughout your cod...

    ⛶
  • Meaningful consistent naming

    prowler-cloud/prowler
    Naming Conventions Python
    7
    ⭐ 11834

    Use names that clearly describe the purpose and behavior of variables, methods, classes, and files, while m...

    ⛶
  • Extract duplicate code

    prisma/prisma
    Code Style TypeScript
    7
    ⭐ 42967

    When you notice code patterns being repeated across multiple locations, extract them into reusable function...

    ⛶
  • Database provider compatibility

    prisma/prisma
    Database TypeScript
    7
    ⭐ 42967

    Ensure database code properly handles provider-specific differences and capabilities. Different database pr...

    ⛶
  • consistent error object usage

    prisma/prisma
    Error Handling TypeScript
    7
    ⭐ 42967

    Always use proper Error objects when throwing exceptions, maintain consistent error handling contracts, and...

    ⛶
  • Consistent clear naming

    prisma/prisma
    Naming Conventions TypeScript
    7
    ⭐ 42967

    Use consistent terminology across similar concepts and choose names that clearly indicate their purpose. Av...

    ⛶
  • Use descriptive names

    python-poetry/poetry
    Naming Conventions Python
    7
    ⭐ 33496

    Variable, method, and class names should clearly and accurately describe their purpose, content, or behavio...

    ⛶
  • optimize algorithmic efficiency

    python-poetry/poetry
    Algorithms Python
    7
    ⭐ 33496

    Choose efficient algorithms and data structures to avoid unnecessary computational complexity. Look for opp...

    ⛶
  • dependency constraint consistency

    python-poetry/poetry
    Configurations Toml
    7
    ⭐ 33496

    Maintain consistent formatting and rationale for dependency version constraints in configuration files. Use...

    ⛶
  • validate inputs early

    microsoft/playwright
    Error Handling TypeScript
    7
    ⭐ 76113

    Always validate function parameters and configuration options at the beginning of functions, providing spec...

    ⛶
  • Specify configuration behaviors

    opentofu/opentofu
    Configurations Markdown
    7
    ⭐ 25901

    When implementing configuration features (variables, flags, resources), thoroughly document their behavior ...

    ⛶
  • Optimize code location scope

    open-telemetry/opentelemetry-python
    Code Style Python
    7
    ⭐ 2061

    Place code in the most specific and appropriate location to improve findability and maintainability. Follow...

    ⛶
  • Future-proof API design

    open-telemetry/opentelemetry-python
    API Python
    7
    ⭐ 2061

    Design APIs that can evolve without breaking existing code. Use keyword-only arguments (with `*,`) for opti...

    ⛶
  • Use proper assertions

    opencv/opencv
    Testing C++
    7
    ⭐ 82865

    Write tests with proper assertions to ensure reliability and maintainability. Follow these guidelines: 1. ...

    ⛶
  • Use optimized functions

    opencv/opencv
    Algorithms C++
    7
    ⭐ 82865

    When implementing algorithms, prefer using OpenCV's built-in optimized functions over writing custom implem...

    ⛶
  • Intention-Revealing Naming

    openai/openai-python
    Naming Conventions Python
    7
    ⭐ 30731

    Write names that clearly communicate meaning, scope/intent, and project terminology—especially on public AP...

    ⛶
  • Avoid event-loop blocking

    openai/openai-python
    Concurrency Python
    7
    ⭐ 30731

    Do not perform blocking I/O or other long-running synchronous work on asyncio’s event loop (especially in a...

    ⛶
  • Maintain consistent style

    octokit/octokit.net
    Code Style C#
    7
    ⭐ 2793

    Follow established patterns consistently throughout the codebase to improve readability and maintainability...

    ⛶
  • User-centric documentation practices

    nrwl/nx
    Documentation Markdown
    7
    ⭐ 27518

    Documentation should prioritize user needs and experience over technical convenience. This means using appr...

    ⛶
  • Avoid code duplication

    nrwl/nx
    Code Style TypeScript
    7
    ⭐ 27518

    Before implementing new functionality, check if similar utilities or patterns already exist in the codebase...

    ⛶
  • Use consistent terminology

    nuxt/nuxt
    Naming Conventions Markdown
    7
    ⭐ 57769

    Prioritize consistent, clear, and beginner-friendly terminology throughout your codebase and documentation....

    ⛶
  • Version APIs with care

    nodejs/node
    API Other
    7
    ⭐ 112178

    When introducing new API features or changes, implement proper versioning to maintain stability and backwar...

    ⛶
  • Public over internal APIs

    nodejs/node
    API JavaScript
    7
    ⭐ 112178

    When designing or implementing APIs, always prefer publicly documented APIs over internal ones. Internal AP...

    ⛶
  • Benchmark before optimizing code

    nodejs/node
    Performance Optimization JavaScript
    7
    ⭐ 112178

    Performance optimizations should be validated through benchmarks before implementation. This helps prevent ...

    ⛶
  • Simplify control flow

    netty/netty
    Code Style Java
    7
    ⭐ 34227

    Streamline code by simplifying control flow structures to improve readability. Eliminate unnecessary nestin...

    ⛶
  • Proper asynchronous error handling

    nestjs/nest
    Error Handling TypeScript
    7
    ⭐ 71767

    Ensure errors in asynchronous operations and event-based systems are handled consistently to prevent unexpe...

    ⛶
  • Descriptive identifier names

    nestjs/nest
    Naming Conventions TypeScript
    7
    ⭐ 71766

    Choose identifier names (variables, functions, parameters, classes) that clearly describe their purpose, co...

    ⛶
  • Complete function documentation

    neovim/neovim
    Documentation Other
    7
    ⭐ 91433

    Ensure all functions have comprehensive, accurate documentation including required tags (@param, @return, @...

    ⛶
  • API consistency patterns

    neovim/neovim
    API Other
    7
    ⭐ 91433

    Ensure similar API functions use consistent parameter patterns, types, and behaviors. When designing new AP...

    ⛶
  • Structure endpoints for REST

    neondatabase/neon
    API Rust
    7
    ⭐ 19015

    Organize API endpoints hierarchically by resource type and use appropriate HTTP methods based on operation ...

    ⛶
  • Clear consistent identifier names

    neondatabase/neon
    Naming Conventions Rust
    7
    ⭐ 19015

    Choose clear, consistent, and non-redundant names for identifiers across the codebase. Follow these guideli...

    ⛶
  • Unrolled SIMD Locality

    Tencent/ncnn
    Performance Optimization C++
    7
    ⭐ 23205

    When optimizing hot kernels (SIMD/vectorized paths), remove avoidable overhead and improve locality: 1) Un...

    ⛶
  • Guard and narrow exceptions

    karpathy/nanochat
    Error Handling Python
    7
    ⭐ 53189

    When an operation can fail in a known way (edge-case inputs, risky math, I/O/parsing, optional capabilities...

    ⛶
  • Maintain test state isolation

    n8n-io/n8n
    Testing TypeScript
    7
    ⭐ 122978

    Ensure each test runs in isolation by properly managing test state, mocks, and timers. Clean up all test ar...

    ⛶
  • Simplify for readability

    apache/mxnet
    Code Style Other
    7
    ⭐ 20801

    Complex expressions, especially nested ternary operations, reduce code readability and maintainability. Pre...

    ⛶
  • Consistent naming patterns

    apache/mxnet
    Naming Conventions Python
    7
    ⭐ 20801

    Maintain consistent naming conventions throughout the codebase to enhance readability and reduce confusion....

    ⛶
  • remove unnecessary code

    rocicorp/mono
    Code Style TypeScript
    7
    ⭐ 2091

    Eliminate unnecessary code elements that add complexity without providing value. This includes removing red...

    ⛶
  • prioritize code readability

    rocicorp/mono
    Code Style TSX
    7
    ⭐ 2091

    Write code that prioritizes clarity and readability over cleverness or brevity. This includes several key p...

    ⛶
  • Use Contextual Sanitization

    mermaid-js/mermaid
    Security TypeScript
    7
    ⭐ 87952

    Any diagram text/config that can originate from users (node labels, tooltips, markdown, theme/style tokens,...

    ⛶
  • Prefer Grammar Over Regex

    mermaid-js/mermaid
    Algorithms TypeScript
    7
    ⭐ 87952

    Use the language parser/grammar (e.g., Langium/Jison) for diagram syntax instead of hand-rolled regex parsi...

    ⛶
  • Prefer fast-paths and caching

    mermaid-js/mermaid
    Performance Optimization TypeScript
    7
    ⭐ 87952

    When performance matters, structure code to avoid unnecessary work: (1) keep cheap fast-paths first for sho...

    ⛶
  • Doc Examples Must Render

    mermaid-js/mermaid
    Documentation Markdown
    7
    ⭐ 87952

    All documentation examples/configs must be compatible with the docs build/render pipeline and current Merma...

    ⛶
  • centralize configuration management

    mastodon/mastodon
    Configurations Ruby
    7
    ⭐ 48691

    Migrate configuration from direct environment variable access to Rails' config_for mechanism for better org...

    ⛶
  • Modern C++ style practices

    maplibre/maplibre-native
    Code Style C++
    7
    ⭐ 1411

    Apply modern C++ features and consistent syntax patterns to improve code readability and safety. Follow the...

    ⛶
  • Simplify code readability

    logseq/logseq
    Code Style Other
    7
    ⭐ 37695

    Write code that prioritizes clarity and simplicity over cleverness. Use appropriate Clojure idioms to make ...

    ⛶
  • Extract reusable components

    lobehub/lobe-chat
    Code Style TypeScript
    7
    ⭐ 65138

    Extract utilities, types, constants, and shared logic into dedicated modules to improve code maintainabilit...

    ⛶
  • Add unit tests

    lobehub/lobe-chat
    Testing TypeScript
    7
    ⭐ 65138

    All new functionality must include corresponding unit tests. This is especially critical for utility functi...

    ⛶
  • Simplify for readability

    LMCache/LMCache
    Code Style Python
    7
    ⭐ 3800

    Improve code readability by simplifying complex logic, using Pythonic idioms, and removing unnecessary code...

    ⛶
  • Ensure operation completion safety

    LMCache/LMCache
    Concurrency Python
    7
    ⭐ 3800

    In concurrent code, ensure that operations complete safely before proceeding to prevent race conditions and...

    ⛶
  • comprehensive test coverage

    llvm/llvm-project
    Testing C++
    7
    ⭐ 33702

    Tests should comprehensively cover all relevant scenarios, including return values, edge cases, different c...

    ⛶
  • avoid unnecessary allocations

    llvm/llvm-project
    Performance Optimization C++
    7
    ⭐ 33702

    Minimize performance overhead by avoiding unnecessary memory allocations, expensive data structures, and re...

    ⛶
  • leverage existing framework functionality

    ggml-org/llama.cpp
    AI Python
    7
    ⭐ 83559

    Before implementing custom solutions in AI model conversion code, thoroughly investigate whether the framew...

    ⛶
  • eliminate code duplication

    ggml-org/llama.cpp
    Code Style C++
    7
    ⭐ 83559

    Avoid duplicating code blocks by extracting common functionality into reusable functions, using templates f...

    ⛶
  • Follow consistent naming patterns

    BerriAI/litellm
    Naming Conventions Python
    7
    ⭐ 28310

    Maintain consistent naming conventions across all aspects of the codebase, including file structures, folde...

    ⛶
  • Surface errors to users

    langfuse/langfuse
    Error Handling TSX
    7
    ⭐ 13574

    Always provide user-visible feedback for errors instead of only logging to the console. This ensures users ...

    ⛶
  • Falsy vs null checks

    langfuse/langfuse
    Null Handling TSX
    7
    ⭐ 13574

    Distinguish between falsy values (0, '', false, null, undefined) and null/undefined values in your code. Us...

    ⛶
  • Cache expensive operations

    langfuse/langfuse
    Performance Optimization TypeScript
    7
    ⭐ 13574

    Identify and cache results of computationally expensive or repetitive operations instead of recalculating t...

    ⛶
  • Use comprehensive JSDoc

    langchain-ai/langchainjs
    Documentation TypeScript
    7
    ⭐ 15004

    Always use JSDoc format (`/** */`) instead of regular comments (`//`) for documenting classes, functions, a...

    ⛶
  • Preserve API backward compatibility

    langchain-ai/langchainjs
    API TypeScript
    7
    ⭐ 15004

    When modifying existing APIs, maintain backward compatibility by implementing changes in a non-breaking way...

    ⛶
  • Safe caching practices

    langchain-ai/langchain
    Caching Python
    7
    ⭐ 136312

    Apply caching only when it is safe, bounded, and correct: 1) Avoid unbounded method memoization - Don’t us...

    ⛶
  • Deterministic Algorithm Correctness

    langchain-ai/langchain
    Algorithms Python
    7
    ⭐ 136312

    When implementing non-trivial algorithms (graph ordering, batching under constraints, multi-pass transforma...

    ⛶
  • Consistent None Handling

    langchain-ai/langchain
    Null Handling Python
    7
    ⭐ 136312

    When a value can be missing/null, reflect it in the type system and handle it explicitly at the boundary—ne...

    ⛶
  • implement proper observability

    kubernetes/kubernetes
    Observability Go
    7
    ⭐ 116489

    Ensure observability mechanisms (events and metrics) are implemented correctly with appropriate types, accu...

    ⛶
  • Clear field documentation

    kubernetes/kubernetes
    Documentation Go
    7
    ⭐ 116489

    Write precise, unambiguous documentation that explains what fields and methods represent rather than implem...

    ⛶
  • Avoid unnecessary work

    kubernetes/kubernetes
    Performance Optimization Go
    7
    ⭐ 116489

    Optimize performance by avoiding unnecessary computations, allocations, and operations. Use feature gates, ...

    ⛶
  • Simplify code structure

    kubeflow/kubeflow
    Code Style Go
    7
    ⭐ 15064

    Strive to simplify code structure by eliminating unnecessary complexity. This includes: 1. **Move conditio...

    ⛶
  • Precise workflow triggers

    kubeflow/kubeflow
    CI/CD Yaml
    7
    ⭐ 15064

    Configure CI/CD workflows to trigger precisely based on relevant file path changes. This minimizes unnecess...

    ⛶
  • Go export naming conventions

    kubeflow/kubeflow
    Naming Conventions Go
    7
    ⭐ 15064

    In Go, the first letter of an identifier (function, variable, struct field, etc.) determines its visibility...

    ⛶
  • Use configuration property providers

    JetBrains/kotlin
    Configurations Kotlin
    7
    ⭐ 50857

    Always use Gradle's Provider API when accessing project, system, or Gradle properties in your build configu...

    ⛶
  • Test edge cases

    JetBrains/kotlin
    Testing Kotlin
    7
    ⭐ 50857

    Ensure tests verify both basic functionality and edge cases. Tests that only cover the happy path can miss ...

    ⛶
  • Minimize unnecessary work

    JetBrains/kotlin
    Performance Optimization Kotlin
    7
    ⭐ 50857

    Optimize performance by reducing the amount of computation performed, especially on data that won't appear ...

    ⛶
  • Keep code clearly organized

    JetBrains/kotlin
    Code Style Kotlin
    7
    ⭐ 50857

    Maintain code readability and organization by extracting focused, well-named functions and using appropriat...

    ⛶
  • Design extensible stable APIs

    JetBrains/kotlin
    API Kotlin
    7
    ⭐ 50857

    When designing public APIs, prioritize extensibility while maintaining backward compatibility and implement...

    ⛶
  • prioritize documentation clarity

    jj-vcs/jj
    Documentation Rust
    7
    ⭐ 21171

    Write documentation that prioritizes user understanding over technical precision. Avoid unclear phrases, ov...

    ⛶
  • Use testify assertions

    influxdata/influxdb
    Testing Go
    7
    ⭐ 30268

    Always use the testify package (require/assert) in tests instead of standard Go testing assertions. The tes...

    ⛶
  • Validate environment variables strictly

    elie222/inbox-zero
    Configurations TypeScript
    7
    ⭐ 8267

    Enforce strict validation of environment variables using Zod schemas with explicit environment-specific rul...

    ⛶
  • prevent null dereferences

    hyprwm/Hyprland
    Null Handling C++
    7
    ⭐ 28863

    Always verify pointers are valid before dereferencing to prevent crashes and undefined behavior. This appli...

    ⛶
  • avoid expensive hot paths

    hyprwm/Hyprland
    Performance Optimization C++
    7
    ⭐ 28863

    Identify and optimize expensive operations in frequently executed code paths to prevent performance bottlen...

    ⛶
  • API type consistency

    juspay/hyperswitch
    API Rust
    7
    ⭐ 34028

    Use structured types instead of generic strings in API definitions to improve type safety and clarity. Pref...

    ⛶
  • Handle nullable values

    p-e-w/heretic
    Null Handling Python
    7
    ⭐ 5002

    Treat None/absent values explicitly and guard attribute access. Motivation: user input, storage APIs, opti...

    ⛶
  • use descriptive names

    helix-editor/helix
    Naming Conventions Rust
    7
    ⭐ 39026

    Choose specific, purpose-revealing names that clearly communicate intent rather than generic, abbreviated, ...

    ⛶
  • Safe concurrent programming

    grafana/grafana
    Concurrency Go
    7
    ⭐ 68825

    When working with concurrent code, carefully manage shared resources and synchronization to prevent race co...

    ⛶
  • Follow documentation conventions

    grafana/grafana
    Documentation Markdown
    7
    ⭐ 68825

    Ensure documentation adheres to established style guidelines and technical standards: 1. **Use proper term...

    ⛶
  • Test behavioral differences

    google-gemini/gemini-cli
    Testing TSX
    7
    ⭐ 65062

    Tests should verify that different states, modes, or inputs produce meaningfully different behaviors, not j...

    ⛶
  • reduce nesting complexity

    google-gemini/gemini-cli
    Code Style TypeScript
    7
    ⭐ 65062

    Prefer early returns, guard clauses, and helper method extraction to reduce nesting levels and improve code...

    ⛶
  • Express error handling

    freeCodeCamp/freeCodeCamp
    Error Handling Markdown
    7
    ⭐ 444449

    For Express apps, standardize error handling as follows: - Define error-handling middleware with the corre...

    ⛶
  • Use modern PHPUnit attributes

    laravel/framework
    Testing PHP
    7
    ⭐ 33763

    Prefer modern PHPUnit attributes over PHPDoc annotations for improved type safety, IDE support, and code re...

    ⛶
  • check all error returns

    gofiber/fiber
    Error Handling Go
    7
    ⭐ 37560

    Always check and handle error returns from function calls, even for operations that seem unlikely to fail. ...

    ⛶
  • Technical term consistency

    fastapi/fastapi
    Naming Conventions Markdown
    7
    ⭐ 86871

    When working with multilingual codebases or documentation, maintain consistent naming conventions for techn...

    ⛶
  • Sync versus async tests

    fastapi/fastapi
    Testing Markdown
    7
    ⭐ 86871

    Choose the appropriate testing approach based on your test requirements. For standard API endpoint testing,...

    ⛶
  • Standardize dependency version notation

    expressjs/express
    Configurations Json
    7
    ⭐ 67300

    When specifying dependencies in package.json, follow consistent version notation patterns that align with y...

    ⛶
  • Follow StandardJS when modifying

    expressjs/express
    Code Style JavaScript
    7
    ⭐ 67300

    When modifying existing code, update the touched lines to follow StandardJS conventions while preserving th...

    ⛶
  • Clear intention in names

    expressjs/express
    Naming Conventions JavaScript
    7
    ⭐ 67300

    Choose names that clearly communicate intention and follow established conventions. This applies to variabl...

    ⛶
  • prefer const correctness

    electron/electron
    Code Style Other
    7
    ⭐ 117644

    Always mark variables, parameters, and methods as `const` when they don't modify state. This improves code ...

    ⛶
  • comprehensive test coverage

    duckdb/duckdb
    Testing Other
    7
    ⭐ 32061

    Ensure thorough test coverage by systematically testing edge cases, boundary conditions, failure scenarios,...

    ⛶
  • avoid repeated expensive operations

    duckdb/duckdb
    Performance Optimization C++
    7
    ⭐ 32061

    Identify and eliminate repeated expensive computations, especially in loops and frequently executed code pa...

    ⛶
  • Complete parameter documentation

    stanfordnlp/dspy
    Documentation Python
    7
    ⭐ 27813

    Ensure all public functions and classes have comprehensive docstrings that include parameter descriptions, ...

    ⛶
  • Use descriptive identifier names

    django/django
    Naming Conventions Python
    7
    ⭐ 84182

    Choose clear, descriptive names for variables, functions, and classes that accurately convey their purpose ...

    ⛶
  • Follow established naming conventions

    discourse/discourse
    Naming Conventions Other
    7
    ⭐ 44898

    Ensure all identifiers follow the established naming conventions for the codebase and framework being used....

    ⛶
  • Clean typing and DRY

    eosphoros-ai/DB-GPT
    Code Style Python
    7
    ⭐ 18703

    Adopt a “type-correct, DRY, and clean” coding style. Rules: 1) Make type hints compile and be precise - If...

    ⛶
  • Clean code formatting rules

    continuedev/continue
    Code Style TSX
    7
    ⭐ 27819

    Maintain consistent and clean code formatting to improve readability and maintainability. Follow these guid...

    ⛶
  • CI script reliability practices

    continuedev/continue
    CI/CD Yaml
    7
    ⭐ 27819

    Ensure CI/CD workflows maintain reliability by following these practices: 1. **Use explicit script paths**...

    ⛶
  • explicit configuration management

    docker/compose
    Configurations Other
    7
    ⭐ 35858

    Make all configuration settings explicit and well-documented, avoiding implicit defaults and auto-detection...

    ⛶
  • semantic naming accuracy

    ClickHouse/ClickHouse
    Naming Conventions Other
    7
    ⭐ 42425

    Ensure that method, variable, and class names accurately reflect their actual behavior, purpose, or content...

    ⛶
  • Explicit error handling

    ClickHouse/ClickHouse
    Error Handling C++
    7
    ⭐ 42425

    Always handle error conditions explicitly rather than silently ignoring them or using generic error respons...

    ⛶
  • Document non-obvious code

    ClickHouse/ClickHouse
    Documentation Other
    7
    ⭐ 42425

    Add explanatory comments for any code element that is not self-explanatory, including complex return types,...

    ⛶
  • prevent silent test failures

    snyk/cli
    Testing TypeScript
    7
    ⭐ 5178

    Tests must explicitly fail when expected conditions are not met, rather than silently exiting early or usin...

    ⛶
  • Handle all errors explicitly

    snyk/cli
    Error Handling Go
    7
    ⭐ 5178

    Always explicitly handle errors rather than assuming they are handled by dependencies or ignoring them. Eve...

    ⛶
  • Document intent and reasoning

    snyk/cli
    Documentation TypeScript
    7
    ⭐ 5178

    Add comments that explain the reasoning, intent, or context behind code decisions, especially for non-obvio...

    ⛶
  • API response consistency

    snyk/cli
    API TypeScript
    7
    ⭐ 5178

    Ensure consistent patterns for API response handling, error management, and type safety across all API inte...

    ⛶
  • Document with examples

    chef/chef
    Documentation Ruby
    7
    ⭐ 7860

    Always include comprehensive documentation with clear examples for properties, methods, and code patterns. ...

    ⛶
  • Consistent descriptive naming patterns

    chef/chef
    Naming Conventions Ruby
    7
    ⭐ 7860

    Use clear, descriptive names that follow consistent patterns across the codebase. For methods and propertie...

    ⛶
  • Meaningful identifier names

    bridgecrewio/checkov
    Naming Conventions Python
    7
    ⭐ 7667

    Choose descriptive and semantic identifiers that clearly convey purpose, role, and behavior. Avoid vague, g...

    ⛶
  • Logging Correctness Rules

    celery/celery
    Logging Python
    7
    ⭐ 28464

    When adding or modifying logging: 1) **Match logging intent to behavior (level + visibility)** - If a user...

    ⛶
  • Validate nullability explicitly

    oven-sh/bun
    Null Handling Other
    7
    ⭐ 79093

    Always validate null or undefined values before using them to prevent crashes and undefined behavior. When ...

    ⛶
  • Assert before cast

    oven-sh/bun
    Null Handling C++
    7
    ⭐ 79093

    Always validate values before performing unsafe operations like dynamic casting. When a value could be null...

    ⛶
  • Standardize API integration patterns

    Homebrew/brew
    API Ruby
    7
    ⭐ 44168

    Establish consistent patterns for API integrations by following these guidelines: 1. Document API endpoint...

    ⛶
  • Optimize collection operations

    Homebrew/brew
    Algorithms Ruby
    7
    ⭐ 44168

    Use Ruby's built-in collection methods to write more efficient and readable code. This reduces algorithmic ...

    ⛶
  • Prevent algorithmic pitfalls

    boto/boto3
    Algorithms Python
    7
    ⭐ 9417

    Avoid common algorithmic errors that lead to incorrect results or inefficient code by following these pract...

    ⛶
  • Follow naming conventions

    boto/boto3
    Naming Conventions Python
    7
    ⭐ 9417

    Use consistent and appropriate naming conventions based on the context in Python code: 1. **Classes**: Use...

    ⛶
  • Defensive null value handling

    boto/boto3
    Null Handling Python
    7
    ⭐ 9417

    Always handle potential null/None values defensively by: 1. Using `.get()` for dictionary access instead of...

    ⛶
  • prefer simple readable code

    bazelbuild/bazel
    Code Style Other
    7
    ⭐ 24489

    Favor simple, readable implementations over complex or overly abstracted solutions. This includes eliminati...

    ⛶
  • prefer simple API designs

    bazelbuild/bazel
    API Java
    7
    ⭐ 24489

    Design APIs with simple, direct interfaces rather than complex parameter passing patterns or unnecessary in...

    ⛶
  • optimize algorithm choices

    bazelbuild/bazel
    Algorithms Java
    7
    ⭐ 24489

    Choose algorithms and data structures that provide both deterministic behavior and optimal performance char...

    ⛶
  • Executor service lifecycle

    bazelbuild/bazel
    Concurrency Java
    7
    ⭐ 24489

    Properly manage executor service lifecycle to prevent resource leaks, deadlocks, and orphaned threads that ...

    ⛶
  • Configuration clarity standards

    bazelbuild/bazel
    Configurations Java
    7
    ⭐ 24489

    Configuration options should be designed with clarity, consistency, and user experience as primary concerns...

    ⛶
  • Design stable APIs

    Azure/azure-sdk-for-net
    API Markdown
    7
    ⭐ 5809

    When creating or modifying APIs, carefully consider what becomes part of your public API surface to ensure ...

    ⛶
  • Check before dereferencing

    Azure/azure-sdk-for-net
    Null Handling C#
    7
    ⭐ 5809

    Always verify objects are not null before dereferencing them, particularly when using methods that might re...

    ⛶
  • Defensive null checking

    aws/aws-sdk-js
    Null Handling JavaScript
    7
    ⭐ 7628

    Always perform explicit null/undefined checks before accessing properties or using values that could be nul...

    ⛶
  • Error precedence and degradation

    coleam00/Archon
    Error Handling TypeScript
    7
    ⭐ 21089

    When implementing error handling, ensure (1) failures are validated early or handled explicitly, (2) option...

    ⛶
  • Stable dependency version management

    appwrite/appwrite
    Configurations Json
    7
    ⭐ 51959

    Always use stable, well-defined version constraints in configuration files to ensure reproducible builds an...

    ⛶
  • Keep documentation paths current

    appwrite/appwrite
    Documentation PHP
    7
    ⭐ 51959

    Maintain accurate and consistent documentation paths, references, and descriptions across the codebase. Whe...

    ⛶
  • Consistent placeholder conventions

    appwrite/appwrite
    Naming Conventions Json
    7
    ⭐ 51959

    Ensure all placeholders in localization files follow consistent naming conventions to prevent runtime error...

    ⛶
  • Use semantic descriptive names

    ant-design/ant-design
    Naming Conventions TSX
    7
    ⭐ 95882

    Choose variable, function, and type names that clearly communicate their purpose, source, and context. Name...

    ⛶
  • Prevent component re-mounting

    ant-design/ant-design
    React TSX
    7
    ⭐ 95882

    Maintain stable component structure to prevent unnecessary re-mounting and unmounting of child components. ...

    ⛶
  • API evolution strategy

    ant-design/ant-design
    API Markdown
    7
    ⭐ 95882

    When evolving APIs, design for extensibility and provide clear migration paths to maintain backward compati...

    ⛶
  • Use descriptive names

    angular/angular
    Naming Conventions TypeScript
    7
    ⭐ 98611

    Choose names that clearly and unambiguously describe their purpose rather than being overly generic or tech...

    ⛶
  • Document configuration specifics

    alacritty/alacritty
    Configurations Markdown
    7
    ⭐ 59675

    When documenting configuration options in changelogs, README files, or other user-facing documentation, foc...

    ⛶
  • Prefer Rust structural patterns

    zed-industries/zed
    Code Style Rust
    6
    ⭐ 62119

    Use Rust's structural patterns to write more idiomatic and maintainable code. This includes: 1. Use early ...

    ⛶
  • Consider algorithmic complexity

    zed-industries/zed
    Algorithms Rust
    6
    ⭐ 62119

    When implementing algorithms, be mindful of their computational complexity and choose appropriate data stru...

    ⛶
  • prefer higher-level APIs

    cloudflare/workerd
    API Other
    6
    ⭐ 6989

    When designing APIs, prefer using higher-level abstractions and established patterns over direct low-level ...

    ⛶
  • Node.js API compatibility

    cloudflare/workerd
    API TypeScript
    6
    ⭐ 6989

    When implementing Node.js-compatible APIs, ensure exact behavioral matching with Node.js, including export ...

    ⛶
  • minimize memory operations

    cloudflare/workerd
    Performance Optimization Other
    6
    ⭐ 6989

    Avoid unnecessary memory allocations, copies, and inefficient memory usage patterns that can impact perform...

    ⛶
  • maintain consistent patterns

    cloudflare/workerd
    Code Style TypeScript
    6
    ⭐ 6989

    Ensure consistent coding patterns and approaches are used throughout the codebase, even when multiple valid...

    ⛶
  • Use network timeouts

    wavetermdev/waveterm
    Networking Go
    6
    ⭐ 17328

    Ensure all network operations are cancellable, timeout-protected, and executed where the resource lives. M...

    ⛶
  • defensive nil handling

    wavetermdev/waveterm
    Null Handling Go
    6
    ⭐ 17328

    Always validate values and short-circuit on errors; guard uses of possibly nil/empty values while avoiding ...

    ⛶
  • Semantic, Contract-Revealing Names

    warpdotdev/warp
    Naming Conventions Rust
    6
    ⭐ 56893

    Use naming that matches the code’s actual semantics and data contracts—avoid misleading terms and generic p...

    ⛶
  • Purpose-Driven Documentation

    warpdotdev/warp
    Documentation Rust
    6
    ⭐ 56893

    When adding or modifying code, ensure comments/doc comments are written to explain meaning and rationale—no...

    ⛶
  • Graceful Error Semantics

    warpdotdev/warp
    Error Handling Rust
    6
    ⭐ 56893

    Define and implement explicit, user- and operator-facing error semantics for async/protocol code: handle re...

    ⛶
  • Explicit Missing-State Handling

    warpdotdev/warp
    Null Handling Rust
    6
    ⭐ 56893

    When data is optional/unknown, handle it intentionally and explicitly—either skip the feature (return `None...

    ⛶
  • Use specific semantic names

    microsoft/vscode
    Naming Conventions TypeScript
    6
    ⭐ 174887

    Choose specific, descriptive names for identifiers that accurately reflect their purpose and behavior. Avoi...

    ⛶
  • Keep APIs simple JavaScript-like

    microsoft/vscode
    API TypeScript
    6
    ⭐ 174887

    Design APIs to be simple and idiomatic to JavaScript/TypeScript while maintaining proper encapsulation. Avo...

    ⛶
  • Handle errors with specificity

    microsoft/vscode
    Error Handling TypeScript
    6
    ⭐ 174887

    Always handle errors specifically and explicitly, avoiding generic catch blocks that mask or ignore errors....

    ⛶
  • Algorithm explanation clarity

    volcano-sh/volcano
    Algorithms Markdown
    6
    ⭐ 4899

    When documenting algorithms, provide detailed explanations of the underlying logic with concrete examples a...

    ⛶
  • Use self-documenting names

    vllm-project/vllm
    Naming Conventions Python
    6
    ⭐ 51730

    Variable, function, and parameter names should accurately reflect their purpose, behavior, and content. Cho...

    ⛶
  • Stable documentation links

    vllm-project/vllm
    Documentation Markdown
    6
    ⭐ 51730

    Ensure all documentation links are stable, consistent, and correctly targeted to improve navigation and lon...

    ⛶
  • Process configurations consistently

    vllm-project/vllm
    Configurations Python
    6
    ⭐ 51730

    Ensure that configuration data is processed consistently and correctly throughout the codebase. This includ...

    ⛶
  • Optimize data structures

    vitessio/vitess
    Algorithms Go
    6
    ⭐ 19815

    Choose and implement data structures with careful consideration of algorithmic complexity, memory usage, an...

    ⛶
  • Extract shared code patterns

    vitessio/vitess
    Code Style Go
    6
    ⭐ 19815

    Identify and extract repeated code patterns into reusable functions to improve maintainability and reduce d...

    ⛶
  • Ensure documentation accuracy

    vitejs/vite
    Documentation Markdown
    6
    ⭐ 74031

    Documentation must precisely reflect the current codebase implementation. When documenting features, option...

    ⛶
  • Make errors user actionable

    astral-sh/uv
    Error Handling Rust
    6
    ⭐ 60322

    Error messages should provide clear, actionable information that helps users understand and resolve the pro...

    ⛶
  • Validate production configurations

    unionlabs/union
    Configurations Other
    6
    ⭐ 74800

    Always validate configuration values and ensure production safety by avoiding hardcoded values, implementin...

    ⛶
  • Module resolution hierarchy

    microsoft/typescript
    Configurations TypeScript
    6
    ⭐ 105378

    When configuring TypeScript projects, establish a clear understanding of module and type resolution hierarc...

    ⛶
  • Specify algorithmic scope precisely

    astral-sh/ty
    Algorithms Markdown
    6
    ⭐ 11919

    When documenting changes to algorithms, data structures, or computational approaches, explicitly identify t...

    ⛶
  • Use semantically accurate names

    twentyhq/twenty
    Naming Conventions TSX
    6
    ⭐ 35477

    Names should clearly and accurately reflect their actual purpose, functionality, and scope. Avoid misleadin...

    ⛶
  • Use domain-specific exceptions

    twentyhq/twenty
    Error Handling TypeScript
    6
    ⭐ 35477

    Create custom exception classes for each domain/module instead of throwing generic errors or letting applic...

    ⛶
  • simplify API interfaces

    twentyhq/twenty
    API TypeScript
    6
    ⭐ 35477

    Keep API interfaces simple and focused by avoiding unnecessary input wrapping, extracting context parameter...

    ⛶
  • Know your implicit configurations

    vercel/turborepo
    Configurations Other
    6
    ⭐ 28115

    When working with Turborepo, be aware of implicit configurations and special files that affect behavior eve...

    ⛶
  • Eliminate code duplication

    vercel/turborepo
    Code Style Rust
    6
    ⭐ 28115

    Avoid duplicating logic, patterns, or data across the codebase. When similar code appears in multiple place...

    ⛶
  • Optimize frequent operations

    tree-sitter/tree-sitter
    Performance Optimization Rust
    6
    ⭐ 21799

    Identify code paths that execute frequently (loops, hot functions, repeated calls) and optimize them by avo...

    ⛶
  • Algorithm and data optimization

    tree-sitter/tree-sitter
    Algorithms Rust
    6
    ⭐ 21799

    Choose efficient algorithms and appropriate data structures based on access patterns and computational requ...

    ⛶
  • complete observability router options

    traefik/traefik
    Observability Markdown
    6
    ⭐ 55772

    When documenting router configuration options for any provider (Docker, Consul Catalog, ECS, KV stores, Nom...

    ⛶
  • Use Option methods idiomatically

    tokio-rs/tokio
    Null Handling Rust
    6
    ⭐ 28989

    When dealing with Optional values, prefer Rust's built-in Option methods over manual null checks. This make...

    ⛶
  • Structural configuration approaches

    tokio-rs/tokio
    Configurations Rust
    6
    ⭐ 28989

    When working with feature flags and conditional compilation, prefer structural approaches over scattered co...

    ⛶
  • Prefer explicit over concise

    tokio-rs/tokio
    Naming Conventions Rust
    6
    ⭐ 28989

    Choose explicit and unambiguous names over concise but unclear ones. When a method, type, or variable has a...

    ⛶
  • Organize code logically

    tokio-rs/tokio
    Code Style Rust
    6
    ⭐ 28989

    Group related code elements together with a consistent and logical structure. Place stable fields and funct...

    ⛶
  • Optimize memory allocation

    tokio-rs/tokio
    Performance Optimization Rust
    6
    ⭐ 28981

    Be deliberate about memory allocation patterns to improve performance. Implement these practices: 1. **Pre...

    ⛶
  • Network API design consistency

    tokio-rs/tokio
    Networking Rust
    6
    ⭐ 28989

    When designing networking APIs, maintain consistency with existing interfaces while ensuring proper cross-p...

    ⛶
  • Follow import style

    tokio-rs/tokio
    Code Style Rust
    6
    ⭐ 28981

    Tokio projects follow specific import conventions for consistency and readability. Adhere to these guidelin...

    ⛶
  • Flexible consistent API patterns

    tokio-rs/tokio
    API Rust
    6
    ⭐ 28989

    Design APIs with flexibility and consistency by leveraging established patterns and avoiding unnecessary co...

    ⛶
  • Design error handling carefully

    tokio-rs/tokio
    Error Handling Rust
    6
    ⭐ 28989

    When implementing error handling, balance between propagation and recovery. Design error types to preserve ...

    ⛶
  • Simplify for readability

    huggingface/tokenizers
    Code Style Rust
    6
    ⭐ 9868

    Prioritize code readability by using simpler and more direct expressions. When possible, return values dire...

    ⛶
  • Descriptive purpose-driven naming

    hashicorp/terraform
    Naming Conventions Go
    6
    ⭐ 45532

    Choose identifiers that accurately describe their purpose and behavior, not just their type or how they're ...

    ⛶
  • Contextual null checks

    hashicorp/terraform
    Null Handling Go
    6
    ⭐ 45532

    Use type-appropriate null checking strategies based on the context of your data. For primitive values, ensu...

    ⛶
  • Use established configuration patterns

    microsoft/terminal
    Configurations Other
    6
    ⭐ 99242

    When adding new configuration options or settings, leverage existing configuration frameworks and patterns ...

    ⛶
  • manage object lifetimes carefully

    microsoft/terminal
    Concurrency C++
    6
    ⭐ 99242

    Ensure proper object lifetime management in concurrent scenarios to prevent crashes from dangling pointers ...

    ⛶
  • Choose efficient data structures

    microsoft/terminal
    Algorithms Other
    6
    ⭐ 99242

    Select data structures and types that optimize for both memory usage and computational efficiency. Avoid un...

    ⛶
  • Choose efficient implementations

    tensorflow/tensorflow
    Algorithms Other
    6
    ⭐ 190625

    When implementing algorithms, prioritize both correctness and performance by selecting appropriate data str...

    ⛶
  • Specific assertion methods

    temporalio/temporal
    Testing Go
    6
    ⭐ 14953

    Use the most specific and descriptive assertion methods available in your test framework to improve test re...

    ⛶
  • Precompute and cache

    temporalio/temporal
    Performance Optimization Go
    6
    ⭐ 14953

    Avoid performing expensive operations repeatedly, especially in hot code paths. Identify operations such as...

    ⛶
  • Comprehensive function documentation

    gravitational/teleport
    Documentation Go
    6
    ⭐ 19109

    Functions, methods, and non-trivial constants should include comprehensive documentation that explains thei...

    ⛶
  • document configuration hierarchies

    sveltejs/svelte
    Configurations Markdown
    6
    ⭐ 83580

    When documenting configuration options, clearly explain all available configuration levels and their preced...

    ⛶
  • Document complex APIs

    sveltejs/svelte
    Documentation JavaScript
    6
    ⭐ 83580

    Require comprehensive JSDoc documentation for classes, complex functions, and all exported functions to imp...

    ⛶
  • Choose descriptive names

    sveltejs/svelte
    Naming Conventions JavaScript
    6
    ⭐ 83580

    Prioritize semantic clarity and descriptive naming over brevity or convenience. Avoid esoteric, abbreviated...

    ⛶
  • Prevent hardcoded secrets

    supabase/supabase
    Security TypeScript
    6
    ⭐ 86070

    Never store sensitive information such as API keys, passwords, tokens, or credentials directly in your sour...

    ⛶
  • Use appropriate collections

    spring-projects/spring-framework
    Algorithms Java
    6
    ⭐ 58382

    Choose the right collection implementation for each algorithmic task to optimize both performance and reada...

    ⛶
  • Meaningful exception design

    spring-projects/spring-boot
    Error Handling Java
    6
    ⭐ 77637

    Design exceptions to provide clear context, preserve stack traces, and propagate correctly through your sys...

    ⛶
  • Documentation clarity principles

    spring-projects/spring-boot
    Documentation Other
    6
    ⭐ 77637

    When writing technical documentation, adhere to these core principles to ensure clarity and effectiveness: ...

    ⛶
  • Document configuration properties completely

    spring-projects/spring-boot
    Configurations Java
    6
    ⭐ 77637

    Configuration properties should be fully documented with clear descriptions, explicit default values, and p...

    ⛶
  • Concrete bean return types

    spring-projects/spring-boot
    Spring Java
    6
    ⭐ 77637

    When defining `@Bean` methods in Spring configurations, use concrete return types rather than interfaces wh...

    ⛶
  • Alphabetical ordering requirement

    spring-projects/spring-boot
    Code Style Other
    6
    ⭐ 77637

    Always maintain alphabetical ordering for lists of elements including dependencies, modules, configuration ...

    ⛶
  • optimize data structures

    apache/spark
    Algorithms Other
    6
    ⭐ 41554

    Choose appropriate data structures and algorithms to optimize computational complexity and performance. Con...

    ⛶
  • use loose equality checks

    serverless/serverless
    Null Handling JavaScript
    6
    ⭐ 46810

    Use loose equality (`== null`) instead of strict equality (`=== null` or `=== undefined`) when checking for...

    ⛶
  • configuration examples accuracy

    serverless/serverless
    Configurations Markdown
    6
    ⭐ 46810

    Ensure configuration examples and documentation use current, supported syntax and accurately reflect the ac...

    ⛶
  • avoid local imports

    oraios/serena
    Code Style Python
    6
    ⭐ 14465

    Place all import statements at the top of the file as global imports rather than importing modules within f...

    ⛶
  • Use descriptive identifiers

    getsentry/sentry
    Naming Conventions Python
    6
    ⭐ 41297

    Choose variable, parameter, field, and class names that clearly communicate their purpose and context. Favo...

    ⛶
  • Structure logs with context

    getsentry/sentry
    Logging Python
    6
    ⭐ 41297

    Use structured logging with appropriate context and log levels to maximize the value of log messages. Inclu...

    ⛶
  • Explicit null handling

    getsentry/sentry-php
    Null Handling PHP
    6
    ⭐ 1873

    Always be explicit and consistent when handling null values to improve code clarity and prevent subtle bugs...

    ⛶
  • Feature flag rollouts

    getsentry/sentry
    Configurations Python
    6
    ⭐ 41297

    Use feature flags to gate new functionality for controlled rollouts. This allows for quick enabling/disabli...

    ⛶
  • Structure validation algorithms

    rust-lang/rust
    Algorithms Other
    6
    ⭐ 105254

    When implementing or modifying parsing and validation algorithms, carefully consider both the correctness a...

    ⛶
  • Clear helpful error messages

    rust-lang/rust
    Error Handling Rust
    6
    ⭐ 105254

    Create user-friendly error messages that guide developers toward solutions. Error messages should: 1. Inclu...

    ⛶
  • Optimize common paths

    dotnet/runtime
    Algorithms Other
    6
    ⭐ 16578

    Design algorithms that optimize for the most common execution paths by prioritizing frequent scenarios in c...

    ⛶
  • Model actual hardware costs

    dotnet/runtime
    Performance Optimization C++
    6
    ⭐ 16578

    Base optimization decisions on accurate hardware cost models rather than outdated assumptions. Modern archi...

    ⛶
  • Document configuration intent

    dotnet/runtime
    Configurations Other
    6
    ⭐ 16578

    Configuration settings should be self-documenting with clear intent. When adding temporary workarounds, con...

    ⛶
  • Handle nulls with Option

    astral-sh/ruff
    Null Handling Rust
    6
    ⭐ 40619

    Use Rust's Option type and its methods effectively to handle nullable values. This improves code clarity an...

    ⛶
  • Enhance code clarity

    TanStack/router
    React Markdown
    6
    ⭐ 11590

    Ensure all code examples and documentation are as clear and complete as possible for developers. This inclu...

    ⛶
  • API parameter design

    TanStack/router
    API TypeScript
    6
    ⭐ 11590

    Design API parameters thoughtfully by making them optional when appropriate, avoiding unnecessary required ...

    ⛶
  • Maintain consistent naming patterns

    RooCodeInc/Roo-Code
    Naming Conventions TypeScript
    6
    ⭐ 17288

    Use consistent naming patterns throughout the codebase. When adding new identifiers, follow existing patter...

    ⛶
  • Enforce resource usage limits

    RooCodeInc/Roo-Code
    Performance Optimization TypeScript
    6
    ⭐ 17288

    Implement explicit resource limits and monitoring to prevent performance degradation and memory issues. Thi...

    ⛶
  • Enforce API format consistency

    RooCodeInc/Roo-Code
    API TypeScript
    6
    ⭐ 17288

    Maintain consistent data formats, parameter units, and interface patterns across API implementations. This ...

    ⛶
  • Targeted, Non-Bloated Tests

    redis/redis
    Testing Other
    6
    ⭐ 74261

    When adding/modifying tests, ensure they are (a) semantically aligned to the behavior under test, (b) preci...

    ⛶
  • Use descriptive semantic names

    remix-run/react-router
    Naming Conventions TypeScript
    6
    ⭐ 55270

    Choose variable, function, and type names that clearly communicate their purpose and context. Prioritize re...

    ⛶
  • precise null type checking

    remix-run/react-router
    Null Handling TypeScript
    6
    ⭐ 55270

    Use precise null and undefined type checking that matches the actual usage context. Distinguish between che...

    ⛶
  • Hook dependencies stability

    remix-run/react-router
    React TSX
    6
    ⭐ 55270

    Ensure hook dependencies are minimal, stable, and follow React's rules to prevent unnecessary re-renders an...

    ⛶
  • configuration consistency standards

    remix-run/react-router
    Configurations TypeScript
    6
    ⭐ 55270

    Ensure configuration options, flags, and environment settings are handled consistently across all commands ...

    ⛶
  • configuration compatibility validation

    remix-run/react-router
    Next Markdown
    6
    ⭐ 55270

    Ensure that code examples and documentation accurately reflect the constraints and requirements of differen...

    ⛶
  • Prefer simpler expressions

    rails/rails
    Code Style Ruby
    6
    ⭐ 57027

    Always choose the simplest, most readable way to express your code logic. Unnecessary complexity makes code...

    ⛶
  • Minimize unnecessary object allocations

    rails/rails
    Performance Optimization Ruby
    6
    ⭐ 57027

    Avoid creating unnecessary objects, especially in frequently executed code paths. This includes being mindf...

    ⛶
  • Minimize public API surface

    rails/rails
    API Ruby
    6
    ⭐ 57027

    Design APIs with a minimal public surface area by carefully controlling which methods and properties are ex...

    ⛶
  • Follow documentation conventions

    rails/rails
    Documentation Markdown
    6
    ⭐ 57027

    Maintain consistent formatting and style in all documentation to improve readability and professionalism: ...

    ⛶
  • Document APIs clearly

    rails/rails
    API Markdown
    6
    ⭐ 57027

    When designing and documenting APIs, prioritize clarity and completeness through concrete examples and accu...

    ⛶
  • Use Shared UI Primitives

    infiniflow/ragflow
    Code Style TSX
    6
    ⭐ 80174

    When building UI, follow the project’s existing design-system components and tokens instead of creating bes...

    ⛶
  • Use Clear Identifiers

    infiniflow/ragflow
    Naming Conventions Python
    6
    ⭐ 80174

    Use semantically meaningful, convention-compliant names everywhere (parameters, variables, fields, classes,...

    ⛶
  • Null-safe input handling

    infiniflow/ragflow
    Null Handling Python
    6
    ⭐ 80174

    Apply null-safety consistently for request payloads, optional dict keys, and nullable fields. Specifically:...

    ⛶
  • Non-Blocking Async Recovery

    infiniflow/ragflow
    Concurrency Python
    6
    ⭐ 80174

    Concurrency standard: (1) keep async code non-blocking, (2) don’t change sync/async boundaries unless calle...

    ⛶
  • Centralized input guards

    infiniflow/ragflow
    Security Python
    6
    ⭐ 80174

    Require a shared, spec-aligned “guard” step for any untrusted input used in security-sensitive contexts (SQ...

    ⛶
  • Thread-safe state management

    quarkusio/quarkus
    Concurrency Java
    6
    ⭐ 14667

    When managing state accessed by multiple threads, ensure thread safety through appropriate synchronization ...

    ⛶
  • Graceful API evolution

    pytorch/pytorch
    API Python
    6
    ⭐ 91345

    When modifying, deprecating, or replacing APIs, ensure a smooth transition experience for developers by fol...

    ⛶
  • Performance-Sensitive Efficiency

    TheAlgorithms/Python
    Performance Optimization Python
    6
    ⭐ 220912

    When optimizing, watch for *hidden* inefficiencies: avoid O(n) per-step operations, don’t duplicate expensi...

    ⛶
  • Explicit Optional Nulls

    TheAlgorithms/Python
    Null Handling Python
    6
    ⭐ 220912

    When a value can be absent, represent that absence explicitly and consistently. **Do** - Use `Optional[......

    ⛶
  • Algorithm Correctness Standards

    TheAlgorithms/Python
    Algorithms Python
    6
    ⭐ 220912

    When implementing algorithms, enforce correctness and reliability by following this checklist: 1) Validate...

    ⛶
  • Standardize dependency management

    pydantic/pydantic
    CI/CD Yaml
    6
    ⭐ 24377

    Maintain consistent dependency management practices across CI workflows to ensure reliable builds and tests...

    ⛶
  • Maintain code consistency

    pydantic/pydantic
    Code Style Python
    6
    ⭐ 24377

    Ensure code follows consistent patterns throughout the codebase, even when duplicating code is necessary. W...

    ⛶
  • Least privilege principle

    prowler-cloud/prowler
    Security Python
    6
    ⭐ 11834

    Always follow the principle of least privilege by granting the minimum permissions necessary for functional...

    ⛶
  • improve code readability

    prometheus/prometheus
    Code Style Go
    6
    ⭐ 59616

    Structure code to maximize readability and reduce cognitive load through proper formatting and control flow...

    ⛶
  • avoid subjective language

    prometheus/prometheus
    Documentation Markdown
    6
    ⭐ 59616

    Avoid subjective terms, unexplained jargon, and assumptions about user knowledge in documentation. Replace ...

    ⛶
  • Manage output streams carefully

    prisma/prisma
    Logging TypeScript
    6
    ⭐ 42967

    Always consider the destination and lifecycle of output streams to prevent protocol interference, data loss...

    ⛶
  • Verify optional chaining necessity

    prettier/prettier
    Null Handling JavaScript
    6
    ⭐ 50772

    Analyze whether optional chaining (`?.`) is actually needed based on the surrounding context and prior vali...

    ⛶
  • prefer efficient algorithms

    prettier/prettier
    Algorithms JavaScript
    6
    ⭐ 50772

    Choose more efficient algorithmic approaches by leveraging built-in methods and APIs instead of implementin...

    ⛶
  • Documentation clarity standards

    prettier/prettier
    Documentation Markdown
    6
    ⭐ 50772

    Ensure documentation is clear, precise, and technically accurate to prevent confusion and build errors. Thi...

    ⛶
  • consistent spacing patterns

    prettier/prettier
    Code Style Other
    6
    ⭐ 50772

    Maintain consistent spacing patterns around operators, keywords, and interpolation syntax throughout the co...

    ⛶
  • Cache invalidation consistency

    PostHog/posthog
    Caching Python
    6
    ⭐ 28460

    Ensure comprehensive and consistent cache invalidation patterns across all models that affect cached data. ...

    ⛶
  • Optimize memory allocation patterns

    pola-rs/polars
    Performance Optimization Rust
    6
    ⭐ 34296

    Minimize memory allocations and optimize allocation patterns to improve performance. Key practices: 1. Pre...

    ⛶
  • Names reveal clear intent

    pola-rs/polars
    Naming Conventions Rust
    6
    ⭐ 34296

    Choose names that clearly communicate intent and context, avoiding ambiguity or confusion. Variable and fun...

    ⛶
  • Explicit null handling

    pola-rs/polars
    Null Handling Python
    6
    ⭐ 34296

    Always be explicit and consistent about how null values are handled in operations and documentation. This c...

    ⛶
  • Clear actionable error messages

    python-poetry/poetry
    Error Handling Python
    6
    ⭐ 33496

    Error messages should be user-friendly, readable, and provide actionable guidance for resolution. Avoid exp...

    ⛶
  • proxy configuration precedence

    microsoft/playwright
    Networking TypeScript
    6
    ⭐ 76113

    Ensure proxy configuration follows proper precedence hierarchy and handles different proxy types correctly....

    ⛶
  • Extract repeated logic

    microsoft/playwright
    Code Style TypeScript
    6
    ⭐ 76113

    When you find yourself writing similar code patterns multiple times, extract them into reusable methods, co...

    ⛶
  • comprehensive test coverage

    emcie-co/parlant
    Testing Python
    6
    ⭐ 12205

    Ensure tests are comprehensive and explicit to prevent regressions and gaps in coverage. Tests should cover...

    ⛶
  • Structure tests thoroughly

    opentofu/opentofu
    Testing Go
    6
    ⭐ 25901

    Create well-structured tests with thorough coverage of both expected success and error conditions. Name tes...

    ⛶
  • Safe lock patterns

    opentofu/opentofu
    Concurrency Go
    6
    ⭐ 25901

    When implementing concurrent operations, ensure locks are acquired and released properly in all execution p...

    ⛶
  • Reduce code nesting

    opentofu/opentofu
    Code Style Go
    6
    ⭐ 25901

    Minimize nesting levels and complexity in your code to improve readability and maintainability. Use early r...

    ⛶
  • Write purposeful comments

    open-telemetry/opentelemetry-python
    Documentation Python
    6
    ⭐ 2061

    Comments should explain "why" and "how" rather than restating what is already obvious from the code. Focus ...

    ⛶
  • Sanitize observability data exports

    open-telemetry/opentelemetry-python
    Observability Python
    6
    ⭐ 2061

    When exporting observability data (metrics, traces, logs) to external systems, properly sanitize all data f...

    ⛶
  • Use OpenCV error mechanisms

    opencv/opencv
    Error Handling C++
    6
    ⭐ 82865

    Always use OpenCV's built-in error handling mechanisms instead of C++ exceptions or custom error handling. ...

    ⛶
  • Prevent null vulnerabilities

    opencv/opencv
    Null Handling C++
    6
    ⭐ 82865

    Use container classes and smart pointers instead of manual memory allocation to prevent null pointer derefe...

    ⛶
  • Cross-platform API design rules

    opencv/opencv
    API Other
    6
    ⭐ 82865

    Design public APIs to work seamlessly across different programming languages and platforms. Follow these ke...

    ⛶
  • Clear API contracts

    opencv/opencv
    API C++
    6
    ⭐ 82865

    Design APIs with clear contracts that behave exactly as their names and signatures suggest. Functions shoul...

    ⛶
  • Behavior-First Pytest Testing

    openai/openai-python
    Testing Python
    6
    ⭐ 30731

    Write tests that are pytest-native, high-signal, and behavior-focused. Apply these rules: - Prefer observa...

    ⛶
  • Optimize with standard library

    ollama/ollama
    Algorithms Go
    6
    ⭐ 145704

    When implementing algorithms, prefer using Go's standard library over custom implementations or external de...

    ⛶
  • Use nullable for optionals

    octokit/octokit.net
    Null Handling C#
    6
    ⭐ 2793

    When a property or parameter represents an optional value that might be absent in requests or responses, us...

    ⛶
  • validate configuration values

    nrwl/nx
    Configurations TypeScript
    6
    ⭐ 27518

    Always validate configuration values at runtime and provide clear, actionable error messages when invalid c...

    ⛶
  • Use explicit, consistent names

    nrwl/nx
    Naming Conventions TypeScript
    6
    ⭐ 27518

    Variable and parameter names should be explicit about their purpose and consistent with established naming ...

    ⛶
  • scope CI access tokens

    nrwl/nx
    CI/CD Markdown
    6
    ⭐ 27518

    Configure CI pipelines to use appropriately scoped access tokens based on branch protection status. Use rea...

    ⛶
  • Document CI configuration clearly

    nrwl/nx
    CI/CD Other
    6
    ⭐ 27518

    Always include file path comments in CI configuration code blocks and use officially recommended setup acti...

    ⛶
  • Use descriptive names

    nuxt/nuxt
    Naming Conventions TypeScript
    6
    ⭐ 57769

    Choose variable, function, and file names that clearly describe their purpose, behavior, and content. Names...

    ⛶
  • explicit API design

    nuxt/nuxt
    API TypeScript
    6
    ⭐ 57769

    Design APIs with explicit parameters, consistent return types, and clear interfaces to improve usability an...

    ⛶
  • Configuration method selection

    nuxt/nuxt
    Configurations Markdown
    6
    ⭐ 57769

    Choose the appropriate configuration method based on when values are needed and whether they can change at ...

    ⛶
  • Use semantic naming patterns

    novuhq/novu
    Naming Conventions TypeScript
    6
    ⭐ 37700

    Establish consistent naming conventions that preserve semantic meaning and follow established patterns. Use...

    ⛶
  • Extract reusable components

    novuhq/novu
    Code Style TypeScript
    6
    ⭐ 37700

    Eliminate code duplication by extracting common functionality into shared utilities, constants, and base cl...

    ⛶
  • Prefer clarity over cleverness

    nodejs/node
    Code Style JavaScript
    6
    ⭐ 112178

    Write code that prioritizes readability and maintainability over cleverness or excessive optimization. Avoi...

    ⛶
  • Handling Dynamic Content in Next.js Components

    vercel/next.js
    Next.js JavaScript
    6
    ⭐ 133000

    When implementing Next.js components that rely on dynamic content (e.g. random values, current time), it is...

    ⛶
  • Provider-specific AI handling

    ChatGPTNextWeb/NextChat
    AI TypeScript
    6
    ⭐ 85721

    Implement provider-specific logic when integrating different AI services, as each provider has unique requi...

    ⛶
  • Use null validation utilities

    netty/netty
    Null Handling Java
    6
    ⭐ 34227

    Consistently use utility methods like `ObjectUtil.checkNotNull()` or `Objects.requireNonNull()` to validate...

    ⛶
  • Memory ordering needs barriers

    netty/netty
    Concurrency Java
    6
    ⭐ 34227

    Ensure proper memory ordering in concurrent code by using appropriate memory barriers and atomic operations...

    ⛶
  • Structure behavior-driven tests properly

    nestjs/nest
    Testing TypeScript
    6
    ⭐ 71766

    Organize tests using behavior-driven development (BDD) patterns to improve clarity and maintainability. Gro...

    ⛶
  • Follow protocol standards

    nestjs/nest
    Networking TypeScript
    6
    ⭐ 71767

    When implementing networking features, strictly adhere to protocol specifications and standards to ensure p...

    ⛶
  • prioritize code readability

    neovim/neovim
    Code Style Other
    6
    ⭐ 91433

    Write code that prioritizes readability and clarity over brevity. Use proper formatting, clear expressions,...

    ⛶
  • Follow established API patterns

    neovim/neovim
    API Txt
    6
    ⭐ 91433

    APIs should follow documented conventions and established patterns within the codebase to ensure consistenc...

    ⛶
  • Documentation accuracy standards

    neovim/neovim
    Documentation C
    6
    ⭐ 91433

    Ensure all function documentation accurately reflects the actual code behavior and includes complete, prope...

    ⛶
  • Optimize cargo dependencies

    neondatabase/neon
    Configurations Toml
    6
    ⭐ 19015

    Maintain clean and efficient dependency configurations in Cargo.toml files by following these practices: 1...

    ⛶
  • Minimize unnecessary allocations

    neondatabase/neon
    Performance Optimization Rust
    6
    ⭐ 19015

    Avoid allocations and cloning when they don't provide sufficient benefit relative to their performance cost...

    ⛶
  • Log level appropriately

    neondatabase/neon
    Logging Rust
    6
    ⭐ 19015

    Select the appropriate log level based on operational significance and ensure messages are clear, accurate,...

    ⛶
  • Keep files focused small

    neondatabase/neon
    Code Style Rust
    6
    ⭐ 19015

    Maintain code organization by keeping files focused on a single responsibility and splitting large files in...

    ⛶
  • Header hygiene rules

    Tencent/ncnn
    Code Style Other
    6
    ⭐ 23205

    Keep headers “composition-safe” and minimal. Apply these rules: - **Do not define non-inline function impl...

    ⛶
  • Graceful Error Propagation

    Tencent/ncnn
    Error Handling C++
    6
    ⭐ 23205

    When writing library code, never hard-terminate or silently ignore failures. Always (1) validate inputs/sha...

    ⛶
  • Conditional CMake Configuration

    Tencent/ncnn
    Configurations Txt
    6
    ⭐ 23205

    When changing build configuration (compiler definitions, link libraries, compile/link flags), ensure it is ...

    ⛶
  • Capability-Guarded Configuration

    Tencent/ncnn
    Configurations C++
    6
    ⭐ 23205

    When code depends on environment/build features (SIMD/FP16 availability, OpenCV versioned APIs, packing lay...

    ⛶
  • Standardize LLM interface parameters

    n8n-io/n8n
    AI TypeScript
    6
    ⭐ 122978

    Maintain consistent parameter names and interface patterns across LLM implementations to improve maintainab...

    ⛶
  • Sanitize all dynamic content

    n8n-io/n8n
    Security Other
    6
    ⭐ 122978

    Always sanitize dynamic content before rendering to prevent XSS and injection attacks. This includes HTML c...

    ⛶
  • Never swallow errors silently

    n8n-io/n8n
    Error Handling TypeScript
    6
    ⭐ 122978

    Always handle errors explicitly and preserve their context. Never silently catch and discard errors as this...

    ⛶
  • Optimize iteration patterns

    apache/mxnet
    Algorithms Python
    6
    ⭐ 20801

    When iterating through collections, choose the most efficient iteration pattern based on what information y...

    ⛶
  • Use descriptive names

    rocicorp/mono
    Naming Conventions TypeScript
    6
    ⭐ 2091

    Choose names that clearly communicate intent and purpose, avoiding vague or misleading terms. Names should ...

    ⛶
  • explicit null handling

    rocicorp/mono
    Null Handling TypeScript
    6
    ⭐ 2091

    Use explicit null and undefined checks with assertions to validate assumptions and maintain type safety. Pr...

    ⛶
  • Environment variable patterns

    rocicorp/mono
    Configurations TypeScript
    6
    ⭐ 2091

    Use consistent patterns for environment variable handling and configuration validation. Access environment ...

    ⛶
  • Use supported documentation formats

    mermaid-js/mermaid
    Documentation TypeScript
    6
    ⭐ 87952

    When updating documentation, examples, or config-related code: 1) Follow the source of truth for generated...

    ⛶
  • Intentional Version Pinning

    mermaid-js/mermaid
    Configurations Json
    6
    ⭐ 87952

    When managing configuration via `package.json`/`tsconfig.json`, treat version and target specifiers as comp...

    ⛶
  • Deterministic Testing Practices

    mermaid-js/mermaid
    Testing JavaScript
    6
    ⭐ 87952

    Integration/e2e tests should be deterministic and directly tied to specified behavior. Apply these rules: ...

    ⛶
  • Use theme utilities consistently

    mui/material-ui
    Code Style JavaScript
    6
    ⭐ 96063

    Always use theme utilities for consistent styling across the application instead of hard-coded values. Repl...

    ⛶
  • Meaningful and consistent names

    mui/material-ui
    Naming Conventions TypeScript
    6
    ⭐ 96063

    Use descriptive, accurate identifiers that follow established conventions and maintain consistency througho...

    ⛶
  • Extract complex logic

    mastodon/mastodon
    Code Style Ruby
    6
    ⭐ 48691

    Break down complex methods into smaller, well-named private methods to improve readability and maintainabil...

    ⛶
  • Handle errors by severity

    maplibre/maplibre-native
    Error Handling C++
    6
    ⭐ 1411

    Choose error handling mechanisms based on error severity and recoverability: 1. Use throws for unrecoverab...

    ⛶
  • Consistent API practices

    maplibre/maplibre-native
    API Markdown
    6
    ⭐ 1411

    Maintain consistency in API design, documentation, and implementation across all supported platforms to imp...

    ⛶
  • Add explanatory documentation

    logseq/logseq
    Documentation Other
    6
    ⭐ 37695

    Add docstrings to functions and comments to explain complex logic, especially when the purpose or reasoning...

    ⛶
  • consistent naming patterns

    lobehub/lobe-chat
    Naming Conventions TypeScript
    6
    ⭐ 65138

    Maintain consistent naming conventions within related groups of identifiers. When naming related variables,...

    ⛶
  • Provide contextual code documentation

    llvm/llvm-project
    Documentation C++
    6
    ⭐ 33702

    Code should include documentation that explains the purpose, rationale, and context behind implementation d...

    ⛶
  • Follow naming conventions

    ggml-org/llama.cpp
    Naming Conventions Other
    6
    ⭐ 83559

    Maintain consistency with established naming patterns and conventions throughout the codebase. This include...

    ⛶
  • explicit control flow logic

    ggml-org/llama.cpp
    Algorithms C++
    6
    ⭐ 83559

    Use explicit control flow structures like switch statements instead of complex boolean logic or implicit re...

    ⛶
  • Use proper logging mechanisms

    BerriAI/litellm
    Logging Python
    6
    ⭐ 28310

    Always use the logging library instead of print statements and maintain consistent logging patterns through...

    ⛶
  • Preserve error handling context

    langfuse/langfuse
    Error Handling TypeScript
    6
    ⭐ 13574

    Always preserve error context by using specific error types, safe error handling patterns, and meaningful e...

    ⛶
  • Maintain naming consistency

    langfuse/langfuse
    Naming Conventions TSX
    6
    ⭐ 13574

    Use consistent and descriptive names for variables, components, and functions throughout the codebase. When...

    ⛶
  • Hook and state correctness

    langfuse/langfuse
    React TSX
    6
    ⭐ 13574

    Ensure React hooks and state updates follow best practices to prevent subtle bugs: 1. **Call hooks uncondi...

    ⛶
  • Environment variable documentation

    langflow-ai/langflow
    Configurations Other
    6
    ⭐ 111046

    Ensure comprehensive and accurate documentation of environment variables, including cross-references, auto-...

    ⛶
  • Prefer nullish coalescing

    langchain-ai/langchainjs
    Null Handling TypeScript
    6
    ⭐ 15004

    When handling null or undefined values, use modern JavaScript patterns to write more robust and maintainabl...

    ⛶
  • Prefer descriptive errors

    JetBrains/kotlin
    Error Handling Kotlin
    6
    ⭐ 50857

    When handling errors in your code, always provide detailed context in error messages to aid debugging. Use ...

    ⛶
  • Use descriptive names

    kilo-org/kilocode
    Naming Conventions TypeScript
    6
    ⭐ 7302

    Choose names that clearly communicate purpose, type, and intent rather than generic or ambiguous identifier...

    ⛶
  • extract reusable utilities

    kilo-org/kilocode
    Code Style TypeScript
    6
    ⭐ 7302

    When you notice repeated logic or functions that could be shared across multiple files, extract them into d...

    ⛶
  • Synchronization safety patterns

    apache/kafka
    Concurrency Java
    6
    ⭐ 30575

    Ensure proper synchronization mechanisms to prevent deadlocks and race conditions in concurrent code. When ...

    ⛶
  • avoid unnecessary object creation

    apache/kafka
    Performance Optimization Java
    6
    ⭐ 30575

    Minimize object allocation in performance-critical code paths by reusing existing objects, caching expensiv...

    ⛶
  • Choose efficient data structures

    jj-vcs/jj
    Algorithms Rust
    6
    ⭐ 21171

    Select data structures and algorithms based on their performance characteristics and expected usage pattern...

    ⛶
  • Return errors explicitly

    istio/istio
    Error Handling Go
    6
    ⭐ 37192

    Functions should return errors explicitly to callers rather than terminating the program, hiding errors in ...

    ⛶
  • prevent race conditions

    istio/istio
    Concurrency Go
    6
    ⭐ 37192

    Always protect shared state access and ensure proper synchronization in concurrent operations to prevent ra...

    ⛶
  • Feature flag lifecycle management

    istio/istio
    Configurations Go
    6
    ⭐ 37192

    Establish clear guidelines for feature flag creation, default values, and removal strategy based on risk as...

    ⛶
  • Avoid expensive operations

    istio/istio
    Performance Optimization Go
    6
    ⭐ 37192

    Identify and eliminate computationally expensive operations in frequently executed code paths. Common expen...

    ⛶
  • Wrap errors with context

    influxdata/influxdb
    Error Handling Go
    6
    ⭐ 30268

    Always wrap errors with meaningful context using fmt.Errorf and %w verb. Include relevant identifiers (file...

    ⛶
  • Follow API conventions

    influxdata/influxdb
    API Rust
    6
    ⭐ 30268

    Design APIs following modern conventions and best practices to improve usability, maintainability, and cons...

    ⛶
  • Choose optimal data structures

    influxdata/influxdb
    Algorithms Rust
    6
    ⭐ 30268

    Select data structures based on specific access patterns and performance requirements. When both fast looku...

    ⛶
  • Minimize redundant operations

    elie222/inbox-zero
    Performance Optimization TSX
    6
    ⭐ 8267

    Optimize application performance by preventing unnecessary renders, calculations, and network operations. I...

    ⛶
  • Handle nulls with types

    elie222/inbox-zero
    Null Handling TSX
    6
    ⭐ 8267

    Enforce type safety by properly handling null and undefined values through TypeScript types and explicit ch...

    ⛶
  • Enforce atomic database operations

    elie222/inbox-zero
    Concurrency TypeScript
    6
    ⭐ 8267

    Replace check-then-act patterns with atomic database operations to prevent race conditions in concurrent en...

    ⛶
  • Dynamic configuration handling

    hyprwm/Hyprland
    Configurations C++
    6
    ⭐ 28863

    When implementing configuration changes that need to be applied at runtime, follow these practices: 1. **U...

    ⛶
  • consistent naming conventions

    hyprwm/Hyprland
    Naming Conventions Other
    6
    ⭐ 28863

    Follow the project's established naming conventions consistently across all code. Use camelCase for variabl...

    ⛶
  • Synchronize environment configurations

    juspay/hyperswitch
    Configurations Toml
    6
    ⭐ 34028

    When making configuration changes, ensure all relevant environment files are updated consistently to preven...

    ⛶
  • Avoid hardcoded configuration values

    juspay/hyperswitch
    Configurations Rust
    6
    ⭐ 34028

    Configuration values should not be hardcoded in the source code. Instead, they should be externalized to co...

    ⛶
  • preserve dtype and shapes

    p-e-w/heretic
    Pytorch Python
    6
    ⭐ 5002

    When writing PyTorch code, preserve tensor dtypes and devices and be explicit about vector/matrix shapes to...

    ⛶
  • prefer let-else patterns

    helix-editor/helix
    Null Handling Rust
    6
    ⭐ 39026

    When handling Option types that require early returns on None values, prefer the let-else pattern over verb...

    ⛶
  • Consistent descriptive naming conventions

    helix-editor/helix
    Naming Conventions Markdown
    6
    ⭐ 39026

    Use consistent and descriptive naming conventions across the codebase: 1. Use kebab-case for configuration...

    ⛶
  • Explicit null validation

    grafana/grafana
    Null Handling Go
    6
    ⭐ 68825

    Always validate objects for null/nil before accessing their properties, and establish consistent patterns f...

    ⛶
  • Descriptive semantic names

    grafana/grafana
    Naming Conventions TSX
    6
    ⭐ 68825

    Always use descriptive variable, parameter, function, and constant names that clearly convey their purpose ...

    ⛶
  • Use descriptive identifiers

    block/goose
    Naming Conventions Rust
    6
    ⭐ 19037

    Replace generic, ambiguous, or magic identifiers with descriptive, specific names that clearly communicate ...

    ⛶
  • avoid panics and expects

    block/goose
    Error Handling Rust
    6
    ⭐ 19037

    Replace panic-inducing operations like `.expect()` and `.unwrap()` with proper error handling that allows g...

    ⛶
  • avoid environment variable proliferation

    block/goose
    Configurations Rust
    6
    ⭐ 19037

    Prefer the consolidated config system over adding new environment variables. Environment variables should o...

    ⛶
  • AI model configuration consistency

    block/goose
    AI Rust
    6
    ⭐ 19037

    Maintain consistent AI model metadata and configuration across all providers to prevent breaking changes an...

    ⛶
  • Use proper network constants

    golang/go
    Networking Go
    6
    ⭐ 129599

    When writing network-related code, always use named constants from system packages instead of magic numbers...

    ⛶
  • Document code behavior

    gin-gonic/gin
    Documentation Go
    6
    ⭐ 83022

    Document the "why" and "how" of your code, not just what it does. Add clear comments to explain: 1. Non-ob...

    ⛶
  • Robust SSH integration

    ghostty-org/ghostty
    Networking Other
    6
    ⭐ 32864

    When implementing SSH integration in your application, follow these practices to ensure reliability across ...

    ⛶
  • Document configs comprehensively

    ghostty-org/ghostty
    Configurations Other
    6
    ⭐ 32864

    Configuration options must be documented comprehensively with: 1. Clear, descriptive name using appropriat...

    ⛶
  • Use semantic naming

    google-gemini/gemini-cli
    Naming Conventions TypeScript
    6
    ⭐ 65062

    Choose names that clearly communicate the purpose, behavior, and intent of variables, methods, classes, and...

    ⛶
  • Secure input validation

    google-gemini/gemini-cli
    Security TypeScript
    6
    ⭐ 65062

    Always validate and sanitize user inputs, especially when constructing commands or file paths. Use establis...

    ⛶
  • Ensure comprehensive user documentation

    google-gemini/gemini-cli
    Documentation TypeScript
    6
    ⭐ 65062

    All user-facing features, APIs, and tools must have clear, comprehensive documentation that explains their ...

    ⛶
  • Organize code logically

    fatedier/frp
    Code Style Go
    6
    ⭐ 95938

    Maintain a clean and logical code structure by properly organizing code according to its functionality and ...

    ⛶
  • Prefer clear, semantic code

    freeCodeCamp/freeCodeCamp
    Code Style TSX
    6
    ⭐ 444449

    Write code that’s easy to read and matches intent (mutability, string composition, UI semantics), and remov...

    ⛶
  • Name indicates clear purpose

    laravel/framework
    Naming Conventions PHP
    6
    ⭐ 33763

    Names should clearly indicate their purpose, type, and behavior. This applies to methods, variables, and pa...

    ⛶
  • Cache expensive operations

    laravel/framework
    Performance Optimization PHP
    6
    ⭐ 33763

    Identify and cache results of expensive operations that may be called repeatedly during a request lifecycle...

    ⛶
  • Extract methods for clarity

    flutter/flutter
    Code Style Other
    6
    ⭐ 172252

    Break down large methods and extract repeated code patterns into smaller, focused methods or getters to imp...

    ⛶
  • explicit null validation

    flutter/flutter
    Null Handling Other
    6
    ⭐ 172252

    Always validate null values explicitly rather than using silent fallbacks or implicit handling. When null v...

    ⛶
  • Algorithm precision handling

    flutter/flutter
    Algorithms Other
    6
    ⭐ 172252

    Choose algorithms that handle edge cases and mathematical precision correctly to avoid subtle bugs and unex...

    ⛶
  • prefer existing APIs

    gofiber/fiber
    API Go
    6
    ⭐ 37560

    When adding new functionality, prioritize reusing existing methods and interfaces rather than creating new ...

    ⛶
  • Extract duplicate logic

    gofiber/fiber
    Code Style Go
    6
    ⭐ 37560

    When code blocks become large or contain repetitive patterns, extract them into separate functions to impro...

    ⛶
  • Consistent test code style

    fastify/fastify
    Code Style JavaScript
    6
    ⭐ 34000

    Maintain consistent and clear testing patterns by following these guidelines: use strict equality assertion...

    ⛶
  • Concurrent operations completion management

    fastify/fastify
    Concurrency JavaScript
    6
    ⭐ 34000

    When running concurrent operations in tests, ensure all operations complete before concluding the test. Rac...

    ⛶
  • Ensure comprehensive test coverage

    electron/electron
    Testing TypeScript
    6
    ⭐ 117644

    Always verify that tests cover all relevant scenarios, edge cases, and conditions rather than just the happ...

    ⛶
  • avoid redundant operations

    electron/electron
    Performance Optimization Other
    6
    ⭐ 117644

    Identify and eliminate unnecessary duplicate operations, redundant function calls, and repeated computation...

    ⛶
  • Use configuration access methods

    elastic/elasticsearch
    Configurations Java
    6
    ⭐ 73104

    When accessing configuration settings, always use the appropriate type-safe accessor methods provided by th...

    ⛶
  • Robust test assertions

    elastic/elasticsearch
    Testing Java
    6
    ⭐ 73104

    Use precise, informative assertions in tests to provide clear feedback when tests fail and verify the corre...

    ⛶
  • Prefer callbacks over blocking

    elastic/elasticsearch
    Concurrency Java
    6
    ⭐ 73104

    Always structure concurrent code to use asynchronous callbacks instead of blocking operations. Blocking cal...

    ⛶
  • Measure before optimizing performance

    elastic/elasticsearch
    Performance Optimization Java
    6
    ⭐ 73104

    Before implementing performance optimizations, measure and validate the impact through benchmarks. This app...

    ⛶
  • maintain codebase consistency

    duckdb/duckdb
    Code Style Other
    6
    ⭐ 32061

    Ensure new code follows established patterns, conventions, and standards already present in the codebase. T...

    ⛶
  • explicit null state management

    duckdb/duckdb
    Null Handling Other
    6
    ⭐ 32061

    Make null state checks explicit and comprehensive rather than using implicit return values or redundant fie...

    ⛶
  • Explicit CI configurations

    duckdb/duckdb
    CI/CD Yaml
    6
    ⭐ 32061

    CI/CD workflows should use explicit, named configurations rather than wildcards, globs, or implicit behavio...

    ⛶
  • Optional configuration parameters

    stanfordnlp/dspy
    Configurations Python
    6
    ⭐ 27813

    Make configuration parameters optional with sensible defaults instead of requiring mandatory values, and on...

    ⛶
  • Null safety patterns

    stanfordnlp/dspy
    Null Handling Python
    6
    ⭐ 27813

    Implement proper null safety patterns to prevent runtime errors and unexpected behavior. This includes seve...

    ⛶
  • implement algorithms correctly

    stanfordnlp/dspy
    Algorithms Python
    6
    ⭐ 27813

    Ensure algorithmic implementations use correct patterns, handle edge cases gracefully, and avoid silent fai...

    ⛶
  • API backward compatibility

    stanfordnlp/dspy
    API Python
    6
    ⭐ 27813

    Maintain backward compatibility when evolving API interfaces by preserving existing method signatures and p...

    ⛶
  • AI configuration documentation

    stanfordnlp/dspy
    AI Markdown
    6
    ⭐ 27813

    Ensure AI model configurations and related documentation use precise terminology and provide clear, complet...

    ⛶
  • Write focused efficient tests

    django/django
    Testing Python
    6
    ⭐ 84182

    Tests should be focused, efficient and meaningful. Follow these guidelines: 1. Avoid testing implementatio...

    ⛶
  • Use connection by alias

    django/django
    Database Python
    6
    ⭐ 84182

    When working with database operations in Django projects that might use multiple database backends, always ...

    ⛶
  • Use appropriate log levels

    langgenius/dify
    Logging Python
    6
    ⭐ 114231

    Choose the correct logging level based on the importance and purpose of the message. Use DEBUG for debuggin...

    ⛶
  • Prefer exceptions over silent failures

    langgenius/dify
    Error Handling Python
    6
    ⭐ 114231

    Raise exceptions instead of returning None, logging warnings, or silently modifying values when encounterin...

    ⛶
  • Concurrent resource management

    langgenius/dify
    Concurrency Python
    6
    ⭐ 114231

    When implementing concurrent operations, properly manage shared resources to prevent race conditions and en...

    ⛶
  • Valid Angular Examples

    kamranahmedse/developer-roadmap
    Angular Markdown
    6
    ⭐ 354523

    When adding Angular examples (docs, snippets, templates), ensure they are both *syntactically/semantically ...

    ⛶
  • Accurate AI Content

    kamranahmedse/developer-roadmap
    AI Markdown
    6
    ⭐ 354523

    When writing AI/LLM-related documentation or roadmap material, ensure it (a) states model limitations preci...

    ⛶
  • organize code properly

    zen-browser/desktop
    Code Style Other
    6
    ⭐ 34711

    Maintain clean code organization by separating concerns into appropriate classes and files. Extract large f...

    ⛶
  • Validate and document nulls

    deeplearning4j/deeplearning4j
    Null Handling Java
    6
    ⭐ 14036

    Always handle null values explicitly and consistently throughout your codebase to prevent null pointer exce...

    ⛶
  • Stable Interface Contracts

    eosphoros-ai/DB-GPT
    API Python
    6
    ⭐ 18703

    When designing or extending APIs, treat existing “core” interface contracts as stable and enforce exact com...

    ⛶
  • Robust LLM Integration

    eosphoros-ai/DB-GPT
    AI Python
    6
    ⭐ 18703

    When integrating LLMs/embeddings into production code, treat the model as unreliable: enforce a stable IO c...

    ⛶
  • Null-Safe Data Access

    eosphoros-ai/DB-GPT
    Null Handling Python
    6
    ⭐ 18703

    Write code so nullable/missing data can’t cause runtime errors. Apply these rules: 1) Declare nullability ...

    ⛶
  • Use descriptive names

    cypress-io/cypress
    Naming Conventions TypeScript
    6
    ⭐ 48850

    Choose names that clearly reveal the purpose and behavior of variables, functions, and methods. Names shoul...

    ⛶
  • function decomposition clarity

    cypress-io/cypress
    Code Style TypeScript
    6
    ⭐ 48850

    Functions should be focused, concise, and easy to understand. Break down large functions (>100 lines) into ...

    ⛶
  • Consistent formatting preferences

    cypress-io/cypress
    Code Style JavaScript
    6
    ⭐ 48850

    Follow consistent formatting and syntax patterns to improve code readability and maintainability. This incl...

    ⛶
  • Structure errors with intent

    crewaiinc/crewai
    Error Handling Python
    6
    ⭐ 33945

    Implement error handling with clear intent and proper propagation. Follow these principles: 1. Use structu...

    ⛶
  • Write comprehensive test cases

    vuejs/core
    Testing TypeScript
    6
    ⭐ 50769

    Tests should thoroughly cover all code paths and edge cases. Each test case should: 1. Test distinct scenar...

    ⛶
  • Use shared string keys

    home-assistant/core
    Configurations Json
    6
    ⭐ 80450

    Replace hardcoded strings in configuration files with shared string key references to maintain consistency ...

    ⛶
  • Use appropriate logging levels

    home-assistant/core
    Logging Python
    6
    ⭐ 80450

    Choose the correct logging level based on the nature and expected frequency of the event being logged. Foll...

    ⛶
  • Strict props event handling

    vuejs/core
    Vue TypeScript
    6
    ⭐ 50769

    Enforce strict typing and consistent handling of component props and events to ensure type safety, runtime ...

    ⛶
  • Evolve APIs gracefully

    vuejs/core
    API TypeScript
    6
    ⭐ 50769

    When modifying or extending APIs, prioritize backward compatibility while providing clear migration paths f...

    ⛶
  • ESLint configuration alignment

    adonisjs/core
    Code Style JavaScript
    6
    ⭐ 18071

    Ensure your ESLint configuration matches the JavaScript language features used in your codebase to prevent ...

    ⛶
  • Choose semantic descriptive names

    vuejs/core
    Naming Conventions TypeScript
    6
    ⭐ 50769

    Names should be clear, descriptive and follow consistent patterns. Choose names that accurately reflect the...

    ⛶
  • Avoid redundant computations

    vuejs/core
    Performance Optimization TypeScript
    6
    ⭐ 50769

    Identify and eliminate redundant operations that cause performance bottlenecks by caching expensive functio...

    ⛶
  • Semantically consistent naming

    continuedev/continue
    Naming Conventions TSX
    6
    ⭐ 27819

    Names should accurately reflect their purpose and be used consistently throughout the codebase. This applie...

    ⛶
  • Handle unsafe operations safely

    continuedev/continue
    Error Handling TypeScript
    6
    ⭐ 27819

    Always wrap potentially unsafe operations (like JSON parsing, Buffer operations, or API calls) in try-catch...

    ⛶
  • Extract into helper functions

    continuedev/continue
    Code Style TypeScript
    6
    ⭐ 27819

    Break down complex or deeply nested code into smaller, well-named helper functions to improve readability a...

    ⛶
  • Add logging without duplication

    docker/compose
    Logging Python
    6
    ⭐ 35858

    When adding logging functionality to existing code, encapsulate the logging logic within methods or use par...

    ⛶
  • Use descriptive names

    comfyanonymous/ComfyUI
    Naming Conventions Python
    6
    ⭐ 83726

    Choose descriptive, self-documenting names for constants, functions, parameters, and types that clearly com...

    ⛶
  • Hardware compatibility patterns

    comfyanonymous/ComfyUI
    AI Python
    6
    ⭐ 83726

    Implement proper hardware compatibility patterns when working with different GPU backends and AI frameworks...

    ⛶
  • gRPC interface consistency

    cline/cline
    API TypeScript
    6
    ⭐ 48299

    Ensure gRPC/RPC interfaces follow consistent patterns for return types, error handling, and method design. ...

    ⛶
  • Check before property access

    cline/cline
    Null Handling TypeScript
    6
    ⭐ 48299

    Always verify that parent objects and properties exist before accessing nested properties or calling method...

    ⛶
  • Pin dependency versions

    snyk/cli
    Configurations Json
    6
    ⭐ 5178

    Always pin dependencies to exact versions in package.json instead of using semantic version ranges (^, ~) t...

    ⛶
  • Never commit secrets

    chef/chef
    Security Other
    6
    ⭐ 7860

    Private cryptographic keys, certificates with private keys, and other secrets must never be committed to so...

    ⛶
  • Memoize expensive operations

    chef/chef
    Performance Optimization Ruby
    6
    ⭐ 7860

    Cache results of expensive operations, especially shell commands and external queries, to avoid redundant e...

    ⛶
  • Keep actions versions current

    chef/chef
    CI/CD Yaml
    6
    ⭐ 7860

    Always use the latest stable versions of GitHub Actions components in CI/CD workflows to avoid deprecated f...

    ⛶
  • Externalize configuration values

    chef/chef
    Configurations Shell
    6
    ⭐ 7860

    Avoid hardcoding configuration values directly in scripts, especially for values that might change between ...

    ⛶
  • Choose semantic algorithms

    chef/chef
    Algorithms Ruby
    6
    ⭐ 7860

    Select algorithms and data operations that match the semantic intent of your code rather than using conveni...

    ⛶
  • Document configuration consistently

    bridgecrewio/checkov
    Configurations Markdown
    6
    ⭐ 7667

    Ensure all configuration options are clearly documented and follow consistent naming and syntax conventions...

    ⛶
  • Semantic Naming Must

    celery/celery
    Naming Conventions Python
    6
    ⭐ 28464

    Use naming conventions that are both tooling-correct and behavior-semantic: - **Tooling-sensitive identifi...

    ⛶
  • Explicit None Semantics

    celery/celery
    Null Handling Python
    6
    ⭐ 28464

    When handling optional/nullable inputs, treat “missing” and “explicitly set to None” as different semantic ...

    ⛶
  • Select specific database fields

    calcom/cal.com
    Database TypeScript
    6
    ⭐ 37732

    Always explicitly select only the database fields you actually need instead of using broad includes or fetc...

    ⛶
  • Check exceptions consistently

    oven-sh/bun
    Error Handling C++
    6
    ⭐ 79093

    Always check for exceptions immediately after operations that might throw them, especially before using the...

    ⛶
  • Minimize unnecessary operations

    Homebrew/brew
    Performance Optimization Ruby
    6
    ⭐ 44168

    Optimize performance by eliminating redundant operations and arranging code to avoid unnecessary computatio...

    ⛶
  • Follow established naming patterns

    Homebrew/brew
    Naming Conventions Ruby
    6
    ⭐ 44168

    Names should be descriptive and consistent with existing patterns in the codebase. This applies to methods,...

    ⛶
  • Clear error recovery paths

    Homebrew/brew
    Error Handling Ruby
    6
    ⭐ 44168

    Implement error handling that provides both clear recovery paths for users and graceful degradation for the...

    ⛶
  • Clear code examples

    Homebrew/brew
    Documentation Markdown
    6
    ⭐ 44168

    Documentation should include clear, actionable code examples that users can reliably follow. Avoid using am...

    ⛶
  • Comprehensive API documentation

    boto/boto3
    Documentation Python
    6
    ⭐ 9417

    Always provide comprehensive API documentation that includes accurate examples, complete parameter descript...

    ⛶
  • Use consistent error types

    better-auth/better-auth
    Error Handling TypeScript
    6
    ⭐ 19651

    Always use the appropriate error classes and throwing mechanisms for consistent error handling across the c...

    ⛶
  • Explicit null handling

    bazelbuild/bazel
    Null Handling Java
    6
    ⭐ 24489

    Always make null handling explicit through proper annotations, defensive checks, and clear documentation. U...

    ⛶
  • Avoid unnecessary computations

    bazelbuild/bazel
    Performance Optimization Java
    6
    ⭐ 24489

    Before performing expensive operations, check if the work is actually needed or if more efficient alternati...

    ⛶
  • Use domain-specific type names

    Azure/azure-sdk-for-net
    Naming Conventions C#
    6
    ⭐ 5809

    Types should be named with clear domain context rather than generic terms. Avoid single-word or overly gene...

    ⛶
  • Minimize memory allocations

    Azure/azure-sdk-for-net
    Performance Optimization C#
    6
    ⭐ 5809

    Reduce garbage collection pressure and improve application performance by avoiding unnecessary memory alloc...

    ⛶
  • Document code reasoning

    Azure/azure-sdk-for-net
    Documentation C#
    6
    ⭐ 5809

    Add clear, concise comments that explain the "why" behind complex logic, non-obvious decisions, and implici...

    ⛶
  • Prefer simpler code constructs

    tokio-rs/axum
    Code Style Rust
    6
    ⭐ 22100

    Always opt for simpler, more idiomatic code constructs over complex or verbose alternatives. This includes ...

    ⛶
  • Semantic naming conventions

    aws/aws-sdk-js
    Naming Conventions JavaScript
    6
    ⭐ 7628

    Use descriptive, semantic names for all code elements that clearly indicate their purpose and behavior. Fol...

    ⛶
  • Early return after errors

    aws/aws-sdk-js
    Error Handling JavaScript
    6
    ⭐ 7628

    When handling errors in asynchronous functions, always return immediately after invoking a callback with an...

    ⛶
  • Document APIs thoroughly

    aws/aws-sdk-js
    Documentation JavaScript
    6
    ⭐ 7628

    All public API elements must be thoroughly documented with JSDoc annotations that clearly explain their pur...

    ⛶
  • Prefer early returns

    argoproj/argo-cd
    Code Style Go
    6
    ⭐ 20149

    Use early returns and guard clauses to reduce nesting levels and improve code readability. Instead of deepl...

    ⛶
  • Complete configuration examples

    argoproj/argo-cd
    Configurations Markdown
    6
    ⭐ 20149

    Configuration examples in documentation must be complete and reference authoritative sources to prevent dep...

    ⛶
  • Guard Optional Values

    coleam00/Archon
    Null Handling TypeScript
    6
    ⭐ 21089

    Treat any value that may be undefined/null (environment globals, optional stream handles, user config field...

    ⛶
  • Use language-specific syntax

    appwrite/appwrite
    Code Style Markdown
    6
    ⭐ 51959

    Code snippets must use the correct language-specific syntax and include all necessary imports to compile pr...

    ⛶
  • Synchronize configuration values

    appwrite/appwrite
    Configurations Other
    6
    ⭐ 51959

    Ensure all configuration values, particularly version numbers and environment variables, are consistent acr...

    ⛶
  • Secure authorization skip handling

    appwrite/appwrite
    Security PHP
    6
    ⭐ 51959

    When using authorization bypass mechanisms like `Authorization::skip()`, ensure proper security validation ...

    ⛶
  • High-signal Testing Practices

    anthropics/anthropic-sdk-python
    Testing Python
    6
    ⭐ 3392

    Write tests that are (a) high-signal and not fragile, and (b) structured with standard pytest mechanisms. ...

    ⛶
  • Markdown formatting consistency

    ant-design/ant-design
    Code Style Markdown
    6
    ⭐ 95882

    Ensure consistent markdown formatting in documentation by wrapping all technical terms, API names, property...

    ⛶
  • JSDoc deprecation formatting

    ant-design/ant-design
    API TSX
    6
    ⭐ 95882

    Ensure consistent formatting in JSDoc deprecation comments to improve API documentation clarity and develop...

    ⛶
  • Dependency versioning consistency

    ant-design/ant-design
    Configurations Json
    6
    ⭐ 95882

    Establish and maintain consistent dependency versioning strategies in package.json configuration. Choose be...

    ⛶
  • Use reactive signal patterns

    angular/angular
    Angular Markdown
    6
    ⭐ 98611

    Prefer Angular's reactive signal patterns over manual subscription management and imperative approaches. Us...

    ⛶
  • leverage existing Angular patterns

    angular/angular
    Angular TypeScript
    6
    ⭐ 98611

    Before implementing new functionality, check if Angular already provides a suitable utility, service, or pa...

    ⛶
  • Validate user-controlled paths

    apache/airflow
    Security Python
    6
    ⭐ 40858

    Always validate and sanitize user-provided inputs used in file path operations to prevent path traversal at...

    ⛶
  • Standardize API parameter handling

    apache/airflow
    API Python
    6
    ⭐ 40858

    Use consistent parameter handling patterns across API endpoints to ensure maintainability and predictable b...

    ⛶
  • Avoid code duplication

    apache/airflow
    Code Style Python
    6
    ⭐ 40858

    Extract repeated code patterns into reusable functions, variables, or constants to improve maintainability ...

    ⛶
  • Verify AI model capabilities

    vercel/ai
    AI Other
    6
    ⭐ 15590

    Always verify and accurately document AI model capabilities, supported formats, and limitations before impl...

    ⛶
  • Type-safe null handling

    vercel/ai
    Null Handling TypeScript
    6
    ⭐ 15590

    Use TypeScript's type system and modern JavaScript features to prevent null reference errors. **TypeScrip...

    ⛶
  • Keep tests simple

    vercel/ai
    Testing TypeScript
    6
    ⭐ 15590

    Tests should be straightforward, explicit, and free from complex logic or indirection. Avoid "magic" in tes...

    ⛶
  • Test actual functionality

    cloudflare/agents
    Testing TypeScript
    6
    ⭐ 2312

    Ensure tests verify real operations and integration scenarios rather than just basic concepts or type defin...

    ⛶
  • Consistent, clear naming

    colinhacks/zod
    Naming Conventions TypeScript
    5
    ⭐ 42628

    Use naming that is unambiguous, consistent with the codebase, and semantically accurate. Apply: - Avoid sh...

    ⛶
  • Use structured model metadata

    zed-industries/zed
    AI Rust
    5
    ⭐ 62119

    Represent AI model information using structured data rather than hardcoded enumerations or conditionals. St...

    ⛶
  • Scope dependencies appropriately

    zed-industries/zed
    Configurations Toml
    5
    ⭐ 62119

    Configure dependencies with their minimum necessary scope to maintain clean architecture and improve build ...

    ⛶
  • Document configuration constraints clearly

    zed-industries/zed
    Configurations Markdown
    5
    ⭐ 62119

    When defining configuration options, always clearly document parameter constraints, valid ranges, and behav...

    ⛶
  • Choose domain-specific semantic names

    zed-industries/zed
    Naming Conventions Rust
    5
    ⭐ 62119

    Names should clearly reflect their domain-specific meaning and purpose, avoiding generic or ambiguous terms...

    ⛶
  • Strict null checks

    facebook/yoga
    Null Handling JavaScript
    5
    ⭐ 18255

    Use explicit strict equality checks when testing for null or undefined values. Prefer `x === undefined` ove...

    ⛶
  • Explicit undefined state handling

    facebook/yoga
    Null Handling C
    5
    ⭐ 18255

    Always use explicit, well-defined representations for undefined, uninitialized, or invalid states instead o...

    ⛶
  • JSDoc documentation standards

    cloudflare/workers-sdk
    Documentation TypeScript
    5
    ⭐ 3379

    All public functions and complex code should have proper JSDoc documentation. Functions must include clear ...

    ⛶
  • Configuration file consistency

    cloudflare/workers-sdk
    Configurations Markdown
    5
    ⭐ 3379

    Ensure consistent patterns for configuration files, proper exclusion of development artifacts, and clear en...

    ⛶
  • proper span lifecycle management

    cloudflare/workerd
    Observability Other
    5
    ⭐ 6989

    Ensure spans are properly created, attached to async operations, and reported at appropriate times to maint...

    ⛶
  • Network resource state validation

    cloudflare/workerd
    Networking Other
    5
    ⭐ 6989

    Always validate the state of network resources (sockets, streams, connections) before performing operations...

    ⛶
  • compatibility flag consistency

    cloudflare/workerd
    Configurations TypeScript
    5
    ⭐ 6989

    Ensure compatibility flags follow consistent naming conventions, use explicit typing, and maintain proper u...

    ⛶
  • avoid unnecessary allocations

    cloudflare/workerd
    Performance Optimization TypeScript
    5
    ⭐ 6989

    Minimize object creation and memory copying operations to improve performance. Cache and reuse objects when...

    ⛶
  • Specify API contracts

    wavetermdev/waveterm
    API Go
    5
    ⭐ 17328

    State and document explicit, unambiguous contracts for all API endpoints and RPC messages, especially aroun...

    ⛶
  • Explicit API shapes

    wavetermdev/waveterm
    API TypeScript
    5
    ⭐ 17328

    Require API surfaces (payloads, function contracts, and compact descriptor grammars) to be explicit, well-d...

    ⛶
  • Centralize constants and structure

    wavetermdev/waveterm
    Code Style Go
    5
    ⭐ 17328

    Motivation Keep code readable, consistent and easy to change by centralizing configuration, constants and m...

    ⛶
  • Type-Safe API Boundaries

    warpdotdev/warp
    API Rust
    5
    ⭐ 56893

    APIs that cross module boundaries, wire formats, or event streams should be designed so callers can’t accid...

    ⛶
  • Serialize async per-key

    warpdotdev/warp
    Concurrency Rust
    5
    ⭐ 56893

    Ensure async/stateful flows are race-free by avoiding overlapping work for the same logical key and by hand...

    ⛶
  • Robust config handling

    warpdotdev/warp
    Configurations Markdown
    5
    ⭐ 56893

    Treat configuration as a stable, privacy-safe contract: it must load without breaking the whole file, resol...

    ⛶
  • Doc exactness standard

    warpdotdev/warp
    Documentation Markdown
    5
    ⭐ 56893

    Adopt a “docs must be executable-accurate” standard: treat technical docs/specs/changelogs as part of the p...

    ⛶
  • Deterministic Matching Invariants

    warpdotdev/warp
    Algorithms Markdown
    5
    ⭐ 56893

    When implementing algorithms for pairing/alignment, matching/routing, search, or event fan-out, require a c...

    ⛶
  • Use structured logging

    volcano-sh/volcano
    Logging Go
    5
    ⭐ 4899

    Always use structured logging methods like klog.InfoS and klog.ErrorS instead of unstructured methods like ...

    ⛶
  • Use descriptive consistent naming

    volcano-sh/volcano
    Naming Conventions Markdown
    5
    ⭐ 4899

    Choose names that are self-explanatory, descriptive, and consistent across the codebase. Avoid abbreviated ...

    ⛶
  • Validate algorithmic operations carefully

    vllm-project/vllm
    Algorithms Python
    5
    ⭐ 51730

    Mathematical and logical operations require careful validation to ensure correctness. Common issues include...

    ⛶
  • Remove unnecessary code elements

    vllm-project/vllm
    Code Style CUDA
    5
    ⭐ 51730

    Keep code clean and maintainable by removing unnecessary elements that add complexity without value: 1. Re...

    ⛶
  • Preserve API compatibility

    vllm-project/vllm
    API Python
    5
    ⭐ 51730

    When modifying API interfaces, parameters, or argument behavior, ensure backward compatibility is maintaine...

    ⛶
  • Optimize memory allocation

    vitessio/vitess
    Performance Optimization Go
    5
    ⭐ 19815

    Always allocate data structures with appropriate initial capacity and use memory-efficient data types to re...

    ⛶
  • Runtime-agnostic API design

    vitejs/vite
    API Markdown
    5
    ⭐ 74031

    When designing APIs for systems that support multiple JavaScript runtimes, prioritize decoupling server sta...

    ⛶
  • Propagate errors with context

    vitejs/vite
    Error Handling TypeScript
    5
    ⭐ 74031

    Always propagate errors with proper context and recovery strategy. Use try-catch blocks for both synchronou...

    ⛶
  • Environment variable management

    vitejs/vite
    Configurations Markdown
    5
    ⭐ 74031

    When working with environment variables in Vite applications, be explicit about variable loading behavior a...

    ⛶
  • Runtime configurable defaults

    vlang/v
    Configurations Other
    5
    ⭐ 36582

    Prefer runtime-configurable values over hardcoded constants to allow users to customize behavior without re...

    ⛶
  • Secure configuration defaults

    astral-sh/uv
    Configurations Markdown
    5
    ⭐ 60322

    Establish secure default configurations in project metadata files to prevent accidental publishing and ensu...

    ⛶
  • Optimize CI/CD commands

    astral-sh/uv
    CI/CD Yaml
    5
    ⭐ 60322

    Design CI/CD workflows to be efficient, consistent, and purposeful across all environments. When writing or...

    ⛶
  • Environment variable best practices

    astral-sh/uv
    Configurations Rust
    5
    ⭐ 60322

    When implementing environment variable configuration: 1. Follow standard environment variable conventions:...

    ⛶
  • Raise exceptions properly

    Unstructured-IO/unstructured
    Error Handling Python
    5
    ⭐ 12116

    Always ensure exceptions are properly raised and propagated rather than being logged and swallowed. Avoid p...

    ⛶
  • extensible parameter design

    Unstructured-IO/unstructured
    API Python
    5
    ⭐ 12116

    Design API parameters to support future extension without breaking changes. Use string enums instead of boo...

    ⛶
  • Environment variable patterns

    Unstructured-IO/unstructured
    Configurations Shell
    5
    ⭐ 12117

    Use consistent patterns for environment variable handling in shell scripts. Always provide sensible default...

    ⛶
  • Meaningful consistent identifiers

    shadcn-ui/ui
    Naming Conventions TSX
    5
    ⭐ 90568

    Choose descriptive, semantically accurate names for variables, types, and components that clearly communica...

    ⛶
  • Guard against undefined

    microsoft/typescript
    Null Handling TypeScript
    5
    ⭐ 105378

    Always protect against potential null or undefined values before attempting property access or method calls...

    ⛶
  • Extract complex logical expressions

    microsoft/typescript
    Code Style TypeScript
    5
    ⭐ 105378

    Complex logical expressions should be extracted into well-named variables or functions to improve code read...

    ⛶
  • prefer type guards

    twentyhq/twenty
    Null Handling TypeScript
    5
    ⭐ 35477

    Use semantic type guards like `isDefined()` instead of basic type checks (`typeof`, simple null checks) or ...

    ⛶
  • Minimize hook re-renders

    twentyhq/twenty
    React TypeScript
    5
    ⭐ 35477

    Design React hooks to minimize unnecessary re-renders by avoiding common anti-patterns that cause performan...

    ⛶
  • Add tests for functionality

    twentyhq/twenty
    Testing TypeScript
    5
    ⭐ 35477

    New functionality should include corresponding tests to ensure code quality and maintainability. When intro...

    ⛶
  • Validate performance impact first

    vercel/turborepo
    Performance Optimization Rust
    5
    ⭐ 28115

    Always validate performance changes through profiling or benchmarking before implementation, and favor memo...

    ⛶
  • Design ergonomic APIs

    vercel/turborepo
    API Rust
    5
    ⭐ 28115

    Create APIs that are both easy to use correctly and hard to use incorrectly. Focus on: 1. **Use pattern ma...

    ⛶
  • Use meaningful identifiers

    tree-sitter/tree-sitter
    Naming Conventions C
    5
    ⭐ 21799

    Choose identifiers that accurately represent their purpose, semantics, and relationship to the codebase. Na...

    ⛶
  • Use descriptive identifiers

    tree-sitter/tree-sitter
    Naming Conventions Rust
    5
    ⭐ 21799

    Choose identifiers that clearly communicate their purpose, content, or role rather than using generic or ab...

    ⛶
  • Ensure documentation clarity

    tree-sitter/tree-sitter
    Documentation Rust
    5
    ⭐ 21799

    Documentation should be clear, accurate, and provide meaningful information to users. Avoid misleading desc...

    ⛶
  • consistent formatting preferences

    tree-sitter/tree-sitter
    Code Style Other
    5
    ⭐ 21799

    Maintain consistent formatting and use concise, standard syntax throughout the codebase. This includes seve...

    ⛶
  • complete API documentation

    traefik/traefik
    API Markdown
    5
    ⭐ 55772

    Ensure all API configuration options are fully documented with accurate default values, required field indi...

    ⛶
  • Structure feature flags strategically

    tokio-rs/tokio
    Configurations Toml
    5
    ⭐ 28989

    Design feature flags to minimize dependency bloat while maximizing flexibility for users. Each optional dep...

    ⛶
  • Structure API doc blocks

    tokio-rs/tokio
    Documentation Rust
    5
    ⭐ 28989

    Each public API documentation block should follow a consistent structure: 1. Start with a single-line summ...

    ⛶
  • Socket configuration guidance

    tokio-rs/tokio
    Networking Rust
    5
    ⭐ 28981

    When implementing networking APIs, always clearly document socket modes, configuration options, and platfor...

    ⛶
  • Optimize hot paths

    tokio-rs/tokio
    Performance Optimization Rust
    5
    ⭐ 28989

    Identify and optimize frequently executed code paths to improve performance. Hot paths have a significant i...

    ⛶
  • Graceful error handling

    tokio-rs/tokio
    Error Handling Rust
    5
    ⭐ 28981

    Prioritize graceful error handling over panicking by providing fallbacks and propagating rich context. When...

    ⛶
  • Fast deterministic tests

    tokio-rs/tokio
    Testing Rust
    5
    ⭐ 28989

    Avoid using real sleeps or delays in tests as they significantly slow down the test suite and can introduce...

    ⛶
  • Design flexible APIs

    tokio-rs/tokio
    API Rust
    5
    ⭐ 28981

    When designing APIs, prioritize flexibility, ergonomics, and intuitiveness to create better user experience...

    ⛶
  • Minimize memory allocations

    huggingface/tokenizers
    Performance Optimization Rust
    5
    ⭐ 9868

    Avoid unnecessary memory allocations to improve performance. Each allocation has both CPU and memory overhe...

    ⛶
  • Handle nullable types idiomatically

    huggingface/tokenizers
    Null Handling Rust
    5
    ⭐ 9868

    Use Rust's idiomatic patterns when working with Option and Result types to prevent panics and improve code ...

    ⛶
  • Use precise semantic names

    hashicorp/terraform
    Naming Conventions Other
    5
    ⭐ 45532

    Choose names that accurately reflect the purpose and semantics of the entity being named. Avoid overloaded ...

    ⛶
  • Prefer modern authentication

    hashicorp/terraform
    Security Other
    5
    ⭐ 45532

    Always use modern identity-based authentication methods instead of static credentials when accessing extern...

    ⛶
  • Include descriptive documentation

    hashicorp/terraform
    Documentation Other
    5
    ⭐ 45532

    Provide complete, clear descriptions for all configuration elements in documentation. Every output, variabl...

    ⛶
  • Document function behavior completely

    hashicorp/terraform
    Documentation Go
    5
    ⭐ 45532

    Function and method documentation should accurately describe behavior, parameters, and any non-obvious aspe...

    ⛶
  • Consolidate related code

    hashicorp/terraform
    Code Style Go
    5
    ⭐ 45532

    Organize code to keep related functionality together. When functions serve similar purposes or operate on t...

    ⛶
  • prefer const declarations

    microsoft/terminal
    Code Style C++
    5
    ⭐ 99242

    Use `const` for variables that are not modified after initialization, and avoid creating unnecessary tempor...

    ⛶
  • Validate quantization parameters carefully

    tensorflow/tensorflow
    AI Other
    5
    ⭐ 190625

    When implementing quantized operations in ML models, thoroughly validate quantization parameters to ensure ...

    ⛶
  • Validate before dereference

    tensorflow/tensorflow
    Null Handling Other
    5
    ⭐ 190625

    Always check that pointers, optional values, and results of type casts are valid before dereferencing or us...

    ⛶
  • Optimize loop operations

    tensorflow/tensorflow
    Performance Optimization Other
    5
    ⭐ 190625

    Minimize expensive operations within inner loops to improve performance. Key practices include: 1. Extract...

    ⛶
  • Informative error messages

    tensorflow/tensorflow
    Error Handling Python
    5
    ⭐ 190625

    Error messages should be informative, actionable, and concise to help users quickly understand and fix issu...

    ⛶
  • Handle dynamic shapes

    tensorflow/tensorflow
    Algorithms Python
    5
    ⭐ 190625

    When implementing tensor-based algorithms, avoid assumptions about fixed tensor shapes by not relying on di...

    ⛶
  • Optimize metrics label cardinality

    temporalio/temporal
    Observability Go
    5
    ⭐ 14953

    Carefully manage metric label cardinality to prevent excessive memory usage and maintain system performance...

    ⛶
  • Domain-specific error boundaries

    temporalio/temporal
    Error Handling Go
    5
    ⭐ 14953

    Define and use domain-specific error types within bounded contexts rather than relying on generic service e...

    ⛶
  • Design stable APIs

    temporalio/temporal
    API Go
    5
    ⭐ 14953

    When designing APIs, prioritize long-term stability and compatibility to avoid breaking changes. Use reques...

    ⛶
  • Use appropriate testify assertions

    gravitational/teleport
    Testing Go
    5
    ⭐ 19109

    Choose the most specific and appropriate testify assertion methods for your test scenarios to improve test ...

    ⛶
  • minimize unnecessary allocations

    gravitational/teleport
    Performance Optimization Go
    5
    ⭐ 19109

    Avoid unnecessary memory allocations in performance-critical code paths, especially in frequently executed ...

    ⛶
  • Configuration requirements clarity

    gravitational/teleport
    Configurations Other
    5
    ⭐ 19109

    Configuration requirements and dependencies should be made explicit and prominent in documentation, not bur...

    ⛶
  • API consistency patterns

    gravitational/teleport
    API Markdown
    5
    ⭐ 19109

    Maintain consistent API patterns and structures across different resource types and access methods within t...

    ⛶
  • Teach by example

    tensorflow/swift
    Documentation Other
    5
    ⭐ 6136

    Present concepts through clear, focused examples that demonstrate features positively rather than through c...

    ⛶
  • Explicit configuration validation

    SWE-agent/SWE-agent
    Configurations Python
    5
    ⭐ 16839

    Avoid using configuration values as implicit feature flags or logic triggers. Instead, validate configurati...

    ⛶
  • prefer testing libraries

    sveltejs/svelte
    Testing Markdown
    5
    ⭐ 83580

    When testing components, use established testing libraries like @testing-library/svelte instead of low-leve...

    ⛶
  • defensive error handling

    sveltejs/svelte
    Error Handling JavaScript
    5
    ⭐ 83580

    Add defensive checks and proper error handling to prevent crashes and handle edge cases gracefully. This in...

    ⛶
  • avoid expensive operations

    sveltejs/svelte
    Algorithms JavaScript
    5
    ⭐ 83580

    Identify and eliminate computationally expensive operations through early termination, better data structur...

    ⛶
  • Structure components with clarity

    supabase/supabase
    Code Style TSX
    5
    ⭐ 86070

    Maintain clean and logical component organization by following these guidelines: 1. Keep related files tog...

    ⛶
  • Clear, descriptive identifiers

    supabase/supabase
    Naming Conventions TSX
    5
    ⭐ 86070

    Choose variable, component, and parameter names that clearly describe their purpose and avoid ambiguity. Na...

    ⛶
  • Use structured logging consistently

    browserbase/stagehand
    Logging TypeScript
    5
    ⭐ 16443

    Always use the established logging framework instead of console.log or ad-hoc logging approaches. This ensu...

    ⛶
  • Use descriptive names

    browserbase/stagehand
    Naming Conventions TypeScript
    5
    ⭐ 16443

    Choose descriptive, domain-specific names that clearly communicate intent and prevent confusion. Avoid gene...

    ⛶
  • Provide contextual error messages

    browserbase/stagehand
    Error Handling TypeScript
    5
    ⭐ 16443

    Error messages should include specific context about what went wrong and provide actionable guidance for re...

    ⛶
  • Leverage TypeScript null safety

    browserbase/stagehand
    Null Handling TypeScript
    5
    ⭐ 16443

    Use TypeScript's type system proactively to prevent null and undefined issues at compile time rather than h...

    ⛶
  • Respect annotation processing order

    spring-projects/spring-framework
    Spring Java
    5
    ⭐ 58382

    When designing Spring components, pay careful attention to the order in which annotations are processed, es...

    ⛶
  • Design for API extension

    spring-projects/spring-framework
    API Java
    5
    ⭐ 58382

    When designing APIs, prioritize extensibility by providing clear extension points and avoiding direct expos...

    ⛶
  • Cleanup error handling

    spring-projects/spring-framework
    Error Handling Java
    5
    ⭐ 58382

    When handling resources that require cleanup (like streams, connections, or transactions), ensure that erro...

    ⛶
  • API boundary null handling

    spring-projects/spring-framework
    Null Handling Java
    5
    ⭐ 58382

    Establish consistent null handling patterns at API boundaries to prevent null pointer exceptions and improv...

    ⛶
  • Property description conventions

    spring-projects/spring-boot
    Documentation Java
    5
    ⭐ 77637

    When documenting configuration properties in Spring Boot applications, follow these conventions for clarity...

    ⛶
  • prefer simple APIs

    apache/spark
    API Other
    5
    ⭐ 41554

    Design APIs with simplicity in mind by avoiding unnecessary method overloads, reducing configuration option...

    ⛶
  • Include contextual information

    apache/spark
    Logging Other
    5
    ⭐ 41554

    Log messages should include comprehensive contextual information to support debugging and system monitoring...

    ⛶
  • avoid unnecessary computations

    apache/spark
    Performance Optimization Other
    5
    ⭐ 41554

    Prevent performance degradation by avoiding unnecessary expensive operations such as premature execution, r...

    ⛶
  • Use appropriate error types

    SigNoz/signoz
    Error Handling Go
    5
    ⭐ 23369

    Always use semantically correct error types and codes that match the actual failure scenario. This ensures ...

    ⛶
  • Centralize configuration management

    SigNoz/signoz
    Configurations Go
    5
    ⭐ 23369

    Consolidate configuration parameters into centralized config structures instead of using scattered options ...

    ⛶
  • Use descriptive names

    sgl-project/sglang
    Naming Conventions Python
    5
    ⭐ 17245

    Choose variable, function, and parameter names that accurately reflect their content, type, and purpose. Av...

    ⛶
  • conditional CI execution

    servo/servo
    CI/CD Yaml
    5
    ⭐ 32962

    Use appropriate conditional statements in CI workflows to ensure steps execute under the right circumstance...

    ⛶
  • Structure configs for clarity

    serverless/serverless
    Configurations JavaScript
    5
    ⭐ 46810

    Organize configuration objects to maximize clarity and maintainability while ensuring robust validation. Fo...

    ⛶
  • API clarity and consistency

    serverless/serverless
    API Markdown
    5
    ⭐ 46810

    Ensure API configurations, documentation, and terminology are clear, consistent, and properly organized. Gr...

    ⛶
  • exact assertion testing

    oraios/serena
    Testing Python
    5
    ⭐ 14465

    Tests should verify exact expected results rather than generic existence checks. Avoid assertions like `isi...

    ⛶
  • Secure sensitive data

    getsentry/sentry
    Security Python
    5
    ⭐ 41297

    Always protect sensitive data through proper encryption, secure cookies, and careful exception handling to ...

    ⛶
  • Remove unnecessary code elements

    getsentry/sentry
    Code Style TSX
    5
    ⭐ 41297

    Keep code clean and maintainable by removing unnecessary elements. This includes: 1. Omit type annotations...

    ⛶
  • Prevent N+1 database queries

    getsentry/sentry
    Database Python
    5
    ⭐ 41297

    Avoid N+1 database queries by using appropriate Django ORM features like select_related(), prefetch_related...

    ⛶
  • Propagate errors with context

    getsentry/sentry-php
    Error Handling PHP
    5
    ⭐ 1873

    Always propagate errors appropriately by rethrowing caught exceptions and maintaining error context. Catch ...

    ⛶
  • Document API changes

    getsentry/sentry-php
    API Markdown
    5
    ⭐ 1873

    When documenting API changes, particularly breaking changes, follow these practices to ensure clarity and e...

    ⛶
  • Defensive null checking

    getsentry/sentry
    Null Handling Python
    5
    ⭐ 41297

    Implement defensive null checking to prevent NoneType errors, KeyError, and IndexError exceptions. When acc...

    ⛶
  • Choose efficient algorithms

    semgrep/semgrep
    Algorithms Other
    5
    ⭐ 12598

    When implementing algorithms, prioritize computational efficiency by selecting appropriate data structures ...

    ⛶
  • Fail fast explicitly

    strands-agents/sdk-python
    Error Handling Python
    5
    ⭐ 4044

    Always throw exceptions for error conditions rather than silently failing, logging warnings, or attempting ...

    ⛶
  • explicit null checks

    strands-agents/sdk-python
    Null Handling Python
    5
    ⭐ 4044

    Use explicit existence checks rather than value-based null checks, and be intentional about failing fast ve...

    ⛶
  • comprehensive test assertions

    strands-agents/sdk-python
    Testing Python
    5
    ⭐ 4044

    Write robust test assertions that verify complete objects and behaviors rather than individual properties. ...

    ⛶
  • Complete docstring documentation

    strands-agents/sdk-python
    Documentation Python
    5
    ⭐ 4044

    Ensure all classes, methods, and properties have comprehensive docstrings that clearly explain their purpos...

    ⛶
  • AI provider normalization

    strands-agents/sdk-python
    AI Python
    5
    ⭐ 4044

    When integrating multiple AI model providers, implement proper abstraction layers to normalize differences ...

    ⛶
  • Name for semantic meaning

    rust-lang/rust
    Naming Conventions Rust
    5
    ⭐ 105254

    Choose names that clearly convey the semantic meaning and purpose of the identifier, rather than using clev...

    ⛶
  • Document lock behavior

    rust-lang/rust
    Concurrency Rust
    5
    ⭐ 105254

    When implementing or documenting synchronization primitives, always clearly specify how locks behave under ...

    ⛶
  • Benchmark before optimizing code

    rust-lang/rust
    Performance Optimization Rust
    5
    ⭐ 105254

    Always validate performance optimizations with benchmarks before implementation. Ensure measurements accoun...

    ⛶
  • Prevent null references

    dotnet/runtime
    Null Handling C#
    5
    ⭐ 16578

    Use defensive coding practices to prevent null reference exceptions by properly handling potentially null v...

    ⛶
  • Maintainable test structure

    dotnet/runtime
    Testing C#
    5
    ⭐ 16578

    Write tests that are maintainable, self-documenting, and that promote good testing practices: 1. **Use pro...

    ⛶
  • Document code meaningfully

    dotnet/runtime
    Documentation C#
    5
    ⭐ 16578

    Provide meaningful documentation that enhances code maintainability and understanding. Follow these practic...

    ⛶
  • Cache expensive computations

    dotnet/runtime
    Performance Optimization C#
    5
    ⭐ 16578

    Avoid recomputing expensive operations by caching results when they will be used multiple times. This appli...

    ⛶
  • Avoid busy waiting

    dotnet/runtime
    Concurrency C#
    5
    ⭐ 16578

    When implementing concurrent code that waits for conditions to be met, avoid busy-wait loops that continuou...

    ⛶
  • Abstract traversal patterns

    dotnet/runtime
    Algorithms C++
    5
    ⭐ 16578

    When implementing algorithms that operate on complex data structures (trees, graphs, dominator structures),...

    ⛶
  • Use descriptive identifiers

    astral-sh/ruff
    Naming Conventions Rust
    5
    ⭐ 40619

    Avoid abbreviations in variable, parameter, and method names to improve code readability and maintainabilit...

    ⛶
  • Profile allocations before optimization

    astral-sh/ruff
    Performance Optimization Rust
    5
    ⭐ 40619

    Before implementing data structures or algorithms, analyze allocation patterns and optimize for common case...

    ⛶
  • Document component behavior comprehensively

    astral-sh/ruff
    Documentation Rust
    5
    ⭐ 40619

    Documentation should clearly explain the purpose, behavior, and relationships between code components using...

    ⛶
  • Consider algorithmic complexity tradeoffs

    astral-sh/ruff
    Algorithms Rust
    5
    ⭐ 40619

    When implementing algorithms or data structures, carefully evaluate the tradeoffs between computational com...

    ⛶
  • validate configuration schemas

    TanStack/router
    Configurations TypeScript
    5
    ⭐ 11590

    Always validate configuration objects using proper schema validation (like Zod) before type casting or usin...

    ⛶
  • validate before accessing

    TanStack/router
    Null Handling TypeScript
    5
    ⭐ 11590

    Always validate that values exist and have expected properties before accessing them, especially when remov...

    ⛶
  • Use parameterized testing

    TanStack/router
    Testing TypeScript
    5
    ⭐ 11590

    When testing multiple scenarios with similar logic, use your testing framework's built-in parameterized tes...

    ⛶
  • Maintain comprehensive documentation

    TanStack/router
    Documentation TypeScript
    5
    ⭐ 11590

    When making code changes, ensure all relevant documentation is updated comprehensively across different for...

    ⛶
  • explicit error type handling

    TanStack/router
    Error Handling TypeScript
    5
    ⭐ 11590

    Handle errors with explicit type checking and intentional decisions rather than generic catch-all approache...

    ⛶
  • Configuration option consistency

    TanStack/router
    Configurations Markdown
    5
    ⭐ 11590

    Ensure configuration options follow consistent naming conventions and are documented accurately. Use "defau...

    ⛶
  • Write resilient test assertions

    RooCodeInc/Roo-Code
    Testing TypeScript
    5
    ⭐ 17288

    Write test assertions that are resilient to implementation changes by focusing on behavior rather than impl...

    ⛶
  • Use structured logging

    RooCodeInc/Roo-Code
    Logging TypeScript
    5
    ⭐ 17288

    Replace direct `console.log`, `console.warn`, and `console.error` calls with a centralized logging abstract...

    ⛶
  • Prevent duplicate keys

    RooCodeInc/Roo-Code
    Configurations Json
    5
    ⭐ 17288

    Always ensure configuration files, especially JSON files, have unique keys. Duplicate keys can cause unpred...

    ⛶
  • Extract shared code patterns

    RooCodeInc/Roo-Code
    Code Style TypeScript
    5
    ⭐ 17288

    Identify and extract duplicate code patterns into shared utility functions to improve maintainability and r...

    ⛶
  • Performance-first Structure

    redis/redis
    Performance Optimization Other
    5
    ⭐ 74261

    When optimizing, treat performance as a design constraint: prevent contention/cache inefficiency, ensure se...

    ⛶
  • Consistent TTL Pre-check

    redis/redis
    Caching C
    5
    ⭐ 74261

    When handling TTL/expiration, decide “already expired?” (and validate expiry inputs) before performing DB m...

    ⛶
  • Consistent Clear Naming

    redis/redis
    Naming Conventions Other
    5
    ⭐ 74261

    Use naming that is (1) safe per language rules, (2) semantically explicit, and (3) consistent with existing...

    ⛶
  • Clear API Contracts

    redis/redis
    API Other
    5
    ⭐ 74261

    Public APIs must make their guarantees and caller responsibilities explicit—especially around encapsulation...

    ⛶
  • maintain naming consistency

    remix-run/react-router
    Naming Conventions Markdown
    5
    ⭐ 55270

    Ensure consistent naming conventions across the entire codebase, including terminology, file names, directo...

    ⛶
  • dependency version ranges

    remix-run/react-router
    Configurations Json
    5
    ⭐ 55270

    When configuring dependencies in package.json, use version ranges that maintain backwards compatibility and...

    ⛶
  • Configure rendering modes clearly

    remix-run/react-router
    Next TypeScript
    5
    ⭐ 55270

    Ensure clear distinction and proper handling between different rendering modes (SSR, SSG, SPA) with appropr...

    ⛶
  • API naming consistency

    remix-run/react-router
    API Markdown
    5
    ⭐ 55270

    Ensure related APIs use consistent naming patterns, parameter structures, and calling conventions across th...

    ⛶
  • validate before accessing

    facebook/react-native
    Null Handling Other
    5
    ⭐ 123178

    Always validate parameters for both null values and correct types before accessing their properties or meth...

    ⛶
  • Prefer micro-optimizations

    facebook/react-native
    Performance Optimization Other
    5
    ⭐ 123178

    Apply small performance improvements that accumulate to significant gains. Focus on efficient memory usage,...

    ⛶
  • Early returns prevent waste

    facebook/react-native
    Performance Optimization JavaScript
    5
    ⭐ 123178

    Add early return statements and duplicate checks to avoid unnecessary computations, memory allocations, and...

    ⛶
  • Document configuration logic

    facebook/react-native
    Configurations Other
    5
    ⭐ 123178

    Always add clear, explanatory comments for conditional configuration logic, architectural decisions, and pl...

    ⛶
  • avoid Hungarian notation

    facebook/react-native
    Naming Conventions Kotlin
    5
    ⭐ 123178

    Do not use Hungarian notation prefixes (like `m`, `s`) in variable and field names. Use descriptive, semant...

    ⛶
  • Write complete API examples

    rails/rails
    Documentation Ruby
    5
    ⭐ 57027

    Always provide complete, context-rich code examples in API documentation. Examples should show the full usa...

    ⛶
  • Place configurations appropriately

    rails/rails
    Configurations Markdown
    5
    ⭐ 57027

    Choose the right location and scope for your Rails configuration options to improve maintainability and cla...

    ⛶
  • Initialize nil-prone variables

    rails/rails
    Null Handling Ruby
    5
    ⭐ 57027

    Always initialize variables that might be nil to appropriate default values to prevent unexpected behavior....

    ⛶
  • Typed API Contracts

    infiniflow/ragflow
    API Python
    5
    ⭐ 80174

    For each API endpoint, treat the request as a strict contract: define a dedicated typed request model for t...

    ⛶
  • Safe configuration changes

    infiniflow/ragflow
    Configurations Other
    5
    ⭐ 80174

    When updating configuration/env logic, treat it as compatibility-sensitive: preserve existing default behav...

    ⛶
  • Portable Config Management

    infiniflow/ragflow
    Configurations Yaml
    5
    ⭐ 80174

    When changing configuration, treat runtime configuration as the source of truth and avoid embedding/duplica...

    ⛶
  • Extract Shared Validation

    infiniflow/ragflow
    Code Style Python
    5
    ⭐ 80174

    Prefer small shared helpers for repeated request parsing/validation, and use modern, consistent type annota...

    ⛶
  • Document Stable API Contracts

    infiniflow/ragflow
    API Markdown
    5
    ⭐ 80174

    All API reference docs (and examples) must clearly define the *public* contract vs *temporary/hidden* behav...

    ⛶
  • Deterministic Mapping Pipeline

    infiniflow/ragflow
    Algorithms Python
    5
    ⭐ 80174

    When implementing parsing/storage/retrieval logic (or any pipeline with downstream queries), design the alg...

    ⛶
  • Config Contracts And Defaults

    infiniflow/ragflow
    Configurations Python
    5
    ⭐ 80174

    Treat environment variables and configuration flags as a documented contract: the code must (1) read settin...

    ⛶
  • Prefer Optional over nulls

    quarkusio/quarkus
    Null Handling Java
    5
    ⭐ 14667

    Use Java's Optional API instead of null checks to improve code readability, safety, and maintainability. Wh...

    ⛶
  • Optimize algorithmic operations

    quarkusio/quarkus
    Algorithms Java
    5
    ⭐ 14667

    Before implementing or modifying algorithms, carefully evaluate data structure properties and operation cos...

    ⛶
  • Name for meaning first

    quarkusio/quarkus
    Naming Conventions Java
    5
    ⭐ 14667

    Choose names that prioritize domain meaning and clarity over implementation details. This applies to method...

    ⛶
  • Document public APIs

    quarkusio/quarkus
    Documentation Java
    5
    ⭐ 14667

    All public APIs, interfaces, and methods should include comprehensive JavaDoc that clearly explains their p...

    ⛶
  • Clear database configuration examples

    quarkusio/quarkus
    Database Other
    5
    ⭐ 14667

    Database configuration examples in documentation should be correct, minimal, and include proper context. Pr...

    ⛶
  • Use higher-level iterations

    pytorch/pytorch
    Algorithms Python
    5
    ⭐ 91345

    When working with multiple sequences that need to be combined, prefer higher-level iteration abstractions o...

    ⛶
  • Prevent null pollution

    pytorch/pytorch
    Null Handling Python
    5
    ⭐ 91345

    Design your code to minimize the unexpected introduction of None values into data structures and APIs. Use ...

    ⛶
  • Handle errors specifically

    pytorch/pytorch
    Error Handling Python
    5
    ⭐ 91345

    Always be explicit and specific when handling errors rather than using catch-all approaches or implicit con...

    ⛶
  • Robust error messaging

    pydantic/pydantic
    Error Handling Python
    5
    ⭐ 24377

    Create clear, specific, and actionable error messages that help users understand and resolve issues, while ...

    ⛶
  • Eliminate redundant computation

    pydantic/pydantic
    Algorithms Python
    5
    ⭐ 24377

    Identify and eliminate redundant or duplicate computation paths in your code, especially for expensive oper...

    ⛶
  • Cache expensive computations

    pydantic/pydantic
    Performance Optimization Python
    5
    ⭐ 24377

    Implement strategic caching and memoization for expensive or frequently repeated computations to avoid redu...

    ⛶
  • Secure authentication flows

    prowler-cloud/prowler
    Security Markdown
    5
    ⭐ 11834

    Implement authentication flows that protect sensitive information and follow secure credential management p...

    ⛶
  • Safe attribute access patterns

    prowler-cloud/prowler
    Null Handling Python
    5
    ⭐ 11834

    Implement consistent patterns for safely accessing potentially null or undefined attributes and dictionary ...

    ⛶
  • Prioritize code readability

    prowler-cloud/prowler
    Code Style Python
    5
    ⭐ 11834

    Write code that optimizes for human readability and understanding. Complex expressions, while technically c...

    ⛶
  • Consistent naming patterns

    prowler-cloud/prowler
    Naming Conventions TypeScript
    5
    ⭐ 11834

    Follow systematic naming conventions for types, interfaces, and functions to enhance code readability and n...

    ⛶
  • simplify test structure

    prometheus/prometheus
    Testing Go
    5
    ⭐ 59616

    Write tests that are direct, focused, and free of unnecessary complexity. Remove redundant test fields, use...

    ⛶
  • explicit test assertions

    prometheus/prometheus
    Testing Other
    5
    ⭐ 59616

    Tests should explicitly assert both positive and negative expectations to make test intentions clear and pr...

    ⛶
  • avoid panics gracefully

    prometheus/prometheus
    Error Handling Go
    5
    ⭐ 59616

    Never use panic() for error handling in production code paths, especially in core engine components. Instea...

    ⛶
  • Avoid unnecessary allocations

    prisma/prisma
    Performance Optimization TypeScript
    5
    ⭐ 42967

    Minimize memory allocations by avoiding intermediate objects, sharing underlying buffers, and eliminating u...

    ⛶
  • validate configuration values

    prettier/prettier
    Configurations JavaScript
    5
    ⭐ 50772

    Always validate configuration values and provide clear, actionable error messages when validation fails. Ha...

    ⛶
  • Modern configuration formats

    prettier/prettier
    Configurations Markdown
    5
    ⭐ 50772

    Prefer ES module configuration files with TypeScript annotations over JSON formats for better developer exp...

    ⛶
  • Add explanatory comments

    prettier/prettier
    Documentation JavaScript
    5
    ⭐ 50772

    Add explanatory comments for complex logic, special cases, or non-obvious code behavior. Comments should ex...

    ⛶
  • Maintain naming consistency

    PostHog/posthog
    Naming Conventions TSX
    5
    ⭐ 28460

    Ensure consistent naming conventions, terminology, and identifiers across the entire codebase. Names should...

    ⛶
  • eliminate code duplication

    PostHog/posthog
    Code Style TSX
    5
    ⭐ 28460

    Actively identify and eliminate code duplication in all its forms to improve maintainability and reduce bug...

    ⛶
  • Cache expensive operations

    PostHog/posthog
    Performance Optimization Python
    5
    ⭐ 28460

    Identify and eliminate redundant expensive operations by implementing caching, memoization, or conditional ...

    ⛶
  • break down large functions

    PostHog/posthog
    Code Style Python
    5
    ⭐ 28460

    Large functions that handle multiple responsibilities should be decomposed into smaller, focused functions ...

    ⛶
  • Hide implementation details

    pola-rs/polars
    API Python
    5
    ⭐ 34296

    Design public APIs to hide implementation details and focus on the user's mental model of the system. Avoid...

    ⛶
  • Explicit configuration precedence

    pola-rs/polars
    Configurations Python
    5
    ⭐ 34296

    Implement a clear configuration resolution chain that follows a consistent precedence pattern: explicit par...

    ⛶
  • Evaluate algorithmic complexity tradeoffs

    pola-rs/polars
    Algorithms Rust
    5
    ⭐ 34296

    When implementing algorithms, carefully evaluate tradeoffs between performance optimizations and code maint...

    ⛶
  • Documentation clarity standards

    python-poetry/poetry
    Documentation Markdown
    5
    ⭐ 33496

    Ensure documentation is grammatically correct, clearly structured, and uses precise terminology. Avoid verb...

    ⛶
  • Configure HTTP requests properly

    python-poetry/poetry
    Networking Python
    5
    ⭐ 33496

    When making HTTP requests, use standard library enums for status codes, set appropriate timeouts, and handl...

    ⛶
  • Synchronous event handlers

    microsoft/playwright
    Concurrency TypeScript
    5
    ⭐ 76113

    Keep event handlers synchronous to prevent race conditions and timing issues. Async operations within event...

    ⛶
  • comprehensive test coverage

    microsoft/playwright
    Testing TypeScript
    5
    ⭐ 76113

    Tests should be comprehensive and cover edge cases, complete scenarios, and use specific assertions rather ...

    ⛶
  • API parameter clarity

    microsoft/playwright
    API TypeScript
    5
    ⭐ 76113

    Design API parameters to be self-documenting and minimize cognitive overhead. Avoid boolean parameters in f...

    ⛶
  • preserve exception context

    emcie-co/parlant
    Error Handling Python
    5
    ⭐ 12205

    When handling exceptions, preserve the original exception context and provide clear, actionable error infor...

    ⛶
  • Names reflect exact purpose

    emcie-co/parlant
    Naming Conventions Python
    5
    ⭐ 12205

    Choose names that precisely reflect the component's purpose and behavior, avoiding ambiguous terms or short...

    ⛶
  • LLM provider abstraction

    emcie-co/parlant
    AI Python
    5
    ⭐ 12205

    When integrating with different LLM providers, create proper base class abstractions that filter and valida...

    ⛶
  • Document with examples

    opentofu/opentofu
    API Markdown
    5
    ⭐ 25901

    Always include clear, contextual examples when documenting APIs, interfaces, or command-line functionality....

    ⛶
  • Defensive null handling

    opentofu/opentofu
    Null Handling Go
    5
    ⭐ 25901

    Always initialize data structures before use, particularly before accessing them in loops or conditional bl...

    ⛶
  • Clear concise documentation

    opentofu/opentofu
    Documentation Other
    5
    ⭐ 25901

    Write documentation that is direct, consistent, and appropriately detailed. Follow these principles: 1. **...

    ⛶
  • Optimize configuration structure

    open-telemetry/opentelemetry-python
    Configurations Other
    5
    ⭐ 2061

    Structure configuration files like tox.ini to maximize maintainability and efficiency. Use factor prefixes ...

    ⛶
  • Handle exceptions appropriately

    open-telemetry/opentelemetry-python
    Error Handling Python
    5
    ⭐ 2061

    When implementing error handling logic, be deliberate about which exception types you catch and where you h...

    ⛶
  • Follow Python naming conventions

    open-telemetry/opentelemetry-python
    Naming Conventions Python
    5
    ⭐ 2061

    Use consistent Python naming conventions to improve code readability and maintainability: 1. Use snake_cas...

    ⛶
  • Configuration source precedence

    open-telemetry/opentelemetry-python
    Configurations Python
    5
    ⭐ 2061

    Define and document a clear precedence order when configurations come from multiple sources (code parameter...

    ⛶
  • Use environment variables

    commaai/openpilot
    Configurations Python
    5
    ⭐ 58214

    Make configuration values configurable through environment variables with sensible defaults instead of hard...

    ⛶
  • use context managers concurrency

    commaai/openpilot
    Concurrency Python
    5
    ⭐ 58214

    When working with concurrent operations involving shared resources or processes, use context managers and e...

    ⛶
  • eliminate unnecessary code

    commaai/openpilot
    Code Style Other
    5
    ⭐ 58214

    Remove redundant code constructs and prefer concise, direct patterns that improve readability and maintaina...

    ⛶
  • Context-aware algorithm selection

    opengrep/opengrep
    Algorithms Other
    5
    ⭐ 1546

    Choose algorithms and data structures based on operational requirements and usage context rather than defau...

    ⛶
  • Optimize memory allocation patterns

    opencv/opencv
    Performance Optimization C++
    5
    ⭐ 82865

    Prefer efficient memory allocation patterns to improve performance. Key practices: 1. Use RAII containers ...

    ⛶
  • Optimize container access

    opencv/opencv
    Performance Optimization Other
    5
    ⭐ 82865

    Choose efficient container types and optimize access patterns in performance-critical code. Avoid operation...

    ⛶
  • Maintain code consistency

    opencv/opencv
    Code Style Other
    5
    ⭐ 82865

    Keep code clean and consistent with established project conventions. This includes: 1. Follow existing for...

    ⛶
  • Guard optional dependencies

    opencv/opencv
    Configurations Other
    5
    ⭐ 82865

    Configuration management requires careful handling of optional dependencies in both build scripts and sourc...

    ⛶
  • Cache validity and bounds

    openai/openai-python
    Caching Python
    5
    ⭐ 30731

    When adding caching, ensure **(1) correctness via validity/refresh** and **(2) safety via bounds/staleness ...

    ⛶
  • Use idiomatic Go flow

    ollama/ollama
    Code Style Go
    5
    ⭐ 145704

    Follow Go's idiomatic control flow patterns to improve code readability and maintainability. Key practices ...

    ⛶
  • Use environment variables

    ollama/ollama
    Configurations Go
    5
    ⭐ 145704

    Use environment variables instead of hardcoding configuration values such as file paths, port numbers, or s...

    ⛶
  • Guard against nil

    ollama/ollama
    Null Handling Go
    5
    ⭐ 145704

    Always check for nil values and successful type assertions before accessing or dereferencing objects, espec...

    ⛶
  • Document synchronization intent

    ollama/ollama
    Concurrency Go
    5
    ⭐ 145704

    Always clearly document the purpose and scope of synchronization primitives (mutexes, read-write locks) by:...

    ⛶
  • Comprehensive test coverage

    ollama/ollama
    Testing Go
    5
    ⭐ 145704

    Test functions should provide comprehensive coverage of both expected and edge cases. Include tests for: 1...

    ⛶
  • Clear recoverable error messages

    ollama/ollama
    Error Handling Go
    5
    ⭐ 145704

    Error messages should be clear, actionable, and indicate whether recovery is possible. When designing error...

    ⛶
  • Abstract model operations cleanly

    ollama/ollama
    AI Go
    5
    ⭐ 145704

    When implementing AI model operations, create clean abstractions through interfaces that separate core math...

    ⛶
  • Design intuitive API methods

    octokit/octokit.net
    API C#
    5
    ⭐ 2793

    When designing API methods, prioritize intuitive usage patterns and backwards compatibility. Follow these g...

    ⛶
  • Verify configuration paths

    nrwl/nx
    Configurations Markdown
    5
    ⭐ 27518

    Ensure configuration property paths are accurate and complete, especially for nested configurations and con...

    ⛶
  • Use nullish coalescing operators

    nrwl/nx
    Null Handling TypeScript
    5
    ⭐ 27518

    Prefer modern JavaScript nullish coalescing (`??`) and optional chaining (`?.`) operators over verbose cond...

    ⛶
  • minimize resource usage

    nrwl/nx
    Performance Optimization TypeScript
    5
    ⭐ 27518

    Optimize performance by being selective about resource consumption - process only necessary data, avoid red...

    ⛶
  • Follow Vue API patterns

    nuxt/nuxt
    Vue TypeScript
    5
    ⭐ 57769

    Always prefer Vue's native APIs and follow official Vue patterns instead of creating custom implementations...

    ⛶
  • explicit response types

    nuxt/nuxt
    API Markdown
    5
    ⭐ 57769

    Always specify explicit response types when making API calls, especially for prerendered routes or external...

    ⛶
  • Extract repeated patterns

    novuhq/novu
    Code Style TSX
    5
    ⭐ 37700

    Extract repeated code patterns, CSS classes, and constants to improve maintainability and reduce duplicatio...

    ⛶
  • Environment variable fallbacks

    novuhq/novu
    Configurations TypeScript
    5
    ⭐ 37700

    Always implement proper fallback chains for environment variables and handle missing configuration graceful...

    ⛶
  • contextual API parameters

    novuhq/novu
    API TSX
    5
    ⭐ 37700

    Design APIs to provide contextual information and adapt behavior based on current usage context. Pass conte...

    ⛶
  • Use modern C++ features

    nodejs/node
    Code Style Other
    5
    ⭐ 112178

    Embrace modern C++20 features throughout the codebase to improve code readability, maintainability, and per...

    ⛶
  • Thread-safe resource management patterns

    nodejs/node
    Concurrency Other
    5
    ⭐ 112178

    Ensure thread-safe access to shared resources while following proper resource management patterns. When imp...

    ⛶
  • Standardize null pointer checks

    nodejs/node
    Null Handling Other
    5
    ⭐ 112178

    Always use standard null-checking patterns like CHECK_NOT_NULL for pointer validation instead of manual nul...

    ⛶
  • Propagate errors with context

    nodejs/node
    Error Handling Other
    5
    ⭐ 112178

    Always propagate errors with their original context instead of swallowing them or throwing new errors that ...

    ⛶
  • Minimize configuration dependencies

    nodejs/node
    Configurations Other
    5
    ⭐ 112178

    Keep configuration dependencies minimal and platform-aware. Avoid including unnecessary configuration files...

    ⛶
  • Follow consistent naming patterns

    nodejs/node
    Naming Conventions Markdown
    5
    ⭐ 112178

    Maintain consistent naming conventions throughout the codebase to improve readability and reduce confusion....

    ⛶
  • Document with precise accuracy

    nodejs/node
    Documentation JavaScript
    5
    ⭐ 112178

    Maintain precise and accurate documentation through both JSDoc annotations and explanatory comments. Ensure...

    ⛶
  • Behavior-focused test design

    nodejs/node
    Testing JavaScript
    5
    ⭐ 112178

    Tests should focus on verifying behavior rather than implementation details to ensure they remain robust du...

    ⛶
  • Write robust assertions

    vercel/next.js
    Testing TypeScript
    5
    ⭐ 133000

    When writing tests, ensure assertions can handle non-deterministic content while providing clear failure co...

    ⛶
  • Optimize Next.js Resource Utilization

    vercel/next.js
    Next.js JavaScript
    5
    ⭐ 133000

    As a code reviewer, I recommend the following practices to optimize resource utilization when implementing ...

    ⛶
  • Release resources consistently

    netty/netty
    Error Handling Java
    5
    ⭐ 34227

    Always ensure resources are properly released, especially in exception paths. Use try-finally blocks to gua...

    ⛶
  • Use consistent curly braces

    nestjs/nest
    Code Style TypeScript
    5
    ⭐ 71767

    Always use curly braces for conditional statements and loops, even for single-line bodies. This maintains c...

    ⛶
  • Strategic dependency configuration

    nestjs/nest
    Configurations Json
    5
    ⭐ 71766

    Configure dependencies in package.json strategically based on how they're used in your project: 1. **Direc...

    ⛶
  • Standardize null safety patterns

    nestjs/nest
    Null Handling TypeScript
    5
    ⭐ 71766

    Use modern JavaScript features and utility functions consistently for null/undefined checks. Prefer optiona...

    ⛶
  • Preserve public API stability

    nestjs/nest
    API TypeScript
    5
    ⭐ 71767

    When modifying or extending public interfaces, ensure changes maintain backward compatibility and follow pr...

    ⛶
  • Preserve API interface stability

    nestjs/nest
    API TypeScript
    5
    ⭐ 71766

    When modifying or extending public API interfaces, ensure backward compatibility and proper versioning. Fol...

    ⛶
  • Modern null safety patterns

    nestjs/nest
    Null Handling TypeScript
    5
    ⭐ 71767

    Leverage modern JavaScript features and utility functions for safer null/undefined handling. This reduces c...

    ⛶
  • Avoid testing anti-patterns

    nestjs/nest
    Testing TypeScript
    5
    ⭐ 71767

    Ensure your tests actually validate functionality by avoiding common testing anti-patterns: 1. **Don't moc...

    ⛶
  • validate early, fail fast

    neovim/neovim
    Error Handling C
    5
    ⭐ 91433

    Perform comprehensive input validation and precondition checks at the beginning of functions, before execut...

    ⛶
  • Provide helpful documentation context

    neovim/neovim
    Documentation Txt
    5
    ⭐ 91433

    Documentation should include sufficient context, practical examples, and helpful hints to make it truly use...

    ⛶
  • prefer concise expressions

    neovim/neovim
    Code Style C
    5
    ⭐ 91433

    Write concise, readable code by choosing the most direct expression for simple operations. Use ternary oper...

    ⛶
  • Use descriptive identifiers

    neondatabase/neon
    Naming Conventions Python
    5
    ⭐ 19015

    Choose clear, meaningful names for variables, parameters, and constants that convey their purpose without r...

    ⛶
  • Stage configuration changes gradually

    neondatabase/neon
    Configurations Rust
    5
    ⭐ 19015

    When introducing configuration changes that affect multiple system components, implement them in stages to ...

    ⛶
  • Hierarchical semantic naming

    neondatabase/neon
    Naming Conventions Other
    5
    ⭐ 19015

    Use hierarchical prefixes and clear descriptive names to indicate the domain, source, and purpose of code e...

    ⛶
  • Flexible documented configurations

    neondatabase/neon
    Configurations Other
    5
    ⭐ 19015

    Create configuration interfaces that are flexible, well-documented, and future-proof. When designing config...

    ⛶
  • Document concurrency design decisions

    neondatabase/neon
    Concurrency Rust
    5
    ⭐ 19015

    Always document key concurrency design decisions in code, including: 1. Locking protocols and ordering betw...

    ⛶
  • Design metrics for insights

    neondatabase/neon
    Observability Rust
    5
    ⭐ 19015

    Design metrics that provide actionable insights while maintaining system efficiency. Follow these key princ...

    ⛶
  • Comprehensive code documentation

    neondatabase/neon
    Documentation Rust
    5
    ⭐ 19015

    Properly document code with clear, accurate, and useful comments using the correct syntax based on context:...

    ⛶
  • Stable Public API Surface

    Tencent/ncnn
    API Other
    5
    ⭐ 23205

    When modifying or adding exported interfaces in public headers, ensure the external API surface is stable, ...

    ⛶
  • Semantic Collision-Safe Naming

    Tencent/ncnn
    Naming Conventions Other
    5
    ⭐ 23205

    All identifiers should be (1) semantically clear, (2) consistent with project naming patterns, and (3) coll...

    ⛶
  • Platform-correct CI Pipelines

    Tencent/ncnn
    CI/CD Yaml
    5
    ⭐ 23205

    Ensure CI/CD workflows build, test, and package artifacts in a way that is correct for each target platform...

    ⛶
  • Null-safe checks

    Tencent/ncnn
    Null Handling Other
    5
    ⭐ 23205

    Make null/empty handling explicit and safe—so empty values don’t break logic or even generate invalid synta...

    ⛶
  • Inference Compatibility Rules

    Tencent/ncnn
    AI C++
    5
    ⭐ 23205

    Ensure layer math, parameter semantics, and model conversion/backends remain consistent so inference result...

    ⛶
  • Avoid Performance Pessimization

    Tencent/ncnn
    Performance Optimization Other
    5
    ⭐ 23205

    When optimizing for CPU/GPU speed, don’t accidentally remove fast paths via build/toolchain settings, and d...

    ⛶
  • Idiomatic Readable Formatting

    karpathy/nanochat
    Code Style Python
    5
    ⭐ 53189

    When touching code that formats output or builds paths, keep it idiomatic and repo-consistent: - Avoid inli...

    ⛶
  • Validate API data contracts

    n8n-io/n8n
    API TypeScript
    5
    ⭐ 122978

    Always validate API request and response data using schema validation to ensure type safety and prevent run...

    ⛶
  • Optimize loop operations

    n8n-io/n8n
    Performance Optimization TypeScript
    5
    ⭐ 122978

    Avoid repeated computations and object creation in loops or high-frequency operations. Move invariant calcu...

    ⛶
  • Manage database connections

    n8n-io/n8n
    Database TypeScript
    5
    ⭐ 122978

    Always properly manage database connections to prevent resource leaks and improve application stability. Im...

    ⛶
  • Use intent-revealing names

    apache/mxnet
    Naming Conventions Other
    5
    ⭐ 20801

    Choose names that clearly reveal the purpose, behavior, or type of the code elements they represent. A good...

    ⛶
  • Hybridization compatible operations

    apache/mxnet
    AI Python
    5
    ⭐ 20801

    When implementing neural network models that will be hybridized for performance optimization, use operation...

    ⛶
  • Explain optimization mechanisms

    apache/mxnet
    Performance Optimization Markdown
    5
    ⭐ 20801

    When implementing or documenting performance optimizations, clearly explain the mechanism and expected perf...

    ⛶
  • Document all parameters

    apache/mxnet
    Documentation Other
    5
    ⭐ 20801

    Always provide complete and accurate documentation for all function parameters, especially when adding new ...

    ⛶
  • preserve error context

    rocicorp/mono
    Error Handling TypeScript
    5
    ⭐ 2091

    When propagating errors through promise rejections, catch blocks, or error transformations, always preserve...

    ⛶
  • minimize hot path allocations

    rocicorp/mono
    Performance Optimization TypeScript
    5
    ⭐ 2091

    Reduce memory allocations and garbage collection pressure in frequently executed code paths. Object creatio...

    ⛶
  • avoid unnecessary computations

    rocicorp/mono
    Algorithms TypeScript
    5
    ⭐ 2091

    Optimize algorithms by eliminating redundant work and intermediate data structures. Look for opportunities ...

    ⛶
  • API consistency patterns

    rocicorp/mono
    API TypeScript
    5
    ⭐ 2091

    Maintain consistent patterns across similar APIs to improve developer experience and reduce cognitive overh...

    ⛶
  • Add missing test coverage

    rocicorp/mono
    Testing TypeScript
    5
    ⭐ 2091

    Identify and address gaps in test coverage by requesting specific tests for untested functionality. When re...

    ⛶
  • Precise CI Workflows

    mermaid-js/mermaid
    CI/CD Yaml
    5
    ⭐ 87952

    CI workflows should be precise, minimal, and predictable: - Trigger only when needed: narrow `on: pull_req...

    ⛶
  • Options-Based API Design

    mermaid-js/mermaid
    API TypeScript
    5
    ⭐ 87952

    When designing/typing internal and public APIs, keep signatures tight and future-proof: - Don’t pass param...

    ⛶
  • Null-safe Input Contracts

    mermaid-js/mermaid
    Null Handling JavaScript
    5
    ⭐ 87952

    When handling possibly-null/undefined/empty inputs, be explicit about nullability and keep code aligned wit...

    ⛶
  • Identifier Naming Consistency

    mermaid-js/mermaid
    Naming Conventions JavaScript
    5
    ⭐ 87952

    Use naming that is explicit, consistent, and self-describing. Rules: - Avoid magic strings for statement/t...

    ⛶
  • Explicit Null Handling

    mermaid-js/mermaid
    Null Handling TypeScript
    5
    ⭐ 87952

    Null/undefined safety should prevent crashes *and* preserve correct semantics. Don’t hide missing required ...

    ⛶
  • Deterministic Grammar Changes

    mermaid-js/mermaid
    Algorithms Other
    5
    ⭐ 87952

    When updating diagram parsers (Jison/Langium/Chevrotain), treat lexer/tokenization precedence as a compatib...

    ⛶
  • Define Error Recovery Policy

    mermaid-js/mermaid
    Error Handling TypeScript
    5
    ⭐ 87952

    When handling failures, classify them as **recoverable** vs **unrecoverable**, then apply a consistent rule...

    ⛶
  • Config must be consistent

    mermaid-js/mermaid
    Configurations TypeScript
    5
    ⭐ 87952

    Ensure every rendering/utility path uses the correct configuration *namespace* and that config values are p...

    ⛶
  • Config-driven theming

    mermaid-js/mermaid
    Configurations JavaScript
    5
    ⭐ 87952

    When rendering/layout is affected by configuration or theming, avoid magic numbers and ad-hoc config handli...

    ⛶
  • Configure CSS layers

    mui/material-ui
    Configurations Markdown
    5
    ⭐ 96063

    When integrating Material UI with other styling solutions like Tailwind CSS v4, proper configuration of CSS...

    ⛶
  • Use semantic naming

    mastodon/mastodon
    Naming Conventions Other
    5
    ⭐ 48691

    Choose names that clearly communicate purpose and align with established domain terminology. Prioritize sem...

    ⛶
  • Use contextually descriptive names

    mastodon/mastodon
    Naming Conventions TSX
    5
    ⭐ 48691

    Names should clearly indicate their purpose and context to avoid confusion, especially when similar concept...

    ⛶
  • Optimize database queries

    mastodon/mastodon
    Database Ruby
    5
    ⭐ 48691

    Write efficient database queries by leveraging proper indexes, using performance-optimized ActiveRecord met...

    ⛶
  • early nil validation

    mastodon/mastodon
    Null Handling Ruby
    5
    ⭐ 48691

    Check for nil values early in methods and handle them gracefully before they can cause runtime errors or tr...

    ⛶
  • batch similar operations

    mastodon/mastodon
    Performance Optimization Ruby
    5
    ⭐ 48691

    When performing multiple similar operations (database queries, Redis calls, job enqueues, or data lookups),...

    ⛶
  • API parameter design

    mastodon/mastodon
    API Ruby
    5
    ⭐ 48691

    Design API parameters with clear intent, proper validation, and thoughtful default behaviors. Parameter nam...

    ⛶
  • Structure documentation effectively

    maplibre/maplibre-native
    Documentation Markdown
    5
    ⭐ 1411

    Documentation should prioritize clear organization with a logical flow to help developers find information ...

    ⛶
  • Self-documenting code naming

    maplibre/maplibre-native
    Naming Conventions Other
    5
    ⭐ 1411

    Method, parameter, and variable names should clearly describe their purpose and behavior, making code self-...

    ⛶
  • Prefer safe null handling

    maplibre/maplibre-native
    Null Handling C++
    5
    ⭐ 1411

    Use explicit, safe practices when dealing with potentially null resources to prevent memory leaks and undef...

    ⛶
  • Document public API completely

    maplibre/maplibre-native
    Documentation Other
    5
    ⭐ 1411

    All public APIs (files in `include/`) must have comprehensive documentation using either Doxygen-style or t...

    ⛶
  • optimize algorithm performance

    logseq/logseq
    Algorithms Other
    5
    ⭐ 37695

    When implementing algorithms, prioritize performance optimization through careful algorithm selection, quer...

    ⛶
  • Defer expensive operations

    logseq/logseq
    Performance Optimization Other
    5
    ⭐ 37695

    Avoid performing expensive computations until they are actually needed, and eliminate redundant work in hot...

    ⛶
  • Configuration option lifecycle

    logseq/logseq
    Configurations Other
    5
    ⭐ 37695

    When adding new configuration options, follow a systematic approach to ensure consistency and maintainabili...

    ⛶
  • API parameter consolidation

    lobehub/lobe-chat
    API TypeScript
    5
    ⭐ 65138

    When designing API functions with multiple parameters, consolidate optional or related parameters into a si...

    ⛶
  • Eliminate redundant operations

    LMCache/LMCache
    Performance Optimization Python
    5
    ⭐ 3800

    Avoid unnecessary function calls, I/O operations, and redundant checks that can significantly impact perfor...

    ⛶
  • Cache state consistency

    LMCache/LMCache
    Caching Python
    5
    ⭐ 3800

    Ensure cache operations maintain consistent state and handle shared resources properly throughout the cache...

    ⛶
  • AI model architecture flexibility

    LMCache/LMCache
    AI Python
    5
    ⭐ 3800

    Avoid hardcoding AI model-specific assumptions and instead design systems to be configurable across differe...

    ⛶
  • Use descriptive semantic names

    llvm/llvm-project
    Naming Conventions Other
    5
    ⭐ 33702

    Choose specific, meaningful names that clearly convey purpose and follow established codebase patterns. Avo...

    ⛶
  • proper error propagation

    llvm/llvm-project
    Error Handling C++
    5
    ⭐ 33702

    Ensure errors are properly propagated to callers rather than handled locally with exits or fatal errors. Li...

    ⛶
  • minimize header dependencies

    llvm/llvm-project
    Code Style Other
    5
    ⭐ 33702

    Organize code to minimize header dependencies and improve compilation times. Use forward declarations inste...

    ⛶
  • Eliminate redundant null checks

    llvm/llvm-project
    Null Handling C++
    5
    ⭐ 33702

    Avoid unnecessary null checks when the called function already handles null cases, and use references inste...

    ⛶
  • Design thoughtful API interfaces

    llvm/llvm-project
    API C++
    5
    ⭐ 33702

    When designing APIs, prioritize clarity, appropriate abstraction levels, and user experience. Avoid magic n...

    ⛶
  • cost-based algorithmic decisions

    llvm/llvm-project
    Algorithms Other
    5
    ⭐ 33702

    When implementing algorithmic transformations and optimizations, use cost analysis and profitability heuris...

    ⛶
  • use model metadata

    ggml-org/llama.cpp
    AI C++
    5
    ⭐ 83559

    Leverage model metadata from GGUF format instead of hardcoded configuration values or filename-based logic....

    ⛶
  • optimize memory access patterns

    ggml-org/llama.cpp
    Performance Optimization CUDA
    5
    ⭐ 83559

    Ensure CUDA kernels use optimal memory access patterns to maximize performance. This involves several key p...

    ⛶
  • measure before optimizing

    ggml-org/llama.cpp
    Performance Optimization C++
    5
    ⭐ 83559

    Always profile and measure performance impact before implementing optimizations, especially micro-optimizat...

    ⛶
  • AI parameter organization

    ggml-org/llama.cpp
    AI Other
    5
    ⭐ 83559

    Ensure proper organization and placement of AI model parameters, hyperparameters, and configuration options...

    ⛶
  • Use configuration helper utilities

    BerriAI/litellm
    Configurations Python
    5
    ⭐ 28310

    Always use centralized helper functions for configuration management instead of direct environment variable...

    ⛶
  • Prefer generic API patterns

    BerriAI/litellm
    API Python
    5
    ⭐ 28310

    Avoid creating provider-specific API implementations when generic, reusable solutions exist or can be devel...

    ⛶
  • background task coordination

    BerriAI/litellm
    Concurrency Python
    5
    ⭐ 28310

    When working with background tasks in async applications, ensure proper task lifecycle management and coord...

    ⛶
  • avoid expensive operations

    BerriAI/litellm
    Performance Optimization Python
    5
    ⭐ 28310

    Identify and optimize resource-intensive operations in frequently executed code paths. This includes avoidi...

    ⛶
  • API parameter consistency

    BerriAI/litellm
    API Markdown
    5
    ⭐ 28310

    Ensure consistent parameter naming, format, and usage across all API interfaces, documentation, and code ex...

    ⛶
  • Explicit API contracts

    likec4/likec4
    API TypeScript
    5
    ⭐ 2582

    Require API types and public interfaces to express clear, enforceable contracts: guarantee invariants, norm...

    ⛶
  • Validate all inputs

    langfuse/langfuse
    Security TypeScript
    5
    ⭐ 13574

    All user-controlled inputs must be validated and sanitized before use to prevent injection attacks, unautho...

    ⛶
  • Use structured logging framework

    langfuse/langfuse
    Logging TypeScript
    5
    ⭐ 13574

    Replace all console.* calls with an appropriate structured logging framework using proper log levels. This ...

    ⛶
  • Memoize computed values

    langfuse/langfuse
    Performance Optimization TSX
    5
    ⭐ 13574

    Cache the results of expensive operations and component renders to avoid redundant calculations during re-r...

    ⛶
  • Ensure deterministic query results

    langfuse/langfuse
    Database TypeScript
    5
    ⭐ 13574

    Always ensure database queries produce deterministic results by including explicit ORDER BY clauses when us...

    ⛶
  • Avoid array mutations

    langfuse/langfuse
    Code Style TSX
    5
    ⭐ 13574

    Always clone arrays before performing operations that would mutate the original array, especially when work...

    ⛶
  • intentional error handling

    langflow-ai/langflow
    Error Handling Python
    5
    ⭐ 111046

    Make deliberate, context-appropriate decisions about error handling strategy rather than applying generic p...

    ⛶
  • Validate untrusted input

    langchain-ai/langchainjs
    Security TypeScript
    5
    ⭐ 15004

    Always validate and sanitize user-provided inputs before using them in sensitive contexts like SQL queries,...

    ⛶
  • Throw meaningful errors

    langchain-ai/langchainjs
    Error Handling TypeScript
    5
    ⭐ 15004

    Always throw specific, actionable errors instead of returning unexpected values or simply logging issues. E...

    ⛶
  • Optimize model token usage

    langchain-ai/langchainjs
    AI TypeScript
    5
    ⭐ 15004

    Implement token-efficient patterns when working with AI models to optimize costs and performance. Key pract...

    ⛶
  • Follow documentation standards

    langchain-ai/langchainjs
    Documentation Other
    5
    ⭐ 15004

    Ensure all documentation follows established templates and includes required sections. When referencing com...

    ⛶
  • Scoped configuration defaults

    langchain-ai/langchain
    Configurations Toml
    5
    ⭐ 136312

    When updating `pyproject.toml` (lint/type/dependency config), keep changes minimal and future-safe: enable/...

    ⛶
  • Harden Untrusted Inputs

    langchain-ai/langchain
    Security Python
    5
    ⭐ 136312

    When code uses externally influenced data (URLs, hostnames, user-provided strings, identifiers) across trus...

    ⛶
  • Avoid Hidden Performance Traps

    langchain-ai/langchain
    Performance Optimization Python
    5
    ⭐ 136312

    Default rule: in performance-sensitive code, prevent hidden blowups and avoid expensive work being executed...

    ⛶
  • Prefer early null returns

    kubernetes/kubernetes
    Null Handling Go
    5
    ⭐ 116489

    Use early return patterns with null checks to reduce nesting and improve code readability. Avoid unnecessar...

    ⛶
  • Optimize search algorithms

    kubernetes/kubernetes
    Algorithms Go
    5
    ⭐ 116489

    Implement efficient search strategies that minimize computational overhead through proper ordering, early t...

    ⛶
  • Use modern JavaScript idioms

    kubeflow/kubeflow
    Code Style JavaScript
    5
    ⭐ 15064

    Favor modern JavaScript syntax and clean code practices to improve readability and maintainability. This in...

    ⛶
  • Structured documentation with examples

    kubeflow/kubeflow
    Documentation Markdown
    5
    ⭐ 15064

    Create comprehensive documentation with clear structure and practical examples. Documentation should includ...

    ⛶
  • Standardize makefile patterns

    kubeflow/kubeflow
    CI/CD Other
    5
    ⭐ 15064

    Maintain consistent Makefile patterns across all components to improve build reliability and developer expe...

    ⛶
  • Environment variable management

    kubeflow/kubeflow
    Configurations Dockerfile
    5
    ⭐ 15064

    Manage environment variables in Docker configurations with appropriate scope, placement, and documentation:...

    ⛶
  • Centralize configuration values

    kubeflow/kubeflow
    Configurations TypeScript
    5
    ⭐ 15064

    Store all configuration values in dedicated configuration files rather than hardcoding them throughout the ...

    ⛶
  • Consider operation time complexity

    JetBrains/kotlin
    Algorithms Kotlin
    5
    ⭐ 50857

    When implementing operations that manipulate collections or perform repeated actions, carefully consider th...

    ⛶
  • optimize algorithmic complexity

    apache/kafka
    Algorithms Java
    5
    ⭐ 30575

    Replace inefficient algorithms with more optimal data structures and approaches to improve computational co...

    ⛶
  • Defensive null validation

    apache/kafka
    Null Handling Java
    5
    ⭐ 30575

    Always validate null parameters and dependencies early with proper ordering to prevent NullPointerException...

    ⛶
  • API completeness validation

    apache/kafka
    API Java
    5
    ⭐ 30575

    Ensure APIs are complete by validating that all necessary cases are handled, all required arguments are pro...

    ⛶
  • Use type-specific variable names

    jj-vcs/jj
    Naming Conventions Rust
    5
    ⭐ 21171

    Use distinct variable names that reflect their types to avoid confusion and make code intent clearer. Avoid...

    ⛶
  • Consistent naming conventions

    jj-vcs/jj
    Naming Conventions Markdown
    5
    ⭐ 21171

    Maintain consistent naming and terminology throughout code and documentation. This includes proper capitali...

    ⛶
  • eliminate code redundancy

    menloresearch/jan
    Code Style TypeScript
    5
    ⭐ 37620

    Remove duplicate imports, unused legacy code, and repetitive patterns to maintain clean, organized codebase...

    ⛶
  • network configuration consistency

    istio/istio
    Networking Go
    5
    ⭐ 37192

    Ensure network-related configurations remain consistent across different components and avoid unintended ov...

    ⛶
  • Conservative networking defaults

    istio/istio
    Networking Yaml
    5
    ⭐ 37192

    When configuring networking components, prefer stable and permissive defaults over restrictive or experimen...

    ⛶
  • API compatibility preservation

    istio/istio
    API Go
    5
    ⭐ 37192

    When evolving APIs, prioritize backward compatibility and avoid changing the semantics of existing fields. ...

    ⛶
  • Structured logging best practices

    influxdata/influxdb
    Logging Go
    5
    ⭐ 30268

    Use structured logging with appropriate field types and context to make logs more useful for troubleshootin...

    ⛶
  • Stable schema identifiers

    influxdata/influxdb
    Database Rust
    5
    ⭐ 30268

    Use persistent identifiers for schema elements rather than relying on positional information or enumeration...

    ⛶
  • Prefer explicit nullability

    influxdata/influxdb
    Null Handling Rust
    5
    ⭐ 30268

    Always make nullable states explicit in your code by leveraging Rust's type system. Use `Option` rather ...

    ⛶
  • Manage complete cache lifecycle

    influxdata/influxdb
    Caching Rust
    5
    ⭐ 30268

    Implement comprehensive cache lifecycle management focusing on three key aspects: 1. Idempotent Creation: ...

    ⛶
  • Maintain code readability

    influxdata/influxdb
    Code Style Go
    5
    ⭐ 30268

    Ensure code remains readable and maintainable by following these practices: 1. **Combine case statements w...

    ⛶
  • Handle errors by criticality

    influxdata/influxdb
    Error Handling Rust
    5
    ⭐ 30268

    Choose error handling strategies based on operation criticality: 1. For critical operations that could cor...

    ⛶
  • Descriptive semantic naming

    influxdata/influxdb
    Naming Conventions Rust
    5
    ⭐ 30268

    Create identifiers that clearly convey meaning through descriptive names and appropriate types. Two key pra...

    ⛶
  • Clear configuration parameters

    influxdata/influxdb
    Configurations Rust
    5
    ⭐ 30268

    Configuration parameters should be descriptively named, well documented, and have sensible defaults that ar...

    ⛶
  • Transactional verified migrations

    elie222/inbox-zero
    Migrations Sql
    5
    ⭐ 8267

    Enhance database migration reliability by wrapping changes in transactions with pre-check and post-verifica...

    ⛶
  • Time precision matters

    elie222/inbox-zero
    Algorithms TypeScript
    5
    ⭐ 8267

    When implementing algorithms involving date and time calculations, maintain precise control over time compo...

    ⛶
  • Prevent async race conditions

    elie222/inbox-zero
    Concurrency TSX
    5
    ⭐ 8267

    Always guard against race conditions when working with asynchronous code. Implement these patterns to avoid...

    ⛶
  • Names reflect semantic purpose

    elie222/inbox-zero
    Naming Conventions TypeScript
    5
    ⭐ 8267

    Choose names that reflect the semantic purpose rather than implementation details or temporal characteristi...

    ⛶
  • optimize computational efficiency

    hyprwm/Hyprland
    Algorithms C++
    5
    ⭐ 28863

    Prioritize algorithmic efficiency and avoid unnecessary computational overhead in performance-critical code...

    ⛶
  • Optimization algorithm compatibility

    p-e-w/heretic
    Algorithms Python
    5
    ⭐ 5002

    When implementing or changing optimization code (samplers, objectives, and result selection), ensure algori...

    ⛶
  • reduce nesting complexity

    helix-editor/helix
    Code Style Rust
    5
    ⭐ 39026

    Prefer code structures that minimize nesting levels and improve readability through early returns, pattern ...

    ⛶
  • Follow established conventions

    helix-editor/helix
    Code Style Toml
    5
    ⭐ 39026

    Configuration settings should align with official language documentation and established community standard...

    ⛶
  • Standardize observability semantic conventions

    grafana/grafana
    Observability Go
    5
    ⭐ 68825

    When implementing observability features (logs, metrics, traces), use consistent semantic conventions to en...

    ⛶
  • Proper shell quoting

    grafana/grafana
    Code Style Yaml
    5
    ⭐ 68825

    Always use proper quoting in shell scripts (especially GitHub Actions workflows) to prevent word splitting,...

    ⛶
  • Function design principles

    grafana/grafana
    Code Style TypeScript
    5
    ⭐ 68825

    Design functions for maximum reusability, clarity, and maintainability. Follow these principles: 1. **Pass...

    ⛶
  • Close resources with errors

    grafana/grafana
    Error Handling Go
    5
    ⭐ 68825

    Always close resources (files, streams, connections) and properly handle their Close() errors. For read ope...

    ⛶
  • Verify configuration documentation

    block/goose
    Configurations Markdown
    5
    ⭐ 19037

    Ensure all configuration documentation accurately reflects actual system behavior, available options, and c...

    ⛶
  • Use if-unwrap with optionals

    ghostty-org/ghostty
    Null Handling Other
    5
    ⭐ 32864

    Always use Zig's if-unwrap pattern (`if (optional) |value| {...}`) when working with optional values instea...

    ⛶
  • Use specific configuration patterns

    google-gemini/gemini-cli
    Configurations Json
    5
    ⭐ 65062

    When defining exclusion patterns, file filters, or other configuration rules, use specific, targeted patter...

    ⛶
  • Never ignore errors silently

    google-gemini/gemini-cli
    Error Handling TSX
    5
    ⭐ 65062

    All errors must be explicitly handled through catching, logging, or user feedback. Silent error suppression...

    ⛶
  • Maintain naming consistency

    google-gemini/gemini-cli
    Naming Conventions TSX
    5
    ⭐ 65062

    Ensure consistent naming patterns and approaches across similar functionality in the codebase. This include...

    ⛶
  • implement resource constraints

    google-gemini/gemini-cli
    Performance Optimization TypeScript
    5
    ⭐ 65062

    Implement multiple types of resource constraints with appropriate thresholds to prevent performance degrada...

    ⛶
  • document current functionality

    google-gemini/gemini-cli
    Documentation Markdown
    5
    ⭐ 65062

    Documentation should focus exclusively on current, active functionality rather than including historical co...

    ⛶
  • classify errors appropriately

    google-gemini/gemini-cli
    Error Handling TypeScript
    5
    ⭐ 65062

    Different types of errors require different handling strategies. Classify errors into categories and apply ...

    ⛶
  • Choose efficient data structures

    google-gemini/gemini-cli
    Algorithms TypeScript
    5
    ⭐ 65062

    Select data structures and algorithms that match your performance requirements rather than defaulting to si...

    ⛶
  • API consistency patterns

    google-gemini/gemini-cli
    API TypeScript
    5
    ⭐ 65062

    Maintain consistent interface patterns across APIs and avoid loose coupling through magic strings or unstab...

    ⛶
  • add tests for changes

    google-gemini/gemini-cli
    Testing TypeScript
    5
    ⭐ 65062

    Every code change, whether it's a new feature, bug fix, or refactoring, must include corresponding tests. T...

    ⛶
  • Handle errors completely

    fatedier/frp
    Error Handling Go
    5
    ⭐ 95938

    Always handle errors comprehensively by checking return values, implementing proper error propagation, and ...

    ⛶
  • Connection lifecycle management

    fatedier/frp
    Networking Go
    5
    ⭐ 95938

    Implement comprehensive lifecycle management for network connections. Ensure proper initialization, authent...

    ⛶
  • Null-Safe Defaults

    freeCodeCamp/freeCodeCamp
    Null Handling Markdown
    5
    ⭐ 444449

    Write code assuming inputs (arrays, objects, DOM nodes) may contain `undefined`, `null`, or “empty slots/ho...

    ⛶
  • Middleware ordering and chaining

    freeCodeCamp/freeCodeCamp
    Networking Markdown
    5
    ⭐ 444449

    When using Express, treat middleware registration as an HTTP request-processing pipeline: middleware execut...

    ⛶
  • Middleware and Status Semantics

    freeCodeCamp/freeCodeCamp
    API Markdown
    5
    ⭐ 444449

    When building API endpoints with Express, make request lifecycle control-flow and response semantics explic...

    ⛶
  • Canonical IDs and Titles

    EbookFoundation/free-programming-books
    Naming Conventions Markdown
    5
    ⭐ 388003

    Adopt canonical naming rules for both **identifiers (anchors/ids)** and **display names (titles)** to preve...

    ⛶
  • Manage dependencies wisely

    laravel/framework
    Configurations Json
    5
    ⭐ 33763

    When configuring dependencies in composer.json files, follow these guidelines to ensure maintainable and re...

    ⛶
  • Escape column names properly

    laravel/framework
    Database PHP
    5
    ⭐ 33763

    Always use the appropriate wrapping/escaping mechanism when generating SQL to prevent syntax errors and SQL...

    ⛶
  • Design flexible APIs

    laravel/framework
    API PHP
    5
    ⭐ 33763

    When designing APIs, prioritize flexibility and developer experience by: 1. **Accept broader parameter typ...

    ⛶
  • Eliminate redundant operations

    flutter/flutter
    Performance Optimization Other
    5
    ⭐ 172252

    Identify and remove unnecessary operations that impact performance, including redundant checks, duplicate c...

    ⛶
  • Avoid breaking changes

    flutter/flutter
    API Other
    5
    ⭐ 172252

    When modifying existing APIs, prioritize backward compatibility to prevent breaking changes that would forc...

    ⛶
  • Use structured error logging

    firecrawl/firecrawl
    Logging TypeScript
    5
    ⭐ 54535

    Always use the proper logger instance instead of console methods, and format error logs with structured dat...

    ⛶
  • Validate security configurations

    gofiber/fiber
    Security Markdown
    5
    ⭐ 37560

    Always verify that security middleware configurations use correct constant values, proper parameter specifi...

    ⛶
  • Evaluate nil check necessity

    gofiber/fiber
    Null Handling Go
    5
    ⭐ 37560

    Before adding nil checks, evaluate whether they are actually necessary or if they represent false positives...

    ⛶
  • Type-safe API designs

    fastify/fastify
    API TypeScript
    5
    ⭐ 34000

    Design APIs with strong type safety to improve developer experience and catch errors at compile time. Avoid...

    ⛶
  • Properly Handle Errors in Fastify Applications

    fastify/fastify
    Fastify TypeScript
    5
    ⭐ 34000

    When implementing error handling in Fastify applications, it is important to always throw instances of the ...

    ⛶
  • Preserve error context

    fastify/fastify
    Error Handling JavaScript
    5
    ⭐ 34000

    When handling errors, always ensure the original error context is preserved and properly surfaced. Error in...

    ⛶
  • Null safe patterns

    fastify/fastify
    Null Handling JavaScript
    5
    ⭐ 34000

    Use concise null checking patterns to prevent runtime errors and improve code readability when handling pot...

    ⛶
  • Explicit Configuration Usage in Fastify

    fastify/fastify
    Fastify TypeScript
    5
    ⭐ 34000

    When using the Fastify framework in TypeScript, ensure that all configuration options are explicitly declar...

    ⛶
  • Consistent JSDoc standards

    fastify/fastify
    Documentation JavaScript
    5
    ⭐ 34000

    Document all public APIs and significant internal functions with comprehensive JSDoc comments that include ...

    ⛶
  • Adhere to Fastify Coding Conventions

    fastify/fastify
    Fastify TypeScript
    5
    ⭐ 34000

    When implementing code that uses the Fastify package in TypeScript, ensure the following conventions are fo...

    ⛶
  • Protocol-specific error handling

    fastapi/fastapi
    Networking Markdown
    5
    ⭐ 86871

    Handle errors and responses appropriately based on the network protocol being used. Different protocols hav...

    ⛶
  • Consistent code examples

    fastapi/fastapi
    NestJS Markdown
    5
    ⭐ 86871

    Maintain consistent formatting and styling in code examples throughout your NestJS application documentatio...

    ⛶
  • REST principles first

    expressjs/express
    API JavaScript
    5
    ⭐ 67300

    When designing APIs with Express, prioritize proper REST principles and HTTP semantics over convenience. Th...

    ⛶
  • Propagate errors properly

    expressjs/express
    Error Handling JavaScript
    5
    ⭐ 67300

    Always forward errors to the framework's error handling pipeline instead of swallowing them or handling the...

    ⛶
  • Handle streams properly

    expressjs/express
    Networking JavaScript
    5
    ⭐ 67300

    When transferring data over HTTP, properly implement streaming mechanisms to prevent memory exhaustion and ...

    ⛶
  • Ensure test completion

    expressjs/express
    Testing JavaScript
    5
    ⭐ 67300

    Tests must properly terminate by following appropriate asynchronous patterns. For asynchronous tests, alway...

    ⛶
  • maintain API compatibility

    evanw/esbuild
    API Go
    5
    ⭐ 39161

    When implementing or extending APIs, preserve compatibility with existing standards and expected behaviors....

    ⛶
  • Use descriptive consistent names

    electron/electron
    Naming Conventions Other
    5
    ⭐ 117644

    Choose names that are both semantically accurate and consistent with established patterns. Names should cle...

    ⛶
  • Descriptive error messages

    electron/electron
    Error Handling Other
    5
    ⭐ 117644

    Error messages should be descriptive, contextual, and self-identifying to aid debugging and user understand...

    ⛶
  • Prevent redundant operations

    elastic/elasticsearch
    Database Java
    5
    ⭐ 73104

    In distributed database systems, prevent redundant operations that can overload cluster resources. When imp...

    ⛶
  • validate inputs early

    duckdb/duckdb
    Error Handling C++
    5
    ⭐ 32061

    Validate function inputs, preconditions, and assumptions as early as possible in the execution flow, prefer...

    ⛶
  • validate inputs comprehensively

    duckdb/duckdb
    Database C++
    5
    ⭐ 32061

    Ensure thorough input validation and comprehensive edge case handling in database operations. This includes...

    ⛶
  • Optimize algorithm complexity

    duckdb/duckdb
    Algorithms Other
    5
    ⭐ 32061

    Choose efficient algorithms and data structures to avoid unnecessary computational complexity. Replace manu...

    ⛶
  • consistent null validation

    duckdb/duckdb
    Null Handling C++
    5
    ⭐ 32061

    Ensure null checks and input validation are applied consistently across similar functions and code paths. W...

    ⛶
  • Test structure and clarity

    stanfordnlp/dspy
    Testing Python
    5
    ⭐ 27813

    Organize tests for maximum clarity and maintainability by leveraging pytest features and proper test struct...

    ⛶
  • reduce nesting levels

    stanfordnlp/dspy
    Code Style Python
    5
    ⭐ 27813

    Minimize nested conditional statements and complex control flow by using early returns, guard clauses, and ...

    ⛶
  • prefer nullish coalescing operator

    drizzle-team/drizzle-orm
    Null Handling TypeScript
    5
    ⭐ 29461

    Use the nullish coalescing operator (`??`) instead of the logical OR operator (`||`) when you specifically ...

    ⛶
  • Version annotation in docs

    django/django
    Documentation Txt
    5
    ⭐ 84182

    Always include appropriate version annotations when documenting new features or changes in behavior. Use `....

    ⛶
  • Use semantic HTML elements

    django/django
    Code Style Html
    5
    ⭐ 84182

    Structure HTML templates using semantically appropriate elements rather than generic containers. Replace no...

    ⛶
  • Structure logs effectively

    django/django
    Logging Python
    5
    ⭐ 84182

    When implementing logging in your application, structure your log messages and parameters consistently to i...

    ⛶
  • Preserve error handling context

    django/django
    Error Handling Python
    5
    ⭐ 84182

    When handling exceptions, preserve the original error context and provide clear, actionable error messages....

    ⛶
  • Graceful API evolution

    django/django
    API Python
    5
    ⭐ 84182

    When evolving APIs, prioritize backward compatibility and provide clear migration paths. For any significan...

    ⛶
  • Comments versus docstrings usage

    django/django
    Documentation Python
    5
    ⭐ 84182

    Choose between comments and docstrings based on the documentation's purpose and scope. Use docstrings for A...

    ⛶
  • validate migration data comprehensively

    discourse/discourse
    Migrations Ruby
    5
    ⭐ 44898

    Migration scripts must thoroughly validate data conditions and handle edge cases to ensure reliable data tr...

    ⛶
  • Use modern syntax

    discourse/discourse
    Code Style Other
    5
    ⭐ 44898

    Adopt modern JavaScript and Ember syntax patterns instead of legacy approaches to improve code readability ...

    ⛶
  • optimize test fixtures

    discourse/discourse
    Testing Ruby
    5
    ⭐ 44898

    Use the `fab!` shorthand syntax for creating test fixtures and reuse fabricated objects across tests to imp...

    ⛶
  • Improve code readability

    discourse/discourse
    Code Style JavaScript
    5
    ⭐ 44898

    Structure code to match logical flow and extract intermediate variables to improve readability. When dealin...

    ⛶
  • Extract duplicate code

    discourse/discourse
    Code Style Ruby
    5
    ⭐ 44898

    When you notice repeated code patterns, logic blocks, or similar implementations across methods or classes,...

    ⛶
  • simplify complex logic

    langgenius/dify
    Code Style Python
    5
    ⭐ 114231

    Improve code readability by reducing complexity and nesting through early returns, extracting complex logic...

    ⛶
  • HTTP standards compliance

    langgenius/dify
    API Python
    5
    ⭐ 114231

    Ensure API endpoints follow HTTP standards for status codes and method selection. Delete operations should ...

    ⛶
  • Configuration value types

    langgenius/dify
    Configurations Python
    5
    ⭐ 114231

    Ensure configuration values use appropriate types, avoid unnecessary Optional annotations, and maintain con...

    ⛶
  • Fail-Fast CI/CD Steps

    kamranahmedse/developer-roadmap
    CI/CD Markdown
    5
    ⭐ 354523

    When building CI/CD pipelines, keep them scope-focused and deterministic, and add explicit quality gates so...

    ⛶
  • Use appropriate synchronization mechanisms

    denoland/deno
    Concurrency Rust
    5
    ⭐ 103714

    Select and implement synchronization primitives that match your concurrency requirements and avoid unsafe p...

    ⛶
  • avoid panics gracefully

    denoland/deno
    Error Handling Rust
    5
    ⭐ 103714

    Replace panic-prone operations like `unwrap()` and `expect()` with graceful error handling that provides me...

    ⛶
  • avoid implementation detail leakage

    denoland/deno
    API Rust
    5
    ⭐ 103714

    APIs should provide clean abstraction boundaries without exposing internal implementation details or creati...

    ⛶
  • User-friendly documentation examples

    deeplearning4j/deeplearning4j
    Documentation Markdown
    5
    ⭐ 14036

    Documentation should guide users toward best practices through clear examples. Begin with positive patterns...

    ⛶
  • Use logging best practices

    deeplearning4j/deeplearning4j
    Logging Java
    5
    ⭐ 14036

    Adopt these logging best practices to ensure consistent, efficient, and meaningful logs: 1. **Use Lombok's...

    ⛶
  • Numerical stability practices

    deeplearning4j/deeplearning4j
    AI Java
    5
    ⭐ 14036

    When implementing machine learning algorithms, ensure numerical correctness and stability by following thes...

    ⛶
  • Descriptive error context

    deeplearning4j/deeplearning4j
    Error Handling C++
    5
    ⭐ 14036

    Error messages should be specific, descriptive, and include context to help with debugging. Avoid generic m...

    ⛶
  • Performance Guardrails

    eosphoros-ai/DB-GPT
    Performance Optimization Python
    5
    ⭐ 18703

    When implementing knowledge-graph storage/search, proactively prevent expensive work and payload bloat by f...

    ⛶
  • Catch Expected Exceptions

    eosphoros-ai/DB-GPT
    Error Handling Python
    5
    ⭐ 18703

    When handling failures, avoid broad try/except that hides root causes. Catch only the exceptions you expect...

    ⛶
  • Thoughtful error handling

    cypress-io/cypress
    Error Handling JavaScript
    5
    ⭐ 48850

    Implement error handling that considers recoverability, appropriate logging levels, and prevents redundant ...

    ⛶
  • Simplify complex expressions

    cypress-io/cypress
    Code Style Other
    5
    ⭐ 48850

    Break down complex conditional logic, nested structures, and verbose syntax into smaller, well-named functi...

    ⛶
  • prefer modern composition patterns

    cypress-io/cypress
    Vue Other
    5
    ⭐ 48850

    Use Vue 3 Composition API patterns that provide better performance, type safety, and maintainability. Prefe...

    ⛶
  • Explain non-obvious code

    cypress-io/cypress
    Documentation TypeScript
    5
    ⭐ 48850

    Add explanatory comments for complex logic, workarounds, and non-obvious code patterns to help future maint...

    ⛶
  • Environment variable validation

    cypress-io/cypress
    Configurations TypeScript
    5
    ⭐ 48850

    Always validate environment variables with proper type checking, fallback values, and defensive handling to...

    ⛶
  • consistent descriptive naming

    cypress-io/cypress
    Naming Conventions JavaScript
    5
    ⭐ 48850

    Maintain consistent naming patterns across similar functionality while ensuring names accurately describe t...

    ⛶
  • Configuration documentation clarity

    cypress-io/cypress
    Configurations Markdown
    5
    ⭐ 48850

    Ensure configuration documentation, setup instructions, and changelogs use precise, clear language with pro...

    ⛶
  • Model-agnostic AI code

    crewaiinc/crewai
    AI Python
    5
    ⭐ 33945

    When building applications that interact with AI models, avoid hardcoding model-specific behavior and inste...

    ⛶
  • prefer None over placeholders

    home-assistant/core
    Null Handling Python
    5
    ⭐ 80450

    When data is unavailable, unknown, or invalid, return `None` instead of placeholder strings like "Unknown",...

    ⛶
  • Minimize try block scope

    home-assistant/core
    Error Handling Python
    5
    ⭐ 80450

    Only include code that can actually raise exceptions within try blocks. Move variable assignments, logging ...

    ⛶
  • Maintain consistent code style

    vuejs/core
    Code Style TypeScript
    5
    ⭐ 50769

    Follow project-wide code style conventions to ensure consistency and readability. Key practices include: 1...

    ⛶
  • Explicit nullish checks

    vuejs/core
    Null Handling TypeScript
    5
    ⭐ 50769

    When checking for the absence of values, use explicit nullish checks rather than relying on JavaScript's fa...

    ⛶
  • Validate before data access

    continuedev/continue
    Null Handling TypeScript
    5
    ⭐ 27819

    Always validate data existence and type before accessing properties or methods to prevent runtime errors fr...

    ⛶
  • Standardize AI model interfaces

    continuedev/continue
    AI TypeScript
    5
    ⭐ 27819

    When implementing AI model integrations, maintain consistent interfaces and proper type definitions across ...

    ⛶
  • Robust comparison algorithms

    continuedev/continue
    Algorithms TypeScript
    5
    ⭐ 27819

    Ensure your comparison algorithms handle edge cases properly and avoid common pitfalls: 1. **Normalize val...

    ⛶
  • Document why not what

    continuedev/continue
    Documentation TypeScript
    5
    ⭐ 27819

    Documentation should explain rationale and be technically precise. Focus on: 1. Including all required par...

    ⛶
  • Decouple tests from implementation

    continuedev/continue
    Testing TypeScript
    5
    ⭐ 27819

    Tests tightly coupled to implementation details break easily when the implementation changes, creating main...

    ⛶
  • Choose clear semantic names

    continuedev/continue
    Naming Conventions TypeScript
    5
    ⭐ 27819

    Names should clearly and accurately convey their purpose, behavior, and content. Follow these guidelines: ...

    ⛶
  • Scope concurrency control precisely

    docker/compose
    Concurrency Go
    5
    ⭐ 35858

    Apply concurrency control mechanisms with precise scope to prevent both race conditions and unnecessary blo...

    ⛶
  • prefer dynamic configuration sources

    comfyanonymous/ComfyUI
    Configurations Python
    5
    ⭐ 83726

    Use runtime-determined configuration sources instead of hardcoded values or static file parsing when more r...

    ⛶
  • optimize CI resource usage

    comfyanonymous/ComfyUI
    CI/CD Yaml
    5
    ⭐ 83726

    Design CI/CD workflows to minimize unnecessary resource consumption and provide faster feedback. Avoid trig...

    ⛶
  • Explicit error propagation

    comfyanonymous/ComfyUI
    Error Handling Python
    5
    ⭐ 83726

    Functions should raise exceptions with meaningful messages instead of returning False, None, or silently ca...

    ⛶
  • avoid expensive operations

    comfyanonymous/ComfyUI
    Performance Optimization Python
    5
    ⭐ 83726

    Identify and eliminate unnecessary expensive operations that can significantly impact performance. Common p...

    ⛶
  • API backward compatibility

    comfyanonymous/ComfyUI
    API Python
    5
    ⭐ 83726

    Ensure API changes maintain backward compatibility to avoid breaking existing clients and workflows. When a...

    ⛶
  • Write comprehensive test assertions

    openai/codex
    Testing Rust
    5
    ⭐ 31275

    Instead of making multiple small assertions that check individual fields or conditions, write single compre...

    ⛶
  • Structure configurations properly

    openai/codex
    Configurations TypeScript
    5
    ⭐ 31275

    Define a clear, hierarchical structure for application configurations with descriptive naming and proper or...

    ⛶
  • Document non-obvious aspects

    openai/codex
    Documentation Rust
    5
    ⭐ 31275

    Documentation should explain what isn't obvious from the code itself. Focus on providing context about "why...

    ⛶
  • Contextualize, don't swallow

    openai/codex
    Error Handling Rust
    5
    ⭐ 31275

    Always propagate errors with appropriate context rather than silently ignoring them. This makes debugging e...

    ⛶
  • Centralize configuration management

    openai/codex
    Configurations Rust
    5
    ⭐ 31275

    Prefer centralized configuration objects over environment variables for application settings. Environment v...

    ⛶
  • use semantic naming

    cline/cline
    Naming Conventions TypeScript
    5
    ⭐ 48299

    Choose variable, function, and type names that clearly communicate their purpose and meaning without requir...

    ⛶
  • reuse common message types

    cline/cline
    API Other
    5
    ⭐ 48299

    Prefer reusable message types over single-purpose request/response pairs to reduce API bloat and improve ma...

    ⛶
  • centralize configuration management

    cline/cline
    Configurations TypeScript
    5
    ⭐ 48299

    Consolidate related configuration settings into dedicated config objects or files rather than scattering ha...

    ⛶
  • Add missing error handling

    cline/cline
    Error Handling TypeScript
    5
    ⭐ 48299

    Wrap operations that can fail in try/catch blocks to prevent unhandled exceptions from crashing the applica...

    ⛶
  • optimize algorithmic complexity

    ClickHouse/ClickHouse
    Algorithms C++
    5
    ⭐ 42425

    Always consider the algorithmic complexity and performance implications of data structure choices, memory a...

    ⛶
  • optimize algorithm selection

    ClickHouse/ClickHouse
    Algorithms Other
    5
    ⭐ 42425

    Choose algorithms and data structures based on actual performance characteristics rather than defaulting to...

    ⛶
  • Extract common patterns

    ClickHouse/ClickHouse
    Code Style C++
    5
    ⭐ 42425

    Identify and extract repeated code patterns into reusable functions or methods to improve maintainability a...

    ⛶
  • Database schema consistency

    ClickHouse/ClickHouse
    Database Other
    5
    ⭐ 42425

    Ensure database operations maintain consistent behavior and ordering, especially in distributed systems. Wh...

    ⛶
  • Use optional chaining

    snyk/cli
    Null Handling TypeScript
    5
    ⭐ 5178

    Always use optional chaining (`?.`) and null checks when accessing properties or methods on objects that mi...

    ⛶
  • comprehensive test coverage

    snyk/cli
    Testing Go
    5
    ⭐ 5178

    Ensure thorough test coverage by extracting complex logic into small, testable functions and using appropri...

    ⛶
  • Secure credential management

    chef/chef
    Security Ruby
    5
    ⭐ 7860

    When handling passwords, certificates, or keys in your code, implement secure encryption and storage mechan...

    ⛶
  • Prefer guard clauses

    chef/chef
    Null Handling Ruby
    5
    ⭐ 7860

    Use guard clauses with early returns for null checking instead of wrapping code in conditional blocks. This...

    ⛶
  • Explicit configuration over implicit

    chef/chef
    Configurations Ruby
    5
    ⭐ 7860

    Always define explicit configuration defaults rather than relying on implicit behavior or autovivification....

    ⛶
  • Use appropriate logging levels

    bridgecrewio/checkov
    Logging Python
    5
    ⭐ 7668

    Select the correct logging level based on the importance and visibility requirements of the information. Ch...

    ⛶
  • Thorough test assertions

    bridgecrewio/checkov
    Testing Python
    5
    ⭐ 7667

    Ensure tests thoroughly validate functionality through comprehensive assertions. When writing tests: 1. As...

    ⛶
  • Strategic exception management

    bridgecrewio/checkov
    Error Handling Python
    5
    ⭐ 7668

    Choose the appropriate error handling strategy based on the context and severity of potential failures. Use...

    ⛶
  • Strategic error handling

    bridgecrewio/checkov
    Error Handling Python
    5
    ⭐ 7667

    Choose appropriate error handling strategies based on the nature of the error and recovery potential: 1. *...

    ⛶
  • Document configuration options

    bridgecrewio/checkov
    Configurations Markdown
    5
    ⭐ 7668

    Always provide comprehensive documentation for all configuration options, including environment variables, ...

    ⛶
  • Choose optimal data structures

    bridgecrewio/checkov
    Algorithms Python
    5
    ⭐ 7668

    Select the most appropriate data structure based on the specific operations your algorithm needs to perform...

    ⛶
  • Maintain API Backward Compatibility

    celery/celery
    API Python
    5
    ⭐ 28464

    When changing code that affects a public interface (method signatures, CLI command arguments, plugin discov...

    ⛶
  • Use descriptive identifiers

    calcom/cal.com
    Naming Conventions TypeScript
    5
    ⭐ 37732

    Choose specific, descriptive names for variables, functions, and parameters that clearly communicate their ...

    ⛶
  • Explicit null checks

    calcom/cal.com
    Null Handling TSX
    5
    ⭐ 37732

    Always use explicit null and undefined checks instead of relying solely on optional chaining, especially wh...

    ⛶
  • ensure test reliability

    calcom/cal.com
    Testing TypeScript
    5
    ⭐ 37732

    Write tests that are stable, independent, and non-flaky by following proper isolation and waiting practices...

    ⛶
  • Design contextual API interfaces

    calcom/cal.com
    API TSX
    5
    ⭐ 37732

    API interfaces should expose only relevant data and functionality based on context, configuration, and user...

    ⛶
  • Use memory pools

    oven-sh/bun
    Performance Optimization Other
    5
    ⭐ 79093

    Reuse memory with buffer pools for temporary allocations instead of creating new buffers each time. This re...

    ⛶
  • Network API compatibility

    oven-sh/bun
    Networking TypeScript
    5
    ⭐ 79093

    When implementing networking APIs that mirror Node.js functionality, ensure both behavior and error pattern...

    ⛶
  • Match filenames to contents

    oven-sh/bun
    Naming Conventions Other
    5
    ⭐ 79093

    Files should be named to clearly reflect their primary contents: 1. When a file contains a single primary ...

    ⛶
  • Descriptive identifier names

    oven-sh/bun
    Naming Conventions C++
    5
    ⭐ 79093

    Choose clear, consistent, and accurate identifiers that precisely reflect behavior and follow established p...

    ⛶
  • Clean all error paths

    oven-sh/bun
    Error Handling Other
    5
    ⭐ 79093

    Ensure all error paths properly clean up resources and handle errors appropriately. This includes: 1. Usin...

    ⛶
  • Environment variable configuration

    browser-use/browser-use
    Configurations Python
    5
    ⭐ 69139

    Prefer environment variables over hardcoded configuration values to improve flexibility and avoid forcing c...

    ⛶
  • Simplify complex code blocks

    Homebrew/brew
    Code Style Ruby
    5
    ⭐ 44168

    Break down complex code blocks and expressions into simpler, more readable components. Complex boolean logi...

    ⛶
  • Actions workflow best practices

    Homebrew/brew
    CI/CD Yaml
    5
    ⭐ 44168

    Use GitHub Actions native features and follow best practices to create maintainable, secure, and reliable C...

    ⛶
  • Write clear examples

    boto/boto3
    Documentation Other
    5
    ⭐ 9417

    Create comprehensive code examples in documentation that demonstrate common operations and use proper forma...

    ⛶
  • Consistent method interfaces

    boto/boto3
    API Python
    5
    ⭐ 9417

    Design APIs with consistent method interfaces across related resources to improve usability and reduce lear...

    ⛶
  • Configure proxies with schemes

    boto/boto3
    Networking Other
    5
    ⭐ 9417

    When configuring proxies in AWS SDK clients, always include the complete URL scheme in proxy definitions. M...

    ⛶
  • Validate before usage

    better-auth/better-auth
    Null Handling TypeScript
    5
    ⭐ 19651

    Always explicitly check for null or undefined values before using them in operations. Don't assume values e...

    ⛶
  • Prefer simple solutions

    better-auth/better-auth
    Code Style TypeScript
    5
    ⭐ 19651

    Choose existing utilities, simpler patterns, and cleaner implementations over manual or complex approaches....

    ⛶
  • Use semantically clear names

    bazelbuild/bazel
    Naming Conventions Other
    5
    ⭐ 24489

    Choose names that clearly express their purpose and avoid patterns that can lead to confusion or bugs. Name...

    ⛶
  • Specific exceptions for clarity

    Azure/azure-sdk-for-net
    Error Handling C#
    5
    ⭐ 5809

    Use specific exception types with meaningful error messages rather than generic exceptions to improve error...

    ⛶
  • Preserve API compatibility

    Azure/azure-sdk-for-net
    API C#
    5
    ⭐ 5809

    When evolving APIs, maintain backward compatibility to prevent breaking changes for existing consumers. K...

    ⛶
  • Maintain clean code structure

    Azure/azure-sdk-for-net
    Code Style C#
    5
    ⭐ 5809

    Keep code clean and well-organized by: 1. Removing unnecessary elements: - Delete commented-out code tha...

    ⛶
  • Centralize configuration values

    Azure/azure-sdk-for-net
    Configurations Other
    5
    ⭐ 5809

    Configuration values should be defined once and referenced throughout your project to ensure consistency an...

    ⛶
  • Prefer descriptive over brief

    tokio-rs/axum
    Naming Conventions Rust
    5
    ⭐ 22100

    Choose clear, descriptive names over abbreviated or shortened versions. Names should be self-documenting an...

    ⛶
  • Documentation consistency standards

    tokio-rs/axum
    Documentation Markdown
    5
    ⭐ 22100

    Maintain consistent documentation formatting standards across all project files, especially in changelogs, ...

    ⛶
  • Consistent axum Usage in TypeScript

    tokio-rs/axum
    Axum TypeScript
    5
    ⭐ 22100

    When implementing TypeScript code that uses the axum package, maintain consistent and idiomatic usage: alwa...

    ⛶
  • Type-safe API interfaces design

    axios/axios
    API TypeScript
    5
    ⭐ 107000

    Design API interfaces with strong type safety while maintaining excellent developer experience. Prefer expl...

    ⛶
  • Standardize null value checks

    axios/axios
    Null Handling JavaScript
    5
    ⭐ 107000

    Always use consistent patterns and utility functions for handling null and undefined values. This improves ...

    ⛶
  • Specific test assertions

    axios/axios
    Testing JavaScript
    5
    ⭐ 107000

    When writing tests, explicitly assert specific conditions and expected values rather than relying on genera...

    ⛶
  • Proxy protocol handling

    axios/axios
    Networking JavaScript
    5
    ⭐ 107000

    When implementing HTTP clients with proxy support, ensure the connection to the proxy uses the protocol spe...

    ⛶
  • Documentation reflects reality

    axios/axios
    Documentation Markdown
    5
    ⭐ 107000

    Always ensure documentation accurately represents the actual code behavior and implementation details. Incl...

    ⛶
  • Consistent method behaviors

    axios/axios
    API JavaScript
    5
    ⭐ 107000

    Design API methods with predictable behavior patterns that follow common conventions. Methods that modify o...

    ⛶
  • Complete error handling chain

    axios/axios
    Error Handling JavaScript
    5
    ⭐ 107000

    Implement comprehensive error handling throughout the codebase by ensuring all error scenarios are properly...

    ⛶
  • Structured test resource management

    aws/aws-sdk-js
    Testing JavaScript
    5
    ⭐ 7628

    Organize tests with proper resource lifecycle management to ensure reliability and maintainability. Create ...

    ⛶
  • Content integrity verification

    aws/aws-sdk-js
    Networking JavaScript
    5
    ⭐ 7628

    When handling HTTP responses, especially with streaming data, properly verify content integrity and length ...

    ⛶
  • Use descriptive constants

    argoproj/argo-cd
    Naming Conventions TSX
    5
    ⭐ 20149

    Replace hardcoded strings, numbers, and magic values with well-named constants that clearly describe their ...

    ⛶
  • Use configuration constants

    argoproj/argo-cd
    Configurations Go
    5
    ⭐ 20149

    Replace hardcoded values with named constants from common packages or make values configurable through envi...

    ⛶
  • structured logging practices

    argoproj/argo-cd
    Logging Go
    5
    ⭐ 20149

    Use structured logging with proper context and consolidate related log messages. Instead of multiple separa...

    ⛶
  • Provide comprehensive explanations

    argoproj/argo-cd
    Documentation Markdown
    5
    ⭐ 20149

    Documentation should provide thorough technical explanations that define key concepts, explain behaviors, a...

    ⛶
  • Follow Go naming conventions

    argoproj/argo-cd
    Naming Conventions Go
    5
    ⭐ 20149

    Adhere to Go naming conventions and maintain consistency with established codebase terminology. This includ...

    ⛶
  • Choose appropriate synchronization primitives

    argoproj/argo-cd
    Concurrency Go
    5
    ⭐ 20149

    Select the right synchronization mechanism based on your specific use case to avoid performance regressions...

    ⛶
  • Check nil before access

    argoproj/argo-cd
    Null Handling Go
    5
    ⭐ 20149

    Always verify that pointers and nested struct fields are not nil before accessing their members to prevent ...

    ⛶
  • Safe spawn and permission validation

    coleam00/Archon
    Security TypeScript
    5
    ⭐ 21089

    Enforce security for any code that turns user/config inputs into subprocess execution or permission setting...

    ⛶
  • Assert response fully always

    appwrite/appwrite
    Testing PHP
    5
    ⭐ 51959

    Always validate all relevant aspects of API responses in tests, including status codes, headers, and body c...

    ⛶
  • Prefer precise typing

    anthropics/anthropic-sdk-python
    Code Style Python
    5
    ⭐ 3392

    Use precise types instead of `Any`, and avoid unnecessary `typing.cast` by relying on type-guard utilities ...

    ⛶
  • Simplify complex expressions

    ant-design/ant-design
    Code Style TSX
    5
    ⭐ 95882

    Extract repeated expressions and complex conditional logic into clear, readable variables to improve code m...

    ⛶
  • Semantic naming consistency

    ant-design/ant-design
    Naming Conventions Markdown
    5
    ⭐ 95882

    Choose semantically clear and consistent names across related elements in your codebase. Names should conve...

    ⛶
  • React component API clarity

    ant-design/ant-design
    React Markdown
    5
    ⭐ 95882

    Ensure React component APIs are well-designed with accurate TypeScript interfaces, clear documentation, and...

    ⛶
  • Extract common patterns

    ant-design/ant-design
    Code Style TypeScript
    5
    ⭐ 95882

    When you encounter repeated code patterns, conditional logic within loops, or similar implementations acros...

    ⛶
  • Consistent null safety patterns

    ant-design/ant-design
    Null Handling TSX
    5
    ⭐ 95882

    Maintain consistent approaches to null and undefined handling throughout the codebase. Use optional chainin...

    ⛶
  • Configuration documentation standards

    ant-design/ant-design
    Configurations Markdown
    5
    ⭐ 95882

    Ensure configuration properties and settings are documented with consistent formatting and precise specific...

    ⛶
  • avoid redundant operations

    angular/angular
    Performance Optimization TypeScript
    5
    ⭐ 98611

    Identify and eliminate redundant computations, function calls, and expensive operations that can be cached,...

    ⛶
  • API consistency patterns

    angular/angular
    API TypeScript
    5
    ⭐ 98611

    Ensure that similar APIs follow consistent patterns and conventions across the codebase. When designing or ...

    ⛶
  • AI documentation clarity

    angular/angular
    AI Markdown
    5
    ⭐ 98611

    Ensure AI-related documentation, comments, and explanations are clear, accurate, and well-structured. This ...

    ⛶
  • Add explanatory comments

    angular/angular
    Documentation TypeScript
    5
    ⭐ 98611

    Code should include explanatory comments when the purpose, behavior, or context is not immediately clear fr...

    ⛶
  • Write audience-appropriate documentation

    alacritty/alacritty
    Documentation Markdown
    5
    ⭐ 59675

    Documentation should be written from the perspective of its intended audience, using language and detail le...

    ⛶
  • prefer early returns

    alacritty/alacritty
    Code Style Rust
    5
    ⭐ 59675

    Use early returns and guard clauses to reduce nesting levels and improve code readability. When you have mu...

    ⛶
  • Configuration validation feedback

    alacritty/alacritty
    Configurations Rust
    5
    ⭐ 59675

    Always validate configuration options and provide clear feedback to users about potential issues. This incl...

    ⛶
  • Configuration documentation accuracy

    alacritty/alacritty
    Configurations Other
    5
    ⭐ 59675

    Ensure configuration documentation is accurate, consistent, and clearly indicates optional versus required ...

    ⛶
  • Avoid unwrap on nullables

    alacritty/alacritty
    Null Handling Rust
    5
    ⭐ 59675

    Never use `unwrap()` on nullable values that could reasonably be None, as this can cause crashes that are h...

    ⛶
  • avoid unnecessary operations

    alacritty/alacritty
    Performance Optimization Rust
    5
    ⭐ 59675

    Eliminate redundant work by implementing early returns, avoiding unnecessary clones/references, and skippin...

    ⛶
  • Validate nulls explicitly

    apache/airflow
    Null Handling Python
    5
    ⭐ 40858

    Always check for null values before using them, and use Python's idiomatic patterns to make these checks co...

    ⛶
  • Use system configuration defaults

    apache/airflow
    Configurations Python
    5
    ⭐ 40858

    Always use the configuration system's default values instead of hardcoding defaults in the code. This ensur...

    ⛶
  • Maintain code consistency

    apache/airflow
    Code Style TSX
    5
    ⭐ 40858

    Ensure consistency throughout the codebase by following established patterns for both UI components and cod...

    ⛶
  • Internationalize ui text

    apache/airflow
    Documentation TSX
    5
    ⭐ 40858

    All user interface text must be internationalized using the appropriate i18n module instead of hardcoded st...

    ⛶
  • Handle exceptions with specificity

    apache/airflow
    Error Handling Python
    5
    ⭐ 40858

    Use specific exception types and avoid masking errors through overly broad exception handling or default va...

    ⛶
  • Documentation best practices

    apache/airflow
    Documentation Other
    5
    ⭐ 40858

    Documentation should follow established best practices to ensure clarity, consistency, and usefulness: 1. ...

    ⛶
  • Verify properties before logging

    vercel/ai
    Logging TypeScript
    5
    ⭐ 15590

    When logging object properties, always verify that the property names exactly match the actual structure of...

    ⛶
  • Maintain API naming consistency

    vercel/ai
    AI TypeScript
    5
    ⭐ 15590

    When working with AI model interfaces and result objects, ensure consistent property naming across related ...

    ⛶
  • Document API schemas

    vercel/ai
    Documentation TypeScript
    5
    ⭐ 15590

    Add comprehensive JSDoc comments to all API interfaces, types, and schema definitions. This documentation s...

    ⛶
  • Consistent provider options

    vercel/ai
    API TypeScript
    5
    ⭐ 15590

    When designing APIs that support multiple providers or service integrations, implement consistent patterns ...

    ⛶
  • Documentation Must Explain

    colinhacks/zod
    Documentation TypeScript
    4
    ⭐ 42628

    Ensure inline docs and comments are accurate, clear, and justified: - **Match implementation defaults:** I...

    ⛶
  • Define Validation Contracts

    colinhacks/zod
    API Markdown
    4
    ⭐ 42628

    When adding/maintaining API validation schemas, make the input contract explicit: specify exactly what inpu...

    ⛶
  • Protect render loop performance

    zed-industries/zed
    Performance Optimization Rust
    4
    ⭐ 62119

    Ensure render loop operations stay within frame time budget (typically 16.67ms for 60fps). Avoid expensive ...

    ⛶
  • Contextualize don't panic

    zed-industries/zed
    Error Handling Rust
    4
    ⭐ 62119

    Always provide meaningful context for errors and avoid code that can panic in production. Use `.context()` ...

    ⛶
  • Background process blocking operations

    zed-industries/zed
    Concurrency Rust
    4
    ⭐ 62119

    Always move potentially blocking operations to background threads to maintain UI responsiveness. Use approp...

    ⛶
  • standardize build configurations

    facebook/yoga
    CI/CD Other
    4
    ⭐ 18255

    Ensure build configurations are consistently propagated through all build steps and output directories foll...

    ⛶
  • optimize memory layout

    facebook/yoga
    Algorithms Other
    4
    ⭐ 18255

    Prioritize memory-efficient data structures and algorithms by favoring stack allocation over heap allocatio...

    ⛶
  • Improve code readability

    facebook/yoga
    Code Style C++
    4
    ⭐ 18255

    Enhance code clarity and maintainability by applying several readability techniques: extract repeated expre...

    ⛶
  • explicit code declarations

    facebook/yoga
    Code Style Other
    4
    ⭐ 18255

    Always make code declarations explicit and consistent to improve readability and maintainability. This incl...

    ⛶
  • Evaluate synchronization necessity

    facebook/yoga
    Concurrency C++
    4
    ⭐ 18255

    Before implementing thread safety mechanisms like atomic operations or mutexes for global variables, critic...

    ⛶
  • Simplify conditional logic

    cloudflare/workers-sdk
    Code Style TypeScript
    4
    ⭐ 3379

    Prefer concise conditional expressions over verbose nested conditions and unnecessary boolean variables. Th...

    ⛶
  • ensure test isolation

    cloudflare/workers-sdk
    Testing TypeScript
    4
    ⭐ 3379

    Tests must be isolated and not leak state between runs. This includes properly cleaning up mocks, spies, an...

    ⛶
  • changeset validation standards

    cloudflare/workers-sdk
    CI/CD Markdown
    4
    ⭐ 3379

    Establish comprehensive validation for changesets to ensure reliable release automation. Changesets are req...

    ⛶
  • HTTP protocol compliance

    cloudflare/workerd
    Networking TypeScript
    4
    ⭐ 6989

    Ensure HTTP protocol implementations strictly follow RFC standards and handle edge cases correctly. This in...

    ⛶
  • Connection reuse safety

    cloudflare/workerd
    Networking JavaScript
    4
    ⭐ 6989

    When implementing network connection reuse, prioritize safety over performance by enforcing sequential requ...

    ⛶
  • Add explanatory comments

    cloudflare/workerd
    Documentation TypeScript
    4
    ⭐ 6989

    When code behavior, limitations, or implementation decisions are not immediately obvious from reading the c...

    ⛶
  • Use design tokens

    wavetermdev/waveterm
    Code Style Other
    4
    ⭐ 17328

    Centralize visual styles and prefer theme variables over hardcoded values. Motivation: duplicate hardcoded ...

    ⛶
  • Propagate errors clearly

    wavetermdev/waveterm
    Error Handling Go
    4
    ⭐ 17328

    Always return and propagate errors; surface them to callers and the UI, and clean up resources on error pat...

    ⛶
  • platform-specific config

    wavetermdev/waveterm
    Configurations TypeScript
    4
    ⭐ 17328

    Centralize OS-specific configuration and modifier mappings in a dedicated config/adapter module and documen...

    ⛶
  • SSE and Sync Eligibility

    warpdotdev/warp
    Networking Rust
    4
    ⭐ 56893

    When implementing networking/event-streaming and bidirectional sync, make event delivery correctness explic...

    ⛶
  • Secret and Inert Safety

    warpdotdev/warp
    Security Markdown
    4
    ⭐ 56893

    When handling auth secrets, user directory/path-based configuration, or shell-generated code, treat any val...

    ⛶
  • Invariant Diff Matching

    warpdotdev/warp
    Algorithms Rust
    4
    ⭐ 56893

    When implementing matching/diff logic (especially for code/entities), define and test the algorithmic invar...

    ⛶
  • Cache Key Consistency

    warpdotdev/warp
    Caching Rust
    4
    ⭐ 56893

    When you cache UI/model state, make the cache key and lifecycle unambiguous: - **Key boundary:** Perform t...

    ⛶
  • Validate before expensive operations

    microsoft/vscode
    Performance Optimization TypeScript
    4
    ⭐ 174887

    Perform lightweight validation checks before executing expensive operations to avoid unnecessary resource c...

    ⛶
  • Optimize algorithmic complexity first

    microsoft/vscode
    Algorithms TypeScript
    4
    ⭐ 174887

    When implementing algorithms, prioritize reducing computational complexity before adding special cases or o...

    ⛶
  • Handle configuration value changes

    microsoft/vscode
    Configurations TypeScript
    4
    ⭐ 174887

    Configuration values should be properly initialized and stay updated throughout their lifecycle. Follow the...

    ⛶
  • Comprehensive test structure

    volcano-sh/volcano
    Testing Go
    4
    ⭐ 4899

    Tests should focus on comprehensive coverage of main logic flows rather than trivial functions, use establi...

    ⛶
  • Always check errors

    volcano-sh/volcano
    Error Handling Go
    4
    ⭐ 4899

    Always check and handle errors returned from function calls, especially API operations, before proceeding w...

    ⛶
  • Document AI model capabilities

    vllm-project/vllm
    AI Markdown
    4
    ⭐ 51730

    Provide clear, comprehensive documentation for AI model capabilities, especially for multimodal features an...

    ⛶
  • Use parameterized queries

    vitessio/vitess
    Database Go
    4
    ⭐ 19815

    Always use parameterized queries with bind variables instead of string concatenation or formatting when con...

    ⛶
  • Standardize error wrapping patterns

    vitessio/vitess
    Error Handling Go
    4
    ⭐ 19815

    Use consistent error wrapping patterns to preserve error context and ensure proper error code propagation. ...

    ⛶
  • Metric design best practices

    vitessio/vitess
    Observability Go
    4
    ⭐ 19815

    Design metrics to be reliable and maintainable by following these key principles: 1. Initialize metrics wi...

    ⛶
  • Log levels and clarity

    vitessio/vitess
    Logging Go
    4
    ⭐ 19815

    Choose appropriate log levels and write clear, meaningful log messages that provide necessary context witho...

    ⛶
  • Explicit nil handling

    vitessio/vitess
    Null Handling Go
    4
    ⭐ 19815

    Always handle nil values explicitly in your code to improve clarity and prevent subtle bugs. When a functio...

    ⛶
  • Environment-portable configuration management

    vitessio/vitess
    Configurations Other
    4
    ⭐ 19815

    Ensure all configurations are environment-portable and follow current best practices for the target platfor...

    ⛶
  • Use optional patterns

    vitejs/vite
    Null Handling TypeScript
    4
    ⭐ 74031

    Choose the most appropriate pattern for handling potentially undefined or null values. When designing types...

    ⛶
  • Optimize glob operations

    vitejs/vite
    Algorithms TypeScript
    4
    ⭐ 74031

    When using glob patterns for file system operations, ensure optimal performance and consistent behavior by ...

    ⛶
  • Minimize memory allocations

    vitejs/vite
    Performance Optimization TypeScript
    4
    ⭐ 74031

    Choose methods and patterns that reduce unnecessary memory allocations and object creation to improve perfo...

    ⛶
  • Manage configuration inheritance carefully

    vitejs/vite
    Configurations TypeScript
    4
    ⭐ 74031

    When designing configuration systems, establish clear default values and inheritance patterns. Follow these...

    ⛶
  • Leverage native tooling

    vitejs/vite
    Performance Optimization Markdown
    4
    ⭐ 74031

    Prioritize native or Rust-based implementations of build tools over their JavaScript counterparts to signif...

    ⛶
  • Evolve APIs with compatibility

    vitejs/vite
    API TypeScript
    4
    ⭐ 74031

    When evolving APIs, maintain backwards compatibility while introducing new features by following a staged d...

    ⛶
  • Document code purposefully

    vitejs/vite
    Documentation TypeScript
    4
    ⭐ 74031

    High-quality code documentation improves maintainability and helps other developers understand your intenti...

    ⛶
  • Clean configuration organization

    vitejs/vite
    Configurations Json
    4
    ⭐ 74031

    Organize configuration settings logically and avoid redundancy in project configuration files. Group relate...

    ⛶
  • Break down complex functions

    vitejs/vite
    Code Style TypeScript
    4
    ⭐ 74031

    Improve code readability and maintainability by decomposing large, complex functions into smaller, focused ...

    ⛶
  • explicit null checks

    vlang/v
    Null Handling Other
    4
    ⭐ 36582

    Always verify that pointers and function return values are not null before dereferencing or using them. Thi...

    ⛶
  • Document algorithm behavior

    vlang/v
    Algorithms Markdown
    4
    ⭐ 36582

    When implementing or documenting algorithms, clearly specify their behavior, expected outputs, and usage pa...

    ⛶
  • Configure socket blocking behavior

    vlang/v
    Networking Other
    4
    ⭐ 36582

    Always explicitly configure socket blocking behavior when creating TCP connections, and provide compile-tim...

    ⛶
  • Use direct documentation style

    astral-sh/uv
    Documentation Markdown
    4
    ⭐ 60322

    Write documentation using direct, clear language that addresses the reader directly. Follow these style gui...

    ⛶
  • Respect connectivity state

    astral-sh/uv
    Networking Rust
    4
    ⭐ 60322

    Applications should gracefully handle different network connectivity states and provide appropriate feedbac...

    ⛶
  • Consistent authentication patterns

    astral-sh/uv
    API Markdown
    4
    ⭐ 60322

    Design API authentication mechanisms with consistent patterns, clear documentation, and helpful error messa...

    ⛶
  • Balance test performance considerations

    astral-sh/uv
    Testing Rust
    4
    ⭐ 60322

    When writing tests, consider both thoroughness and execution time. For operations with significant overhead...

    ⛶
  • optimize algorithmic complexity

    Unstructured-IO/unstructured
    Algorithms Python
    4
    ⭐ 12116

    When implementing algorithms, prioritize performance by avoiding unnecessary computations and choosing effi...

    ⛶
  • Document configuration reasoning

    Unstructured-IO/unstructured
    Configurations Other
    4
    ⭐ 12117

    Always document the reasoning behind configuration decisions, especially for temporary settings like depend...

    ⛶
  • Database schema compliance

    Unstructured-IO/unstructured
    Database Python
    4
    ⭐ 12117

    Ensure database integrations use correct field names, data types, and schema conventions specific to each d...

    ⛶
  • workspace dependency consistency

    unionlabs/union
    Configurations Toml
    4
    ⭐ 74800

    All internal project dependencies should use workspace configuration instead of direct path or git referenc...

    ⛶
  • Validate before type conversions

    unionlabs/union
    Null Handling Rust
    4
    ⭐ 74800

    Always validate input constraints and use safe conversion methods before performing type conversions that c...

    ⛶
  • Use structured logging fields

    unionlabs/union
    Logging Rust
    4
    ⭐ 74800

    Prefer structured logging fields over string formatting in tracing logs to improve searchability, parsing, ...

    ⛶
  • Effect-based API clients

    unionlabs/union
    API TypeScript
    4
    ⭐ 74800

    Use Effect-based HTTP clients with specific error types instead of throwing generic exceptions or relying o...

    ⛶
  • Configuration file completeness

    unionlabs/union
    Configurations Json
    4
    ⭐ 74800

    Ensure all configuration files contain required fields, maintain proper structure, and follow consistent fo...

    ⛶
  • API interface design

    unionlabs/union
    API Other
    4
    ⭐ 74800

    Design APIs with clean abstractions, logical data organization, and proper layer separation. Structure inte...

    ⛶
  • React rendering safeguards

    shadcn-ui/ui
    React TSX
    4
    ⭐ 90568

    This standard ensures your React components render correctly and efficiently, preventing common pitfalls th...

    ⛶
  • Provide actionable errors

    microsoft/typescript
    Error Handling TypeScript
    4
    ⭐ 105378

    Error messages should not only identify problems but also guide developers toward solutions. Include specif...

    ⛶
  • Preserve API compatibility first

    microsoft/typescript
    API TypeScript
    4
    ⭐ 105378

    When modifying existing APIs, maintain backwards compatibility by adding new overloads rather than directly...

    ⛶
  • Consistent type algorithms

    microsoft/typescript
    Algorithms Txt
    4
    ⭐ 105378

    Implement consistent algorithms for type compatibility and comparison across different data structures. Whe...

    ⛶
  • Cache expensive computed values

    microsoft/typescript
    Performance Optimization TypeScript
    4
    ⭐ 105378

    Cache frequently accessed or computed values to avoid redundant calculations and property lookups. This app...

    ⛶
  • API documentation clarity

    astral-sh/ty
    API Markdown
    4
    ⭐ 11919

    Ensure API documentation, including changelogs and feature descriptions, prioritizes user understanding ove...

    ⛶
  • Validate configuration consistency

    twentyhq/twenty
    Configurations TypeScript
    4
    ⭐ 35477

    Ensure configuration values have consistent defaults across all systems and validate configuration structur...

    ⛶
  • Avoid expensive repeated operations

    twentyhq/twenty
    Performance Optimization TypeScript
    4
    ⭐ 35477

    Identify and eliminate expensive operations that are performed repeatedly, such as object creation in loops...

    ⛶
  • Keep build tooling updated

    vercel/turborepo
    CI/CD Json
    4
    ⭐ 28115

    Maintain up-to-date build and CI/CD tooling to leverage the latest features, performance improvements, and ...

    ⛶
  • Define API boundaries

    vercel/turborepo
    API Other
    4
    ⭐ 28115

    Clearly specify what constitutes your public API contract to manage versioning expectations and documentati...

    ⛶
  • Configuration precision matters

    vercel/turborepo
    Configurations Json
    4
    ⭐ 28115

    Ensure configuration files are precise and stable to prevent unexpected build failures and runtime issues. ...

    ⛶
  • Choose logging levels wisely

    vercel/turborepo
    Logging Rust
    4
    ⭐ 28115

    Select appropriate logging levels based on the frequency and importance of the logged operation. Use `trace...

    ⛶
  • Boundary case handling

    vercel/turborepo
    Algorithms Rust
    4
    ⭐ 28115

    Always handle boundary conditions explicitly in algorithms to prevent unexpected behavior. When implementin...

    ⛶
  • validate algorithm boundaries

    tree-sitter/tree-sitter
    Algorithms C
    4
    ⭐ 21799

    Always validate boundary conditions and termination criteria in algorithms to prevent infinite loops, out-o...

    ⛶
  • Use meaningful prefixed names

    tree-sitter/tree-sitter
    Naming Conventions Other
    4
    ⭐ 21799

    Names should be semantically meaningful and properly prefixed to prevent namespace conflicts. In C, enum va...

    ⛶
  • Simplify conditional logic

    tree-sitter/tree-sitter
    Code Style C
    4
    ⭐ 21799

    Improve code readability by simplifying complex conditional expressions and control flow structures. Factor...

    ⛶
  • Respect environment overrides

    tree-sitter/tree-sitter
    Configurations Other
    4
    ⭐ 21799

    Build systems and configuration scripts must respect standard environment variables and provide proper over...

    ⛶
  • Provide clear error context

    tree-sitter/tree-sitter
    Error Handling Rust
    4
    ⭐ 21799

    Always provide meaningful, specific error messages that help users understand what went wrong and why. Use ...

    ⛶
  • parameter type clarity

    tree-sitter/tree-sitter
    API Rust
    4
    ⭐ 21799

    Design API parameters using specific, intention-revealing types rather than generic or ambiguous ones. This...

    ⛶
  • Optimize CI workflow syntax

    tree-sitter/tree-sitter
    CI/CD Yaml
    4
    ⭐ 21799

    Write cleaner and more maintainable CI/CD workflows by following established syntax patterns and best pract...

    ⛶
  • Conditional compilation guards

    tree-sitter/tree-sitter
    Configurations C
    4
    ⭐ 21799

    Always use appropriate preprocessor directives to guard platform-specific, version-dependent, or feature-sp...

    ⛶
  • validate input sanitization

    traefik/traefik
    Security Markdown
    4
    ⭐ 55772

    Always maintain input sanitization and validation mechanisms to prevent security vulnerabilities. Disabling...

    ⛶
  • Network information extraction

    traefik/traefik
    Networking Go
    4
    ⭐ 55772

    When extracting network information from connections (such as remote addresses, proxy IPs, or forwarded hea...

    ⛶
  • API interface simplification

    traefik/traefik
    API Go
    4
    ⭐ 55772

    Design APIs with clean, minimal interfaces that encapsulate internal logic and avoid exposing unnecessary c...

    ⛶
  • Secure unsafe code

    tokio-rs/tokio
    Security Rust
    4
    ⭐ 28989

    When working with unsafe code, follow these practices to minimize security vulnerabilities: 1. **Minimize ...

    ⛶
  • Optimize algorithmic efficiency

    tokio-rs/tokio
    Algorithms Rust
    4
    ⭐ 28981

    Pay careful attention to operations inside loops and recursive functions to avoid unexpected algorithmic co...

    ⛶
  • Memory ordering needs justification

    tokio-rs/tokio
    Concurrency Rust
    4
    ⭐ 28981

    When using atomic operations, explicitly justify the choice of memory ordering. Each use of a memory orderi...

    ⛶
  • Granular feature flags

    tokio-rs/tokio
    Configurations Toml
    4
    ⭐ 28981

    Feature flags should be designed with granularity to ensure dependencies are only required when absolutely ...

    ⛶
  • Document null safety assumptions

    tokio-rs/tokio
    Null Handling Rust
    4
    ⭐ 28981

    When writing code that handles potentially null, undefined, or uninitialized values, always document safety...

    ⛶
  • Code block formatting standards

    tokio-rs/tokio
    Documentation Markdown
    4
    ⭐ 28981

    When documenting code examples and shell commands in project documentation, follow these formatting standar...

    ⛶
  • Prefer explicit API design

    huggingface/tokenizers
    API Rust
    4
    ⭐ 9868

    When designing APIs, favor simple and explicit interfaces over flexible but complex ones. This reduces cogn...

    ⛶
  • Choose semantically clear identifiers

    huggingface/tokenizers
    Naming Conventions Rust
    4
    ⭐ 9868

    Select parameter and method names that accurately describe their purpose and behavior, avoiding ambiguous t...

    ⛶
  • Choose optimal data structures

    huggingface/tokenizers
    Algorithms Rust
    4
    ⭐ 9868

    Select data structures based on their algorithmic complexity and usage patterns. Consider the tradeoffs bet...

    ⛶
  • Resource cleanup on errors

    hashicorp/terraform
    Error Handling Go
    4
    ⭐ 45532

    Always ensure proper resource cleanup in error paths to prevent leaks. Use defer functions with explicit er...

    ⛶
  • Guard shared state

    hashicorp/terraform
    Concurrency Go
    4
    ⭐ 45532

    Consistently protect shared state with appropriate synchronization mechanisms and ensure proper cleanup to ...

    ⛶
  • Explicit protocol interfaces

    hashicorp/terraform
    API Other
    4
    ⭐ 45532

    Design protocol interfaces with explicit behavior definitions rather than relying on implicit conventions. ...

    ⛶
  • Ensure test isolation

    hashicorp/terraform
    Testing Go
    4
    ⭐ 45532

    Tests should be completely isolated from each other and clean up after themselves to prevent interference. ...

    ⛶
  • Consistent documentation formatting

    hashicorp/terraform
    Code Style Other
    4
    ⭐ 45532

    Maintain consistent style in documentation files to improve readability and professionalism. Specifically: ...

    ⛶
  • Configuration override precedence

    hashicorp/terraform
    Configurations Go
    4
    ⭐ 45532

    When designing systems with configurations that can be specified at multiple levels (global vs local, envir...

    ⛶
  • Clarify test documentation

    hashicorp/terraform
    Testing Other
    4
    ⭐ 45532

    Ensure all testing-related documentation is clear, accurate, and user-focused. Use precise terminology when...

    ⛶
  • Choose appropriate API types

    hashicorp/terraform
    API Go
    4
    ⭐ 45532

    Select the simplest data types that satisfy requirements when designing API signatures. Avoid using complex...

    ⛶
  • Validate before configuration generation

    microsoft/terminal
    Configurations C++
    4
    ⭐ 99242

    Always validate system capabilities and existing configuration state before generating new configuration en...

    ⛶
  • Safe optional handling

    microsoft/terminal
    Null Handling C++
    4
    ⭐ 99242

    Always use safe patterns when working with optional, nullable, or potentially empty types. Avoid direct com...

    ⛶
  • Safe null handling patterns

    microsoft/terminal
    Null Handling Other
    4
    ⭐ 99242

    Always use consistent and safe patterns when dealing with potentially null or undefined values. This includ...

    ⛶
  • Reuse defined resources consistently

    microsoft/terminal
    Code Style Other
    4
    ⭐ 99242

    Always reuse existing defined constants, resources, and reusable components instead of duplicating values o...

    ⛶
  • Minimize reference counting overhead

    microsoft/terminal
    Performance Optimization Other
    4
    ⭐ 99242

    Avoid unnecessary reference counting operations that can impact performance, especially in frequently calle...

    ⛶
  • Implement defensive validation

    microsoft/terminal
    Error Handling C++
    4
    ⭐ 99242

    Always validate inputs, check boundaries, and avoid relying on undocumented API behavior or assumptions abo...

    ⛶
  • API parameter explicitness

    microsoft/terminal
    API C++
    4
    ⭐ 99242

    Always use correct and explicit parameters when calling APIs, rather than relying on defaults or passing in...

    ⛶
  • Tensor-aware control flow

    tensorflow/tensorflow
    AI Python
    4
    ⭐ 190625

    When working with TensorFlow tensors, avoid using Python comparison operators (`<`, `>=`, `==`) or conditio...

    ⛶
  • Complete docstring structure

    tensorflow/tensorflow
    Documentation Python
    4
    ⭐ 190625

    Function documentation should follow a consistent structure that includes all necessary components to be co...

    ⛶
  • Centralize configuration settings

    tensorflow/tensorflow
    Configurations Other
    4
    ⭐ 190625

    Place configuration settings in centralized, appropriate locations rather than duplicating them across mult...

    ⛶
  • Trust GetX accessors

    temporalio/temporal
    Null Handling Go
    4
    ⭐ 14953

    When working with protocol buffer messages or similar objects that provide GetX() accessor methods, avoid r...

    ⛶
  • Safe lock usage patterns

    temporalio/temporal
    Concurrency Go
    4
    ⭐ 14953

    Follow these critical patterns when using locks to prevent deadlocks, resource leaks, and performance issue...

    ⛶
  • Ensure deterministic execution

    temporalio/temporal
    Temporal Go
    4
    ⭐ 14953

    When working with Temporal workflows, maintaining deterministic behavior is critical for reliable replay an...

    ⛶
  • Dynamic config usage principles

    temporalio/temporal
    Configurations Go
    4
    ⭐ 14953

    Use dynamic configuration selectively and effectively by following these principles: 1. Only use dynamic c...

    ⛶
  • Consistent naming patterns

    temporalio/temporal
    Naming Conventions Other
    4
    ⭐ 14953

    Maintain consistent naming patterns across related components and services. When implementing equivalent fu...

    ⛶
  • Synchronization primitive selection

    gravitational/teleport
    Concurrency Go
    4
    ⭐ 19109

    Choose appropriate synchronization primitives and ensure proper protection of shared state to avoid race co...

    ⛶
  • prefer simpler patterns

    gravitational/teleport
    Code Style TSX
    4
    ⭐ 19109

    Choose simpler, more readable code patterns over complex alternatives to improve maintainability and reduce...

    ⛶
  • Optimize computational complexity

    gravitational/teleport
    Algorithms Go
    4
    ⭐ 19109

    Always analyze the computational complexity of algorithms and choose efficient implementations to avoid per...

    ⛶
  • Authenticated health checks

    gravitational/teleport
    Networking Markdown
    4
    ⭐ 19109

    When implementing health checks for external services, verify the complete communication stack rather than ...

    ⛶
  • Add contextual logging

    gravitational/teleport
    Logging Go
    4
    ⭐ 19109

    Add informative log messages with sufficient context to help operators diagnose issues, understand system s...

    ⛶
  • Mathematical precision matters

    tensorflow/swift
    Algorithms Markdown
    4
    ⭐ 6136

    When implementing mathematical algorithms, ensure precise terminology and correct implementation of mathema...

    ⛶
  • Document environment variables

    tensorflow/swift
    Configurations Other
    4
    ⭐ 6136

    When using configurable components, clearly document all relevant environment variables and their effects. ...

    ⛶
  • state boundary management

    sveltejs/svelte
    React Markdown
    4
    ⭐ 83580

    Ensure proper state management when passing reactive values across component and function boundaries. State...

    ⛶
  • Simplify and deduplicate code

    sveltejs/svelte
    Code Style TypeScript
    4
    ⭐ 83580

    Write concise, non-redundant code by eliminating unnecessary duplication and using simpler syntax where pos...

    ⛶
  • Documentation clarity standards

    sveltejs/svelte
    Vue Markdown
    4
    ⭐ 83580

    Ensure technical documentation clearly distinguishes between similar but different concepts, uses precise l...

    ⛶
  • Complete code examples

    sveltejs/svelte
    Code Style Markdown
    4
    ⭐ 83580

    Ensure all code examples are complete, functional, and accurately demonstrate the intended concepts. Code e...

    ⛶
  • API flexibility balance

    sveltejs/svelte
    API JavaScript
    4
    ⭐ 83580

    When designing APIs, carefully balance simplicity for common use cases with flexibility for advanced scenar...

    ⛶
  • Secure authentication flows

    supabase/supabase
    API Other
    4
    ⭐ 86070

    Design APIs with secure authentication flows by following proper error handling and documentation practices...

    ⛶
  • Protect sensitive API keys

    supabase/supabase
    Security Other
    4
    ⭐ 86070

    Never expose keys with elevated privileges (such as `service_role` or secret keys) in client-side code. The...

    ⛶
  • Pin dependency versions

    supabase/supabase
    Configurations Other
    4
    ⭐ 86070

    Always specify exact versions for dependencies in your configuration files and import statements to ensure ...

    ⛶
  • Maintain network controls

    supabase/supabase
    Networking Other
    4
    ⭐ 86070

    Create maintainable and clearly documented network access controls. Instead of hardcoding network restricti...

    ⛶
  • Maintain code consistency

    supabase/supabase
    Code Style Other
    4
    ⭐ 86070

    Ensure consistent code organization, naming conventions, and structure throughout the codebase: 1. Use ide...

    ⛶
  • Handle external operations safely

    supabase/supabase
    Error Handling TypeScript
    4
    ⭐ 86070

    Always implement explicit error handling for external operations such as network requests, database queries...

    ⛶
  • Follow hooks rules

    supabase/supabase
    React TSX
    4
    ⭐ 86070

    Adhere strictly to React hooks rules and best practices to ensure your components behave correctly and pred...

    ⛶
  • Document intent clearly

    supabase/supabase
    Documentation TSX
    4
    ⭐ 86070

    Add clear documentation that explains not just what code does, but why certain approaches were chosen. This...

    ⛶
  • organize code properly

    browserbase/stagehand
    Code Style TypeScript
    4
    ⭐ 16443

    Maintain clear code organization by placing code in appropriate files, directories, and modules. Respect mo...

    ⛶
  • API parameter design

    browserbase/stagehand
    API TypeScript
    4
    ⭐ 16443

    Design API methods with structured object parameters instead of ordered parameters or loose typing. Use pro...

    ⛶
  • Use environment-independent defaults

    spring-projects/spring-framework
    Configurations Java
    4
    ⭐ 58382

    When designing configuration options, avoid relying on environment-specific defaults such as system charact...

    ⛶
  • Spring annotation best practices

    spring-projects/spring-framework
    Spring Other
    4
    ⭐ 58382

    When working with Spring annotations, follow these guidelines to avoid common issues: 1. **Use interface t...

    ⛶
  • Minimize lock contention

    spring-projects/spring-framework
    Concurrency Java
    4
    ⭐ 58382

    When implementing thread-safe code, minimize the scope and duration of locks to reduce contention and impro...

    ⛶
  • Consistent style conventions

    spring-projects/spring-framework
    Code Style Other
    4
    ⭐ 58382

    Apply consistent formatting and organization conventions throughout the codebase to enhance readability and...

    ⛶
  • Explicit security documentation

    spring-projects/spring-boot
    Security Other
    4
    ⭐ 77637

    Always provide explicit and accurate documentation for security-related configurations, including: 1. Use ...

    ⛶
  • Session-specific configuration access

    apache/spark
    Configurations Other
    4
    ⭐ 41554

    Always access configuration through the appropriate session context rather than using global configuration ...

    ⛶
  • self-documenting code practices

    apache/spark
    Documentation Other
    4
    ⭐ 41554

    Write code that explains itself through clear structure and meaningful names, while adding targeted comment...

    ⛶
  • Resource cleanup responsibility

    apache/spark
    Error Handling Other
    4
    ⭐ 41554

    Ensure proper resource management by clearly defining cleanup responsibilities and implementing robust clea...

    ⛶
  • Externalize configuration values

    apache/spark
    Configurations Python
    4
    ⭐ 41554

    Avoid hardcoding configuration values directly in code. Instead, make them externally configurable through ...

    ⛶
  • avoid null in Scala

    apache/spark
    Null Handling Other
    4
    ⭐ 41554

    Avoid using null values in Scala code and prefer Option types for representing optional values. Null usage ...

    ⛶
  • Use existing API utilities

    SigNoz/signoz
    API TSX
    4
    ⭐ 23369

    Always leverage existing utility hooks, constants, and navigation methods instead of implementing manual so...

    ⛶
  • REST API conventions

    SigNoz/signoz
    API Go
    4
    ⭐ 23369

    Follow standard REST API conventions for HTTP methods, status codes, endpoint structure, and response compl...

    ⛶
  • ensure migration idempotency

    SigNoz/signoz
    Migrations Go
    4
    ⭐ 23369

    Database migrations must be designed to run safely multiple times without causing errors or data corruption...

    ⛶
  • Avoid inline styles

    SigNoz/signoz
    Code Style TSX
    4
    ⭐ 23369

    Move all inline styles to dedicated CSS/SCSS files to improve maintainability, consistency, and separation ...

    ⛶
  • Verify algorithmic correctness

    sgl-project/sglang
    Algorithms Python
    4
    ⭐ 17245

    Ensure algorithmic implementations are correct before applying optimizations or complex conditional logic. ...

    ⛶
  • Use Optional types safely

    sgl-project/sglang
    Null Handling Python
    4
    ⭐ 17245

    Always use proper nullable type annotations and safe access patterns to prevent runtime errors from null/un...

    ⛶
  • Prevent race conditions

    sgl-project/sglang
    Concurrency Python
    4
    ⭐ 17245

    Ensure atomic operations and proper synchronization when multiple threads or processes access shared state....

    ⛶
  • Optimize cache performance

    sgl-project/sglang
    Caching Python
    4
    ⭐ 17245

    Prioritize cache performance by leveraging proven optimization techniques and avoiding performance anti-pat...

    ⛶
  • standardize log output methods

    serverless/serverless
    Logging JavaScript
    4
    ⭐ 46810

    Use `process.stdout.write` instead of `console.log` for controlled logging output to avoid linter issues an...

    ⛶
  • Use semantically meaningful names

    oraios/serena
    Naming Conventions Python
    4
    ⭐ 14465

    Choose names that clearly convey purpose and intent rather than generic or ambiguous terms. Prefer specific...

    ⛶
  • Use proper logging practices

    oraios/serena
    Logging Python
    4
    ⭐ 14465

    Always use logging instead of print statements, and choose appropriate log levels to avoid log spam. Print ...

    ⛶
  • explicit None handling

    oraios/serena
    Null Handling Python
    4
    ⭐ 14465

    When operations cannot complete successfully or return meaningful results, explicitly return None rather th...

    ⛶
  • Exception chaining practices

    oraios/serena
    Error Handling Python
    4
    ⭐ 14465

    Always use exception chaining with `raise ... from e` when re-raising or wrapping exceptions to preserve th...

    ⛶
  • Ensure complete documentation quality

    oraios/serena
    Documentation Python
    4
    ⭐ 14465

    Documentation should be comprehensive, clear, and provide all necessary context for understanding and using...

    ⛶
  • Thread management best practices

    getsentry/sentry
    Concurrency Python
    4
    ⭐ 41297

    When working with threads or thread pools in concurrent code, follow these practices to improve reliability...

    ⛶
  • Raise contextual error types

    getsentry/sentry
    Error Handling Python
    4
    ⭐ 41297

    Always raise specific, contextual exception types instead of generic exceptions. Include relevant error det...

    ⛶
  • Precise dependency versioning

    getsentry/sentry-php
    Configurations Json
    4
    ⭐ 1873

    When specifying dependency version constraints in configuration files, be deliberate about minimum versions...

    ⛶
  • Include practical examples

    getsentry/sentry-php
    Documentation Markdown
    4
    ⭐ 1873

    Enhance technical documentation with clear, practical code examples that demonstrate usage. This applies to...

    ⛶
  • Flexible configuration formats

    getsentry/sentry-php
    Configurations PHP
    4
    ⭐ 1873

    Support multiple configuration formats where appropriate (string, callable, object) to accommodate differen...

    ⛶
  • Balance CI test coverage

    getsentry/sentry-php
    CI/CD Yaml
    4
    ⭐ 1873

    Configure CI workflows to optimize both comprehensive testing and resource usage. For resource-intensive te...

    ⛶
  • Optimize React hook patterns

    getsentry/sentry
    React TSX
    4
    ⭐ 41297

    Design React hooks with performance and maintainability in mind by following these key principles: 1. Mini...

    ⛶
  • Explicit optional type declarations

    getsentry/sentry
    Null Handling TSX
    4
    ⭐ 41297

    Always explicitly declare optional types in interfaces and function parameters rather than relying on runti...

    ⛶
  • validate environment variable usage

    semgrep/semgrep
    Configurations Python
    4
    ⭐ 12598

    Always validate environment variables with proper fallback logic and avoid unnecessary usage in tests or wh...

    ⛶
  • Use appropriate log levels

    semgrep/semgrep
    Logging Other
    4
    ⭐ 12598

    Choose log levels based on the intended audience to prevent user-visible noise. Most logging should use `Lo...

    ⛶
  • Simplify complex logic

    semgrep/semgrep
    Code Style Python
    4
    ⭐ 12598

    Break down complex code structures into simpler, more readable forms. Long indented blocks, verbose conditi...

    ⛶
  • Document configuration choices

    semgrep/semgrep
    Configurations Other
    4
    ⭐ 12598

    Add explanatory comments for non-obvious configuration settings, especially when they deviate from defaults...

    ⛶
  • Document code purpose

    semgrep/semgrep
    Documentation Python
    4
    ⭐ 12598

    Ensure that code elements have clear documentation explaining their purpose, behavior, and context. This in...

    ⛶
  • Design consistent tracing interfaces

    semgrep/semgrep
    Observability Other
    4
    ⭐ 12598

    When implementing observability features like tracing, prioritize consistent and extensible API design. Use...

    ⛶
  • CI workflow optimization

    semgrep/semgrep
    CI/CD Yaml
    4
    ⭐ 12598

    Optimize CI/CD workflows by prioritizing reliability over convenience and leveraging built-in platform feat...

    ⛶
  • Benchmark performance assumptions

    semgrep/semgrep
    Performance Optimization Other
    4
    ⭐ 12598

    Always validate performance concerns with actual measurements before making optimization decisions. Avoid m...

    ⛶
  • Add CI safety checks

    semgrep/semgrep
    CI/CD Other
    4
    ⭐ 12598

    Implement defensive checks and error handling in CI/CD workflows to prevent failures and ensure robust oper...

    ⛶
  • Ensure deterministic resume behavior

    strands-agents/sdk-python
    Temporal Python
    4
    ⭐ 4044

    When implementing persistence and resume functionality in durable execution systems, ensure that state is p...

    ⛶
  • Extract complex logic helpers

    rust-lang/rust
    Code Style Rust
    4
    ⭐ 105254

    Complex or duplicated logic should be extracted into well-named helper functions to improve code readabilit...

    ⛶
  • Contextual error messages

    rust-lang/rust
    Error Handling Other
    4
    ⭐ 105254

    Error messages should provide specific context about the error and guide users toward solutions. When repor...

    ⛶
  • Structure configuration options

    dotnet/runtime
    Configurations C++
    4
    ⭐ 16578

    Design and document configuration options (feature flags, environment variables, conditional compilation) t...

    ⛶
  • Maintain consistent formatting

    dotnet/runtime
    Code Style Other
    4
    ⭐ 16578

    Ensure consistent formatting and organization throughout the codebase to improve readability and maintainab...

    ⛶
  • Decompose complex algorithms

    dotnet/runtime
    Algorithms C
    4
    ⭐ 16578

    When implementing algorithms, break down complex methods that handle multiple concerns into smaller, more f...

    ⛶
  • Choose appropriate error mechanisms

    dotnet/runtime
    Error Handling C++
    4
    ⭐ 16578

    Use the right error handling mechanism for each scenario: exceptions for recoverable situations, assertions...

    ⛶
  • Support configuration extension patterns

    astral-sh/ruff
    Configurations Rust
    4
    ⭐ 40619

    When designing configuration systems, provide both replacement and extension options for list-based setting...

    ⛶
  • Maintain focused module structure

    astral-sh/ruff
    Code Style Rust
    4
    ⭐ 40619

    Keep modules focused and well-organized by grouping related functionality together and splitting large file...

    ⛶
  • Leverage existing API utilities

    astral-sh/ruff
    API Rust
    4
    ⭐ 40619

    When implementing or consuming APIs, always prefer using existing utility methods and abstractions over man...

    ⛶
  • test real user interactions

    TanStack/router
    Testing TSX
    4
    ⭐ 11590

    Write tests that simulate actual user behavior and verify real rendering outcomes rather than testing imple...

    ⛶
  • Maintain backward compatibility

    TanStack/router
    API TSX
    4
    ⭐ 11590

    When evolving APIs, always maintain backward compatibility to avoid breaking existing user code. Support bo...

    ⛶
  • Ensure documentation clarity

    TanStack/router
    Documentation Markdown
    4
    ⭐ 11590

    Documentation should be clear, accurate, and consistently structured to provide maximum value to developers...

    ⛶
  • API backward compatibility

    TanStack/router
    API Markdown
    4
    ⭐ 11590

    When updating existing APIs, maintain backward compatibility by deprecating old options rather than introdu...

    ⛶
  • Robust error handling

    RooCodeInc/Roo-Code
    Error Handling TSX
    4
    ⭐ 17288

    Implement comprehensive error handling to prevent crashes and aid debugging. This includes: 1. **Use try/c...

    ⛶
  • Prevent unnecessary processing

    RooCodeInc/Roo-Code
    Performance Optimization TSX
    4
    ⭐ 17288

    Optimize React component performance by minimizing unnecessary operations that can slow down your applicati...

    ⛶
  • Optimize React components

    RooCodeInc/Roo-Code
    React TSX
    4
    ⭐ 17288

    Apply these React optimization techniques to improve component performance and maintainability: 1. **Use s...

    ⛶
  • Optimize algorithm implementations

    RooCodeInc/Roo-Code
    Algorithms TypeScript
    4
    ⭐ 17288

    When implementing algorithms, ensure they are both efficient and correct across all input cases. Key consid...

    ⛶
  • Names reflect semantic purpose

    RooCodeInc/Roo-Code
    Naming Conventions TSX
    4
    ⭐ 17288

    Identifiers (variables, properties, keys, IDs) should accurately reflect their semantic purpose and context...

    ⛶
  • Consistent output path specification

    RooCodeInc/Roo-Code
    Configurations Xml
    4
    ⭐ 17288

    Configuration files defining operations that generate data outputs must always include a `` elemen...

    ⛶
  • Configuration consistency check

    RooCodeInc/Roo-Code
    Configurations Other
    4
    ⭐ 17288

    Ensure that configuration files and settings are consistent with their intended functionality and maintain ...

    ⛶
  • Conditional debug logging

    RooCodeInc/Roo-Code
    Logging TSX
    4
    ⭐ 17288

    Remove or conditionally disable console.log and console.debug statements before committing code to producti...

    ⛶
  • model-appropriate configuration

    smallcloudai/refact
    AI Python
    4
    ⭐ 3114

    Ensure AI models use configuration settings that match their specific architecture and requirements. Differ...

    ⛶
  • Required API Partitioning

    redis/redis
    API Markdown
    4
    ⭐ 74261

    When designing cluster APIs/specs, explicitly partition endpoints into categories by *actor* and *compatibi...

    ⛶
  • Header Organization And Comments

    redis/redis
    Code Style Other
    4
    ⭐ 74261

    Keep header edits readable and durable: 1) Don’t write brittle comments - Avoid referencing exact line num...

    ⛶
  • Deterministic Control-Plane Protocols

    redis/redis
    Algorithms Markdown
    4
    ⭐ 74261

    When multiple agents participate in cluster control-plane updates (e.g., TD, FC, nodes), treat the protocol...

    ⛶
  • Atomic Contracts Enforcement

    redis/redis
    Concurrency Other
    4
    ⭐ 74261

    Define and enforce atomicity as an explicit contract: if correctness depends on thread/writer invariants, e...

    ⛶
  • Simplify configuration setup

    remix-run/react-router
    Configurations JavaScript
    4
    ⭐ 55270

    Avoid redundant configuration parameters and prefer automated solutions over manual maintenance. Remove con...

    ⛶
  • Provide explicit error handling

    remix-run/react-router
    Error Handling TypeScript
    4
    ⭐ 55270

    Create custom, descriptive errors instead of allowing external dependencies or systems to fail with generic...

    ⛶
  • prefer built-in React types

    remix-run/react-router
    React TypeScript
    4
    ⭐ 55270

    Favor React's built-in types over custom interfaces when possible, and consolidate to standard library type...

    ⛶
  • API backward compatibility

    remix-run/react-router
    API TSX
    4
    ⭐ 55270

    When evolving APIs, maintain backward compatibility by preserving existing public interfaces while adding n...

    ⛶
  • Optimize hot paths

    facebook/react
    Performance Optimization JavaScript
    4
    ⭐ 237000

    In performance-critical code paths that execute frequently, optimize to reduce unnecessary operations that ...

    ⛶
  • proper synchronization practices

    facebook/react-native
    Concurrency Kotlin
    4
    ⭐ 123178

    Ensure thread safety by using appropriate synchronization mechanisms and understanding thread context. When...

    ⛶
  • preserve component patterns

    facebook/react-native
    React JavaScript
    4
    ⭐ 123178

    When refactoring React components, maintain essential component patterns including type annotations, ref fo...

    ⛶
  • organize tests clearly

    facebook/react-native
    Testing JavaScript
    4
    ⭐ 123178

    Structure tests with clear organization, focused scope, and minimal duplication to improve maintainability ...

    ⛶
  • optimize algorithmic efficiency

    facebook/react-native
    Algorithms Java
    4
    ⭐ 123178

    When implementing algorithms, especially in performance-critical paths like scroll handlers or layout metho...

    ⛶
  • minimize public API surface

    facebook/react-native
    API Other
    4
    ⭐ 123178

    Carefully evaluate whether functionality needs to be exposed as public API. Keep implementations private wh...

    ⛶
  • Eliminate unnecessary computations

    facebook/react-native
    Algorithms Other
    4
    ⭐ 123178

    Identify and remove redundant operations, unnecessary copies, and repeated computations that add algorithmi...

    ⛶
  • descriptive specific naming

    facebook/react-native
    Naming Conventions JavaScript
    4
    ⭐ 123178

    Use descriptive and specific names that clearly communicate purpose and context. Method names should indica...

    ⛶
  • dependency management strategy

    facebook/react-native
    Configurations Json
    4
    ⭐ 123178

    When configuring dependencies in package.json, follow these strategic principles to ensure stable and maint...

    ⛶
  • Avoid synchronous main dispatch

    facebook/react-native
    Concurrency Other
    4
    ⭐ 123178

    Avoid using `RCTUnsafeExecuteOnMainQueueSync` and similar synchronous main queue dispatch methods as they c...

    ⛶
  • Balance constraints with flexibility

    facebook/react
    API JavaScript
    4
    ⭐ 237000

    When designing APIs, carefully evaluate constraints imposed on consumers. Each limitation should serve a cl...

    ⛶
  • Understand query method behavior

    rails/rails
    Database Markdown
    4
    ⭐ 57027

    When working with database queries in Active Record, it's essential to understand the precise behavior of q...

    ⛶
  • Optimize cache headers

    rails/rails
    Caching Other
    4
    ⭐ 57027

    Use appropriate HTTP cache headers based on content mutability. For immutable assets (like digest-stamped f...

    ⛶
  • Human-readable configuration values

    rails/rails
    Configurations Other
    4
    ⭐ 57027

    When writing configuration files, prioritize human readability and maintainability by using descriptive exp...

    ⛶
  • Efficient data processing

    rails/rails
    Algorithms Ruby
    4
    ⭐ 57027

    When implementing algorithms that process large data streams or collections, use a chunking approach rather...

    ⛶
  • Contextual error messages

    rails/rails
    Error Handling Ruby
    4
    ⭐ 57027

    Error messages should provide sufficient context to understand and debug the problem efficiently. Include b...

    ⛶
  • Content security policy configuration

    rails/rails
    Security Ruby
    4
    ⭐ 57027

    Implement Content Security Policy (CSP) configurations appropriately for your application's context. Use re...

    ⛶
  • UseEffect Dependency Correctness

    infiniflow/ragflow
    React TSX
    4
    ⭐ 80174

    Side effects must be written with the correct React lifecycle mental model: `useEffect` runs after render/c...

    ⛶
  • Token and Prompt Fidelity

    infiniflow/ragflow
    AI Python
    4
    ⭐ 80174

    When implementing LLM/AI APIs (including streaming), treat three things as contract-critical: (1) compute t...

    ⛶
  • Strict External API Validation

    infiniflow/ragflow
    Error Handling Go
    4
    ⭐ 80174

    When integrating with external AI/HTTP APIs, treat both transport errors and payload validity as first-clas...

    ⛶
  • HTTP Timeout Strategy

    infiniflow/ragflow
    Networking Go
    4
    ⭐ 80174

    Standardize how you apply timeouts for outbound HTTP requests. - If the shared `http.Client` already sets ...

    ⛶
  • Validate database connections explicitly

    quarkusio/quarkus
    Database Java
    4
    ⭐ 14667

    Always implement explicit database connection validation strategies to ensure robust application behavior d...

    ⛶
  • Secure authentication defaults

    quarkusio/quarkus
    Security Java
    4
    ⭐ 14667

    Configure authentication mechanisms with secure default settings to prevent security vulnerabilities. When ...

    ⛶
  • Documentation style consistency

    quarkusio/quarkus
    Documentation Other
    4
    ⭐ 14667

    Maintain consistent documentation style to improve readability and user experience: 1. **Use precise termi...

    ⛶
  • Avoid wildcard imports

    quarkusio/quarkus
    Code Style Java
    4
    ⭐ 14667

    Wildcard (star) imports like `import java.util.*;` are prohibited in the codebase as they reduce code reada...

    ⛶
  • Avoid unnecessary allocations

    quarkusio/quarkus
    Performance Optimization Java
    4
    ⭐ 14667

    Minimize object creation and memory allocations, especially in frequently called methods and hot code paths...

    ⛶
  • Automate style enforcement

    quarkusio/quarkus
    Code Style Xml
    4
    ⭐ 14667

    Implement automated code style enforcement using complementary tools rather than relying on manual reviews....

    ⛶
  • Optimize memory usage

    pytorch/pytorch
    Performance Optimization C++
    4
    ⭐ 91345

    Limit memory consumption in performance-critical paths by conditionally creating large data structures or d...

    ⛶
  • Normalize configuration parameters

    pytorch/pytorch
    Configurations Python
    4
    ⭐ 91345

    Always normalize configuration inputs (especially environment variables) by removing whitespace and applyin...

    ⛶
  • Eliminate redundant operations

    pytorch/pytorch
    Performance Optimization Python
    4
    ⭐ 91345

    Avoid unnecessary operations that can impact performance. This includes: 1. Redundant data transformations...

    ⛶
  • Design for compatibility

    pytorch/pytorch
    API C++
    4
    ⭐ 91345

    When evolving APIs, prioritize backward compatibility to minimize disruption for existing users. Add new fu...

    ⛶
  • Choose appropriate exceptions

    pytorch/pytorch
    Error Handling C++
    4
    ⭐ 91345

    Select the proper exception type based on the error scenario to provide clearer error handling and better d...

    ⛶
  • Validate Security Inputs

    TheAlgorithms/Python
    Security Python
    4
    ⭐ 220912

    Security-sensitive code should *fail fast* with explicit validation of inputs and security parameters. That...

    ⛶
  • Write targeted, specific tests

    pydantic/pydantic
    Testing Python
    4
    ⭐ 24377

    Tests should validate specific, well-defined behaviors with clear assertions that directly relate to what's...

    ⛶
  • Simple defaults, flexible overrides

    pydantic/pydantic
    API Python
    4
    ⭐ 24377

    Design APIs with intuitive defaults for common use cases while providing specialized options for edge cases...

    ⛶
  • Semantic over syntactic

    pydantic/pydantic
    Naming Conventions Python
    4
    ⭐ 24377

    Choose names that clearly communicate the purpose and behavior of your code elements, focusing on semantic ...

    ⛶
  • Safe attribute access pattern

    pydantic/pydantic
    Null Handling Python
    4
    ⭐ 24377

    Always use safe attribute access patterns to handle potentially null or undefined attributes. Instead of di...

    ⛶
  • Document configuration relationships

    pydantic/pydantic
    Configurations Python
    4
    ⭐ 24377

    When designing configuration options that interact with each other, clearly document these relationships an...

    ⛶
  • Consistent configuration patterns

    pydantic/pydantic
    Configurations Markdown
    4
    ⭐ 24377

    When working with configurations in Pydantic models, maintain consistency by using `ConfigDict()` instead o...

    ⛶
  • Balance documentation thoroughness

    pydantic/pydantic
    Documentation Markdown
    4
    ⭐ 24377

    Documentation should balance completeness with avoiding redundancy. When documenting complex features: 1. ...

    ⛶
  • Service layer abstraction

    prowler-cloud/prowler
    API Python
    4
    ⭐ 11834

    Separate business logic and external service interactions from API views by using dedicated service layers....

    ⛶
  • Parameterize security commands

    prowler-cloud/prowler
    Security Json
    4
    ⭐ 11834

    When writing security-related CLI commands or remediation steps, always use standardized parameter placehol...

    ⛶
  • Memory usage optimization

    prowler-cloud/prowler
    Performance Optimization Python
    4
    ⭐ 11834

    Optimize memory usage in high-performance applications by implementing explicit memory management technique...

    ⛶
  • Maintain component consistency

    prowler-cloud/prowler
    Code Style TSX
    4
    ⭐ 11834

    Use a consistent approach when working with components to improve code maintainability and ensure visual co...

    ⛶
  • Ensure migration compatibility

    prowler-cloud/prowler
    Migrations Python
    4
    ⭐ 11834

    When modifying database schemas through migrations, ensure compatibility with existing data. For new requir...

    ⛶
  • Document configuration variables

    prowler-cloud/prowler
    Configurations Markdown
    4
    ⭐ 11834

    Always provide complete documentation for configuration variables, including their exact format, purpose, a...

    ⛶
  • Document authentication requirements

    prowler-cloud/prowler
    API Markdown
    4
    ⭐ 11834

    When creating or modifying APIs, always provide comprehensive documentation for authentication methods and ...

    ⛶
  • special value handling

    prometheus/prometheus
    Algorithms Markdown
    4
    ⭐ 59616

    Algorithms must explicitly define and consistently handle special values like NaN, infinity, and edge cases...

    ⛶
  • prevent concurrent data races

    prometheus/prometheus
    Concurrency Go
    4
    ⭐ 59616

    Always analyze shared data access patterns to prevent race conditions in concurrent code. Use appropriate s...

    ⛶
  • maintain API consistency

    prometheus/prometheus
    API Go
    4
    ⭐ 59616

    When designing or modifying APIs, ensure they follow established patterns and conventions within the codeba...

    ⛶
  • ensure mathematical correctness

    prometheus/prometheus
    Algorithms Other
    4
    ⭐ 59616

    When implementing or testing algorithms, ensure mathematical relationships and constraints are maintained t...

    ⛶
  • Configure dependency management comprehensively

    prometheus/prometheus
    Configurations Json
    4
    ⭐ 59616

    When configuring dependency management tools like Renovate, ensure comprehensive setup that includes modern...

    ⛶
  • Complete observability documentation

    prometheus/prometheus
    Observability Markdown
    4
    ⭐ 59616

    Ensure documentation for observability systems provides comprehensive information including all required pe...

    ⛶
  • Check nil at usage

    prometheus/prometheus
    Null Handling Go
    4
    ⭐ 59616

    Perform null and validity checks at the point where values are actually used, rather than defensively initi...

    ⛶
  • proper async error testing

    prisma/prisma
    Testing TypeScript
    4
    ⭐ 42967

    When testing for expected errors in async code, use Jest's built-in async error testing patterns instead of...

    ⛶
  • Ensure concurrent resource cleanup

    prisma/prisma
    Concurrency TypeScript
    4
    ⭐ 42967

    Always ensure proper cleanup of concurrent resources like semaphores, transactions, and async operations, e...

    ⛶
  • validate configuration changes

    prettier/prettier
    Configurations Other
    4
    ⭐ 50772

    Configuration files require careful validation to ensure they work as intended and don't introduce unintend...

    ⛶
  • Measure performance impacts

    prettier/prettier
    Performance Optimization JavaScript
    4
    ⭐ 50772

    Always benchmark and measure actual performance impacts before making optimization decisions, rather than r...

    ⛶
  • maintain API backward compatibility

    prettier/prettier
    API JavaScript
    4
    ⭐ 50772

    When evolving public APIs, prioritize backward compatibility and avoid breaking changes to existing interfa...

    ⛶
  • Cache correctness validation

    prettier/prettier
    Caching JavaScript
    4
    ⭐ 50772

    Ensure caching implementations store the correct data and use appropriate strategies for the context. Cache...

    ⛶
  • API documentation clarity

    prettier/prettier
    API Markdown
    4
    ⭐ 50772

    Ensure API documentation provides clear, accurate, and comprehensive information for developers. This inclu...

    ⛶
  • Split complex migrations incrementally

    PostHog/posthog
    Migrations Python
    4
    ⭐ 28460

    Break complex schema changes into multiple, sequential migrations to ensure deployment safety and proper da...

    ⛶
  • RESTful endpoint organization

    PostHog/posthog
    API Python
    4
    ⭐ 28460

    API endpoints should be properly organized around resources and follow RESTful principles. Avoid placing ag...

    ⛶
  • optimize ORM queries

    PostHog/posthog
    Database Python
    4
    ⭐ 28460

    Optimize Django ORM queries to prevent performance issues and unnecessary database load. Avoid N+1 query pr...

    ⛶
  • Configuration constants management

    PostHog/posthog
    Configurations Python
    4
    ⭐ 28460

    Extract configuration values into well-named constants instead of using magic numbers or inline values. Use...

    ⛶
  • Check existence before operations

    PostHog/posthog
    Null Handling Python
    4
    ⭐ 28460

    Always verify that keys, IDs, indices, or other required values exist before performing operations that dep...

    ⛶
  • Capture broad exceptions

    PostHog/posthog
    Error Handling Python
    4
    ⭐ 28460

    When using broad exception handlers like `except Exception:`, always capture and log the exception to avoid...

    ⛶
  • API response standardization

    PostHog/posthog
    API TypeScript
    4
    ⭐ 28460

    Ensure API responses follow established patterns and use proper typing. Always use standardized response ty...

    ⛶
  • AI context efficiency

    PostHog/posthog
    AI Python
    4
    ⭐ 28460

    When providing context to LLMs, choose the most efficient method based on the nature and size of the contex...

    ⛶
  • Prevent deadlock conditions

    pola-rs/polars
    Concurrency Rust
    4
    ⭐ 34296

    Carefully manage resource acquisition and release to prevent deadlocks in concurrent code. Deadlocks typica...

    ⛶
  • Prevent cryptic errors

    pola-rs/polars
    Error Handling Python
    4
    ⭐ 34296

    Always implement proper validation and type checking to prevent cryptic error messages. When errors do occu...

    ⛶
  • Organize tests efficiently

    pola-rs/polars
    Testing Python
    4
    ⭐ 34296

    Write maintainable, well-structured tests that are easy to understand and extend. Tests should remain simpl...

    ⛶
  • Optimize data transformations

    pola-rs/polars
    Database Rust
    4
    ⭐ 34296

    When implementing data processing operations, avoid unnecessary data transformations, copies, and conversio...

    ⛶
  • Design for operation flexibility

    pola-rs/polars
    Algorithms Python
    4
    ⭐ 34296

    When implementing algorithms that operate on data structures (particularly arrays, lists, or collections), ...

    ⛶
  • Defer expensive operations

    pola-rs/polars
    Performance Optimization Python
    4
    ⭐ 34296

    Avoid triggering expensive computations prematurely in your code. Operations like `collect()`, intensive IO...

    ⛶
  • Choose appropriate abstractions

    pola-rs/polars
    API Rust
    4
    ⭐ 34296

    When designing APIs, select data types and patterns that match how they will be consumed while facilitating...

    ⛶
  • Use appropriate logging levels

    python-poetry/poetry
    Logging Python
    4
    ⭐ 33496

    Use debug-level logging for technical details and error information that aids developer troubleshooting, wh...

    ⛶
  • Document configuration clearly

    python-poetry/poetry
    Configurations Yaml
    4
    ⭐ 33496

    Configuration files, hooks, and settings should include clear, accurate descriptions that explain their pur...

    ⛶
  • Complete config setting integration

    python-poetry/poetry
    Configurations Python
    4
    ⭐ 33496

    When adding new configuration settings, ensure they are properly integrated across all required system comp...

    ⛶
  • Cache expensive computations

    python-poetry/poetry
    Performance Optimization Python
    4
    ⭐ 33496

    Identify expensive operations that may be called multiple times and implement appropriate caching mechanism...

    ⛶
  • API backwards compatibility

    python-poetry/poetry
    API Python
    4
    ⭐ 33496

    When evolving public APIs, prioritize backwards compatibility through proper deprecation strategies and car...

    ⛶
  • validate algorithmic edge cases

    microsoft/playwright
    Algorithms TypeScript
    4
    ⭐ 76113

    Algorithms must be thoroughly tested at boundary conditions and edge cases to prevent subtle bugs. Pay spec...

    ⛶
  • testing best practices

    microsoft/playwright
    Testing Markdown
    4
    ⭐ 76113

    Choose testing methods, configurations, and approaches that prioritize user experience and reliability over...

    ⛶
  • Prioritize documentation clarity

    microsoft/playwright
    Documentation Markdown
    4
    ⭐ 76113

    Documentation should prioritize clarity and actionable guidance over comprehensive coverage. Organize conte...

    ⛶
  • explicit undefined checks

    microsoft/playwright
    Null Handling TypeScript
    4
    ⭐ 76113

    Always use explicit checks for undefined values and return appropriate nullable types instead of relying on...

    ⛶
  • Avoid redundant operations

    microsoft/playwright
    Performance Optimization TypeScript
    4
    ⭐ 76113

    Identify and eliminate duplicate computations, unnecessary object creation, and redundant function calls to...

    ⛶
  • Simplify algorithmic implementations

    emcie-co/parlant
    Algorithms Python
    4
    ⭐ 12205

    Favor clear, simple algorithmic implementations over complex custom logic. When faced with algorithmic choi...

    ⛶
  • Safe null access patterns

    emcie-co/parlant
    Null Handling Python
    4
    ⭐ 12205

    Always use safe access patterns to prevent runtime errors when dealing with potentially null or undefined v...

    ⛶
  • safe environment variable access

    emcie-co/parlant
    Configurations Python
    4
    ⭐ 12205

    Always use `os.environ.get()` with appropriate defaults instead of direct dictionary access to prevent KeyE...

    ⛶
  • Proper span lifecycle

    opentofu/opentofu
    Observability Go
    4
    ⭐ 25901

    Always ensure trace spans are properly closed in all code execution paths to prevent trace leaks that can d...

    ⛶
  • Prevent backing array surprises

    opentofu/opentofu
    Algorithms Go
    4
    ⭐ 25901

    When modifying slices in Go, be aware that appending to a slice with available capacity will modify the bac...

    ⛶
  • Minimize API surface

    opentofu/opentofu
    API Go
    4
    ⭐ 25901

    Design APIs with minimal exposed surface by encapsulating implementation details within packages. When desi...

    ⛶
  • Write reliable test cases

    open-telemetry/opentelemetry-python
    Testing Python
    4
    ⭐ 2061

    Create deterministic and reliable test cases by following these guidelines: 1. Use hardcoded values instea...

    ⛶
  • Return collections not None

    open-telemetry/opentelemetry-python
    Null Handling Python
    4
    ⭐ 2061

    Return empty collections (lists, dicts, sets) instead of None when representing empty states. This reduces ...

    ⛶
  • Prevent recursive logging calls

    open-telemetry/opentelemetry-python
    Logging Python
    4
    ⭐ 2061

    Avoid implementing logging calls that could trigger recursive logging patterns, which can lead to infinite ...

    ⛶
  • Precise configuration specifications

    open-telemetry/opentelemetry-python
    Configurations Toml
    4
    ⭐ 2061

    Ensure configuration files use tool-specific syntax and conventions while leveraging appropriate defaults. ...

    ⛶
  • Place attributes correctly

    open-telemetry/opentelemetry-python
    Observability Markdown
    4
    ⭐ 2061

    When implementing observability with OpenTelemetry, place attributes at the appropriate level in the teleme...

    ⛶
  • Pin dependency versions

    open-telemetry/opentelemetry-python
    Configurations Txt
    4
    ⭐ 2061

    Always use exact version pinning (==) for dependencies in requirements files rather than version ranges. Th...

    ⛶
  • Choose data structures wisely

    open-telemetry/opentelemetry-python
    Algorithms Python
    4
    ⭐ 2061

    Select data structures based on your specific access patterns and performance requirements. Using the right...

    ⛶
  • Use descriptive names

    commaai/openpilot
    Naming Conventions Other
    4
    ⭐ 58214

    Choose names that clearly communicate purpose and meaning rather than using abbreviations or unclear terms....

    ⛶
  • Tool-specific configuration compatibility

    commaai/openpilot
    Configurations Toml
    4
    ⭐ 58214

    When working with configuration files that support multiple tools or package managers, ensure that configur...

    ⛶
  • Prefer asynchronous operations

    commaai/openpilot
    Concurrency Other
    4
    ⭐ 58214

    Use asynchronous patterns to prevent blocking operations from degrading system performance, especially in U...

    ⛶
  • optimize data structure selection

    commaai/openpilot
    Algorithms Python
    4
    ⭐ 58214

    Choose data structures and algorithms based on their computational complexity and access patterns rather th...

    ⛶
  • Initialize and validate values

    commaai/openpilot
    Null Handling Python
    4
    ⭐ 58214

    Always initialize variables with sensible default values and validate inputs to prevent null reference erro...

    ⛶
  • Be specific with exceptions

    commaai/openpilot
    Error Handling Python
    4
    ⭐ 58214

    Avoid catching broad exception types like `Exception` and instead catch specific exceptions that you expect...

    ⛶
  • prefer built-in error utilities

    opengrep/opengrep
    Error Handling Other
    4
    ⭐ 1546

    Use existing error handling utilities and appropriate error mechanisms instead of implementing manual error...

    ⛶
  • Optimize for common cases

    opencv/opencv
    Algorithms Other
    4
    ⭐ 82865

    When implementing algorithms, create specialized versions for common cases to improve performance, while ma...

    ⛶
  • Framework synchronization practices

    opencv/opencv
    Concurrency C++
    4
    ⭐ 82865

    When implementing concurrent code, always use the framework's provided synchronization primitives rather th...

    ⛶
  • Document properly with references

    opencv/opencv
    Documentation Other
    4
    ⭐ 82865

    Always separate code from documentation and use proper referencing techniques. Documentation should be in m...

    ⛶
  • Preserve Null Semantics

    openai/openai-python
    Null Handling Python
    4
    ⭐ 30731

    When inputs or response fields are optional/nullable, preserve their semantics explicitly and avoid unsafe ...

    ⛶
  • Config resolution consistency

    openai/openai-python
    Configurations Python
    4
    ⭐ 30731

    When adding or extending client/provider integrations, enforce a single, predictable configuration-resoluti...

    ⛶
  • Config-Accurate Dependency Management

    openai/openai-python
    Configurations Toml
    4
    ⭐ 30731

    When updating project configuration (e.g., `pyproject.toml`), ensure dependency declarations match how pack...

    ⛶
  • Reuse buffers strategically

    ollama/ollama
    Performance Optimization Go
    4
    ⭐ 145704

    For frequently called methods or hot code paths, reuse allocations instead of creating new buffers on each ...

    ⛶
  • Platform-aware configuration documentation

    ollama/ollama
    Configurations Markdown
    4
    ⭐ 145705

    Always document platform-specific configuration differences and requirements thoroughly. When writing docum...

    ⛶
  • Loose API coupling

    ollama/ollama
    API Go
    4
    ⭐ 145704

    Maintain a clear separation between API definitions and their implementations by avoiding direct passing of...

    ⛶
  • Use async/await pattern

    octokit/octokit.net
    API Markdown
    4
    ⭐ 2793

    When designing or documenting API clients, always use the async/await pattern rather than blocking calls. R...

    ⛶
  • Catch specific exceptions

    octokit/octokit.net
    Error Handling C#
    4
    ⭐ 2793

    Always catch specific exception types rather than using general catch blocks. This improves error handling ...

    ⛶
  • robust algorithm implementation

    nrwl/nx
    Algorithms TypeScript
    4
    ⭐ 27518

    Implement algorithms that handle edge cases and avoid brittle assumptions about input data or structure for...

    ⛶
  • Ensure configuration consistency

    nrwl/nx
    Configurations Json
    4
    ⭐ 27518

    Configuration files should maintain consistency in patterns, use correct paths and values, and follow estab...

    ⛶
  • Documentation metadata consistency

    nrwl/nx
    Documentation Other
    4
    ⭐ 27518

    Ensure documentation uses consistent structural elements and proper metadata to optimize user experience an...

    ⛶
  • Configuration documentation clarity

    nrwl/nx
    Configurations Other
    4
    ⭐ 27518

    Configuration changes and examples should be documented with clear formatting, proper context, and helpful ...

    ⛶
  • Vue context boundaries

    nuxt/nuxt
    Vue Markdown
    4
    ⭐ 57769

    Ensure Vue composables, reactive state, and side effects are properly scoped within Vue's execution context...

    ⛶
  • Strategic component loading

    nuxt/nuxt
    Performance Optimization Markdown
    4
    ⭐ 57769

    Choose component loading strategies based on when interactivity is actually needed, not just code splitting...

    ⛶
  • optimize array operations

    nuxt/nuxt
    Performance Optimization TypeScript
    4
    ⭐ 57769

    Pre-allocate arrays when the final size is known and consolidate multiple iterations into single loops to r...

    ⛶
  • Handle async cancellation properly

    nuxt/nuxt
    Concurrency TypeScript
    4
    ⭐ 57769

    When implementing async operations with cancellation support, ensure that cancelled operations do not conti...

    ⛶
  • Cache lifecycle management

    nuxt/nuxt
    Caching TypeScript
    4
    ⭐ 57769

    Implement comprehensive cache lifecycle management that includes proper key management, invalidation strate...

    ⛶
  • Optimize collection operations

    novuhq/novu
    Algorithms TSX
    4
    ⭐ 37700

    When processing collections of data, choose efficient algorithms and data structures that minimize computat...

    ⛶
  • Environment-aware feature gating

    novuhq/novu
    Configurations TSX
    4
    ⭐ 37700

    Always check environment variables, deployment modes, subscription tiers, and feature flags before enabling...

    ⛶
  • Limit environment variable scope

    nodejs/node
    Configurations JavaScript
    4
    ⭐ 112178

    When working with environment variables for configuration: 1. **Reuse existing environment variables** rat...

    ⛶
  • Format docs for readability

    nodejs/node
    Documentation Markdown
    4
    ⭐ 112178

    Documentation should follow consistent formatting and structural patterns to maximize readability and maint...

    ⛶
  • Follow naming conventions

    nodejs/node
    Naming Conventions Other
    4
    ⭐ 112178

    Maintain consistent naming conventions across the codebase: - Use PascalCase for class methods (e.g., `All...

    ⛶
  • Document non-intuitive code

    nodejs/node
    Documentation Other
    4
    ⭐ 112178

    Add clear comments to explain complex logic, function differences, and non-obvious implementation details. ...

    ⛶
  • Descriptive function names

    nodejs/node
    Naming Conventions JavaScript
    4
    ⭐ 112178

    Function and method names should precisely describe their purpose and behavior. Choose names that explicitl...

    ⛶
  • Await all promises

    nodejs/node
    Concurrency JavaScript
    4
    ⭐ 112178

    Always explicitly await all asynchronous operations, especially in cleanup code paths and resource manageme...

    ⛶
  • Verify documentation references

    vercel/next.js
    Documentation Markdown
    4
    ⭐ 133000

    When writing or updating documentation, ensure all code examples, installation commands, and project refere...

    ⛶
  • Proper Use of Suspense in Next.js Components

    vercel/next.js
    Next.js JavaScript
    4
    ⭐ 133000

    When building Next.js applications that leverage server-side rendering (SSR) or Partial Prerendering (PPR),...

    ⛶
  • Proper Error Handling in Next.js API Routes

    vercel/next.js
    Next.js JavaScript
    4
    ⭐ 133000

    This review focuses on ensuring proper error handling in Next.js API routes. Key principles include validat...

    ⛶
  • Maintain Consistent Naming Conventions in Next.js Code

    vercel/next.js
    Next.js JavaScript
    4
    ⭐ 133000

    As a code reviewer for Next.js projects, ensure that all code artifacts, including component names, file na...

    ⛶
  • Dynamic API behavior detection

    ChatGPTNextWeb/NextChat
    API TypeScript
    4
    ⭐ 85721

    APIs should determine behavior based on runtime request characteristics rather than static configuration fl...

    ⛶
  • Protect network buffer lifecycle

    netty/netty
    Networking Java
    4
    ⭐ 34227

    When handling network buffers in protocol implementations, ensure proper lifecycle management to prevent me...

    ⛶
  • Preserve backward compatibility

    netty/netty
    API Java
    4
    ⭐ 34227

    When evolving APIs in minor versions, always maintain backward compatibility to avoid breaking client code....

    ⛶
  • Optimize search operations

    netty/netty
    Algorithms Java
    4
    ⭐ 34227

    Enhance search algorithm performance by prioritizing common cases, using appropriate data structures, and a...

    ⛶
  • Configurable over hardcoded

    netty/netty
    Configurations Java
    4
    ⭐ 34227

    Make configuration parameters configurable rather than hardcoding values, especially for limits, sizes, and...

    ⛶
  • Use consistent control structures

    nestjs/nest
    Code Style TypeScript
    4
    ⭐ 71766

    Always use curly braces for control structures (if, for, while, etc.), even for single-line statements. Thi...

    ⛶
  • Structure exception handling patterns

    nestjs/nest
    Error Handling TypeScript
    4
    ⭐ 71766

    Implement consistent exception handling using framework-provided mechanisms rather than ad-hoc try-catch bl...

    ⛶
  • Standardize logger configuration patterns

    nestjs/nest
    Logging TypeScript
    4
    ⭐ 71766

    Maintain consistent logger configuration and usage patterns across the application while leveraging built-i...

    ⛶
  • Prevent async race conditions

    nestjs/nest
    Concurrency TypeScript
    4
    ⭐ 71767

    Design async operations to prevent race conditions, memory leaks, and ensure proper resource cleanup. Key p...

    ⛶
  • Pin dependency versions

    nestjs/nest
    CI/CD Yaml
    4
    ⭐ 71766

    Explicitly pin or constrain dependency versions in CI/CD configurations instead of using `latest` tags. Thi...

    ⛶
  • Package dependency configuration

    nestjs/nest
    Configurations Json
    4
    ⭐ 71767

    Configure dependencies appropriately in package.json based on usage patterns and requirements. This improve...

    ⛶
  • HTTP header management

    nestjs/nest
    Networking TypeScript
    4
    ⭐ 71766

    When working with HTTP responses, follow these principles for proper header management: 1. **Only set defa...

    ⛶
  • Document configuration behaviors

    nestjs/nest
    Configurations TypeScript
    4
    ⭐ 71766

    Always document configuration options thoroughly, especially for module and service settings. For each conf...

    ⛶
  • Configurable log formatting

    nestjs/nest
    Logging TypeScript
    4
    ⭐ 71767

    Design logging systems with customizable formatting and output options. Separate formatting logic into prot...

    ⛶
  • Benchmark before optimizing

    nestjs/nest
    Performance Optimization TypeScript
    4
    ⭐ 71766

    When making performance-critical decisions, always validate your approach with benchmarks using realistic d...

    ⛶
  • Use descriptive names

    neovim/neovim
    Naming Conventions C
    4
    ⭐ 91433

    Avoid ambiguous or vague identifiers in favor of specific, self-documenting names that clearly convey purpo...

    ⛶
  • Semantic naming over implementation

    neovim/neovim
    Naming Conventions Txt
    4
    ⭐ 91433

    Choose names that reflect the semantic purpose and meaning rather than implementation details or internal m...

    ⛶
  • Initialize before dereferencing

    neovim/neovim
    Null Handling C
    4
    ⭐ 91433

    Always ensure buffers, containers, and data structures are properly initialized before passing them to func...

    ⛶
  • consolidate network APIs

    neovim/neovim
    Networking Other
    4
    ⭐ 91433

    When implementing network functionality, consolidate around standardized APIs like `vim.net.request()` inst...

    ⛶
  • Configuration variable organization

    neovim/neovim
    Configurations Other
    4
    ⭐ 91433

    Use structured naming patterns and avoid polluting the global namespace when managing configuration variabl...

    ⛶
  • Conditional expensive operations

    neovim/neovim
    Performance Optimization Other
    4
    ⭐ 91433

    Only execute expensive operations when they are actually necessary. Avoid paying performance costs for func...

    ⛶
  • avoid unnecessary configuration

    neovim/neovim
    Configurations Txt
    4
    ⭐ 91433

    Avoid creating special-purpose configuration options when simpler alternatives exist. Don't force users to ...

    ⛶
  • avoid error masking

    neovim/neovim
    Error Handling Other
    4
    ⭐ 91433

    Don't use mechanisms that suppress or hide errors unless absolutely necessary for the application flow. Err...

    ⛶
  • Scope JWT authentication tokens

    neondatabase/neon
    Security Markdown
    4
    ⭐ 19015

    Always include tenant, timeline, and endpoint identifiers in JWT tokens used for service authentication. Th...

    ⛶
  • Proper Option type usage

    neondatabase/neon
    Null Handling Rust
    4
    ⭐ 19015

    Use Option only for truly optional values that can meaningfully be None. Avoid using Option when a value...

    ⛶
  • Proactive cache warming

    neondatabase/neon
    Performance Optimization Markdown
    4
    ⭐ 19015

    Implement proactive cache warming strategies to minimize performance degradation after system restarts or d...

    ⛶
  • Pin GitHub action versions

    neondatabase/neon
    CI/CD Yaml
    4
    ⭐ 19015

    Always pin GitHub Actions to specific commit hashes instead of using major/minor version tags (like @v4). T...

    ⛶
  • Ensure algorithm robustness

    neondatabase/neon
    Algorithms Rust
    4
    ⭐ 19015

    When implementing algorithms, ensure they handle all edge cases correctly and robustly. Code should gracefu...

    ⛶
  • Connection pooling with pipelining

    neondatabase/neon
    Networking Rust
    4
    ⭐ 19015

    Implement connection pooling with request pipelining for network services to optimize resource usage and im...

    ⛶
  • Reliable Technical Documentation

    Tencent/ncnn
    Documentation Markdown
    4
    ⭐ 23205

    When updating technical docs, ensure they are reliable in both what they claim and how developers can apply...

    ⛶
  • Intentional Test Coverage

    Tencent/ncnn
    Testing C++
    4
    ⭐ 23205

    All unit tests should be (1) intentionally designed for coverage, (2) non-redundant, and (3) maintainable. ...

    ⛶
  • Backwards-Compatible API Evolution

    Tencent/ncnn
    API C++
    4
    ⭐ 23205

    When evolving or integrating client-facing interfaces (CLI/API) and platform-dependent APIs, preserve compa...

    ⛶
  • PyTorch Compatibility Guards

    karpathy/nanochat
    Pytorch Python
    4
    ⭐ 53189

    Adopt explicit compatibility guards in PyTorch code to prevent silent numeric issues and runtime failures a...

    ⛶
  • Keep config minimal

    karpathy/nanochat
    Configurations Python
    4
    ⭐ 53189

    Avoid “config monsters” by limiting new runtime knobs and centralizing stable defaults. Only add CLI/config...

    ⛶
  • Justify dependency and build pins

    karpathy/nanochat
    Configurations Toml
    4
    ⭐ 53189

    Any config change that affects build/runtime behavior (dependency version pins, feature flags, build backen...

    ⛶
  • Secure credential data handling

    n8n-io/n8n
    Security TypeScript
    4
    ⭐ 122978

    Always protect sensitive credential data through proper encryption, secure storage, and careful handling in...

    ⛶
  • Maintain semantic naming consistency

    n8n-io/n8n
    Naming Conventions TypeScript
    4
    ⭐ 122978

    Names should be semantically meaningful and consistent across related concepts in the codebase. This applie...

    ⛶
  • Explicit environment configuration handling

    n8n-io/n8n
    Configurations TypeScript
    4
    ⭐ 122978

    Environment and configuration values should be explicit, visible, and environment-aware. Avoid hardcoded pr...

    ⛶
  • Descriptive parameter names

    n8n-io/n8n
    API Yaml
    4
    ⭐ 122978

    Use specific, descriptive parameter names for API resources rather than generic identifiers. Parameter name...

    ⛶
  • Consistent naming patterns

    n8n-io/n8n
    Naming Conventions Json
    4
    ⭐ 122978

    Maintain consistent naming conventions throughout the codebase to improve readability and maintainability. ...

    ⛶
  • Consistent identifier naming

    n8n-io/n8n
    Naming Conventions Other
    4
    ⭐ 122978

    Follow consistent naming conventions for all identifiers to improve code quality, accessibility, and test r...

    ⛶
  • Configuration consistency management

    n8n-io/n8n
    Configurations Json
    4
    ⭐ 122978

    When modifying configuration files, ensure all references to the changed values are updated consistently ac...

    ⛶
  • Actions configuration best practices

    n8n-io/n8n
    Configurations Yaml
    4
    ⭐ 122978

    When working with GitHub Actions workflows, follow these configuration best practices: 1. **Boolean inputs...

    ⛶
  • Graph traversal optimization

    apache/mxnet
    Algorithms Other
    4
    ⭐ 20801

    When working with graph structures, avoid performing redundant depth-first search (DFS) traversals as each ...

    ⛶
  • Explicit null checks

    apache/mxnet
    Null Handling Python
    4
    ⭐ 20801

    Always use explicit null checks (`value is None` or `value is not None`) rather than implicit truthiness ev...

    ⛶
  • Comprehensive API documentation

    apache/mxnet
    Documentation Python
    4
    ⭐ 20801

    Ensure all API elements are thoroughly documented following a consistent format. This includes: 1. **All f...

    ⛶
  • Avoid redundant calculations

    apache/mxnet
    Performance Optimization Other
    4
    ⭐ 20801

    Eliminate redundant calculations by identifying and caching frequently used values to improve performance. ...

    ⛶
  • WebSocket lifecycle management

    rocicorp/mono
    Networking TypeScript
    4
    ⭐ 2091

    Ensure proper WebSocket connection lifecycle management by using `once()` instead of `on()` for cleanup ope...

    ⛶
  • verify authorization before operations

    rocicorp/mono
    Security TypeScript
    4
    ⭐ 2091

    Always verify that users have proper authorization to access and modify resources before performing any dat...

    ⛶
  • dependency management practices

    rocicorp/mono
    Configurations Json
    4
    ⭐ 2091

    Ensure comprehensive dependency management in package.json files by following these practices: 1. **Evalua...

    ⛶
  • YAML-first config schema

    mermaid-js/mermaid
    Configurations Markdown
    4
    ⭐ 87952

    When adding or changing configurable behavior, define it in the correct config scope and expose it via YAML...

    ⛶
  • Invariant-Preserving Graph Algorithms

    mermaid-js/mermaid
    Algorithms JavaScript
    4
    ⭐ 87952

    When a graph/geometry algorithm is used recursively (or downstream computations depend on its shape/metrics...

    ⛶
  • Write user-centric documentation guides

    mui/material-ui
    Documentation Markdown
    4
    ⭐ 96063

    Documentation should be written with the user's perspective in mind, using clear, action-oriented language ...

    ⛶
  • Use slots for composition

    mui/material-ui
    React Markdown
    4
    ⭐ 96063

    When designing React component APIs, implement the slots pattern using `slots` and `slotProps` props instea...

    ⛶
  • Test behavior not implementation

    mui/material-ui
    Testing JavaScript
    4
    ⭐ 96063

    Focus tests on user behavior and outcomes rather than implementation details. Structure tests to simulate r...

    ⛶
  • Strict mode-proof hooks

    mui/material-ui
    React JavaScript
    4
    ⭐ 96063

    Ensure your React components work correctly in both development (Strict Mode) and production environments b...

    ⛶
  • Standardize code formatting patterns

    mui/material-ui
    Code Style Markdown
    4
    ⭐ 96063

    Maintain consistent code formatting patterns across the codebase to improve readability and maintainability...

    ⛶
  • Standardize build configurations

    mui/material-ui
    Configurations Other
    4
    ⭐ 96063

    When configuring module builds, maintain consistent and explicit configuration for different module formats...

    ⛶
  • Semantic descriptive naming

    mui/material-ui
    Naming Conventions JavaScript
    4
    ⭐ 96063

    Choose names that clearly communicate purpose, behavior, and semantics of code elements. Names should be se...

    ⛶
  • Explicit configuration specifications

    mui/material-ui
    Configurations TypeScript
    4
    ⭐ 96063

    When writing configuration files, be explicit and precise about dependencies and versions rather than using...

    ⛶
  • Event-triggered network requests

    mui/material-ui
    Networking JavaScript
    4
    ⭐ 96063

    When implementing user interactions that trigger network requests, use precise event handling techniques to...

    ⛶
  • Document compatibility boundaries

    mui/material-ui
    API Markdown
    4
    ⭐ 96063

    Clearly communicate your API's compatibility guarantees and limitations. When designing APIs, explicitly in...

    ⛶
  • Distinguish Next.js routers

    mui/material-ui
    Next Markdown
    4
    ⭐ 96063

    Always provide separate implementation instructions for Next.js App Router (13+) and Pages Router. These ro...

    ⛶
  • Avoid render cycle allocations

    mui/material-ui
    Performance Optimization JavaScript
    4
    ⭐ 96063

    Creating new objects, arrays, or functions inside a component's render cycle causes unnecessary allocations...

    ⛶
  • Use accessible terminology

    mastodon/mastodon
    Naming Conventions Yaml
    4
    ⭐ 48691

    Choose clear, understandable names and terminology that are appropriate for your intended audience, avoidin...

    ⛶
  • prefer early returns

    mastodon/mastodon
    Code Style TSX
    4
    ⭐ 48691

    Use early returns and guard clauses to reduce nested conditionals and improve code readability. This patter...

    ⛶
  • optimize test organization

    mastodon/mastodon
    Testing Ruby
    4
    ⭐ 48691

    Organize tests to minimize factory creation, reduce duplication, and improve performance by chaining assert...

    ⛶
  • migration data dependencies

    mastodon/mastodon
    Migrations Ruby
    4
    ⭐ 48691

    Ensure that migrations properly handle data dependencies and sequencing to prevent deployment failures. Whe...

    ⛶
  • Hook responsibility separation

    mastodon/mastodon
    React TSX
    4
    ⭐ 48691

    Keep hooks and components focused on single, well-defined responsibilities to maintain clean architecture a...

    ⛶
  • explicit API parameters

    microsoft/markitdown
    API Python
    4
    ⭐ 76602

    Make API parameters explicit and named rather than hiding them in **kwargs. This improves clarity, enables ...

    ⛶
  • Use proper logging

    maplibre/maplibre-native
    Logging C++
    4
    ⭐ 1411

    Always use the project's standard logging system (mbgl::Log) with appropriate log levels instead of ad-hoc ...

    ⛶
  • Structured coroutine management

    maplibre/maplibre-native
    Concurrency Kotlin
    4
    ⭐ 1411

    Always bind coroutine scopes to appropriate lifecycles and follow consistent patterns for asynchronous oper...

    ⛶
  • Preallocate collection capacity

    maplibre/maplibre-native
    Performance Optimization C++
    4
    ⭐ 1411

    When the final size of a collection is known before adding elements, use `reserve()` to preallocate memory ...

    ⛶
  • Extract workflow scripts

    maplibre/maplibre-native
    CI/CD Yaml
    4
    ⭐ 1411

    Move complex scripts out of workflow YAML files into separate, dedicated script files in your repository. T...

    ⛶
  • Enforce clear data ownership

    maplibre/maplibre-native
    Concurrency C++
    4
    ⭐ 1411

    Always establish and maintain clear ownership semantics in concurrent code to prevent data races. This incl...

    ⛶
  • Document platform requirements

    maplibre/maplibre-native
    Configurations Other
    4
    ⭐ 1411

    When setting or changing minimum platform version requirements, always document the specific technical reas...

    ⛶
  • Descriptive named constants

    maplibre/maplibre-native
    Naming Conventions C++
    4
    ⭐ 1411

    Replace magic numbers and unclear variables with descriptive named constants using appropriate naming conve...

    ⛶
  • Configure platform-specific builds

    maplibre/maplibre-native
    Configurations Markdown
    4
    ⭐ 1411

    Ensure build and distribution configurations are properly documented and optimized for each target platform...

    ⛶
  • Separate user system data

    logseq/logseq
    Database Other
    4
    ⭐ 37695

    Separate user-facing data from system/implementation data using proper namespacing and schema design to pre...

    ⛶
  • Fail fast explicitly

    logseq/logseq
    Error Handling Other
    4
    ⭐ 37695

    When critical components or operations fail, throw explicit errors rather than silently continuing or retur...

    ⛶
  • Use reactive hooks

    lobehub/lobe-chat
    React TSX
    4
    ⭐ 65138

    Always use React's reactive hook patterns instead of imperative state access or manual effect management. T...

    ⛶
  • Use idempotent migrations

    lobehub/lobe-chat
    Migrations Sql
    4
    ⭐ 65138

    Always use defensive programming patterns in migration scripts to ensure they can be executed multiple time...

    ⛶
  • Provider-based interface design

    lobehub/lobe-chat
    API TSX
    4
    ⭐ 65138

    When designing interfaces that handle multiple providers or services, organize the API structure around pro...

    ⛶
  • Explicit environment declarations

    lobehub/lobe-chat
    Configurations Other
    4
    ⭐ 65138

    Always explicitly declare environment variables in configuration files, even when they have default values....

    ⛶
  • CSS utility usage

    lobehub/lobe-chat
    Code Style TSX
    4
    ⭐ 65138

    Use CSS utility functions and avoid complex inline calculations for better maintainability and readability....

    ⛶
  • Maintain comprehensive error handling

    LMCache/LMCache
    Error Handling Python
    4
    ⭐ 3800

    Always preserve and implement thorough error handling that includes proper resource cleanup, meaningful log...

    ⛶
  • Configuration validation standards

    LMCache/LMCache
    Configurations Python
    4
    ⭐ 3800

    Ensure configuration parameters follow consistent validation, naming, and default value standards to improv...

    ⛶
  • optimize computational complexity

    llvm/llvm-project
    Algorithms C++
    4
    ⭐ 33702

    When implementing algorithms, be mindful of computational complexity and optimize for efficiency by avoidin...

    ⛶
  • Configuration completeness validation

    llvm/llvm-project
    Configurations C++
    4
    ⭐ 33702

    Ensure configuration options are complete and properly validated before use. When implementing configuratio...

    ⛶
  • validate bounds before access

    ggml-org/llama.cpp
    Null Handling C++
    4
    ⭐ 83559

    Always validate array indices, buffer sizes, and container bounds before accessing elements to prevent out-...

    ⛶
  • prioritize compile-time optimizations

    ggml-org/llama.cpp
    Performance Optimization Other
    4
    ⭐ 83559

    In performance-critical code, favor compile-time optimizations over runtime flexibility to enable better co...

    ⛶
  • maintain code consistency

    ggml-org/llama.cpp
    Code Style Other
    4
    ⭐ 83559

    Always follow the existing code style patterns and conventions found in the surrounding codebase rather tha...

    ⛶
  • API minimalism principle

    ggml-org/llama.cpp
    API C++
    4
    ⭐ 83559

    Keep APIs minimal by avoiding redundant interfaces and preferring simple solutions over complex ones. When ...

    ⛶
  • Safe operations with fallbacks

    BerriAI/litellm
    Error Handling Python
    4
    ⭐ 28310

    Implement defensive programming by wrapping potentially failing operations in safe methods that provide fal...

    ⛶
  • Prefer utility reuse

    likec4/likec4
    Code Style TypeScript
    4
    ⭐ 2582

    When changing or adding code prefer existing helpers, language-idiomatic constructs, and small well-maintai...

    ⛶
  • Prevent flaky test timing

    langfuse/langfuse
    Testing TypeScript
    4
    ⭐ 13574

    Replace non-deterministic timing patterns with reliable alternatives to prevent flaky tests. This includes:...

    ⛶
  • Pin dependency versions

    langfuse/langfuse
    CI/CD Yaml
    4
    ⭐ 13574

    Always pin external dependencies to specific versions in CI/CD workflows to ensure build reproducibility, s...

    ⛶
  • Explicit null value checks

    langfuse/langfuse
    Null Handling TypeScript
    4
    ⭐ 13574

    Use explicit null/undefined checks instead of truthy/falsy checks when handling potentially null or undefin...

    ⛶
  • Configuration value consistency

    langfuse/langfuse
    Configurations TSX
    4
    ⭐ 13574

    Maintain consistency in configuration values across the application by following these practices: 1. **Use...

    ⛶
  • Prevent code injection vulnerabilities

    langflow-ai/langflow
    Security Python
    4
    ⭐ 111046

    When evaluating user-provided code or handling dynamic content, implement strict security measures to preve...

    ⛶
  • Database configuration clarity

    langflow-ai/langflow
    Database Other
    4
    ⭐ 111046

    When documenting database configuration or setup procedures, provide specific, actionable instructions with...

    ⛶
  • Avoid hardcoded configuration values

    langflow-ai/langflow
    Configurations Python
    4
    ⭐ 111046

    Replace hardcoded configuration values with configurable parameters to improve flexibility and maintainabil...

    ⛶
  • AI response variability

    langflow-ai/langflow
    AI Markdown
    4
    ⭐ 111046

    When documenting AI model interactions, account for the non-deterministic nature of AI responses and avoid ...

    ⛶
  • AI model chunk sizing

    langflow-ai/langflow
    AI Other
    4
    ⭐ 111046

    When configuring text processing components that work with AI embedding models, proactively consider tokeni...

    ⛶
  • Use database-native types

    langchain-ai/langchainjs
    Database TypeScript
    4
    ⭐ 15004

    Always leverage database-native data types and appropriate schema design to maximize performance and query ...

    ⛶
  • Eliminate redundant code

    langchain-ai/langchainjs
    Code Style TypeScript
    4
    ⭐ 15004

    Simplify code by eliminating redundancy and unnecessary complexity. This improves readability, reduces pote...

    ⛶
  • Dependency classification standards

    langchain-ai/langchainjs
    Configurations Json
    4
    ⭐ 15004

    Properly classify dependencies in package.json according to their usage pattern and project guidelines. Thi...

    ⛶
  • Comprehensive AI documentation

    langchain-ai/langchainjs
    AI Other
    4
    ⭐ 15004

    When documenting AI integrations, provide comprehensive examples that showcase all common initialization an...

    ⛶
  • Avoid hardcoded configurations

    langchain-ai/langchainjs
    Configurations TypeScript
    4
    ⭐ 15004

    Always parameterize values that might vary across different environments or users instead of hardcoding the...

    ⛶
  • Prevent uv Overwrites

    langchain-ai/langchain
    CI/CD Yaml
    4
    ⭐ 136312

    When CI workflows mix multiple uv steps (e.g., install built wheels, then run tests/lint), make dependency ...

    ⛶
  • Wrap errors meaningfully

    kubernetes/kubernetes
    Error Handling Go
    4
    ⭐ 116489

    Always wrap errors with meaningful context that explains what operation failed and why. Use proper error wr...

    ⛶
  • Prevent information disclosure

    kubernetes/kubernetes
    Security Go
    4
    ⭐ 116489

    Avoid exposing sensitive information through error messages, logs, configuration, or other output channels ...

    ⛶
  • Feature gate configuration management

    kubernetes/kubernetes
    Configurations Yaml
    4
    ⭐ 116489

    Ensure feature gates are properly managed across all configuration files and contexts. Feature-specific per...

    ⛶
  • Standardize network tools

    kubeflow/kubeflow
    Networking Dockerfile
    4
    ⭐ 15064

    When performing network operations in build scripts or containers, prefer `curl` over `wget` for HTTP reque...

    ⛶
  • Prioritize readability over brevity

    kubeflow/kubeflow
    Code Style Python
    4
    ⭐ 15064

    When writing code, favor readability and maintainability over clever or compact solutions. Break down compl...

    ⛶
  • Pin version dependencies

    kubeflow/kubeflow
    Configurations Other
    4
    ⭐ 15064

    Explicitly pin version dependencies in configuration files to ensure reproducible builds and prevent breaki...

    ⛶
  • Load configurations efficiently

    kubeflow/kubeflow
    Configurations Go
    4
    ⭐ 15064

    When designing components that require configuration, follow these practices to enhance performance, mainta...

    ⛶
  • Follow API conventions

    kubeflow/kubeflow
    API Go
    4
    ⭐ 15064

    When designing APIs, adhere to established API conventions, particularly Kubernetes API conventions when wo...

    ⛶
  • Externalize configuration parameters

    kubeflow/kubeflow
    Configurations Markdown
    4
    ⭐ 15064

    Create configurations that can be easily managed outside your application code. Design configuration parame...

    ⛶
  • Document code thoroughly

    kubeflow/kubeflow
    Documentation Go
    4
    ⭐ 15064

    Always include appropriate documentation in your code to improve readability, maintainability, and usabilit...

    ⛶
  • Contextualize and classify errors

    kubeflow/kubeflow
    Error Handling Go
    4
    ⭐ 15064

    Always provide meaningful context when handling errors, and classify them appropriately based on their sour...

    ⛶
  • Centralize configuration constants

    kubeflow/kubeflow
    Configurations Python
    4
    ⭐ 15064

    Store configuration constants, defaults, and environment variable mappings in dedicated configuration files...

    ⛶
  • Use defensive null checks

    JetBrains/kotlin
    Null Handling Kotlin
    4
    ⭐ 50857

    When working with properties or methods that could potentially be null, use Kotlin's null safety features d...

    ⛶
  • minimize merge conflicts

    kilo-org/kilocode
    Code Style TSX
    4
    ⭐ 7302

    When working with upstream codebases, prioritize coding approaches that minimize merge conflicts while main...

    ⛶
  • validate configuration dependencies

    apache/kafka
    Configurations Java
    4
    ⭐ 30575

    Validate configuration dependencies and constraints at initialization time rather than allowing invalid com...

    ⛶
  • optimize data structures

    apache/kafka
    Database Java
    4
    ⭐ 30575

    When working with data structures and collections, optimize for performance and correctness by using modern...

    ⛶
  • Optimize collection conversions

    apache/kafka
    Algorithms Other
    4
    ⭐ 30575

    When converting between Java and Scala collections or performing set operations, choose methods that minimi...

    ⛶
  • Improve code readability

    apache/kafka
    Code Style Other
    4
    ⭐ 30575

    Write code that prioritizes readability through clear string formatting, descriptive method calls, and well...

    ⛶
  • Ensure complete JavaDoc coverage

    apache/kafka
    Documentation Java
    4
    ⭐ 30575

    All public classes, methods, and parameters must have comprehensive JavaDoc documentation. This includes: ...

    ⛶
  • catch specific exceptions

    apache/kafka
    Error Handling Java
    4
    ⭐ 30575

    Avoid catching overly broad exception types like `Throwable` or `Exception` when you can be more specific a...

    ⛶
  • preserve error context

    jj-vcs/jj
    Error Handling Rust
    4
    ⭐ 21171

    When handling errors, preserve the original error context and avoid exposing internal representations to us...

    ⛶
  • Minimize API scope

    jj-vcs/jj
    API Markdown
    4
    ⭐ 21171

    When designing APIs, prioritize simplicity and focused scope over feature completeness. Before adding new A...

    ⛶
  • Use configuration constants

    menloresearch/jan
    Configurations TSX
    4
    ⭐ 37620

    Always use named constants, enums, or well-defined configuration objects instead of magic strings, numbers,...

    ⛶
  • model description accuracy

    menloresearch/jan
    AI Json
    4
    ⭐ 37620

    Ensure AI model descriptions are specific, capability-focused, and avoid marketing language or temporal ref...

    ⛶
  • Implement graceful error fallbacks

    menloresearch/jan
    Error Handling TypeScript
    4
    ⭐ 37620

    Always implement fallback mechanisms when primary operations can fail, especially for critical operations l...

    ⛶
  • Document AI infrastructure requirements

    menloresearch/jan
    AI Markdown
    4
    ⭐ 37620

    When documenting AI applications that run local models or perform inference, always provide comprehensive i...

    ⛶
  • Cross-platform configuration simplification

    menloresearch/jan
    Configurations Json
    4
    ⭐ 37620

    When writing configuration files and scripts, prioritize cross-platform compatibility while keeping configu...

    ⛶
  • AI model configuration completeness

    menloresearch/jan
    AI TypeScript
    4
    ⭐ 37620

    Ensure all necessary AI model parameters are properly configured and passed through the system. AI models r...

    ⛶
  • AI accuracy documentation

    menloresearch/jan
    AI Other
    4
    ⭐ 37620

    Ensure accurate representation of AI model capabilities, proper attribution, and honest claims about functi...

    ⛶
  • telemetry consistency standards

    istio/istio
    Observability Go
    4
    ⭐ 37192

    Ensure telemetry attribute population logic is consistent across all components and follows established sta...

    ⛶
  • Document observability rationale

    istio/istio
    Observability Yaml
    4
    ⭐ 37192

    When introducing, modifying, or removing observability features (tracing, metrics, monitoring configuration...

    ⛶
  • API version compatibility first

    istio/istio
    API Yaml
    4
    ⭐ 37192

    When selecting API versions, prioritize compatibility over using the latest available version. Choose older...

    ⛶
  • prefer idiomatic patterns

    vadimdemedes/ink
    Code Style JavaScript
    4
    ⭐ 31825

    Choose language-native methods and control structures that make code more readable and maintainable. Use bu...

    ⛶
  • Package.json configuration standards

    vadimdemedes/ink
    Configurations Json
    4
    ⭐ 31825

    Ensure package.json follows modern standards and maintains consistency across configuration fields. Use str...

    ⛶
  • avoid `any` type usage

    vadimdemedes/ink
    Null Handling TSX
    4
    ⭐ 31825

    Replace `any` type annotations with more specific types to improve type safety and null handling. The `any`...

    ⛶
  • Use structured logging fields

    influxdata/influxdb
    Logging Rust
    4
    ⭐ 30268

    Always use structured logging with descriptive field names rather than string interpolation. Include releva...

    ⛶
  • Prevent nil dereferences

    influxdata/influxdb
    Null Handling Go
    4
    ⭐ 30268

    Always verify that pointers, slices, or arrays are non-nil and have sufficient elements before attempting t...

    ⛶
  • Prefer configurable values

    influxdata/influxdb
    Configurations Go
    4
    ⭐ 30268

    Always use configurable values instead of hardcoded defaults when available. This ensures that user prefere...

    ⛶
  • Performance-conscious metrics implementation

    influxdata/influxdb
    Observability Rust
    4
    ⭐ 30268

    Implement metrics collection that is both comprehensive and minimally impactful on system performance. Desi...

    ⛶
  • Include explanatory examples

    influxdata/influxdb
    Documentation Rust
    4
    ⭐ 30268

    Always enhance documentation with concrete, illustrative examples that demonstrate expected inputs, formats...

    ⛶
  • Avoid unnecessary work

    influxdata/influxdb
    Performance Optimization Go
    4
    ⭐ 30268

    When optimizing performance-critical code paths, eliminate redundant operations and unnecessary processing:...

    ⛶
  • Avoid flaky test patterns

    influxdata/influxdb
    Testing Rust
    4
    ⭐ 30268

    Write reliable tests by avoiding common patterns that can lead to flaky behavior. Specifically: 1. Avoid a...

    ⛶
  • Test all code paths

    elie222/inbox-zero
    Testing TypeScript
    4
    ⭐ 8267

    Write comprehensive tests that cover all code paths including edge cases, error conditions, and different p...

    ⛶
  • Prevent workflow recursion

    elie222/inbox-zero
    CI/CD Yaml
    4
    ⭐ 8267

    Control GitHub Actions workflow execution to avoid infinite loops and unnecessary builds. Implement these p...

    ⛶
  • Normalize API responses

    elie222/inbox-zero
    API TSX
    4
    ⭐ 8267

    Design APIs to return consistent response structures across different data sources or providers. Normalize ...

    ⛶
  • Handle AI operation failures

    elie222/inbox-zero
    AI TypeScript
    4
    ⭐ 8267

    Always implement proper error handling for AI service operations. AI services can fail due to rate limiting...

    ⛶
  • Ensure API contract integrity

    elie222/inbox-zero
    API TypeScript
    4
    ⭐ 8267

    Maintain strict consistency between API implementation and contract by ensuring: 1. Request/response schema...

    ⛶
  • Define schema relations correctly

    elie222/inbox-zero
    Database Prisma
    4
    ⭐ 8267

    When designing database schemas, ensure relations and constraints are explicitly and correctly defined: 1....

    ⛶
  • Complete hook dependency arrays

    elie222/inbox-zero
    React TSX
    4
    ⭐ 8267

    Ensure all hooks (useEffect, useCallback, useMemo) explicitly list every dependency used within their callb...

    ⛶
  • Cache invariant computations

    elie222/inbox-zero
    Performance Optimization TypeScript
    4
    ⭐ 8267

    Avoid repeatedly computing values that don't change frequently. For data structures, maps, or validation sc...

    ⛶
  • Semantic variable naming

    hyprwm/Hyprland
    Naming Conventions C++
    4
    ⭐ 28863

    Variable names should clearly convey their purpose, type, and units to improve code readability and prevent...

    ⛶
  • prefer std::error_code parameters

    hyprwm/Hyprland
    Error Handling C++
    4
    ⭐ 28863

    When using std::filesystem operations, prefer passing std::error_code parameters instead of relying on try-...

    ⛶
  • prefer managed pointers

    hyprwm/Hyprland
    Null Handling Other
    4
    ⭐ 28863

    Raw pointers are banned in new code unless absolutely necessary. Instead, use managed pointer types to prev...

    ⛶
  • Precise documentation language

    hyprwm/Hyprland
    Documentation Markdown
    4
    ⭐ 28863

    Documentation language should be precise, unambiguous, and clearly scoped to prevent misinterpretation whil...

    ⛶
  • Precise configuration patterns

    hyprwm/Hyprland
    Configurations Txt
    4
    ⭐ 28863

    Use precise file patterns and correct installation paths in CMake configuration to avoid unintended inclusi...

    ⛶
  • use Option combinators

    juspay/hyperswitch
    Null Handling Rust
    4
    ⭐ 34028

    Leverage Rust's Option API methods like `map`, `and_then`, `is_some()`, and `filter` instead of manual patt...

    ⛶
  • Database schema consistency

    juspay/hyperswitch
    Database Rust
    4
    ⭐ 34028

    Ensure database schema definitions are consistent with ORM annotations and include proper constraints for d...

    ⛶
  • Choose optimal algorithms

    juspay/hyperswitch
    Algorithms Rust
    4
    ⭐ 34028

    When implementing functionality, carefully evaluate and select the most efficient algorithmic approaches fo...

    ⛶
  • Standardize build configuration patterns

    helix-editor/helix
    Configurations Other
    4
    ⭐ 39026

    Explicitly define and standardize build configuration patterns across the project to ensure consistent beha...

    ⛶
  • hide implementation details

    helix-editor/helix
    API Rust
    4
    ⭐ 39026

    When designing APIs, avoid exposing internal structures, implementation details, or platform-specific conce...

    ⛶
  • consistent naming conventions

    helix-editor/helix
    Naming Conventions Toml
    4
    ⭐ 39026

    Maintain consistent naming patterns throughout your codebase, following established conventions and ensurin...

    ⛶
  • avoid quadratic complexity

    helix-editor/helix
    Algorithms Rust
    4
    ⭐ 39026

    When working with data structures, especially ropes and collections, avoid algorithms that result in quadra...

    ⛶
  • avoid panics gracefully

    helix-editor/helix
    Error Handling Rust
    4
    ⭐ 39026

    Replace panics, expects, and unwraps with graceful error handling that provides user feedback and allows th...

    ⛶
  • avoid hardcoded configuration values

    helix-editor/helix
    Configurations Rust
    4
    ⭐ 39026

    Avoid hardcoding configuration values that affect user experience or behavior. Instead, make these values c...

    ⛶
  • Safe property access patterns

    grafana/grafana
    Null Handling TSX
    4
    ⭐ 68825

    Use appropriate null/undefined handling techniques based on the context to prevent runtime errors. Be mindf...

    ⛶
  • Prefer null-safe access

    grafana/grafana
    Null Handling TypeScript
    4
    ⭐ 68825

    Always use null-safe access patterns when dealing with potentially undefined values to prevent runtime erro...

    ⛶
  • Optimize performance patterns

    grafana/grafana
    Performance Optimization Go
    4
    ⭐ 68825

    Choose efficient implementation patterns that improve performance. Apply these optimizations throughout you...

    ⛶
  • Name for purpose first

    grafana/grafana
    Naming Conventions Go
    4
    ⭐ 68825

    Choose names that lead with their primary purpose or category, followed by specific details. This makes cod...

    ⛶
  • Minimize database joins

    grafana/grafana
    Database Go
    4
    ⭐ 68825

    Prefer direct filtering or specialized service methods over complex JOIN operations, especially when mainta...

    ⛶
  • Maintain configuration documentation accuracy

    grafana/grafana
    Configurations Markdown
    4
    ⭐ 68825

    Always ensure configuration documentation accurately reflects the current system capabilities, limitations,...

    ⛶
  • Judicious configuration management

    grafana/grafana
    Configurations Go
    4
    ⭐ 68825

    Carefully manage configuration options, including feature flags, to balance flexibility with maintainabilit...

    ⛶
  • Fail-safe security defaults

    grafana/grafana
    Security Go
    4
    ⭐ 68825

    Always implement security features with fail-safe defaults that deny access or disable insecure functionali...

    ⛶
  • Consistent semantic naming

    grafana/grafana
    Naming Conventions TypeScript
    4
    ⭐ 68825

    Use consistent, specific, and semantically appropriate naming conventions throughout the codebase. When cre...

    ⛶
  • Consistent API versioning approach

    grafana/grafana
    API Go
    4
    ⭐ 68825

    Adopt and document a consistent approach to API versioning across your services. The chosen format should b...

    ⛶
  • Component architecture principles

    grafana/grafana
    React TSX
    4
    ⭐ 68825

    Extract logic that doesn't render JSX into custom hooks instead of components. Components that don't return...

    ⛶
  • User-focused documentation structure

    block/goose
    Documentation Markdown
    4
    ⭐ 19037

    Documentation should prioritize user needs and problems over technical implementation details. Start with t...

    ⛶
  • Optimize memory and algorithms

    block/goose
    Performance Optimization Rust
    4
    ⭐ 19037

    Focus on efficient memory usage and algorithm selection while preserving functionality. Apply these optimiz...

    ⛶
  • Handle errors intentionally

    block/goose
    Error Handling TypeScript
    4
    ⭐ 19037

    Avoid generic catch-all error handling that masks important failures. Instead, be selective about which err...

    ⛶
  • consolidate API parameters

    block/goose
    API Rust
    4
    ⭐ 19037

    Prefer consolidating common configuration and parameters in API constructors or base methods rather than re...

    ⛶
  • avoid concurrency anti-patterns

    block/goose
    Concurrency Rust
    4
    ⭐ 19037

    Avoid common concurrency anti-patterns that lead to race conditions, deadlocks, and unreliable behavior. Us...

    ⛶
  • AI terminology consistency

    block/goose
    AI Markdown
    4
    ⭐ 19037

    Maintain consistent terminology when describing AI systems, capabilities, and workflows throughout document...

    ⛶
  • Descriptive idiomatic identifiers

    gin-gonic/gin
    Naming Conventions Go
    4
    ⭐ 83022

    Use descriptive names for variables, types, and interfaces that follow Go language idioms. Avoid single-let...

    ⛶
  • Consistent error patterns

    gin-gonic/gin
    Error Handling Go
    4
    ⭐ 83022

    Implement consistent error handling patterns throughout your codebase to improve readability and maintainab...

    ⛶
  • Structure user documentation

    ghostty-org/ghostty
    Documentation Other
    4
    ⭐ 32864

    When documenting complex features or configuration options, structure your documentation with these four ke...

    ⛶
  • Semantic name clarity

    ghostty-org/ghostty
    Naming Conventions Swift
    4
    ⭐ 32864

    Names should clearly and accurately reflect the purpose of variables, methods, and other identifiers. Follo...

    ⛶
  • Prevent unnecessary memory operations

    ghostty-org/ghostty
    Performance Optimization Other
    4
    ⭐ 32864

    Avoid redundant memory allocations and copies when simpler alternatives exist. This includes: 1. Use in-pl...

    ⛶
  • Optimize comparison patterns efficiently

    ghostty-org/ghostty
    Algorithms Other
    4
    ⭐ 32864

    Choose efficient comparison patterns and algorithms based on the data type and use case. Key guidelines: 1...

    ⛶
  • In-tree build configurations

    ghostty-org/ghostty
    CI/CD Yaml
    4
    ⭐ 32864

    Keep all build configuration files (Snapcraft, Flatpak manifests, etc.) in the repository alongside your co...

    ⛶
  • prefer settings over environment

    google-gemini/gemini-cli
    Configurations TypeScript
    4
    ⭐ 65062

    Prefer settings.json over environment variables and CLI flags for user configuration options. Environment v...

    ⛶
  • Centralize proxy configuration

    google-gemini/gemini-cli
    Networking TypeScript
    4
    ⭐ 65062

    Avoid duplicate proxy configuration across your application by establishing a single point of proxy setup a...

    ⛶
  • Centralize configuration management

    google-gemini/gemini-cli
    Configurations TSX
    4
    ⭐ 65062

    Prefer centralized configuration files (settings.json, settings.ts) over environment variables for applicat...

    ⛶
  • Validate with sensible defaults

    fatedier/frp
    Configurations Go
    4
    ⭐ 95938

    Implement a comprehensive configuration validation strategy that combines centralized validation functions ...

    ⛶
  • Follow Go naming conventions

    fatedier/frp
    Naming Conventions Go
    4
    ⭐ 95938

    Adhere to Go's standard naming conventions for identifiers: 1. **Control visibility with capitalization**:...

    ⛶
  • Deterministic Array Algorithm Contracts

    freeCodeCamp/freeCodeCamp
    Algorithms Markdown
    4
    ⭐ 444449

    For algorithm-heavy code that transforms arrays (multi-step pipelines, scheduling, deduping, cyclic travers...

    ⛶
  • Optimize migration code

    laravel/framework
    Migrations PHP
    4
    ⭐ 33763

    When writing database migration code, prioritize clarity and efficiency to ensure migrations are reliable a...

    ⛶
  • Optimize loop operations