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 (4418)

  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 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...

    ⛶
  • 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...

    ⛶
  • Standardize configuration paths

    quarkusio/quarkus
    Configurations Other
    10
    ⭐ 14667

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

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • Optimize numerical precision

    pytorch/pytorch
    AI C++
    8
    ⭐ 91345

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

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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,...

    ⛶
  • 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, ...

    ⛶
  • 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...

    ⛶
  • 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 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 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...

    ⛶
  • 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...

    ⛶
  • 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 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 ...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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....

    ⛶
  • 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...

    ⛶
  • 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:...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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 ...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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...

    ⛶
  • 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**:...

    ⛶
  • 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

    laravel/framework
    Algorithms PHP
    4
    ⭐ 33763

    When writing loops, optimize for both readability and performance by following these key principles: 1. **...

    ⛶
  • Disable coverage in workflows

    laravel/framework
    Testing Yaml
    4
    ⭐ 33763

    Keep code coverage tools disabled in CI/CD workflows unless they're specifically needed for generating cove...

    ⛶
  • Descriptive configuration keys

    laravel/framework
    Configurations PHP
    4
    ⭐ 33763

    Configuration keys should clearly indicate their value type, units, or expected format to prevent misunders...

    ⛶
  • Test observable behavior

    flutter/flutter
    Testing Other
    4
    ⭐ 172252

    Focus on testing what users see and experience rather than internal implementation details. Tests should ve...

    ⛶
  • Make errors explicit

    flutter/flutter
    Error Handling Other
    4
    ⭐ 172252

    Always make error conditions explicit and visible rather than hiding them through silent failures, default ...

    ⛶
  • Future-proof configuration defaults

    flutter/flutter
    Configurations Other
    4
    ⭐ 172252

    When designing configuration options, avoid hardcoded values and ensure defaults can be changed in future v...

    ⛶
  • Validate configuration defaults

    gofiber/fiber
    Configurations Go
    4
    ⭐ 37560

    Configuration structs should validate input values and provide sensible defaults that work well in producti...

    ⛶
  • Use context for configuration

    gofiber/fiber
    Configurations Markdown
    4
    ⭐ 37560

    When accessing application state or configuration within request handlers, always use the context method `c...

    ⛶
  • Include practical examples

    gofiber/fiber
    Documentation Markdown
    4
    ⭐ 37560

    Documentation should include practical, working examples that demonstrate real-world usage scenarios. When ...

    ⛶
  • Document mutex usage

    gofiber/fiber
    Concurrency Go
    4
    ⭐ 37560

    Always document mutex fields and their purpose, ensure proper locking/unlocking patterns, and avoid redunda...

    ⛶
  • Proper Handling of Promises in Fastify Implementations

    fastify/fastify
    Fastify TypeScript
    4
    ⭐ 34000

    When implementing Fastify applications in TypeScript, it is important to follow consistent patterns for han...

    ⛶
  • Content negotiation design

    fastify/fastify
    API JavaScript
    4
    ⭐ 34000

    When building APIs, implement proper content negotiation to handle various media types in both requests and...

    ⛶
  • Consistent descriptive naming

    fastify/fastify
    Naming Conventions JavaScript
    4
    ⭐ 34000

    Use precise, consistent, and descriptive naming conventions throughout your code to enhance readability and...

    ⛶
  • Benchmark before choosing methods

    fastify/fastify
    Performance Optimization JavaScript
    4
    ⭐ 34000

    Always benchmark different implementation approaches for performance-critical operations before selecting a...

    ⛶
  • Use pytest fixtures effectively

    fastapi/fastapi
    Testing Python
    4
    ⭐ 86871

    Tests should use pytest fixtures to improve organization, promote test isolation, and avoid code duplicatio...

    ⛶
  • Use early returns

    fastapi/fastapi
    Code Style Python
    4
    ⭐ 86871

    Decrease indentation levels in your code by using early returns for edge cases and guard conditions. This a...

    ⛶
  • Respect async execution order

    fastapi/fastapi
    Concurrency Markdown
    4
    ⭐ 86871

    When working with asynchronous code, always be mindful of the execution order of operations, particularly w...

    ⛶
  • Proper HTTP status codes

    fastapi/fastapi
    Security Python
    4
    ⭐ 86871

    When implementing authentication and authorization systems, use semantically correct HTTP status codes to a...

    ⛶
  • Optimize hot paths

    expressjs/express
    Performance Optimization JavaScript
    4
    ⭐ 67300

    When writing code that will be executed frequently (hot paths), prioritize performance optimizations that r...

    ⛶
  • Optimize dependency automation

    expressjs/express
    Configurations Yaml
    4
    ⭐ 67300

    Configure automated dependency update tools (like Dependabot) to balance security needs against developer c...

    ⛶
  • Access settings properly

    expressjs/express
    Configurations JavaScript
    4
    ⭐ 67300

    Always use the provided settings accessor methods (`app.get()`, `app.set()`, `app.enabled()`, `app.disabled...

    ⛶
  • Algorithm selection correctness

    evanw/esbuild
    Algorithms Go
    4
    ⭐ 39161

    Choose algorithms that correctly match the problem requirements and understand their computational properti...

    ⛶
  • mark experimental configuration features

    electron/electron
    Configurations Markdown
    4
    ⭐ 117644

    Always mark experimental and deprecated configuration options with appropriate stability indicators in docu...

    ⛶
  • Ensure async error cleanup

    electron/electron
    Error Handling TypeScript
    4
    ⭐ 117644

    Always ensure cleanup code executes and avoid creating dangling promises in error handling scenarios. Use t...

    ⛶
  • consistent nullable returns

    electron/electron
    Null Handling Markdown
    4
    ⭐ 117644

    Establish consistent patterns for nullable return values in APIs and document them clearly. Use `null` cons...

    ⛶
  • Avoid exposing sensitive APIs

    electron/electron
    Security Markdown
    4
    ⭐ 117644

    Do not enable configurations that expose Node.js or Electron APIs to untrusted web content in renderer proc...

    ⛶
  • Parallel branch traceability

    elastic/elasticsearch
    Algorithms Markdown
    4
    ⭐ 73104

    When implementing algorithms with parallel processing branches, ensure proper traceability and data consist...

    ⛶
  • Exceptions for critical errors

    elastic/elasticsearch
    Error Handling Java
    4
    ⭐ 73104

    Use exceptions rather than assertions for handling critical error conditions that need to be caught in prod...

    ⛶
  • Defensive null handling

    elastic/elasticsearch
    Null Handling Java
    4
    ⭐ 73104

    Always handle null references and values defensively to prevent NullPointerExceptions and unexpected behavi...

    ⛶
  • Configure type serialization

    elastic/elasticsearch
    Database Markdown
    4
    ⭐ 73104

    When working with databases that exchange data with other systems, ensure proper serialization and deserial...

    ⛶
  • Clarity over uncertainty

    elastic/elasticsearch
    Documentation Markdown
    4
    ⭐ 73104

    Technical documentation should use precise language that clearly differentiates between product behavior an...

    ⛶
  • Protect shared state

    duckdb/duckdb
    Concurrency C++
    4
    ⭐ 32061

    Always protect shared mutable state with appropriate synchronization mechanisms to prevent race conditions ...

    ⛶
  • preserve serialization compatibility

    duckdb/duckdb
    Migrations Other
    4
    ⭐ 32061

    When making changes to serialized data structures, always preserve backward and forward compatibility to pr...

    ⛶
  • prefer settings over pragmas

    duckdb/duckdb
    Configurations C++
    4
    ⭐ 32061

    When implementing configuration options, prefer database settings over pragma functions to maintain consist...

    ⛶
  • optimize hot path performance

    duckdb/duckdb
    Performance Optimization Other
    4
    ⭐ 32061

    Avoid expensive operations in frequently executed code paths by implementing performance optimizations such...

    ⛶
  • maintain API backward compatibility

    duckdb/duckdb
    API Other
    4
    ⭐ 32061

    When evolving APIs, prioritize backward compatibility by creating new methods or overloads rather than modi...

    ⛶
  • Constructor configuration injection

    duckdb/duckdb
    Configurations Other
    4
    ⭐ 32061

    Prefer injecting configuration objects through constructors rather than passing them as ad-hoc parameters o...

    ⛶
  • comprehensive database testing

    duckdb/duckdb
    Database Other
    4
    ⭐ 32061

    Database tests should execute actual queries and verify results comprehensively, not just check query plans...

    ⛶
  • Use standardized logging pattern

    stanfordnlp/dspy
    Logging Python
    4
    ⭐ 27813

    Always use the standardized logging pattern with module-level loggers instead of print statements or direct...

    ⛶
  • Optional dependency management

    stanfordnlp/dspy
    Configurations Toml
    4
    ⭐ 27813

    Avoid including optional or provider-specific dependencies in the main dependency list. Dependencies should...

    ⛶
  • Configuration context consistency

    drizzle-team/drizzle-orm
    Configurations TypeScript
    4
    ⭐ 29461

    Ensure configuration names, values, and settings accurately reflect their intended context and usage. Confi...

    ⛶
  • Prevent N+1 queries

    django/django
    Database Txt
    4
    ⭐ 84182

    The N+1 query problem is one of the most common performance bottlenecks in Django applications. This occurs...

    ⛶
  • Optimize computational complexity

    django/django
    Algorithms Python
    4
    ⭐ 84182

    Identify and reduce computational complexity in your code by minimizing redundant operations and simplifyin...

    ⛶
  • Measure before optimizing

    django/django
    Performance Optimization Python
    4
    ⭐ 84182

    Always measure performance impact before implementing optimizations and focus on changes with meaningful be...

    ⛶
  • Defend against nulls

    django/django
    Null Handling Python
    4
    ⭐ 84182

    Always use defensive programming techniques when handling potentially null or empty values to avoid runtime...

    ⛶
  • Use dynamic configuration access

    discourse/discourse
    Configurations JavaScript
    4
    ⭐ 44898

    Always access configuration values through proper service APIs rather than hardcoding them or using unrelia...

    ⛶
  • Safe setting modifications

    discourse/discourse
    Configurations Ruby
    4
    ⭐ 44898

    When modifying site settings during operations like imports, jobs, or plugin initialization, implement prop...

    ⛶
  • Include contextual log information

    discourse/discourse
    Logging Ruby
    4
    ⭐ 44898

    Log messages should include sufficient context to make them useful for debugging, monitoring, and audit tra...

    ⛶
  • Consistent null safety patterns

    discourse/discourse
    Null Handling JavaScript
    4
    ⭐ 44898

    Apply null safety operators consistently throughout your code to prevent runtime errors and improve readabi...

    ⛶
  • Avoid N+1 queries

    discourse/discourse
    Database Ruby
    4
    ⭐ 44898

    Prevent N+1 query performance issues by batching database operations instead of making individual queries w...

    ⛶
  • API parameter handling

    discourse/discourse
    API JavaScript
    4
    ⭐ 44898

    Ensure consistent and safe handling of parameters and data across API endpoints. This includes using proper...

    ⛶
  • API parameter clarity

    discourse/discourse
    API Ruby
    4
    ⭐ 44898

    Design API parameters with clear naming, structured formats, and intuitive interfaces that are easy for cli...

    ⛶
  • Validate access controls

    langgenius/dify
    Security Python
    4
    ⭐ 114231

    Always implement comprehensive validation for access control mechanisms to prevent unauthorized access and ...

    ⛶
  • Name by semantic purpose

    langgenius/dify
    Naming Conventions TSX
    4
    ⭐ 114231

    Choose names that reflect the semantic purpose and meaning rather than implementation details or arbitrary ...

    ⛶
  • Validate operation permissions

    denoland/deno
    Security Rust
    4
    ⭐ 103714

    Ensure appropriate permission checks are implemented before performing security-sensitive operations that a...

    ⛶
  • Use appropriate error types

    denoland/deno
    Error Handling TypeScript
    4
    ⭐ 103714

    Functions should use specific, appropriate error handling mechanisms rather than generic or brittle approac...

    ⛶
  • prefer safe optional returns

    denoland/deno
    Null Handling Rust
    4
    ⭐ 103714

    When designing APIs and handling potentially missing or unavailable values, prefer returning optional types...

    ⛶
  • explicit dependency configuration

    denoland/deno
    Configurations Toml
    4
    ⭐ 103714

    Ensure dependency configurations are explicit and predictable to avoid confusion and unexpected build behav...

    ⛶
  • defensive null handling

    denoland/deno
    Null Handling JavaScript
    4
    ⭐ 103714

    Use defensive programming patterns to prevent null-related issues before they occur. This includes creating...

    ⛶
  • Use modern API methods

    deeplearning4j/deeplearning4j
    Algorithms Markdown
    4
    ⭐ 14036

    When implementing algorithms with numerical libraries like ND4J, always prefer the most direct and type-saf...

    ⛶
  • Minimize object allocations

    deeplearning4j/deeplearning4j
    Performance Optimization Java
    4
    ⭐ 14036

    Avoid creating unnecessary temporary objects or arrays which can impact performance through increased garba...

    ⛶
  • Keep configurations current

    deeplearning4j/deeplearning4j
    Configurations Other
    4
    ⭐ 14036

    Ensure all configuration elements (dependencies, build settings, preprocessor flags) are up-to-date, docume...

    ⛶
  • Fail fast clearly

    deeplearning4j/deeplearning4j
    Error Handling Java
    4
    ⭐ 14036

    Detect and report errors as early as possible with detailed context to prevent silent failures and aid debu...

    ⛶
  • Document AI APIs completely

    deeplearning4j/deeplearning4j
    AI Markdown
    4
    ⭐ 14036

    When developing AI libraries and tools, provide comprehensive and accurate API documentation that helps use...

    ⛶
  • Cross-platform algorithm optimization

    deeplearning4j/deeplearning4j
    Algorithms Other
    4
    ⭐ 14036

    When implementing algorithms that need to execute efficiently across different platforms, consider both com...

    ⛶
  • Configurable resource locations

    deeplearning4j/deeplearning4j
    Configurations Java
    4
    ⭐ 14036

    Always make file paths, temporary directories, and resource locations configurable with reasonable defaults...

    ⛶
  • Compare floating-point safely

    deeplearning4j/deeplearning4j
    Algorithms Java
    4
    ⭐ 14036

    When implementing numerical algorithms, never compare floating-point values directly for equality due to pr...

    ⛶
  • Use precise networking terminology

    cypress-io/cypress
    Networking Other
    4
    ⭐ 48850

    When writing error messages or documentation related to network requests and cross-origin policies, use pre...

    ⛶
  • prefer existence over truthiness

    cypress-io/cypress
    Null Handling TypeScript
    4
    ⭐ 48850

    Use explicit existence checks instead of truthiness checks when dealing with object properties, null/undefi...

    ⛶
  • meaningful test assertions

    cypress-io/cypress
    Testing TypeScript
    4
    ⭐ 48850

    Write tests that verify specific behavior and outcomes rather than relying on weak assertions like snapshot...

    ⛶
  • GraphQL mutation design

    cypress-io/cypress
    API TypeScript
    4
    ⭐ 48850

    Design GraphQL mutations to return meaningful objects rather than simple booleans, and use simple ID parame...

    ⛶
  • Environment variable handling

    cypress-io/cypress
    Configurations JavaScript
    4
    ⭐ 48850

    Environment variables should be properly validated, parsed, and documented with clear override mechanisms. ...

    ⛶
  • Choose appropriate log levels

    cypress-io/cypress
    Logging JavaScript
    4
    ⭐ 48850

    Select log levels based on the intended audience and actionability of the message. Use `debug` for internal...

    ⛶
  • Default None not empty

    crewaiinc/crewai
    Null Handling Python
    4
    ⭐ 33945

    Always use `None` as the default value for optional parameters and class attributes instead of empty collec...

    ⛶
  • Pause tracking during side-effects

    vuejs/core
    Concurrency TypeScript
    4
    ⭐ 50769

    When executing side-effects in reactive systems (like event handlers, cleanup functions, or async operation...

    ⛶
  • Optimize common search paths

    vuejs/core
    Algorithms TypeScript
    4
    ⭐ 50769

    Implement dedicated fast paths for common search patterns while maintaining a complete fallback path for ed...

    ⛶
  • log complete error objects

    adonisjs/core
    Logging TypeScript
    4
    ⭐ 18071

    Always log complete error objects rather than just error messages to preserve stack traces, error codes, an...

    ⛶
  • Guarantee cleanup execution

    vuejs/core
    Error Handling TypeScript
    4
    ⭐ 50769

    When implementing features that require cleanup or state restoration, always use try-finally blocks to ensu...

    ⛶
  • Consistent documentation language

    home-assistant/core
    Documentation Json
    4
    ⭐ 80450

    Maintain consistency in wording, formatting, and specificity across all documentation strings to improve re...

    ⛶
  • Batch operations efficiently

    home-assistant/core
    Performance Optimization Python
    4
    ⭐ 80450

    Collect and execute similar operations together rather than performing them individually to reduce overhead...

    ⛶
  • API documentation consistency

    home-assistant/core
    API Json
    4
    ⭐ 80450

    Ensure all API-related descriptions, field names, and documentation accurately reflect the terminology and ...

    ⛶
  • Working configuration examples

    continuedev/continue
    Configurations Markdown
    4
    ⭐ 27819

    Configuration examples should be complete, accurate, and ready to use without modification. This applies to...

    ⛶
  • Safe property access

    continuedev/continue
    Null Handling TSX
    4
    ⭐ 27819

    Always use proper null safety patterns when accessing properties that might be null or undefined. This prev...

    ⛶
  • Prevent broken interactions

    continuedev/continue
    Error Handling TSX
    4
    ⭐ 27819

    Ensure UI elements' visual state (e.g., disabled, active) always matches their actual behavior. When an ele...

    ⛶
  • Prevent async deadlocks

    continuedev/continue
    Concurrency TypeScript
    4
    ⭐ 27819

    Avoid circular dependencies in asynchronous code paths that can lead to deadlocks or indefinite blocking. W...

    ⛶
  • Maintain API compatibility

    continuedev/continue
    API TypeScript
    4
    ⭐ 27819

    When modifying existing APIs, ensure backward compatibility to prevent runtime failures and minimize migrat...

    ⛶
  • Write deterministic test assertions

    docker/compose
    Testing Go
    4
    ⭐ 35858

    Tests should be deterministic and explicit in their assertions to ensure reliability and maintainability. F...

    ⛶
  • Wrap and check errors

    docker/compose
    Error Handling Go
    4
    ⭐ 35858

    Always wrap errors with meaningful context and use typed error checking instead of string matching. This he...

    ⛶
  • Use standard API fields

    docker/compose
    API Python
    4
    ⭐ 35858

    When designing APIs or interfaces, prioritize using existing standard fields and patterns from established ...

    ⛶
  • Use API options pattern

    docker/compose
    API Go
    4
    ⭐ 35858

    Design API methods using options objects instead of multiple parameters. This pattern provides better exten...

    ⛶
  • Prevent unintended CI behaviors

    docker/compose
    CI/CD Go
    4
    ⭐ 35858

    Ensure CI/CD pipelines maintain predictable and reliable behavior by avoiding changes that introduce unexpe...

    ⛶
  • Prevent sensitive data exposure

    docker/compose
    Security Go
    4
    ⭐ 35858

    Implement comprehensive checks to prevent accidental exposure of sensitive data through multiple vectors in...

    ⛶
  • Keep code structure flat

    docker/compose
    Code Style Go
    4
    ⭐ 35858

    Maintain code readability by minimizing nesting depth and using appropriate control structures. Prefer flat...

    ⛶
  • consistent formatting choices

    docker/compose
    Code Style Other
    4
    ⭐ 35858

    Maintain consistent formatting and style choices throughout your codebase to improve readability and mainta...

    ⛶
  • Configuration documentation clarity

    docker/compose
    Configurations Yaml
    4
    ⭐ 35858

    Ensure configuration documentation clearly and accurately describes environment variables, command-line fla...

    ⛶
  • use logging over print

    comfyanonymous/ComfyUI
    Logging Python
    4
    ⭐ 83726

    Replace all `print()` statements with appropriate logging calls using Python's built-in logging module. Thi...

    ⛶
  • optimize computational efficiency

    comfyanonymous/ComfyUI
    Algorithms Python
    4
    ⭐ 83726

    Implement memoization and guard clauses to eliminate redundant computations and improve algorithmic perform...

    ⛶
  • explicit null handling strategies

    comfyanonymous/ComfyUI
    Null Handling Python
    4
    ⭐ 83726

    Functions and APIs should employ explicit strategies for handling null/None values rather than leaving null...

    ⛶
  • Document complex code

    comfyanonymous/ComfyUI
    Documentation Python
    4
    ⭐ 83726

    Add explanatory comments or docstrings for complex, specialized, or non-obvious code that may not be immedi...

    ⛶
  • Semantic naming patterns

    openai/codex
    Naming Conventions Rust
    4
    ⭐ 31275

    Use names that clearly convey purpose and maintain consistency across related components. Avoid generic ide...

    ⛶
  • Prefer specific identifiers

    openai/codex
    Naming Conventions TypeScript
    4
    ⭐ 31275

    Always use specific, descriptive names for identifiers rather than generic terms. Names should clearly indi...

    ⛶
  • Organize code top down

    openai/codex
    Code Style Rust
    4
    ⭐ 31275

    Structure code files with a clear top-down organization, placing primary functions and important declaratio...

    ⛶
  • Minimize blocking operations

    openai/codex
    Concurrency Rust
    4
    ⭐ 31275

    When writing concurrent code, minimize blocking operations to maintain responsiveness and prevent performan...

    ⛶
  • Leverage style tools

    openai/codex
    Code Style TypeScript
    4
    ⭐ 31275

    Maintain consistent code style by using and respecting the project's established formatting tools and patte...

    ⛶
  • Avoid hard-coded configuration

    openai/codex
    Configurations Shell
    4
    ⭐ 31275

    Make scripts and applications flexible by avoiding hard-coded configuration values. Instead, allow users to...

    ⛶
  • Strategic telemetry implementation

    cline/cline
    Observability TypeScript
    4
    ⭐ 48299

    Implement telemetry collection strategically to ensure system reliability and meaningful data capture. Plac...

    ⛶
  • Avoid generic suffixes

    cline/cline
    Naming Conventions Other
    4
    ⭐ 48299

    Avoid using generic suffixes like "Response", "Result", or "Request" in type names, especially for non-requ...

    ⛶
  • Setting declaration practices

    ClickHouse/ClickHouse
    Configurations C++
    4
    ⭐ 42425

    Always declare settings before using them and optimize access patterns for performance. Settings must be pr...

    ⛶
  • Documentation precision standards

    ClickHouse/ClickHouse
    Documentation C++
    4
    ⭐ 42425

    Ensure API documentation uses precise type specifications, proper formatting, and clear language to improve...

    ⛶
  • Write actionable documentation

    snyk/cli
    Documentation Markdown
    4
    ⭐ 5178

    Documentation should be written in active voice with concrete examples and clear context. Avoid passive con...

    ⛶
  • Use centralized configuration access

    snyk/cli
    Configurations Go
    4
    ⭐ 5178

    Always access configuration values through the configuration object rather than direct helper functions or ...

    ⛶
  • Optimize variable declarations

    snyk/cli
    Code Style Go
    4
    ⭐ 5178

    Declare variables close to their usage point and choose appropriate types to improve code readability and r...

    ⛶
  • debug logging reliability

    snyk/cli
    Logging TypeScript
    4
    ⭐ 5178

    Ensure debug logging behaves correctly by only activating when debug flags are explicitly enabled, while pr...

    ⛶
  • avoid hardcoded configuration values

    snyk/cli
    Configurations TypeScript
    4
    ⭐ 5178

    Replace hardcoded URLs, ports, file paths, and environment-specific strings with configurable parameters. H...

    ⛶
  • Use strict test doubles

    chef/chef
    Testing Ruby
    4
    ⭐ 7860

    Always use strict test doubles (instance_double, class_double) instead of basic doubles or OpenStruct in te...

    ⛶
  • Standardize installation directory paths

    chef/chef
    Configurations Other
    4
    ⭐ 7860

    Maintain consistent and separate installation paths for different build types to prevent conflicts and impr...

    ⛶
  • Secure network operations

    chef/chef
    Networking Ruby
    4
    ⭐ 7860

    When performing network operations, prioritize security and configurability to ensure robustness across dif...

    ⛶
  • Document configuration decisions

    chef/chef
    Configurations Yaml
    4
    ⭐ 7860

    Add clear comments explaining the rationale behind configuration decisions, especially for workarounds, com...

    ⛶
  • Document configuration completely

    chef/chef
    Configurations Markdown
    4
    ⭐ 7860

    Always provide complete documentation for configuration options, including defaults, override methods, and ...

    ⛶
  • Use pytest best practices

    bridgecrewio/checkov
    Testing Python
    4
    ⭐ 7668

    Adopt modern pytest features to create maintainable, isolated, and comprehensive tests. This includes: 1. ...

    ⛶
  • Preserve API compatibility

    bridgecrewio/checkov
    API Python
    4
    ⭐ 7668

    When modifying existing APIs, function signatures, or return structures, always maintain backward compatibi...

    ⛶
  • Precise configuration validation

    bridgecrewio/checkov
    Configurations Yaml
    4
    ⭐ 7667

    Ensure configuration validation logic accurately reflects security intentions and best practices. When writ...

    ⛶
  • Provide error feedback

    calcom/cal.com
    Error Handling TSX
    4
    ⭐ 37732

    Always provide clear user feedback when errors occur or operations fail, rather than allowing silent failur...

    ⛶
  • Prefer early returns

    calcom/cal.com
    Code Style TSX
    4
    ⭐ 37732

    Use early returns and guard clauses instead of nested if-else statements to improve code readability and re...

    ⛶
  • optimize iteration patterns

    calcom/cal.com
    Algorithms TypeScript
    4
    ⭐ 37732

    Minimize computational complexity by optimizing iteration patterns and data processing flows. Apply early f...

    ⛶
  • Configuration access patterns

    calcom/cal.com
    Configurations TSX
    4
    ⭐ 37732

    Ensure configuration data is accessed through proper service layers with dependency injection rather than d...

    ⛶
  • Avoid redundant operations

    calcom/cal.com
    Performance Optimization TypeScript
    4
    ⭐ 37732

    Identify and eliminate duplicate or inefficient operations that waste computational resources. Common patte...

    ⛶
  • Avoid generic naming

    calcom/cal.com
    Naming Conventions TSX
    4
    ⭐ 37732

    Choose specific, descriptive names over generic ones for all identifiers including variables, functions, co...

    ⛶
  • Use consistent test patterns

    oven-sh/bun
    Testing TypeScript
    4
    ⭐ 79093

    Standardize testing by leveraging established patterns and helper functions throughout your test suite. Ext...

    ⛶
  • Consistent descriptive identifiers

    oven-sh/bun
    Naming Conventions TypeScript
    4
    ⭐ 79093

    Use camelCase for all variables, parameters, methods, and functions in JavaScript/TypeScript code to mainta...

    ⛶
  • Clear accurate documentation

    oven-sh/bun
    Documentation TypeScript
    4
    ⭐ 79093

    Documentation should be both technically accurate and contextually helpful for developers. Comments and JSD...

    ⛶
  • Always await promises

    oven-sh/bun
    Concurrency TypeScript
    4
    ⭐ 79093

    Consistently use the `await` keyword when working with Promise-returning functions to ensure proper executi...

    ⛶
  • validate LLM reliability

    browser-use/browser-use
    AI Python
    4
    ⭐ 69139

    Always validate LLM capabilities before deployment and implement robust handling for unreliable responses. ...

    ⛶
  • Simplify complex implementations

    browser-use/browser-use
    Code Style Python
    4
    ⭐ 69139

    Replace verbose, complex code structures with simpler, more readable alternatives. Prefer existing methods ...

    ⛶
  • optimize CI performance

    browser-use/browser-use
    CI/CD Yaml
    4
    ⭐ 69139

    Structure CI workflows to minimize execution time and resource usage through strategic job organization, ca...

    ⛶
  • avoid external test dependencies

    browser-use/browser-use
    Testing Python
    4
    ⭐ 69139

    Tests should not rely on external URLs, live websites, or internet connectivity to ensure reliability, cons...

    ⛶
  • Structured environment configuration

    Homebrew/brew
    Configurations Ruby
    4
    ⭐ 44168

    Use structured environment variable handling with explicit validation instead of directly accessing ENV has...

    ⛶
  • Correct GitHub Actions annotations

    Homebrew/brew
    CI/CD Ruby
    4
    ⭐ 44168

    When using GitHub Actions workflow commands for annotations, always include double colons in the syntax (::...

    ⛶
  • Avoid variable name abbreviations

    Homebrew/brew
    Naming Conventions Shell
    4
    ⭐ 44168

    Use complete, descriptive variable names instead of abbreviations to enhance code readability and maintaina...

    ⛶
  • Structure for readability

    boto/boto3
    Code Style Python
    4
    ⭐ 9417

    Prioritize code readability by structuring code in a way that makes it easy to understand at a glance. This...

    ⛶
  • Isolate concurrent resources

    boto/boto3
    Concurrency Other
    4
    ⭐ 9417

    Create separate instances of non-thread-safe resources for each thread or process in concurrent application...

    ⛶
  • Consistent region configuration

    boto/boto3
    Configurations Other
    4
    ⭐ 9417

    Always maintain consistency in region configurations throughout your application. Instead of hardcoding end...

    ⛶
  • Expose essential configurations

    better-auth/better-auth
    Configurations TypeScript
    4
    ⭐ 19651

    Carefully evaluate which configuration options should be exposed to users versus kept internal. Not all con...

    ⛶
  • derive from session context

    better-auth/better-auth
    Security TypeScript
    4
    ⭐ 19651

    Always derive sensitive identifiers and permissions from the authenticated session context rather than acce...

    ⛶
  • validate feature configurations

    bazelbuild/bazel
    Configurations Other
    4
    ⭐ 24489

    Always validate that required features are enabled before using feature-dependent functionality. Feature fl...

    ⛶
  • preserve exception causes

    bazelbuild/bazel
    Error Handling Java
    4
    ⭐ 24489

    When catching an exception and re-throwing a different exception type, always preserve the original excepti...

    ⛶
  • Ensure documentation completeness

    bazelbuild/bazel
    Documentation Other
    4
    ⭐ 24489

    All code elements should have sufficient documentation to understand their purpose, usage, and context. Thi...

    ⛶
  • build action separation

    bazelbuild/bazel
    CI/CD Java
    4
    ⭐ 24489

    Keep build actions focused on their core responsibility and move complex logic to appropriate abstraction l...

    ⛶
  • Write deterministic tests

    Azure/azure-sdk-for-net
    Testing C#
    4
    ⭐ 5809

    Tests should be deterministic, reliable, and isolated from external dependencies to ensure consistent resul...

    ⛶
  • User-friendly configuration values

    Azure/azure-sdk-for-net
    Configurations Markdown
    4
    ⭐ 5809

    Prefer intuitive, user-friendly values for configuration options over technical "magic strings" or codes th...

    ⛶
  • Standardize environment variables

    Azure/azure-sdk-for-net
    Configurations C#
    4
    ⭐ 5809

    Ensure environment variable names are consistently spelled, properly referenced, and follow established nam...

    ⛶
  • Externalize configuration values

    Azure/azure-sdk-for-net
    Configurations Yaml
    4
    ⭐ 5809

    Store configuration values (URLs, demands, pool names) in centralized variables rather than hardcoding them...

    ⛶
  • Use Option combinators

    tokio-rs/axum
    Null Handling Rust
    4
    ⭐ 22100

    Instead of verbose conditional logic, prefer Rust's Option combinators like map, and_then, and filter for h...

    ⛶
  • Structure errors for safety

    tokio-rs/axum
    Error Handling Rust
    4
    ⭐ 22100

    Create specific error types with appropriate status codes while ensuring sensitive details are logged but n...

    ⛶
  • Minimize memory allocation overhead

    tokio-rs/axum
    Performance Optimization Rust
    4
    ⭐ 22100

    Optimize performance by minimizing unnecessary memory allocations and using allocation-efficient APIs. Key ...

    ⛶
  • Lock carefully in async

    tokio-rs/axum
    Concurrency Rust
    4
    ⭐ 22100

    When using locks in async code, follow critical guidelines to avoid deadlocks. Never hold std::sync::Mutex ...

    ⛶
  • Handle protocol headers properly

    tokio-rs/axum
    Networking Rust
    4
    ⭐ 22100

    When implementing network services, especially proxies and protocol handlers, proper HTTP header management...

    ⛶
  • Validate security-critical inputs

    axios/axios
    Security JavaScript
    4
    ⭐ 107000

    Always validate and sanitize user-supplied inputs before using them in security-sensitive operations. This ...

    ⛶
  • Robust Axios Usage in TypeScript

    axios/axios
    Axios TypeScript
    4
    ⭐ 107000

    This review focuses on ensuring robust and type-safe usage of the Axios library in TypeScript codebases. Ke...

    ⛶
  • Proper Error Handling in Axios TypeScript Code

    axios/axios
    Axios TypeScript
    4
    ⭐ 107000

    As a code reviewer, it is important to ensure that Axios-based TypeScript code properly handles and propaga...

    ⛶
  • Extract for better readability

    axios/axios
    Code Style JavaScript
    4
    ⭐ 107000

    Complex expressions and repeated code should be extracted into well-named variables to improve readability ...

    ⛶
  • Maintain consistent formatting

    aws/aws-sdk-js
    Code Style JavaScript
    4
    ⭐ 7628

    Enhance code readability and maintainability by applying consistent formatting practices throughout your co...

    ⛶
  • Validate untrusted inputs

    argoproj/argo-cd
    Security Go
    4
    ⭐ 20149

    Always validate and sanitize user-provided inputs to prevent injection attacks, particularly path traversal...

    ⛶
  • Simplify code readability

    argoproj/argo-cd
    Code Style TSX
    4
    ⭐ 20149

    Prioritize code readability by using clearer control structures, extracting complex expressions into descri...

    ⛶
  • optimize algorithmic complexity

    argoproj/argo-cd
    Algorithms Go
    4
    ⭐ 20149

    Always consider computational complexity and performance when implementing algorithms. Look for opportuniti...

    ⛶
  • explicit security controls

    argoproj/argo-cd
    Security Markdown
    4
    ⭐ 20149

    Security configurations should use explicit controls and secure defaults rather than implicit permissions o...

    ⛶
  • document network requirements

    argoproj/argo-cd
    Networking Markdown
    4
    ⭐ 20149

    When documenting network-dependent features, explicitly specify all network configuration requirements incl...

    ⛶
  • design extensible APIs

    argoproj/argo-cd
    API Go
    4
    ⭐ 20149

    When designing APIs, prioritize extensibility and backwards compatibility over convenience. Avoid modifying...

    ⛶
  • Ensure proper async context

    appwrite/appwrite
    Concurrency Markdown
    4
    ⭐ 51959

    Always wrap asynchronous operations (await, suspend functions, try-await) in the appropriate language-speci...

    ⛶
  • Cypress test isolation

    appwrite/appwrite
    Testing JavaScript
    4
    ⭐ 51959

    Ensure end-to-end tests are properly isolated and follow best practices for reliability. Tests should avoid...

    ⛶
  • Use semantic naming

    ant-design/ant-design
    Naming Conventions TypeScript
    4
    ⭐ 95882

    Choose semantic, non-redundant names that clearly express intent and context. Remove unnecessary prefixes w...

    ⛶
  • Update deprecated demo APIs

    ant-design/ant-design
    API Other
    4
    ⭐ 95882

    Documentation, demos, and example code should always use current, non-deprecated APIs instead of showing de...

    ⛶
  • Test organization standards

    ant-design/ant-design
    Testing TSX
    4
    ⭐ 95882

    Write tests that are well-organized, maintainable, and reflect real usage patterns. Test names should descr...

    ⛶
  • Handle optional values safely

    ant-design/ant-design
    Null Handling TypeScript
    4
    ⭐ 95882

    Always provide safe defaults or fallbacks when working with optional or potentially undefined values. Avoid...

    ⛶
  • Deprecated API documentation

    ant-design/ant-design
    Documentation Markdown
    4
    ⭐ 95882

    When documenting deprecated APIs, follow consistent practices to provide clear guidance to developers while...

    ⛶
  • Use specific descriptive names

    angular/angular
    Naming Conventions Markdown
    4
    ⭐ 98611

    Choose specific, meaningful names that clearly communicate purpose rather than generic or ambiguous alterna...

    ⛶
  • Guard nullable value access

    angular/angular
    Null Handling Markdown
    4
    ⭐ 98611

    Always use appropriate guards or type checks before accessing potentially null or undefined values. Prefer ...

    ⛶
  • Configuration opt-in safety

    angular/angular
    Configurations TypeScript
    4
    ⭐ 98611

    When introducing new configuration options or making changes that could be disruptive, make them opt-in by ...

    ⛶
  • Choose appropriate presentation formats

    angular/angular
    Documentation Markdown
    4
    ⭐ 98611

    Select the most effective format for presenting different types of information in documentation. Use tables...

    ⛶
  • Choose appropriate algorithms

    angular/angular
    Algorithms TypeScript
    4
    ⭐ 98611

    Select algorithms and data structures that match the problem domain and access patterns rather than using c...

    ⛶
  • Avoid reactive over-engineering

    angular/angular
    React Markdown
    4
    ⭐ 98611

    Choose the simplest React primitive that meets your requirements rather than reaching for complex reactive ...

    ⛶
  • async resource cleanup

    angular/angular
    Concurrency TypeScript
    4
    ⭐ 98611

    Always ensure proper cleanup of asynchronous resources (subscriptions, timeouts, event listeners) to preven...

    ⛶
  • Platform-specific API documentation

    alacritty/alacritty
    Networking Other
    4
    ⭐ 59675

    The provided discussions focus on terminal emulator documentation and configuration issues, but do not cont...

    ⛶
  • consistent error handling

    alacritty/alacritty
    Error Handling Rust
    4
    ⭐ 59675

    Maintain uniform error handling patterns throughout the codebase. Avoid mixing different error handling app...

    ⛶
  • Safe constraint modification sequence

    apache/airflow
    Migrations Python
    4
    ⭐ 40858

    When modifying constraints in database migrations, follow a safe sequence of operations to prevent integrit...

    ⛶
  • Parameterize similar tests

    apache/airflow
    Testing Python
    4
    ⭐ 40858

    Write parameterized tests instead of using for loops or duplicating test code for similar test cases. Using...

    ⛶
  • Optimize collection processing patterns

    apache/airflow
    Algorithms Python
    4
    ⭐ 40858

    Use Python's built-in efficient collection processing methods instead of manual implementations. This reduc...

    ⛶
  • Leverage backend API capabilities

    apache/airflow
    API TSX
    4
    ⭐ 40858

    When consuming APIs in frontend applications, utilize the backend capabilities rather than reimplementing e...

    ⛶
  • Explicit version constraints

    apache/airflow
    Configurations Toml
    4
    ⭐ 40858

    Always specify explicit version constraints for dependencies in configuration files (like pyproject.toml), ...

    ⛶
  • Explicit over implicit configuration

    apache/airflow
    Configurations Yaml
    4
    ⭐ 40858

    Always prefer explicit configuration parameters over inferring behavior from indirect sources like image ta...

    ⛶
  • Ensure deterministic queries

    apache/airflow
    Database Python
    4
    ⭐ 40858

    Build SQLAlchemy queries that are both efficient and deterministic to prevent unpredictable results and imp...

    ⛶
  • Document public API boundaries

    apache/airflow
    API Other
    4
    ⭐ 40858

    Clearly define and document the boundaries between public and internal APIs to guide developers on proper i...

    ⛶
  • Context-rich log messages

    apache/airflow
    Logging Python
    4
    ⭐ 40858

    Ensure log messages provide clear context about what happened, potential consequences, and actionable infor...

    ⛶
  • Consistent technical term translation

    apache/airflow
    Naming Conventions Json
    4
    ⭐ 40858

    When localizing an application, maintain consistent conventions for technical terms while respecting langua...

    ⛶
  • Component reuse first

    apache/airflow
    React TSX
    4
    ⭐ 40858

    Always prioritize reusing existing components before creating new ones. This practice improves codebase con...

    ⛶
  • Handle errors gracefully

    Aider-AI/aider
    Error Handling Python
    4
    ⭐ 35856

    Always implement appropriate error handling to prevent crashes while providing clear feedback to users. Con...

    ⛶
  • Externalize configuration values

    Aider-AI/aider
    Configurations Python
    4
    ⭐ 35856

    Always externalize configuration values rather than hardcoding them directly in the code. This improves mai...

    ⛶
  • Place configurations appropriately

    vercel/ai
    Configurations TypeScript
    4
    ⭐ 15590

    Configuration options should be organized based on their nature and scope of use. Place model-specific conf...

    ⛶
  • Explicit code organization patterns

    vercel/ai
    Code Style TypeScript
    4
    ⭐ 15590

    Maintain clear and explicit code organization patterns by following these guidelines: 1. Use explicit prop...

    ⛶
  • Self-explanatory identifier names

    zed-industries/zed
    Naming Conventions Json
    3
    ⭐ 62119

    Choose identifier names that clearly convey their purpose without requiring users to understand implementat...

    ⛶
  • Respect language-specific conventions

    zed-industries/zed
    Code Style Toml
    3
    ⭐ 62119

    Always adhere to the established formatting and syntax conventions of each programming language while maint...

    ⛶
  • Maintain style consistency

    zed-industries/zed
    Code Style Other
    3
    ⭐ 62119

    Ensure consistent styling is maintained across related elements in the codebase. This applies to: 1. **Vis...

    ⛶
  • Maintain consistent naming

    zed-industries/zed
    Naming Conventions Other
    3
    ⭐ 62119

    Ensure naming follows consistent patterns throughout the codebase in both style and structure: 1. Use agre...

    ⛶
  • Hierarchical configuration organization

    zed-industries/zed
    Configurations Json
    3
    ⭐ 62119

    Organize configuration settings hierarchically by grouping related settings under meaningful namespaces rat...

    ⛶
  • Optimize build configurations

    facebook/yoga
    Performance Optimization Txt
    3
    ⭐ 18255

    When configuring CMake builds, carefully select compiler and linker flags that optimize for performance whi...

    ⛶
  • Measure optimization trade-offs

    facebook/yoga
    Performance Optimization Other
    3
    ⭐ 18255

    Always measure and document the impact of performance optimizations before implementing them. When making o...

    ⛶
  • Document complex logic

    facebook/yoga
    Code Style Objective-C
    3
    ⭐ 18255

    Add clear explanatory comments to complex calculations, platform-specific behavior, or non-obvious code sec...

    ⛶
  • Design familiar APIs

    facebook/yoga
    API Other
    3
    ⭐ 18255

    Design APIs that align with platform conventions and user expectations rather than creating novel patterns....

    ⛶
  • consistent formatting choices

    facebook/yoga
    Code Style JavaScript
    3
    ⭐ 18255

    Maintain consistent formatting and structural choices throughout the codebase to improve readability and ma...

    ⛶
  • Analyze performance trade-offs

    facebook/yoga
    Performance Optimization Objective-C
    3
    ⭐ 18255

    Before implementing convenience features or making architectural decisions, carefully evaluate their perfor...

    ⛶
  • Algorithm specification compliance

    facebook/yoga
    Algorithms C
    3
    ⭐ 18255

    When implementing layout algorithms, ensure strict adherence to web standards and specifications, particula...

    ⛶
  • Add safety checks

    facebook/yoga
    Null Handling Objective-C
    3
    ⭐ 18255

    Always add appropriate safety checks before operations that could result in undefined behavior, null refere...

    ⛶
  • Remove unnecessary configurations

    cloudflare/workers-sdk
    Configurations Other
    3
    ⭐ 3379

    Configuration files should only include options that are supported in production and work out of the box. R...

    ⛶
  • HTTP response construction

    cloudflare/workers-sdk
    API TypeScript
    3
    ⭐ 3379

    Use appropriate HTTP response construction methods and status codes for API endpoints. Prefer `Response.jso...

    ⛶
  • eliminate redundant null checks

    cloudflare/workers-sdk
    Null Handling TypeScript
    3
    ⭐ 3379

    Remove unnecessary null/undefined checks when you already have sufficient validation in place, and use prop...

    ⛶
  • Wrap throwing operations

    cloudflare/workerd
    Error Handling TypeScript
    3
    ⭐ 6989

    Always wrap potentially throwing operations in try/catch blocks to prevent unhandled exceptions from crashi...

    ⛶
  • Use KJ_UNWRAP_OR pattern

    cloudflare/workerd
    Null Handling Other
    3
    ⭐ 6989

    When handling potentially null values from functions like `tryParse()` or `tryCast()`, avoid the pattern of...

    ⛶
  • Simplify async patterns

    cloudflare/workerd
    Concurrency JavaScript
    3
    ⭐ 6989

    Use modern promise utilities and clean async patterns instead of manual promise construction. Prefer Promis...

    ⛶
  • prefer nullish coalescing operators

    cloudflare/workerd
    Null Handling TypeScript
    3
    ⭐ 6989

    Use nullish coalescing operators (`??`) and logical OR with safe defaults (`|| {}`) to handle null and unde...

    ⛶
  • document security-sensitive features

    cloudflare/workerd
    Security Other
    3
    ⭐ 6989

    When introducing compatibility flags, feature toggles, or APIs that have security implications, use self-do...

    ⛶
  • defer async callbacks

    cloudflare/workerd
    Concurrency TypeScript
    3
    ⭐ 6989

    Always ensure callbacks and event emissions are executed asynchronously to maintain proper timing and Node....

    ⛶
  • Clear descriptive naming

    cloudflare/workerd
    Naming Conventions TypeScript
    3
    ⭐ 6989

    Choose names that clearly communicate intent without requiring mental gymnastics to understand. Avoid doubl...

    ⛶
  • Choose efficient algorithms

    cloudflare/workerd
    Algorithms TypeScript
    3
    ⭐ 6989

    When implementing algorithms, prioritize efficiency in both time and space complexity. Consider these speci...

    ⛶
  • Centralize error handling

    cloudflare/workerd
    Error Handling Python
    3
    ⭐ 6989

    Consolidate error handling logic into central, unavoidable locations rather than scattering it across multi...

    ⛶
  • Parallelize independent operations

    microsoft/vscode
    Concurrency TypeScript
    3
    ⭐ 174887

    When writing concurrent code, always execute independent operations in parallel rather than sequentially to...

    ⛶
  • Comprehensive JSDoc with examples

    microsoft/vscode
    Documentation TypeScript
    3
    ⭐ 174887

    Write thorough JSDoc comments for interfaces, functions, and methods that clearly explain their purpose and...

    ⛶
  • Avoid CSS !important

    microsoft/vscode
    Code Style Css
    3
    ⭐ 174887

    Using `!important` in CSS declarations should be avoided as it makes styles difficult to override and maint...

    ⛶
  • Standardize configuration formats

    volcano-sh/volcano
    Configurations Markdown
    3
    ⭐ 4899

    Ensure all plugin configurations follow a consistent, structured format across the codebase to improve main...

    ⛶
  • Secure configuration practices

    volcano-sh/volcano
    Security Go
    3
    ⭐ 4899

    Implement secure configuration practices to protect sensitive data and prevent security vulnerabilities. Th...

    ⛶
  • Justify default enablement

    volcano-sh/volcano
    Configurations Yaml
    3
    ⭐ 4899

    When adding new configuration options, carefully consider whether features should be enabled by default. Re...

    ⛶
  • Extract configuration constants

    volcano-sh/volcano
    Configurations Go
    3
    ⭐ 4899

    Avoid hardcoded values and magic numbers in configuration-related code by extracting them as named constant...

    ⛶
  • Document technical details clearly

    volcano-sh/volcano
    Documentation Markdown
    3
    ⭐ 4899

    Ensure all technical documentation provides clear explanations and follows proper formatting conventions. T...

    ⛶
  • Secure before deployment

    vllm-project/vllm
    Security Python
    3
    ⭐ 51730

    Remove or secure development-specific code before deploying to production environments. Development artifac...

    ⛶
  • Protect shared state

    vllm-project/vllm
    Concurrency Python
    3
    ⭐ 51730

    When mutable state (like dictionaries, lists, or counters) is accessed from multiple threads or concurrent ...

    ⛶
  • Structured configuration management

    vitessio/vitess
    Configurations Markdown
    3
    ⭐ 19815

    Avoid using global configuration singletons that rely on string-based lookups, as they lead to brittle code...

    ⛶
  • Robust network handling

    vitessio/vitess
    Networking Go
    3
    ⭐ 19815

    Always implement proper network timeout handling and address formatting to ensure robust connectivity acros...

    ⛶
  • Secure workflow permissions

    vitejs/vite
    CI/CD Yaml
    3
    ⭐ 74031

    Define explicit and minimal permissions in GitHub Actions workflows to ensure proper operation while mainta...

    ⛶
  • Restrict server access

    vitejs/vite
    Security Markdown
    3
    ⭐ 74031

    Always configure server security settings with explicit allowed lists rather than permissive values. Using ...

    ⛶
  • comprehensive validated examples

    vlang/v
    Documentation Markdown
    3
    ⭐ 36582

    Documentation examples should be self-sufficient, comprehensive, and use proper syntax tags to enable autom...

    ⛶
  • Avoid breaking API changes

    vlang/v
    API Other
    3
    ⭐ 36582

    When modifying existing public APIs, always maintain backward compatibility to avoid breaking existing user...

    ⛶
  • Short-circuit evaluation strategies

    astral-sh/uv
    Algorithms Rust
    3
    ⭐ 60322

    When implementing search or traversal algorithms, use short-circuit evaluation strategically to avoid unnec...

    ⛶
  • Optimize cache sharing strategies

    astral-sh/uv
    Caching Markdown
    3
    ⭐ 60322

    Select the appropriate cache sharing approach based on your execution environment to maximize performance a...

    ⛶
  • Follow established naming conventions

    astral-sh/uv
    Naming Conventions Markdown
    3
    ⭐ 60322

    Adhere to established naming conventions for files, variables, functions, and configuration options to main...

    ⛶
  • Enforce strong optional types

    astral-sh/uv
    Null Handling Rust
    3
    ⭐ 60322

    Use strong typing and early validation to handle optional values and prevent null-related issues. Prefer en...

    ⛶
  • Declarative constraints over runtime

    astral-sh/uv
    API Rust
    3
    ⭐ 60322

    Design APIs that enforce constraints through type systems and declarative mechanisms rather than runtime ch...

    ⛶
  • prefer efficient operations

    Unstructured-IO/unstructured
    Performance Optimization Python
    3
    ⭐ 12116

    Choose efficient operations and algorithms over expensive alternatives, particularly when processing data o...

    ⛶
  • API examples completeness

    Unstructured-IO/unstructured
    API Other
    3
    ⭐ 12117

    Ensure all API code examples include all required parameters with correct placeholder values. Incomplete ex...

    ⛶
  • use meaningful error types

    unionlabs/union
    Error Handling TypeScript
    3
    ⭐ 74800

    Replace generic exceptions with context-specific error types that provide meaningful information about what...

    ⛶
  • use Effect Option consistently

    unionlabs/union
    Null Handling TypeScript
    3
    ⭐ 74800

    Replace null, undefined, and error throwing with Effect's Option type for handling potentially missing valu...

    ⛶
  • Use configuration service injection

    unionlabs/union
    Configurations TypeScript
    3
    ⭐ 74800

    Replace mutable singletons and getter functions with dependency injection services for configuration-depend...

    ⛶
  • SQL query best practices

    unionlabs/union
    Database Rust
    3
    ⭐ 74800

    Always include ORDER BY clauses in paginated queries to ensure consistent results across multiple requests....

    ⛶
  • Reuse existing API utilities

    unionlabs/union
    API Rust
    3
    ⭐ 74800

    Before implementing custom API utilities, serializers, or type identification methods, check if equivalent ...

    ⛶
  • organize code for readability

    unionlabs/union
    Code Style Other
    3
    ⭐ 74800

    Structure code to maximize readability and maintainability through clear organization patterns. Use top-lev...

    ⛶
  • Maintain naming consistency

    unionlabs/union
    Naming Conventions Other
    3
    ⭐ 74800

    Ensure consistent terminology and naming conventions across the entire codebase. Use the same identifier na...

    ⛶
  • Choose appropriate async primitives

    unionlabs/union
    Concurrency Rust
    3
    ⭐ 74800

    Select async/concurrency primitives based on your specific usage patterns and requirements rather than defa...

    ⛶
  • avoid hardcoded configuration

    unionlabs/union
    Configurations Rust
    3
    ⭐ 74800

    Avoid hardcoding configuration values directly in code. Instead, make parameters configurable through CLI a...

    ⛶
  • avoid error display duplication

    unionlabs/union
    Error Handling Rust
    3
    ⭐ 74800

    When using thiserror for error handling, avoid displaying source errors in both the error message and the s...

    ⛶
  • Prevent object recreations

    shadcn-ui/ui
    Performance Optimization TSX
    3
    ⭐ 90568

    Avoid creating new objects and functions repeatedly during renders to reduce memory pressure and improve pe...

    ⛶
  • Leverage framework defaults

    shadcn-ui/ui
    Configurations TypeScript
    3
    ⭐ 90568

    Avoid redundant or unnecessary configuration by understanding and utilizing default behaviors provided by f...

    ⛶
  • Complete optional chaining

    shadcn-ui/ui
    Null Handling TSX
    3
    ⭐ 90568

    When using optional chaining (`?.`), ensure that **all subsequent operations** in the chain are also protec...

    ⛶
  • Complete configuration paths

    shadcn-ui/ui
    Configurations Other
    3
    ⭐ 90568

    Always verify that configuration files include all necessary file paths and extensions, particularly for fr...

    ⛶
  • Preserve naming consistency

    microsoft/typescript
    Naming Conventions Other
    3
    ⭐ 105378

    Maintain consistent naming patterns and casing across all related code entities to ensure clarity and preve...

    ⛶
  • Eliminate unnecessary constructs

    microsoft/typescript
    Code Style JavaScript
    3
    ⭐ 105378

    Remove redundant or unnecessary code constructs to improve readability and maintainability. This includes a...

    ⛶
  • Structure documentation logically

    astral-sh/ty
    Documentation Markdown
    3
    ⭐ 11919

    Organize documentation sections and content to match user mental models and workflows, not internal technic...

    ⛶
  • Ensure CI dependency reliability

    astral-sh/ty
    CI/CD Yaml
    3
    ⭐ 11919

    CI workflows should use the most current versions of dependencies and ensure all required tools are availab...

    ⛶
  • Use proper PostgreSQL types

    twentyhq/twenty
    Database TypeScript
    3
    ⭐ 35477

    Leverage PostgreSQL's native data types and features instead of generic alternatives to improve performance...

    ⛶
  • Use proper null utilities

    twentyhq/twenty
    Null Handling TSX
    3
    ⭐ 35477

    Use dedicated null checking utilities like `isDefined` or `isUndefinedOrNull` instead of generic type coerc...

    ⛶
  • Security-critical code review

    twentyhq/twenty
    Security TypeScript
    3
    ⭐ 35477

    Changes to security-sensitive areas like authentication, input validation, and business logic require extra...

    ⛶
  • Choose appropriate concurrency patterns

    twentyhq/twenty
    Concurrency TypeScript
    3
    ⭐ 35477

    Select concurrency mechanisms that align with your system architecture and established codebase patterns. A...

    ⛶
  • Avoid repeated expensive operations

    twentyhq/twenty
    Performance Optimization TSX
    3
    ⭐ 35477

    Replace repeated expensive operations like `find()`, `filter()`, or `sort()` with pre-computed maps or cach...

    ⛶
  • Validate configuration structures

    vercel/turborepo
    Configurations TypeScript
    3
    ⭐ 28115

    Ensure configuration files and schemas adhere to their expected structure, location, and uniqueness constra...

    ⛶
  • Use functional null handling

    vercel/turborepo
    Null Handling Rust
    3
    ⭐ 28115

    Leverage Rust's functional operators for handling nullable and optional values. Instead of using unwrap() o...

    ⛶
  • Use affected mode

    vercel/turborepo
    CI/CD Other
    3
    ⭐ 28115

    Optimize CI pipelines by running tasks only on packages affected by code changes. Use the `--affected` flag...

    ⛶
  • Standardize package manager commands

    vercel/turborepo
    CI/CD Markdown
    3
    ⭐ 28115

    Ensure all package manager commands in documentation and CI/CD scripts follow the correct syntax for the sp...

    ⛶
  • Semantic naming conventions

    vercel/turborepo
    Naming Conventions TypeScript
    3
    ⭐ 28115

    Use names that clearly convey the purpose and content of variables, parameters, and properties. When workin...

    ⛶
  • Minimize lock duration

    vercel/turborepo
    Concurrency Rust
    3
    ⭐ 28115

    When using locks in asynchronous code, minimize the scope and duration for which locks are held, especially...

    ⛶
  • Document configuration alternatives

    vercel/turborepo
    Configurations Markdown
    3
    ⭐ 28115

    When documenting commands or tools that can be executed in different ways based on configuration settings (...

    ⛶
  • Document cache strategies

    vercel/turborepo
    Caching Other
    3
    ⭐ 28115

    Always provide clear documentation and implementation for caching strategies, including key generation, inv...

    ⛶
  • Write explicit concrete tests

    tree-sitter/tree-sitter
    Testing Rust
    3
    ⭐ 21799

    Tests should be written explicitly with concrete examples and clear assertions rather than being generated ...

    ⛶
  • optimize parser development strategy

    tree-sitter/tree-sitter
    Algorithms Markdown
    3
    ⭐ 21799

    When developing parsers or grammars, apply strategic optimization by prioritizing commonly used language fe...

    ⛶
  • optimize dependency configurations

    tree-sitter/tree-sitter
    Configurations Toml
    3
    ⭐ 21799

    When configuring dependencies in package manifests, prioritize efficiency and maintainability by avoiding r...

    ⛶
  • API pattern consistency

    tree-sitter/tree-sitter
    API Other
    3
    ⭐ 21799

    When designing new API functions, maintain consistent patterns across the codebase and avoid creating prece...

    ⛶
  • Remove unused code elements

    traefik/traefik
    Code Style Go
    3
    ⭐ 55772

    Eliminate unnecessary code elements including unused parameters, struct tags, methods, and dead code to imp...

    ⛶
  • descriptive contextual logging

    traefik/traefik
    Logging Go
    3
    ⭐ 55772

    Log messages should be descriptive, contextual, and provide actionable information. Include relevant contex...

    ⛶
  • Optimize job structure

    tokio-rs/tokio
    CI/CD Yaml
    3
    ⭐ 28989

    Structure CI jobs for clarity, parallelism, and efficiency. Each job should have a single, well-defined pur...

    ⛶
  • Optimize CI job structure

    tokio-rs/tokio
    CI/CD Yaml
    3
    ⭐ 28981

    Structure your CI workflows to maximize performance and clarity. Each job should have a single, clear respo...

    ⛶
  • Minimize unsafe code

    tokio-rs/tokio
    Security Rust
    3
    ⭐ 28981

    When writing code that requires unsafe operations, follow these critical security practices: 1. Minimize t...

    ⛶
  • Clear command documentation

    tokio-rs/tokio
    Documentation Markdown
    3
    ⭐ 28989

    When documenting shell commands in technical documentation, use the `shell` language identifier instead of ...

    ⛶
  • Thread-safe resource sharing

    huggingface/tokenizers
    Concurrency Rust
    3
    ⭐ 9868

    When sharing mutable data between threads, use the `Arc>` pattern to ensure thread safety. `Arc` ...

    ⛶
  • Pythonic API design

    huggingface/tokenizers
    API Python
    3
    ⭐ 9868

    Design APIs that follow Python language conventions and idioms rather than blindly mirroring the underlying...

    ⛶
  • Purpose-indicating descriptive names

    huggingface/tokenizers
    Naming Conventions Python
    3
    ⭐ 9868

    Choose names for variables, methods, parameters, and fixtures that clearly communicate their purpose, conte...

    ⛶
  • Optimize workflow triggers

    huggingface/tokenizers
    CI/CD Yaml
    3
    ⭐ 9868

    Configure CI workflows with targeted triggers and path filters to balance thoroughness with efficiency. Run...

    ⛶
  • Modular model components

    huggingface/tokenizers
    AI Rust
    3
    ⭐ 9868

    Design machine learning model code with clear component boundaries and proper separation of concerns. Each ...

    ⛶
  • Manage version constraints

    huggingface/tokenizers
    Configurations Toml
    3
    ⭐ 9868

    When configuring dependency version constraints in project files, follow these principles: 1. Be explicit ...

    ⛶
  • Technical precision matters

    hashicorp/terraform
    Algorithms Other
    3
    ⭐ 45532

    When documenting algorithms, data structures, and computational processes, use precise and objective langua...

    ⛶
  • Document implementation rationale

    microsoft/terminal
    Documentation C++
    3
    ⭐ 99242

    Add comments that explain the reasoning behind non-obvious code decisions, technical constraints, or comple...

    ⛶
  • Clear accurate error messages

    microsoft/terminal
    Error Handling Other
    3
    ⭐ 99242

    Error messages should be clear, accurate, and contextually appropriate to help users understand what went w...

    ⛶
  • Validate tensor inputs safely

    tensorflow/tensorflow
    Null Handling Python
    3
    ⭐ 190625

    When handling tensor inputs that may contain invalid values, use transformational approaches rather than co...

    ⛶
  • Separate test data

    tensorflow/tensorflow
    Testing Other
    3
    ⭐ 190625

    Large test data should be separated from test logic to improve readability and maintainability. Move test d...

    ⛶
  • Use dedicated configuration files

    temporalio/temporal
    Configurations Other
    3
    ⭐ 14953

    Always use dedicated configuration files for specific configuration needs rather than modifying core build ...

    ⛶
  • Structured contextual logging

    temporalio/temporal
    Logging Go
    3
    ⭐ 14953

    Always use structured logging with appropriate tags instead of string concatenation or formatting. Include ...

    ⛶
  • Operation order affects correctness

    temporalio/temporal
    Algorithms Go
    3
    ⭐ 14953

    When implementing algorithms that involve multiple operations (like iteration, validation, and execution), ...

    ⛶
  • Minimize code nesting depth

    temporalio/temporal
    Code Style Go
    3
    ⭐ 14953

    Reduce cognitive load and improve code readability by minimizing nested code blocks. Prefer early returns a...

    ⛶
  • Context-aware network calls

    temporalio/temporal
    Networking Go
    3
    ⭐ 14953

    Always propagate context through network calls to ensure proper cancellation, timeout handling, and tracing...

    ⛶
  • Use structured API parameters

    gravitational/teleport
    API Go
    3
    ⭐ 19109

    When designing APIs with multiple related parameters, especially optional ones like filters, sorting, and p...

    ⛶
  • Use semantically clear names

    gravitational/teleport
    Naming Conventions Other
    3
    ⭐ 19109

    Choose names that clearly convey their purpose, scope, and meaning to reduce ambiguity and improve code mai...

    ⛶
  • Use descriptive semantic names

    gravitational/teleport
    Naming Conventions TypeScript
    3
    ⭐ 19109

    Choose descriptive, semantic names that clearly convey purpose and meaning rather than generic or ambiguous...

    ⛶
  • Provide contextual error messages

    gravitational/teleport
    Error Handling Go
    3
    ⭐ 19109

    Error messages should be specific, contextual, and use appropriate error creation functions to help users u...

    ⛶
  • Plan encryption key recovery

    gravitational/teleport
    Security Other
    3
    ⭐ 19109

    Always implement recovery mechanisms and plan for key rotation when designing encryption systems. Encryptio...

    ⛶
  • Follow platform naming standards

    gravitational/teleport
    Naming Conventions Markdown
    3
    ⭐ 19109

    Adhere to established naming conventions specific to each platform, framework, or technology being used. Di...

    ⛶
  • Avoid overly broad permissions

    gravitational/teleport
    Security Go
    3
    ⭐ 19109

    Use specific, scoped permissions instead of wildcards to prevent unintended access to sensitive resources. ...

    ⛶
  • API parameter encapsulation

    gravitational/teleport
    API Other
    3
    ⭐ 19109

    When designing API methods that accept multiple related parameters (especially filters, search criteria, or...

    ⛶
  • Training-aware ML APIs

    tensorflow/swift
    AI Markdown
    3
    ⭐ 6136

    Design machine learning APIs with explicit parameters for distinguishing between training and inference pha...

    ⛶
  • Swift idiomatic naming

    tensorflow/swift
    Naming Conventions Other
    3
    ⭐ 6136

    Follow Swift's naming conventions to write more readable, maintainable code. The Swift language emphasizes ...

    ⛶
  • Provide comprehensive examples

    tensorflow/swift
    Documentation Markdown
    3
    ⭐ 6136

    API documentation should include complete examples that demonstrate all key usage patterns. When documentin...

    ⛶
  • Generic algorithm design

    tensorflow/swift
    Algorithms Other
    3
    ⭐ 6136

    When implementing generic algorithms in Swift, follow these best practices to improve code clarity and perf...

    ⛶
  • Format for readability

    tensorflow/swift
    Code Style Other
    3
    ⭐ 6136

    Code should be formatted to optimize readability. Apply these key practices: 1. **Maintain reasonable line...

    ⛶
  • Follow Swift naming conventions

    tensorflow/swift
    Naming Conventions Swift
    3
    ⭐ 6136

    Ensure code follows established Swift naming conventions and remains consistent with domain terminology: 1...

    ⛶
  • Document API stability

    tensorflow/swift
    AI Other
    3
    ⭐ 6136

    When working with AI frameworks and machine learning libraries, clearly document the stability state of API...

    ⛶
  • API version management

    SWE-agent/SWE-agent
    API Python
    3
    ⭐ 16839

    When integrating with external APIs, explicitly handle version differences and use parameterized configurat...

    ⛶
  • preserve user input focus

    sveltejs/svelte
    React JavaScript
    3
    ⭐ 83580

    When implementing reactive state updates that affect input elements, always check if the user is currently ...

    ⛶
  • Multi-indicator configuration detection

    sveltejs/svelte
    Configurations JavaScript
    3
    ⭐ 83580

    When detecting configuration states, use multiple indicators rather than relying on a single source of trut...

    ⛶
  • Descriptive migration comments

    sveltejs/svelte
    Migrations Other
    3
    ⭐ 83580

    When adding migration task comments, always include specific details about why manual intervention is requi...

    ⛶
  • async cleanup safety

    sveltejs/svelte
    Concurrency JavaScript
    3
    ⭐ 83580

    Ensure async operations include proper safety checks to prevent race conditions, memory leaks, and inconsis...

    ⛶
  • analyze transitive dependencies

    sveltejs/svelte
    Algorithms Markdown
    3
    ⭐ 83580

    When implementing dependency analysis algorithms, ensure comprehensive tracking of both direct and transiti...

    ⛶
  • Use parameter-based paths

    supabase/supabase
    API TSX
    3
    ⭐ 86070

    When designing API routes and interfaces, always use parameter-based path syntax instead of hardcoded liter...

    ⛶
  • Use configuration over hardcoding

    supabase/supabase
    Configurations TSX
    3
    ⭐ 86070

    Always use configuration constants instead of hardcoding values directly in the code. This improves maintai...

    ⛶
  • Prevent re-render triggers

    supabase/supabase
    Performance Optimization TSX
    3
    ⭐ 86070

    Avoid creating new object/array references in component render functions and carefully manage state updates...

    ⛶
  • Explicit role security management

    supabase/supabase
    Database Other
    3
    ⭐ 86070

    Always be explicit about role privileges when configuring database security. Remember that both `authentica...

    ⛶
  • Explicit null handling

    supabase/supabase
    Null Handling TSX
    3
    ⭐ 86070

    Use explicit patterns when dealing with potentially null or undefined values to prevent runtime errors and ...

    ⛶
  • Database entity configuration

    supabase/supabase
    Database TSX
    3
    ⭐ 86070

    Configure database entities with appropriate defaults and clear type distinctions. For triggers, prefer AFT...

    ⛶
  • Centralize configuration values

    supabase/supabase
    Configurations TypeScript
    3
    ⭐ 86070

    Extract and centralize configuration values instead of duplicating or hardcoding them throughout the codeba...

    ⛶
  • Abstract user-facing errors

    supabase/supabase
    Error Handling TSX
    3
    ⭐ 86070

    Error messages displayed to end users should abstract away implementation details while providing actionabl...

    ⛶
  • prefer lazy computation

    browserbase/stagehand
    Algorithms TypeScript
    3
    ⭐ 16443

    Avoid precomputing expensive operations when they may not be needed, especially for large datasets. Instead...

    ⛶
  • Configure workflow triggers

    browserbase/stagehand
    CI/CD Yaml
    3
    ⭐ 16443

    Ensure GitHub Actions workflows are triggered appropriately by configuring branch patterns and path filters...

    ⛶
  • abstract environment variables

    browserbase/stagehand
    Configurations TypeScript
    3
    ⭐ 16443

    Avoid directly referencing environment variables throughout your codebase. Instead, abstract them into name...

    ⛶
  • Standardize configuration formats

    spring-projects/spring-framework
    Configurations Other
    3
    ⭐ 58382

    Use consistent, explicit, and well-documented formats in all configuration files to improve readability and...

    ⛶
  • Package null-safety annotations

    spring-projects/spring-framework
    Null Handling Xml
    3
    ⭐ 58382

    All package-info.java files must include both @NonNullApi and @NonNullFields annotations to establish null-...

    ⛶
  • Optimize CI environment configuration

    spring-projects/spring-framework
    CI/CD Yaml
    3
    ⭐ 58382

    When configuring CI environments, carefully evaluate whether default dependency versions are sufficient for...

    ⛶
  • Leverage Kotlin null-safety

    spring-projects/spring-framework
    Null Handling Kotlin
    3
    ⭐ 58382

    Utilize Kotlin's null-safety features effectively to create cleaner, more robust code: 1. For class proper...

    ⛶
  • Database-agnostic SQL syntax

    spring-projects/spring-framework
    Database Java
    3
    ⭐ 58382

    Write SQL statements that conform to standard SQL rather than relying on vendor-specific dialects to ensure...

    ⛶
  • Clone network headers carefully

    spring-projects/spring-framework
    Networking Java
    3
    ⭐ 58382

    When working with HTTP or WebSocket headers in networking code, be cautious about header manipulation, clon...

    ⛶
  • Validate nulls properly

    spring-projects/spring-boot
    Null Handling Java
    3
    ⭐ 77637

    Always use appropriate null validation mechanisms to prevent NullPointerExceptions and ensure code robustne...

    ⛶
  • Reference existing configurations

    spring-projects/spring-boot
    Configurations Yaml
    3
    ⭐ 77637

    When setting up configuration files, reference existing configuration sources rather than duplicating value...

    ⛶
  • Verify CI build consistency

    apache/spark
    CI/CD Yaml
    3
    ⭐ 41554

    Ensure CI pipelines thoroughly verify build outputs and maintain consistency across different build tools a...

    ⛶
  • use modern Java syntax

    apache/spark
    Code Style Java
    3
    ⭐ 41554

    Prefer modern Java language features and constructs to write more concise, readable code. Since Apache Spar...

    ⛶
  • Use descriptive names

    apache/spark
    Naming Conventions Java
    3
    ⭐ 41554

    Choose names that clearly convey purpose and context rather than generic or vague terms. Names should be se...

    ⛶
  • Proper synchronization patterns

    apache/spark
    Concurrency Other
    3
    ⭐ 41554

    When implementing synchronization mechanisms, avoid common anti-patterns that can lead to performance issue...

    ⛶
  • parameterize configuration values

    apache/spark
    Configurations Xml
    3
    ⭐ 41554

    Replace hardcoded configuration values with parameterized variables in build files and configuration manage...

    ⛶
  • minimize public API surface

    apache/spark
    API Java
    3
    ⭐ 41554

    Only expose APIs that are truly necessary for external consumers and avoid creating public interfaces that ...

    ⛶
  • context-independent schema design

    apache/spark
    Database Java
    3
    ⭐ 41554

    Database schema elements (views, constraints, tables) should be designed to be context-independent and self...

    ⛶
  • comprehensive test coverage

    apache/spark
    Testing Sql
    3
    ⭐ 41554

    Ensure test suites provide comprehensive coverage by including edge cases, boundary conditions, and input v...

    ⛶
  • Use semantic naming

    bytedance/sonic
    Naming Conventions Go
    3
    ⭐ 8532

    Choose names that clearly communicate the purpose, meaning, and scope of variables, functions, constants, a...

    ⛶
  • optimize algorithms by characteristics

    bytedance/sonic
    Algorithms Go
    3
    ⭐ 8532

    When implementing algorithms, make optimization decisions based on the specific characteristics of your dat...

    ⛶
  • Consistent semantic naming

    bytedance/sonic
    Naming Conventions C
    3
    ⭐ 8532

    Maintain consistent naming conventions throughout the codebase and use semantically clear identifiers that ...

    ⛶
  • use design tokens

    SigNoz/signoz
    Code Style Css
    3
    ⭐ 23369

    Replace hardcoded color values, spacing, and other design-related constants with design tokens or CSS custo...

    ⛶
  • Use descriptive contextual names

    SigNoz/signoz
    Naming Conventions TSX
    3
    ⭐ 23369

    Choose variable, method, and property names that clearly communicate their purpose and context to avoid con...

    ⛶
  • Use database transactions

    SigNoz/signoz
    Database Go
    3
    ⭐ 23369

    Always use database transactions when performing operations that require atomicity or could create race con...

    ⛶
  • standardize authentication context extraction

    SigNoz/signoz
    Security Go
    3
    ⭐ 23369

    Always use the standardized `authtypes.ClaimsFromContext` method for extracting authentication claims from ...

    ⛶
  • measure before optimizing

    SigNoz/signoz
    Performance Optimization Go
    3
    ⭐ 23369

    Always measure performance impact before making optimization decisions or skipping potential optimizations ...

    ⛶
  • API payload completeness

    SigNoz/signoz
    API TypeScript
    3
    ⭐ 23369

    Ensure all required fields are included in API payloads and handle special field cases properly to prevent ...

    ⛶
  • optimize tensor operations

    sgl-project/sglang
    Pytorch Python
    3
    ⭐ 17245

    When working with PyTorch tensors, prioritize operations that avoid unnecessary memory allocations and copi...

    ⛶
  • Explicit API parameters

    sgl-project/sglang
    API Python
    3
    ⭐ 17245

    API functions should use explicit parameters rather than passing large opaque objects. When a function need...

    ⛶
  • Environment variable best practices

    sgl-project/sglang
    Configurations Python
    3
    ⭐ 17245

    Avoid reading environment variables directly in performance-critical code paths, especially during model fo...

    ⛶
  • Document AI limitations

    sgl-project/sglang
    AI Markdown
    3
    ⭐ 17245

    When implementing AI model support or hardware backends, clearly document known limitations, compatibility ...

    ⛶
  • Handle unsafe code properly

    servo/servo
    Security Rust
    3
    ⭐ 32962

    Methods that access raw memory buffers, perform pointer operations, or interact with foreign function inter...

    ⛶
  • avoid borrow hazards

    servo/servo
    Concurrency Rust
    3
    ⭐ 32962

    Prevent borrow conflicts by collecting or cloning data before operations that may trigger garbage collectio...

    ⛶
  • Provide contextual explanations

    serverless/serverless
    Documentation Markdown
    3
    ⭐ 46810

    Documentation should explain the reasoning, context, and practical implications behind code examples, not j...

    ⛶
  • Simple explicit interfaces

    oraios/serena
    API Python
    3
    ⭐ 14465

    Design API interfaces to be simple and explicit rather than hiding complexity behind elaborate fallbacks or...

    ⛶
  • Write comprehensive assertions

    getsentry/sentry
    Testing TSX
    3
    ⭐ 41297

    When writing tests, ensure your assertions thoroughly verify all relevant aspects of the functionality bein...

    ⛶
  • Structured metric naming

    getsentry/sentry
    Observability Python
    3
    ⭐ 41297

    Create metrics with descriptive, unique names that are distinguishable when viewed in monitoring tools. Avo...

    ⛶
  • Simplify feature flag logic

    getsentry/sentry
    Configurations TSX
    3
    ⭐ 41297

    When working with feature flags and configuration conditions, keep your logic clean and up-to-date: 1. **S...

    ⛶
  • Prefer bulk operations

    getsentry/sentry
    Performance Optimization Python
    3
    ⭐ 41297

    When implementing functionality that processes multiple items, always consider the performance implications...

    ⛶
  • Minimize file memory footprint

    getsentry/sentry-php
    Performance Optimization PHP
    3
    ⭐ 1873

    When handling files in your application, minimize memory usage to optimize performance. Follow these guidel...

    ⛶
  • Memoize expensive computations effectively

    getsentry/sentry
    Performance Optimization TSX
    3
    ⭐ 41297

    Prevent unnecessary recalculations and rerenders by properly memoizing expensive computations and derived v...

    ⛶
  • Consistent URL design

    getsentry/sentry
    API Python
    3
    ⭐ 41297

    Design API endpoints with consistent, unambiguous URL patterns to improve usability and maintainability. Fo...

    ⛶
  • Clear consistent naming patterns

    getsentry/sentry
    Naming Conventions TSX
    3
    ⭐ 41297

    Use clear, consistent naming patterns for variables and event handlers. Avoid abbreviations unless they are...

    ⛶
  • Centralize AI code

    getsentry/sentry
    AI Python
    3
    ⭐ 41297

    Move AI-specific functionality (especially prompts) to dedicated services rather than scattering them throu...

    ⛶
  • API parameter design flexibility

    getsentry/sentry
    API TSX
    3
    ⭐ 41297

    Design API parameters to be extensible and future-proof by using object arguments and explicit type definit...

    ⛶
  • Algorithm structure optimization

    getsentry/sentry
    Algorithms Python
    3
    ⭐ 41297

    Optimize algorithm structure by separating concerns and using appropriate data structures and language feat...

    ⛶
  • Use typed interfaces

    semgrep/semgrep
    Null Handling Python
    3
    ⭐ 12598

    Prefer typed interfaces over dictionary access to enable static type checking and prevent null reference er...

    ⛶
  • Use descriptive variable names

    semgrep/semgrep
    Naming Conventions Python
    3
    ⭐ 12598

    Choose variable and parameter names that clearly communicate their purpose and avoid misleading or cryptic ...

    ⛶
  • Ensure comprehensive test coverage

    semgrep/semgrep
    Testing Yaml
    3
    ⭐ 12598

    Tests should validate all expected behaviors, variants, and edge cases rather than covering only the happy ...

    ⛶
  • Document configuration troubleshooting

    semgrep/semgrep
    Configurations Shell
    3
    ⭐ 12598

    Configuration files and scripts should include comprehensive documentation that helps developers understand...

    ⛶
  • Defensive optional handling

    semgrep/semgrep
    Null Handling Other
    3
    ⭐ 12598

    Always handle optional and nullable values defensively by checking for null/empty states before use and han...

    ⛶
  • Defensive authorization checks

    semgrep/semgrep
    Security Python
    3
    ⭐ 12598

    Always implement explicit authentication and authorization checks before granting access to premium feature...

    ⛶
  • Conservative security assumptions

    semgrep/semgrep
    Security Other
    3
    ⭐ 12598

    When implementing security measures, always err on the side of caution by making conservative assumptions a...

    ⛶
  • Add comprehensive test coverage

    semgrep/semgrep
    Testing Other
    3
    ⭐ 12598

    Ensure all code changes include appropriate unit tests and address any identified testing gaps immediately....

    ⛶
  • Configuration default handling

    strands-agents/sdk-python
    Configurations Python
    3
    ⭐ 4044

    Use clean, simple patterns when accessing configuration values with defaults. Avoid redundant fallback oper...

    ⛶
  • Prevent TOCTOU vulnerabilities

    rust-lang/rust
    Security Rust
    3
    ⭐ 105254

    Time-of-Check-to-Time-of-Use (TOCTOU) race conditions occur when a program checks a condition and then uses...

    ⛶
  • Default over unsafe initialization

    rust-lang/rust
    Null Handling Rust
    3
    ⭐ 105254

    Prefer using safe initialization methods like `Default::default()` over unsafe alternatives like `MaybeUnin...

    ⛶
  • Validate before access

    dotnet/runtime
    Null Handling C
    3
    ⭐ 16578

    Always validate parameters and initialize variables before access to prevent null dereference and undefined...

    ⛶
  • Preserve pointer authentication

    dotnet/runtime
    Security C++
    3
    ⭐ 16578

    When implementing Pointer Authentication (PAC) for security, maintain signed pointers throughout their enti...

    ⛶
  • Platform-agnostic network APIs

    dotnet/runtime
    Networking C++
    3
    ⭐ 16578

    When implementing networking functionality, ensure code uses platform-agnostic APIs and appropriate abstrac...

    ⛶
  • Parameterize configuration values

    dotnet/runtime
    Configurations Yaml
    3
    ⭐ 16578

    Extract hard-coded configuration values into variables, parameters, or templates to improve reusability and...

    ⛶
  • Optimize build dependency chains

    dotnet/runtime
    CI/CD Other
    3
    ⭐ 16578

    When configuring build and test processes in CI/CD pipelines, ensure proper dependency chains with clear in...

    ⛶
  • Memory ordering matters

    dotnet/runtime
    Concurrency C++
    3
    ⭐ 16578

    When working with shared data in multithreaded environments, memory ordering is critical to prevent race co...

    ⛶
  • Choose descriptive names

    dotnet/runtime
    Naming Conventions C++
    3
    ⭐ 16578

    Names should clearly convey purpose and meaning. Parameter, variable, and method names should be self-expla...

    ⛶
  • Verify union attribute access

    astral-sh/ruff
    Null Handling Markdown
    3
    ⭐ 40619

    When working with union types in Python, always verify that all components of the union have the attributes...

    ⛶
  • Structure documentation effectively

    astral-sh/ruff
    Documentation Markdown
    3
    ⭐ 40619

    Documentation should follow a consistent structure where explanations precede code examples, preferably end...

    ⛶
  • Ensure algorithmic determinism

    astral-sh/ruff
    Algorithms Other
    3
    ⭐ 40619

    When implementing algorithms for code analysis, type checking, or pattern matching, ensure they produce con...

    ⛶
  • Assert exact expectations

    astral-sh/ruff
    Testing Rust
    3
    ⭐ 40619

    Always assert exact expected values in tests rather than using loose assertions. When testing the presence ...

    ⛶
  • Use descriptive scoped names

    TanStack/router
    Naming Conventions TSX
    3
    ⭐ 11590

    Prefer descriptive, scoped names over generic or vague identifiers for types, functions, and properties. Na...

    ⛶
  • React hook dependencies

    TanStack/router
    React TSX
    3
    ⭐ 11590

    Carefully manage dependencies in React hooks to avoid stale closures and ensure correct behavior. When usin...

    ⛶
  • Environment file management

    TanStack/router
    Configurations Other
    3
    ⭐ 11590

    Ensure proper handling of environment files by following these practices: (1) Add actual environment files ...

    ⛶
  • Environment-aware configuration management

    TanStack/router
    Configurations TSX
    3
    ⭐ 11590

    Ensure configuration management accounts for different environments and maintains backward compatibility du...

    ⛶
  • environment-aware API usage

    TanStack/router
    Networking TypeScript
    3
    ⭐ 11590

    Always detect the runtime environment before using environment-specific APIs or utilities. This is crucial ...

    ⛶
  • Choose efficient algorithms

    TanStack/router
    Algorithms TSX
    3
    ⭐ 11590

    Prefer built-in methods and appropriate data structures over manual implementations to improve both perform...

    ⛶
  • avoid unnecessary complexity

    TanStack/router
    Code Style Markdown
    3
    ⭐ 11590

    Remove code complexity that doesn't provide clear value, particularly in type definitions, configuration op...

    ⛶
  • algorithm implementation trade-offs

    TanStack/router
    Algorithms TypeScript
    3
    ⭐ 11590

    When implementing algorithms, carefully evaluate trade-offs between built-in methods, custom implementation...

    ⛶
  • Validate model capabilities first

    RooCodeInc/Roo-Code
    AI TypeScript
    3
    ⭐ 17288

    Always validate AI model capabilities and configurations before attempting to use them. This includes check...

    ⛶
  • Use nullish coalescing

    RooCodeInc/Roo-Code
    Null Handling TSX
    3
    ⭐ 17288

    When providing default values for numeric properties, use the nullish coalescing operator (??) instead of l...

    ⛶
  • Use cryptographic randomness

    RooCodeInc/Roo-Code
    Security TypeScript
    3
    ⭐ 17288

    Always use cryptographically secure random number generation for security-sensitive operations such as gene...

    ⛶
  • Sanitize untrusted content

    RooCodeInc/Roo-Code
    Security TSX
    3
    ⭐ 17288

    Always sanitize user-generated or externally sourced content before rendering it to prevent Cross-Site Scri...

    ⛶
  • Prevent timeout race conditions

    RooCodeInc/Roo-Code
    Concurrency TSX
    3
    ⭐ 17288

    When working with timeouts and asynchronous operations that affect shared state, clear timeouts at the begi...

    ⛶
  • Centralize configuration constants

    RooCodeInc/Roo-Code
    Configurations TSX
    3
    ⭐ 17288

    Always centralize configuration constants in a shared location and import them rather than duplicating valu...

    ⛶
  • validate null undefined values

    smallcloudai/refact
    Null Handling TypeScript
    3
    ⭐ 3114

    Always perform explicit null and undefined checks before accessing object properties or using values in ope...

    ⛶
  • Verify performance empirically

    facebook/react
    Performance Optimization TypeScript
    3
    ⭐ 237000

    Always validate performance optimizations through measurement rather than assumptions. Run multiple iterati...

    ⛶
  • Use appropriate testing methods

    facebook/react
    Testing JavaScript
    3
    ⭐ 237000

    When writing tests, use the appropriate testing utilities and ensure proper test isolation. For testing war...

    ⛶
  • Separate conditional paths

    facebook/react
    Concurrency JavaScript
    3
    ⭐ 237000

    When working with concurrent operations, separate conditional logic from potentially expensive or suspensef...

    ⛶
  • use modern JavaScript patterns

    remix-run/react-router
    Code Style Markdown
    3
    ⭐ 55270

    Adopt modern JavaScript syntax and patterns to improve code quality and maintainability. This includes usin...

    ⛶
  • TypeScript configuration setup

    remix-run/react-router
    Configurations Markdown
    3
    ⭐ 55270

    Ensure proper TypeScript configuration for generated types and development workflow. This includes setting ...

    ⛶
  • prefer explicit readable constructs

    remix-run/react-router
    Code Style TSX
    3
    ⭐ 55270

    Choose explicit and semantic code constructs that enhance readability over more concise but less clear alte...

    ⛶
  • HTTP protocol compliance

    remix-run/react-router
    Networking TypeScript
    3
    ⭐ 55270

    Ensure code adheres to HTTP protocol standards and handles different protocol versions correctly. This incl...

    ⛶
  • graceful error handling

    remix-run/react-router
    Error Handling TSX
    3
    ⭐ 55270

    Implement error handling that gracefully degrades when operations fail, uses consistent reporting patterns,...

    ⛶
  • Extract test helpers

    remix-run/react-router
    Testing TSX
    3
    ⭐ 55270

    Create reusable helper functions for common test setup patterns to reduce duplication and improve maintaina...

    ⛶
  • documentation linking standards

    remix-run/react-router
    Documentation Markdown
    3
    ⭐ 55270

    Ensure proper linking and cross-referencing in documentation to improve navigation and discoverability. Use...

    ⛶
  • documentation generation compatibility

    remix-run/react-router
    Documentation TypeScript
    3
    ⭐ 55270

    When making code changes, ensure compatibility with documentation generation tools like JSDoc and TypeDoc. ...

    ⛶
  • Document configuration rationale

    remix-run/react-router
    Configurations Other
    3
    ⭐ 55270

    When adding or modifying configuration files, always include clear comments or documentation explaining the...

    ⛶
  • Cancel aborted async operations

    remix-run/react-router
    Concurrency TypeScript
    3
    ⭐ 55270

    When working with async operations that can be aborted (like HTTP requests), ensure proper cancellation of ...

    ⛶
  • avoid redundant computations

    remix-run/react-router
    Performance Optimization TypeScript
    3
    ⭐ 55270

    Identify and eliminate repeated expensive operations to improve performance. Cache computationally expensiv...

    ⛶
  • Optimize React Component Dependencies

    facebook/react
    React TypeScript
    3
    ⭐ 237000

    When implementing React components, ensure that dependencies between component state, props, and side effec...

    ⛶
  • validate before operations

    facebook/react-native
    Null Handling JavaScript
    3
    ⭐ 123178

    Always explicitly check for null, undefined, or missing properties/methods before performing operations tha...

    ⛶
  • Simplify parsing algorithms

    facebook/react-native
    Algorithms JavaScript
    3
    ⭐ 123178

    When implementing parsing or processing algorithms, prioritize simplification and reusability over complex ...

    ⛶
  • Prevent regression crashes

    facebook/react-native
    Error Handling Java
    3
    ⭐ 123178

    When implementing error handling or bug fixes, avoid introducing new crash conditions that would break prev...

    ⛶
  • Meaningful documentation practices

    facebook/react-native
    Documentation JavaScript
    3
    ⭐ 123178

    Documentation should enhance code understanding rather than duplicate information already present in the co...

    ⛶
  • leverage framework cache mechanisms

    facebook/react-native
    Caching Kotlin
    3
    ⭐ 123178

    When implementing caching functionality, prefer using framework-provided cache mechanisms over manual cache...

    ⛶
  • Follow platform naming conventions

    facebook/react-native
    Naming Conventions Other
    3
    ⭐ 123178

    Adhere to the established naming conventions and namespacing practices of your target platform. This includ...

    ⛶
  • Feature flag isolation

    facebook/react-native
    Configurations Kotlin
    3
    ⭐ 123178

    Feature flags should be properly isolated and scoped to avoid mixing configuration concerns with core inter...

    ⛶
  • ensure exception safety

    facebook/react-native
    Error Handling Other
    3
    ⭐ 123178

    Always ensure proper exception safety by placing cleanup code in @finally blocks, using stack-allocated exc...

    ⛶
  • consistent null checking

    facebook/react-native
    Null Handling Java
    3
    ⭐ 123178

    Ensure null checks follow consistent patterns and proper ordering for better readability and safety. Always...

    ⛶
  • catch specific exceptions

    facebook/react-native
    Error Handling Kotlin
    3
    ⭐ 123178

    Always catch specific exception types rather than generic `Exception` to avoid masking unexpected errors an...

    ⛶
  • avoid unnecessary conversions

    facebook/react-native
    Performance Optimization Kotlin
    3
    ⭐ 123178

    Choose direct, efficient methods over approaches that require additional parsing, conversion, or processing...

    ⛶
  • Avoid expensive allocations

    facebook/react-native
    Performance Optimization Java
    3
    ⭐ 123178

    Minimize object creation and expensive operations in performance-critical code paths, particularly in frequ...

    ⛶
  • Match errors to context

    facebook/react
    Error Handling TypeScript
    3
    ⭐ 237000

    Choose error handling mechanisms based on the error's severity and context. For critical issues that should...

    ⛶
  • Complete hook dependencies

    facebook/react
    React JavaScript
    3
    ⭐ 237000

    Always specify complete dependency arrays in React hooks to prevent bugs from stale closures and avoid unne...

    ⛶
  • Check property existence first

    facebook/react
    Null Handling JavaScript
    3
    ⭐ 237000

    Always verify that an object and its properties exist before accessing them to prevent 'cannot read propert...

    ⛶
  • Wrap threaded code properly

    rails/rails
    Concurrency Markdown
    3
    ⭐ 57027

    When working with threads in Rails applications, always wrap application code with `Rails.application.execu...

    ⛶
  • Semantic HTML usage

    rails/rails
    Code Style Other
    3
    ⭐ 57027

    Use HTML elements according to their semantic purpose to ensure proper accessibility and code organization....

    ⛶
  • Environment-specific logger configuration

    rails/rails
    Logging Markdown
    3
    ⭐ 57027

    Configure loggers in environment-specific files rather than in application.rb or initializers. Different en...

    ⛶
  • Document performance implications

    rails/rails
    Performance Optimization Markdown
    3
    ⭐ 57027

    Clearly document the performance implications of features and configurations to help users make informed de...

    ⛶
  • Consistent terminology usage

    rails/rails
    Naming Conventions Other
    3
    ⭐ 57027

    Always use consistent terminology for the same concept throughout your codebase, documentation, and user in...

    ⛶
  • Verify AI library compatibility

    QwenLM/Qwen3
    AI Txt
    3
    ⭐ 24226

    When specifying AI/ML library dependencies, ensure version compatibility between related packages and verif...

    ⛶
  • Configuration parameter documentation

    QwenLM/Qwen3
    Configurations Markdown
    3
    ⭐ 24226

    Ensure all configuration parameters have explicit default values and are thoroughly documented. When using ...

    ⛶
  • Reuse test patterns

    quarkusio/quarkus
    Testing Java
    3
    ⭐ 14667

    Minimize duplication and improve test maintainability by reusing existing test patterns and leveraging para...

    ⛶
  • Document deployment strategy constraints

    quarkusio/quarkus
    CI/CD Other
    3
    ⭐ 14667

    Always document and enforce appropriate deployment strategies for different application types in your CI/CD...

    ⛶
  • Document dependency versions

    quarkusio/quarkus
    Configurations Xml
    3
    ⭐ 14667

    When managing dependency versions in configuration files, provide clear documentation to help maintainers u...

    ⛶
  • Descriptive consistent naming

    quarkusio/quarkus
    Naming Conventions Other
    3
    ⭐ 14667

    Use clear, descriptive names instead of cryptic abbreviations, and follow consistent naming patterns across...

    ⛶
  • Avoid request-path blocking

    quarkusio/quarkus
    Performance Optimization Other
    3
    ⭐ 14667

    Minimize blocking operations in request-handling paths to ensure responsive application performance. Implem...

    ⛶
  • Thread context management

    pytorch/pytorch
    Concurrency Python
    3
    ⭐ 91345

    Always explicitly set required thread context and state rather than assuming inheritance from parent thread...

    ⛶
  • Structure for readability

    pytorch/pytorch
    Code Style Python
    3
    ⭐ 91345

    Structure code to maximize readability by reducing unnecessary complexity. Use early returns to minimize ne...

    ⛶
  • Reusable workflow design

    pytorch/pytorch
    CI/CD Yaml
    3
    ⭐ 91345

    Design CI/CD workflows with reusability and clear naming conventions from the start. Use meaningful prefixe...

    ⛶
  • Reduce code duplication

    pytorch/pytorch
    Code Style C++
    3
    ⭐ 91345

    Eliminate repeated code patterns by using appropriate abstraction techniques. This improves readability, re...

    ⛶
  • Purpose-revealing identifier names

    pytorch/pytorch
    Naming Conventions Python
    3
    ⭐ 91345

    Choose identifier names that clearly reveal their purpose and behavior. Names should be specific, descripti...

    ⛶
  • Prefer HINTS in CMake

    pytorch/pytorch
    Configurations Txt
    3
    ⭐ 91345

    When configuring library searches in CMake, use `HINTS` instead of `PATHS` when you want to prioritize spec...

    ⛶
  • Parameterize similar test cases

    pytorch/pytorch
    Testing Python
    3
    ⭐ 91345

    Instead of duplicating test code or using nested loops, use test parameterization to handle multiple test c...

    ⛶
  • Modular configuration design

    pytorch/pytorch
    Configurations Other
    3
    ⭐ 91345

    Configuration systems should be designed with modularity and clarity in mind. When creating configuration c...

    ⛶
  • Document configuration decisions

    pytorch/pytorch
    Configurations Toml
    3
    ⭐ 91345

    Always document configuration decisions in package metadata files like `pyproject.toml` with clear comments...

    ⛶
  • Consistent code organization

    pytorch/pytorch
    Code Style Other
    3
    ⭐ 91345

    Follow consistent code organization patterns: 1. Place static definitions in .cpp files rather than header...

    ⛶
  • Check CUDA availability first

    pytorch/pytorch
    Pytorch Python
    3
    ⭐ 91345

    Always verify CUDA availability before performing CUDA-specific operations to prevent runtime errors when c...

    ⛶
  • Structured configuration management

    pydantic/pydantic
    Configurations Toml
    3
    ⭐ 24377

    Configuration files should follow official standards, have up-to-date tool settings, and appropriate depend...

    ⛶
  • Preserve language conventions

    pydantic/pydantic
    API Markdown
    3
    ⭐ 24377

    When designing APIs that bridge between programming languages and external data formats (like JSON, XML, et...

    ⛶
  • Explicit over implicit

    pydantic/pydantic
    Configurations Yaml
    3
    ⭐ 24377

    Always prefer explicit configuration settings over relying on implicit defaults or environmental behaviors ...

    ⛶
  • Documentation formatting standards

    pydantic/pydantic
    Code Style Markdown
    3
    ⭐ 24377

    Maintain consistent documentation formatting to ensure proper rendering and readability. Follow these key p...

    ⛶
  • Categorize error types

    pydantic/pydantic
    Error Handling Markdown
    3
    ⭐ 24377

    Distinguish between different categories of errors and handle each appropriately. Specifically: 1. **Valid...

    ⛶
  • Use configuration placeholders

    prowler-cloud/prowler
    Configurations Json
    3
    ⭐ 11834

    Avoid hardcoding specific values like regions, timeframes, or identifiers in configuration commands, exampl...

    ⛶
  • Tenant-aware query optimization

    prowler-cloud/prowler
    Database Python
    3
    ⭐ 11834

    Always include tenant_id filters in database queries for multi-tenant systems to maintain data isolation an...

    ⛶
  • Pin GitHub Actions dependencies

    prowler-cloud/prowler
    CI/CD Yaml
    3
    ⭐ 11834

    Always pin GitHub Actions to specific commit SHAs rather than using major version references to prevent sup...

    ⛶
  • Parameterize similar tests

    prowler-cloud/prowler
    Testing Python
    3
    ⭐ 11834

    Write maintainable tests by using pytest parametrization for similar test cases instead of duplicating test...

    ⛶
  • Document dependency versioning

    prowler-cloud/prowler
    Configurations Toml
    3
    ⭐ 11834

    Use consistent patterns for specifying dependency versions in configuration files and document reasoning be...

    ⛶
  • document test tool options

    prometheus/prometheus
    Testing Markdown
    3
    ⭐ 59616

    When documenting test tools, migration utilities, or testing frameworks, provide comprehensive explanations...

    ⛶
  • Configuration design clarity

    prometheus/prometheus
    Configurations Markdown
    3
    ⭐ 59616

    Design configuration options to be unambiguous and self-documenting. Avoid reusing the same configuration f...

    ⛶
  • maintain clean CI configuration

    prisma/prisma
    CI/CD Yaml
    3
    ⭐ 42967

    Keep CI/CD configuration files clean and self-documenting by removing outdated comments, using descriptive ...

    ⛶
  • Document configuration decisions

    prisma/prisma
    Configurations Yaml
    3
    ⭐ 42967

    Add explanatory comments to configuration files that clarify the reasoning behind non-obvious choices, feat...

    ⛶
  • Centralize configuration logic

    prisma/prisma
    Configurations TypeScript
    3
    ⭐ 42967

    Avoid scattering configuration defaults, validation, and loading logic across multiple functions. Instead, ...

    ⛶
  • avoid quadratic complexity

    prisma/prisma
    Algorithms TypeScript
    3
    ⭐ 42967

    When processing collections, be mindful of time complexity and avoid accidentally creating O(N²) algorithms...

    ⛶
  • API abstraction levels

    prisma/prisma
    API TypeScript
    3
    ⭐ 42967

    Functions and utilities should operate at appropriate abstraction levels without being aware of higher-leve...

    ⛶
  • Organize tests properly

    prettier/prettier
    Testing JavaScript
    3
    ⭐ 50772

    Tests should be well-structured with clear separation of concerns, proper grouping, and appropriate cleanup...

    ⛶
  • Environment-specific error handling

    prettier/prettier
    Error Handling JavaScript
    3
    ⭐ 50772

    Separate development-time assertions from production error handling based on the runtime environment. Devel...

    ⛶
  • Ensure semantic naming accuracy

    prettier/prettier
    Naming Conventions TypeScript
    3
    ⭐ 50772

    Names should accurately reflect the actual behavior, constraints, and purpose of the code element they repr...

    ⛶
  • Validate inputs recursively

    PostHog/posthog
    Security Python
    3
    ⭐ 28460

    Always implement recursive validation and sanitization for user inputs, especially when dealing with encode...

    ⛶
  • Test complex logic thoroughly

    PostHog/posthog
    Testing TypeScript
    3
    ⭐ 28460

    When implementing complex business logic, state management, or algorithms with multiple edge cases, ensure ...

    ⛶
  • optimize data loading

    PostHog/posthog
    Performance Optimization TypeScript
    3
    ⭐ 28460

    Review data loading operations to ensure they are properly scoped, filtered, and batched to prevent perform...

    ⛶
  • Add explanatory tooltips

    PostHog/posthog
    Documentation TSX
    3
    ⭐ 28460

    When UI elements have unclear functionality or purpose, add tooltips to provide immediate context and expla...

    ⛶
  • Feature flag compatibility

    pola-rs/polars
    Configurations Rust
    3
    ⭐ 34296

    Design code to work correctly with any combination of feature flags. When implementing conditional compilat...

    ⛶
  • Favor clarity over brevity

    pola-rs/polars
    Code Style Python
    3
    ⭐ 34296

    Always prioritize code readability and maintainability over concise but cryptic implementations. Extract re...

    ⛶
  • Database API abstraction

    pola-rs/polars
    Database Python
    3
    ⭐ 34296

    When designing database interaction layers, carefully consider when to create wrapper methods versus allowi...

    ⛶
  • Create demonstrative examples

    pola-rs/polars
    Documentation Python
    3
    ⭐ 34296

    Include clear, concise examples in documentation that effectively demonstrate functionality. Follow these p...

    ⛶
  • Consistent naming standards

    pola-rs/polars
    Naming Conventions Python
    3
    ⭐ 34296

    Maintain consistent and standardized naming throughout the codebase: 1. **Use snake_case for multi-word id...

    ⛶
  • CI workflow configuration best

    pola-rs/polars
    CI/CD Yaml
    3
    ⭐ 34296

    Configure GitHub Actions workflows to maximize reliability and maintainability. Follow these key practices:...

    ⛶
  • Pin configuration versions

    python-poetry/poetry
    Configurations Dockerfile
    3
    ⭐ 33496

    Always pin specific versions for base images, dependencies, and environment configurations to ensure reprod...

    ⛶
  • manage testing dependencies

    python-poetry/poetry
    Testing Toml
    3
    ⭐ 33496

    Ensure testing dependencies are properly organized, avoid redundancy, and proactively manage unmaintained p...

    ⛶
  • maintain security constraints

    python-poetry/poetry
    Security Python
    3
    ⭐ 33496

    Always preserve existing security constraints and validation mechanisms rather than weakening them for conv...

    ⛶
  • avoid redundant tool configuration

    python-poetry/poetry
    Code Style Toml
    3
    ⭐ 33496

    When configuring code style tools, avoid enabling rules or settings that duplicate functionality already pr...

    ⛶
  • Use modern null-safe operators

    microsoft/playwright
    Null Handling TSX
    3
    ⭐ 76113

    Prefer optional chaining (`?.`) and nullish coalescing (`??`) operators over verbose null checks and ternar...

    ⛶
  • prefer CSS over JavaScript

    microsoft/playwright
    Code Style TSX
    3
    ⭐ 76113

    Use CSS solutions instead of JavaScript state management for simple styling and interactions. This approach...

    ⛶
  • optimize React rerenders

    microsoft/playwright
    React TSX
    3
    ⭐ 76113

    Ensure React components avoid unnecessary rerenders by maintaining object identity in dependencies and elim...

    ⛶
  • Environment variable validation

    microsoft/playwright
    Configurations TypeScript
    3
    ⭐ 76113

    Environment variables should be properly validated, parsed, and have sensible fallback values. Always valid...

    ⛶
  • consistent spacing grid

    microsoft/playwright
    Code Style Css
    3
    ⭐ 76113

    Use consistent spacing values that follow a standardized grid system, typically multiples of 4px or 8px, ra...

    ⛶
  • Use semantic naming

    emcie-co/parlant
    Naming Conventions Other
    3
    ⭐ 12205

    Choose names that clearly communicate the purpose, behavior, or domain concept rather than generic or abbre...

    ⛶
  • Optimize CI/CD workflows

    opentofu/opentofu
    CI/CD Yaml
    3
    ⭐ 25901

    Configure CI/CD workflows to maximize efficiency and improve developer experience. Consider these key optim...

    ⛶
  • Names preserve cognitive context

    opentofu/opentofu
    Naming Conventions Go
    3
    ⭐ 25901

    Choose variable, function, and type names that preserve cognitive context by clearly indicating their purpo...

    ⛶
  • Explicit versus dynamic configurations

    opentofu/opentofu
    Configurations Yaml
    3
    ⭐ 25901

    Prefer explicit hardcoded configurations over dynamic ones when the configuration changes infrequently and ...

    ⛶
  • Document reference standards

    opentofu/opentofu
    Documentation Markdown
    3
    ⭐ 25901

    Maintain consistent and accurate reference practices throughout project documentation to enhance usability ...

    ⛶
  • Structured changelog documentation

    open-telemetry/opentelemetry-python
    Documentation Markdown
    3
    ⭐ 2061

    Maintain consistent and informative changelog documentation by following these practices: 1. Structure cha...

    ⛶
  • Maintain consistent naming

    open-telemetry/opentelemetry-python
    Naming Conventions Markdown
    3
    ⭐ 2061

    Ensure naming conventions are consistent across your codebase and related repositories. When naming command...

    ⛶
  • Explicit CI configurations

    open-telemetry/opentelemetry-python
    CI/CD Other
    3
    ⭐ 2061

    Always use explicit, specific configurations in CI/CD pipelines to prevent ambiguity and conflicts. This in...

    ⛶
  • Test independence design

    commaai/openpilot
    Testing Python
    3
    ⭐ 58214

    Tests should be designed to be independent and avoid coupling to implementation details. Use public interfa...

    ⛶
  • Standardize configuration approaches

    commaai/openpilot
    Configurations Markdown
    3
    ⭐ 58214

    When documenting or implementing configuration procedures, prioritize standard, unified approaches over cus...

    ⛶
  • Pin dependency versions

    commaai/openpilot
    Configurations Shell
    3
    ⭐ 58214

    Always pin specific versions of dependencies, tools, and commits in configuration files to ensure consisten...

    ⛶
  • Configuration defaults consistency

    commaai/openpilot
    Configurations Other
    3
    ⭐ 58214

    Ensure configuration parameters have appropriate default values, consistent naming conventions, and central...

    ⛶
  • Benchmark performance changes

    commaai/openpilot
    Performance Optimization Python
    3
    ⭐ 58214

    Always include performance benchmarks when making changes that could impact execution speed, CPU usage, or ...

    ⛶
  • Use specific descriptive names

    opengrep/opengrep
    Naming Conventions Other
    3
    ⭐ 1546

    Choose names that clearly indicate the specific purpose, scope, or domain of functions, variables, and type...

    ⛶
  • contextual failure handling

    opengrep/opengrep
    Error Handling Shell
    3
    ⭐ 1546

    Implement intelligent failure handling that makes contextual decisions about retry, cleanup, and error prop...

    ⛶
  • centralize configuration management

    opengrep/opengrep
    Configurations Other
    3
    ⭐ 1546

    Configuration values should be defined in a single location and passed through proper data structures rathe...

    ⛶
  • Validate tensor dimensions

    opencv/opencv
    AI C++
    3
    ⭐ 82865

    When implementing AI model inference code, always validate tensor dimensions and shapes before manipulating...

    ⛶
  • Meaningful semantic naming

    opencv/opencv
    Naming Conventions Python
    3
    ⭐ 82865

    Choose names that clearly communicate purpose and follow consistent patterns across the codebase: 1. Use g...

    ⛶
  • Feature flag convention

    opencv/opencv
    Configurations Txt
    3
    ⭐ 82865

    Establish a consistent pattern for feature flags and dependency management in configuration files: 1. Use ...

    ⛶
  • Cleanup before errors

    opencv/opencv
    Error Handling Other
    3
    ⭐ 82865

    Always ensure all resources are properly released before raising errors to prevent resource leaks. This pra...

    ⛶
  • Use descriptive specific names

    sst/opencode
    Naming Conventions Go
    3
    ⭐ 28213

    Choose names that clearly communicate purpose and scope rather than generic or overly broad terms. Names sh...

    ⛶
  • reuse existing code

    sst/opencode
    Code Style Go
    3
    ⭐ 28213

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

    ⛶
  • Ensure naming consistency

    sst/opencode
    Naming Conventions TypeScript
    3
    ⭐ 28213

    Maintain consistent naming for the same entities across different contexts including code, documentation, A...

    ⛶
  • avoid hardcoded configuration values

    sst/opencode
    Configurations TypeScript
    3
    ⭐ 28213

    Configuration values such as URLs, endpoints, timeouts, and environment-specific settings should never be h...

    ⛶
  • Use portable path configurations

    ollama/ollama
    Configurations Shell
    3
    ⭐ 145705

    Build and configuration scripts should use portable path handling techniques to ensure they work correctly ...

    ⛶
  • Optimize AI implementation patterns

    ollama/ollama
    AI Other
    3
    ⭐ 145705

    When implementing AI systems, prioritize established patterns and optimizations rather than creating new im...

    ⛶
  • Complete null checks

    ollama/ollama
    Null Handling C++
    3
    ⭐ 145705

    Always perform thorough null checks before dereferencing pointers, and ensure all operations on potentially...

    ⛶
  • AI memory management

    ollama/ollama
    AI Markdown
    3
    ⭐ 145705

    Document and implement proper memory management strategies for AI model inference to prevent out-of-memory ...

    ⛶
  • Abstract configuration access

    octokit/octokit.net
    Configurations C#
    3
    ⭐ 2793

    Use abstraction layers to access configuration settings rather than accessing environment variables, featur...

    ⛶
  • Use proper synchronization primitives

    nrwl/nx
    Concurrency TypeScript
    3
    ⭐ 27518

    When implementing concurrent operations, always use appropriate synchronization mechanisms and ensure all a...

    ⛶
  • Security terminology consistency

    nrwl/nx
    Security Markdown
    3
    ⭐ 27518

    Ensure consistent formatting and precise terminology when documenting security-related concepts, access con...

    ⛶
  • Follow established naming patterns

    nrwl/nx
    Naming Conventions Other
    3
    ⭐ 27518

    Ensure all identifiers, file references, and generated names follow established conventions and patterns ra...

    ⛶
  • Cache expensive calculations

    nrwl/nx
    Performance Optimization Rust
    3
    ⭐ 27518

    Avoid recalculating expensive operations in frequently called methods by caching results and only recalcula...

    ⛶
  • avoid redundant CI operations

    nrwl/nx
    CI/CD TypeScript
    3
    ⭐ 27518

    CI/CD processes should eliminate unnecessary repetition and redundant operations across projects and builds...

    ⛶
  • prefer != null comparisons

    nuxt/nuxt
    Null Handling TypeScript
    3
    ⭐ 57769

    When checking for null or undefined values, prefer the concise `!= null` comparison over explicit checks or...

    ⛶
  • Check SSR context

    nuxt/nuxt
    Next TypeScript
    3
    ⭐ 57769

    Always verify execution context (server vs client) before running client-specific operations in SSR applica...

    ⛶
  • Build documentation clarity

    nuxt/nuxt
    CI/CD Markdown
    3
    ⭐ 57769

    Ensure build and deployment documentation clearly explains processes, outputs, and environment options to p...

    ⛶
  • Benchmark algorithmic optimizations

    nuxt/nuxt
    Algorithms TypeScript
    3
    ⭐ 57769

    Always validate performance improvements with benchmarks rather than assuming algorithmic optimizations pro...

    ⛶
  • Provide specific error context

    novuhq/novu
    Error Handling TSX
    3
    ⭐ 37700

    Error messages should be specific and contextual rather than generic, helping users understand exactly what...

    ⛶
  • Optimize database queries

    novuhq/novu
    Database TypeScript
    3
    ⭐ 37700

    Structure database queries and schemas for optimal performance by avoiding nullable fields when possible, o...

    ⛶
  • consistent naming patterns

    novuhq/novu
    Naming Conventions TSX
    3
    ⭐ 37700

    Establish and maintain consistent naming conventions across similar components and contexts. Inconsistent n...

    ⛶
  • Use modern nullish operators

    nodejs/node
    Null Handling JavaScript
    3
    ⭐ 112178

    When dealing with potentially null or undefined values, use optional chaining (`?.`) and nullish coalescing...

    ⛶
  • Use appropriate metric types

    nodejs/node
    Observability Markdown
    3
    ⭐ 112178

    When instrumenting applications with metrics, choose the correct metric type based on what you're measuring...

    ⛶
  • Reuse computed values efficiently

    nodejs/node
    Performance Optimization Other
    3
    ⭐ 112178

    Move variable declarations and computations outside of loops when their values don't change between iterati...

    ⛶
  • Resource-aware programming patterns

    nodejs/node
    Performance Optimization Markdown
    3
    ⭐ 112178

    When optimizing application performance, be mindful of system resource constraints and use appropriate patt...

    ⛶
  • Export environment variables once

    nodejs/node
    Configurations Shell
    3
    ⭐ 112178

    When writing shell scripts, set and export all environment variables at the top of the script rather than m...

    ⛶
  • Write concise idiomatic code

    vercel/next.js
    Code Style Rust
    3
    ⭐ 133000

    Favor concise and idiomatic expressions in your Rust code to improve readability and maintainability.

    ⛶
  • Verify workflow configuration integrity

    vercel/next.js
    CI/CD Yaml
    3
    ⭐ 133000

    Carefully review GitHub Actions workflow configurations to prevent subtle errors that can cause CI/CD pipel...

    ⛶
  • Prefer Existence Checks in Next.js Components

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

    When working with props, state, or other values in Next.js components that may be null, undefined, or conta...

    ⛶
  • Optimize data structure selection

    vercel/next.js
    Performance Optimization Rust
    3
    ⭐ 133000

    Choose data structures that match your specific access patterns and performance requirements. The right dat...

    ⛶
  • Consistent variable style patterns

    vercel/next.js
    Code Style TypeScript
    3
    ⭐ 133000

    Maintain consistent patterns for variable declarations and naming conventions: use const by default for var...

    ⛶
  • Use semantically accurate names

    ChatGPTNextWeb/NextChat
    Naming Conventions TypeScript
    3
    ⭐ 85721

    Variable, method, and type names should precisely reflect their actual content, purpose, or scope. Names th...

    ⛶
  • Simplify conditional logic

    ChatGPTNextWeb/NextChat
    Code Style TypeScript
    3
    ⭐ 85721

    Break down complex conditional expressions and control flow into simpler, more readable forms. Use early re...

    ⛶
  • Measure performance concerns

    ChatGPTNextWeb/NextChat
    Performance Optimization TSX
    3
    ⭐ 85721

    Before assuming performance issues exist, measure actual execution time and resource usage. When performanc...

    ⛶
  • Prevent test resource leaks

    netty/netty
    Testing Java
    3
    ⭐ 34227

    Always ensure proper cleanup of resources in tests to prevent memory leaks. When using EmbeddedChannel, cal...

    ⛶
  • Consistent dependency declarations

    netty/netty
    Configurations Xml
    3
    ⭐ 34227

    Ensure dependency declarations in build configuration files use concrete values rather than variables that ...

    ⛶
  • Use topological sorting

    nestjs/nest
    Algorithms TypeScript
    3
    ⭐ 71766

    When managing dependencies between modules or components, implement a topological sorting algorithm to ensu...

    ⛶
  • Use factory providers

    nestjs/nest
    NestJS TypeScript
    3
    ⭐ 71767

    Prefer `useFactory` over `useValue` for better performance in NestJS dependency injection, especially for l...

    ⛶
  • Prevent race conditions

    nestjs/nest
    Concurrency TypeScript
    3
    ⭐ 71766

    When handling concurrent operations in asynchronous environments, avoid mutating shared state that could le...

    ⛶
  • Parameterize version requirements

    nestjs/nest
    CI/CD Yaml
    3
    ⭐ 71767

    Always parameterize tool and runtime versions in CI/CD configurations rather than hardcoding them. This mak...

    ⛶
  • Optimize critical path iterations

    nestjs/nest
    Performance Optimization TypeScript
    3
    ⭐ 71767

    Use appropriate iteration techniques in performance-critical code paths to minimize overhead and maximize e...

    ⛶
  • Graph-based dependency management

    nestjs/nest
    Algorithms TypeScript
    3
    ⭐ 71767

    When managing module dependencies in a system, treat the dependencies as a directed graph and apply appropr...

    ⛶
  • reuse concurrency infrastructure

    neovim/neovim
    Concurrency Other
    3
    ⭐ 91433

    Avoid implementing custom concurrency patterns when existing infrastructure is available. Before creating n...

    ⛶
  • prevent autocommand reentrancy

    neovim/neovim
    Concurrency C
    3
    ⭐ 91433

    Guard against reentrancy issues when operations may trigger autocommands or async events that could invalid...

    ⛶
  • Optimize algorithmic complexity

    neovim/neovim
    Algorithms Other
    3
    ⭐ 91433

    Actively identify and eliminate unnecessary computational overhead in algorithms, particularly focusing on ...

    ⛶
  • Documentation formatting standards

    neovim/neovim
    Code Style Txt
    3
    ⭐ 91433

    Ensure documentation follows consistent formatting standards to improve readability and maintainability. Th...

    ⛶
  • consistent algorithm interfaces

    neovim/neovim
    Algorithms Txt
    3
    ⭐ 91433

    When designing interfaces for filtering, traversal, or search algorithms, research existing codebase patter...

    ⛶
  • Secure authentication handling

    neondatabase/neon
    Security Rust
    3
    ⭐ 19015

    Always implement proper authentication checks and protect sensitive credentials throughout your codebase. T...

    ⛶
  • Precise algorithm terminology

    neondatabase/neon
    Algorithms Markdown
    3
    ⭐ 19015

    When implementing and documenting algorithms, use precise terminology and be explicit about metrics, operat...

    ⛶
  • Performance test pragmatism

    neondatabase/neon
    Performance Optimization Python
    3
    ⭐ 19015

    When designing performance tests, focus on efficiency and meaningful insights rather than exhaustive combin...

    ⛶
  • Optimize data structures

    neondatabase/neon
    Algorithms C
    3
    ⭐ 19015

    When implementing algorithms, prioritize data structure choices that minimize resource usage while maintain...

    ⛶
  • Handle all error paths

    neondatabase/neon
    Error Handling C
    3
    ⭐ 19015

    Ensure comprehensive error handling throughout the codebase by implementing proper error handling blocks, d...

    ⛶
  • Guard against race conditions

    neondatabase/neon
    Concurrency C
    3
    ⭐ 19015

    When working with concurrent operations, always implement proper guards to prevent race conditions between ...

    ⛶
  • Extract and reuse

    neondatabase/neon
    Code Style C
    3
    ⭐ 19015

    Create focused utility functions for repeated or complex operations instead of duplicating logic across the...

    ⛶
  • Environment-specific config defaults

    neondatabase/neon
    Configurations Python
    3
    ⭐ 19015

    Define appropriate configuration defaults for different environments (development, testing, production) usi...

    ⛶
  • Document API specs completely

    neondatabase/neon
    API Markdown
    3
    ⭐ 19015

    When designing and implementing APIs, always provide comprehensive specifications that clearly document all...

    ⛶
  • Database before memory

    neondatabase/neon
    Database Rust
    3
    ⭐ 19015

    When working with database systems that also maintain in-memory state, always update the persistent databas...

    ⛶
  • Configuration context alignment

    neondatabase/neon
    Configurations C
    3
    ⭐ 19015

    Choose the appropriate configuration context based on how changes will be handled by the system. When defin...

    ⛶
  • Configurable cache parameters

    neondatabase/neon
    Caching Rust
    3
    ⭐ 19015

    Cache configurations should be runtime-configurable rather than hardcoded, with support for dynamic resizin...

    ⛶
  • Cache performance preservation

    neondatabase/neon
    Database Markdown
    3
    ⭐ 19015

    When implementing database failover or restart mechanisms, ensure performance consistency by preserving and...

    ⛶
  • Avoid flaky tests

    neondatabase/neon
    Testing Python
    3
    ⭐ 19015

    Tests should be designed to be deterministic and reliable to prevent wasted developer time and false confid...

    ⛶
  • Adaptive cache expiration strategy

    neondatabase/neon
    Caching Markdown
    3
    ⭐ 19015

    Design cache expiration policies that align with actual workload patterns rather than arbitrary timeframes....

    ⛶
  • Prevent element double-counting

    n8n-io/n8n
    Algorithms TypeScript
    3
    ⭐ 122978

    When working with graph structures, collections, or relationship mappings, ensure each element is processed...

    ⛶
  • Pin actions securely

    n8n-io/n8n
    CI/CD Yaml
    3
    ⭐ 122978

    Always pin GitHub Actions to specific commit hashes rather than version tags to prevent supply chain attack...

    ⛶
  • Never commit credentials

    n8n-io/n8n
    Security Yaml
    3
    ⭐ 122978

    Credentials, passwords, API tokens, and database connection strings must never be committed to version cont...

    ⛶
  • Complete error handling cycle

    n8n-io/n8n
    Error Handling Other
    3
    ⭐ 122978

    Implement comprehensive error handling that covers prevention, recovery, and diagnosis: 1. **Prevent error...

    ⛶
  • Use explicit optional types

    apache/mxnet
    Null Handling Other
    3
    ⭐ 20801

    When dealing with values that may be absent or null, always use explicit optional type wrappers instead of ...

    ⛶
  • Documentation clarity and formatting

    apache/mxnet
    Documentation Markdown
    3
    ⭐ 20801

    When writing documentation (README files, tutorials, API docs), ensure clarity and proper formatting: 1. *...

    ⛶
  • Document environment variables

    apache/mxnet
    Configurations Other
    3
    ⭐ 20801

    All environment variables must be documented in the central env_var.md file with clear descriptions of thei...

    ⛶
  • Document API completely

    apache/mxnet
    API Python
    3
    ⭐ 20801

    Always provide comprehensive API documentation that clearly specifies: 1. **Parameter types** - Document a...

    ⛶
  • Consistent logging format

    apache/mxnet
    Logging Python
    3
    ⭐ 20801

    Use consistent string formatting in logging statements throughout the codebase. Prefer `%` style placeholde...

    ⛶
  • Centralize synchronization logic

    apache/mxnet
    Concurrency Other
    3
    ⭐ 20801

    When implementing concurrent operations, especially in heterogeneous computing environments (CPU/GPU), cent...

    ⛶
  • Centralize configuration parameters

    apache/mxnet
    Configurations Shell
    3
    ⭐ 20801

    Avoid hardcoded paths and duplicated configuration values throughout the code. Instead: 1. Use dedicated c...

    ⛶
  • Optimize React performance patterns

    rocicorp/mono
    React TSX
    3
    ⭐ 2091

    Prioritize React performance by avoiding expensive operations and using proper React patterns. Key practice...

    ⛶
  • enforce database constraints properly

    rocicorp/mono
    Database Sql
    3
    ⭐ 2091

    Database schemas should use appropriate constraints to enforce business rules and prevent data inconsistenc...

    ⛶
  • Use design system tokens

    mui/material-ui
    Code Style TSX
    3
    ⭐ 96063

    Always use design system tokens (theme values, breakpoints, spacing units) instead of hard-coded values. Th...

    ⛶
  • Maintain configuration accuracy

    mui/material-ui
    Configurations Json
    3
    ⭐ 96063

    Regularly audit configuration files to remove unused entries and ensure all configurations accurately refle...

    ⛶
  • Explicit configuration resolution

    mui/material-ui
    Configurations JavaScript
    3
    ⭐ 96063

    Always use explicit path resolution and document ordering requirements in configuration files to prevent en...

    ⛶
  • Effect hook best practices

    mui/material-ui
    React TypeScript
    3
    ⭐ 96063

    When using React effect hooks, follow these practices to ensure predictable behavior and prevent memory lea...

    ⛶
  • Document implementation decisions

    mui/material-ui
    Documentation JavaScript
    3
    ⭐ 96063

    Add explanatory comments for non-obvious implementation details, especially when maintaining backward compa...

    ⛶
  • Defensively handle nullables

    mui/material-ui
    Null Handling JavaScript
    3
    ⭐ 96063

    When working with values that could be null or undefined, implement defensive coding patterns to prevent ru...

    ⛶
  • Consistent component API patterns

    mui/material-ui
    API JavaScript
    3
    ⭐ 96063

    Design component APIs with consistent patterns that promote extensibility and clear usage. Prefer generic p...

    ⛶
  • Use safe type guards

    mastodon/mastodon
    Null Handling TSX
    3
    ⭐ 48691

    When implementing type guards for nullable or unknown types, use the `in` operator and property existence c...

    ⛶
  • optimize network configurations

    mastodon/mastodon
    Networking Other
    3
    ⭐ 48691

    Optimize network configurations by eliminating redundancy, using modern compression standards, and properly...

    ⛶
  • optimize collection iterations

    mastodon/mastodon
    Algorithms Ruby
    3
    ⭐ 48691

    Avoid multiple passes through the same data structure when a single iteration can accomplish the same work....

    ⛶
  • Network resource limits

    mastodon/mastodon
    Networking Ruby
    3
    ⭐ 48691

    Implement protective limits for network operations to prevent resource exhaustion and denial-of-service att...

    ⛶
  • leverage existing configuration sources

    mastodon/mastodon
    Configurations TypeScript
    3
    ⭐ 48691

    When implementing configuration logic, prefer using built-in configuration mechanisms and existing framewor...

    ⛶
  • Extract view complexity

    mastodon/mastodon
    Code Style Other
    3
    ⭐ 48691

    Keep views clean and readable by extracting complex logic to appropriate locations. Move database queries w...

    ⛶
  • Complete translatable sentences

    mastodon/mastodon
    Documentation TSX
    3
    ⭐ 48691

    Use complete sentences in translatable strings rather than breaking them into fragments, even if this resul...

    ⛶
  • Choose appropriate exception types

    mastodon/mastodon
    Error Handling Ruby
    3
    ⭐ 48691

    Select exception types that match method contracts and avoid surprising behavior. Methods with names like `...

    ⛶
  • meaningful exception handling

    microsoft/markitdown
    Error Handling Python
    3
    ⭐ 76602

    Exception handling should provide meaningful feedback and use appropriate exception types rather than faili...

    ⛶
  • Improve documentation discoverability

    microsoft/markitdown
    Documentation Python
    3
    ⭐ 76602

    Ensure that important information about code purpose, behavior, and context is easily discoverable through ...

    ⛶
  • Improve code modularity

    microsoft/markitdown
    Code Style Python
    3
    ⭐ 76602

    Organize code into well-structured, reusable components by extracting specific functionality into separate ...

    ⛶
  • Documentation language precision

    microsoft/markitdown
    Documentation Markdown
    3
    ⭐ 76602

    Ensure documentation uses precise, accurate language that clearly describes functionality and highlights im...

    ⛶
  • Template instantiation trade-offs

    maplibre/maplibre-native
    Algorithms Other
    3
    ⭐ 1411

    When designing algorithms that accept callbacks or function parameters, consider the trade-off between temp...

    ⛶
  • Reserve container capacity early

    maplibre/maplibre-native
    Performance Optimization Other
    3
    ⭐ 1411

    When using containers like `unordered_map`, `unordered_set`, or vectors in performance-critical code, alway...

    ⛶
  • Prefer values over pointers

    maplibre/maplibre-native
    Null Handling Other
    3
    ⭐ 1411

    When designing classes and interfaces, prefer passing lightweight objects by value rather than using raw po...

    ⛶
  • Group related properties

    maplibre/maplibre-native
    API Other
    3
    ⭐ 1411

    Design APIs by organizing related properties into purpose-specific structures rather than flat parameter li...

    ⛶
  • Externalize configuration values

    maplibre/maplibre-native
    Configurations Kotlin
    3
    ⭐ 1411

    Use environment variables and external configuration mechanisms instead of hard-coding values in build scri...

    ⛶
  • Externalize config values

    maplibre/maplibre-native
    Configurations C++
    3
    ⭐ 1411

    Replace hardcoded "magic numbers" and environment-specific logic with externally configurable values. Use p...

    ⛶
  • DRY class hierarchies

    maplibre/maplibre-native
    Code Style Java
    3
    ⭐ 1411

    Follow the Don't Repeat Yourself (DRY) principle when designing class hierarchies. Extract common functiona...

    ⛶
  • Design evolution-ready APIs

    maplibre/maplibre-native
    API Java
    3
    ⭐ 1411

    Design APIs that are both explicit in their usage and provide clear evolution paths. When designing APIs: ...

    ⛶
  • Cross-platform CI validation

    maplibre/maplibre-native
    CI/CD Other
    3
    ⭐ 1411

    Always verify that code changes work across all CI platforms before submitting. When addressing a CI issue ...

    ⛶
  • Tailwind configuration patterns

    logseq/logseq
    Configurations JavaScript
    3
    ⭐ 37695

    Follow Tailwind CSS's recommended configuration patterns to ensure proper functionality and JIT mode compat...

    ⛶
  • Multi-arity backward compatibility

    logseq/logseq
    API Other
    3
    ⭐ 37695

    When extending existing API functions with new parameters, use multi-arity function definitions to maintain...

    ⛶
  • Maintain documentation consistency

    logseq/logseq
    Documentation Markdown
    3
    ⭐ 37695

    When modifying documentation structure or content, ensure all cross-references remain valid and avoid creat...

    ⛶
  • Filter nil values defensively

    logseq/logseq
    Null Handling Other
    3
    ⭐ 37695

    Proactively filter out nil values from collections and validate non-empty states before processing to preve...

    ⛶
  • Classify configuration properties appropriately

    logseq/logseq
    Configurations Markdown
    3
    ⭐ 37695

    Ensure configuration properties and settings are properly categorized based on their intended use, visibili...

    ⛶
  • API input validation

    logseq/logseq
    API TypeScript
    3
    ⭐ 37695

    When working with APIs, always validate inputs beyond basic format checking to ensure semantic correctness ...

    ⛶
  • Simplify error flows

    lobehub/lobe-chat
    Error Handling TypeScript
    3
    ⭐ 65138

    Avoid complex, multi-layered error handling that obscures error origins and makes debugging difficult. Each...

    ⛶
  • Protect sensitive data

    lobehub/lobe-chat
    Security TypeScript
    3
    ⭐ 65138

    Always identify and properly protect sensitive data fields in your code. Sensitive information includes IP ...

    ⛶
  • Optimize store selectors

    lobehub/lobe-chat
    Performance Optimization TSX
    3
    ⭐ 65138

    Write store selectors with proper patterns to prevent unnecessary component re-renders. Use inline selector...

    ⛶
  • Optimize database column types

    lobehub/lobe-chat
    Database TypeScript
    3
    ⭐ 65138

    Choose appropriate data types for database columns to improve storage efficiency and performance. Use auto-...

    ⛶
  • Dependency version management

    lobehub/lobe-chat
    Configurations Json
    3
    ⭐ 65138

    Use semantic versioning ranges for dependencies instead of "latest" or overly broad ranges. Avoid "latest" ...

    ⛶
  • Consider SSR impact

    lobehub/lobe-chat
    Next TSX
    3
    ⭐ 65138

    When using Next.js dynamic imports, carefully evaluate whether to disable server-side rendering (SSR) based...

    ⛶
  • Configuration merging precedence

    lobehub/lobe-chat
    Configurations TSX
    3
    ⭐ 65138

    When merging configuration objects, always preserve existing values and follow clear precedence rules to av...

    ⛶
  • Configuration file consistency

    lobehub/lobe-chat
    Configurations Yaml
    3
    ⭐ 65138

    Ensure configuration values are consistent and properly coordinated across all related files (docker-compos...

    ⛶
  • optimize CI/CD pipelines

    LMCache/LMCache
    CI/CD Shell
    3
    ⭐ 3800

    CI/CD pipelines should be optimized for both performance and maintainability through strategic caching, scr...

    ⛶
  • Ensure metadata consistency

    LMCache/LMCache
    Database Python
    3
    ⭐ 3800

    Always persist metadata alongside data and implement proper checking mechanisms to prevent duplicates and e...

    ⛶
  • Choose efficient data structures

    LMCache/LMCache
    Algorithms Python
    3
    ⭐ 3800

    Select appropriate built-in data structures and algorithmic patterns that eliminate manual checks and reduc...

    ⛶
  • Target-aware configuration handling

    llvm/llvm-project
    Configurations Other
    3
    ⭐ 33702

    When implementing features that depend on specific compilation targets or modes, design configuration mecha...

    ⛶
  • minimize test complexity

    llvm/llvm-project
    Testing Other
    3
    ⭐ 33702

    Tests should be minimal and focused on the specific functionality being verified. Remove unnecessary passes...

    ⛶
  • validate configuration options explicitly

    ggml-org/llama.cpp
    Configurations Python
    3
    ⭐ 83559

    When handling configuration options or tool types, use explicit conditional statements with proper error ha...

    ⛶
  • systematic test coverage

    ggml-org/llama.cpp
    Testing C++
    3
    ⭐ 83559

    When writing tests that need to cover multiple scenarios (different data types, backend capabilities, etc.)...

    ⛶
  • optimize algorithmic complexity

    ggml-org/llama.cpp
    Algorithms C
    3
    ⭐ 83559

    When implementing or refactoring algorithms, prioritize efficient data structures and computational approac...

    ⛶
  • measure algorithm performance impact

    ggml-org/llama.cpp
    Algorithms Other
    3
    ⭐ 83559

    Choose algorithms based on measurable performance benefits rather than theoretical complexity advantages. S...

    ⛶
  • Maintain consistent naming patterns

    ggml-org/llama.cpp
    Naming Conventions Python
    3
    ⭐ 83559

    Follow established naming conventions in the codebase and align with original source patterns while using m...

    ⛶
  • Choose appropriate error mechanism

    ggml-org/llama.cpp
    Error Handling C++
    3
    ⭐ 83559

    Use GGML_ASSERT for early validation and programming errors that indicate misconfigurations, but implement ...

    ⛶
  • AI documentation precision

    ggml-org/llama.cpp
    AI Markdown
    3
    ⭐ 83559

    Ensure documentation for AI/ML tools and libraries is precise, complete, and properly formatted. This inclu...

    ⛶
  • Standardize environment versions

    BerriAI/litellm
    CI/CD Yaml
    3
    ⭐ 28310

    Ensure consistent versions of languages, tools, and dependencies across all CI/CD environments (GitHub Acti...

    ⛶
  • Prefer lightweight observability integrations

    BerriAI/litellm
    Observability Markdown
    3
    ⭐ 28310

    Observability integrations should minimize external dependencies and avoid patching LiteLLM's core function...

    ⛶
  • minimize core dependencies

    BerriAI/litellm
    Configurations Toml
    3
    ⭐ 28310

    Keep core dependencies minimal in configuration files like pyproject.toml. Non-essential packages should be...

    ⛶
  • Ensure database consistency

    BerriAI/litellm
    Database Python
    3
    ⭐ 28310

    Maintain data consistency by using appropriate database operations and ensuring transactional integrity whe...

    ⛶
  • Validate environment variables strictly

    langfuse/langfuse
    Configurations TypeScript
    3
    ⭐ 13574

    Implement comprehensive validation for environment variables using a schema validation library (e.g., Zod)....

    ⛶
  • Standardize configuration values

    langfuse/langfuse
    Configurations Yaml
    3
    ⭐ 13574

    Always standardize configuration values to ensure consistency, reproducibility, and maintainability: 1. **...

    ⛶
  • Semantically correct status

    langfuse/langfuse
    API TypeScript
    3
    ⭐ 13574

    Use HTTP status codes that accurately reflect the outcome of API operations. This improves API clarity and ...

    ⛶
  • Secure external links

    langfuse/langfuse
    Security TSX
    3
    ⭐ 13574

    Always add `rel="noopener noreferrer"` to external links that use `target="_blank"` to prevent tabnabbing a...

    ⛶
  • Ensure algorithmic precision

    langfuse/langfuse
    Algorithms TSX
    3
    ⭐ 13574

    When implementing algorithms, ensure they perform exactly the operations needed without introducing uninten...

    ⛶
  • Document data constraints

    langfuse/langfuse
    API Yaml
    3
    ⭐ 13574

    Explicitly document all input and output constraints directly in API definitions. For inputs, specify valid...

    ⛶
  • Database migration best practices

    langfuse/langfuse
    Migrations Sql
    3
    ⭐ 13574

    When implementing database schema changes, follow these migration best practices to maintain data integrity...

    ⛶
  • Consistent database naming

    langfuse/langfuse
    Naming Conventions Sql
    3
    ⭐ 13574

    Maintain consistent naming patterns across all database objects. Ensure that: 1. Related object names are ...

    ⛶
  • Secure credential management

    langflow-ai/langflow
    Security Other
    3
    ⭐ 111046

    Ensure sensitive data like API keys, passwords, and encryption keys are stored securely and never exposed i...

    ⛶
  • observability documentation structure

    langflow-ai/langflow
    Observability Other
    3
    ⭐ 111046

    Use proper heading hierarchy instead of bold text formatting when documenting observability features like m...

    ⛶
  • Handle null values safely

    langflow-ai/langflow
    Null Handling Python
    3
    ⭐ 111046

    When handling potentially null or undefined values, implement explicit null checks and provide safe default...

    ⛶
  • eliminate code duplication

    langflow-ai/langflow
    Code Style TSX
    3
    ⭐ 111046

    Identify and eliminate duplicated code by extracting shared functionality to appropriate locations. When mu...

    ⛶
  • Document security implications clearly

    langflow-ai/langflow
    Security Markdown
    3
    ⭐ 111046

    When documenting features that involve sensitive data, authentication, or privileged operations, explicitly...

    ⛶
  • Document connection parameters clearly

    langflow-ai/langflow
    Networking Other
    3
    ⭐ 111046

    When documenting network connections (SSH, HTTP, database, etc.), provide clear explanations of all connect...

    ⛶
  • Consistent formatting standards

    langflow-ai/langflow
    Code Style Markdown
    3
    ⭐ 111046

    Maintain consistent formatting and syntax across all documentation and code examples to improve readability...

    ⛶
  • API endpoint documentation

    langflow-ai/langflow
    Networking Markdown
    3
    ⭐ 111046

    Ensure API documentation includes all required networking components and uses proper syntax for shell comma...

    ⛶
  • Documentation completeness check

    langchain-ai/langchainjs
    Documentation Markdown
    3
    ⭐ 15004

    Ensure all documentation is complete, well-formatted, and maximally useful for developers. This includes: ...

    ⛶
  • Constructor over setter

    langchain-ai/langchainjs
    API Other
    3
    ⭐ 15004

    Prefer passing configuration through constructor parameters rather than setting properties after instantiat...

    ⛶
  • Consistent naming conventions

    langchain-ai/langchainjs
    Naming Conventions Other
    3
    ⭐ 15004

    Maintain consistent and explicit naming conventions across your codebase that reflect: 1. **Component depe...

    ⛶
  • Consistent AI naming

    langchain-ai/langchainjs
    AI JavaScript
    3
    ⭐ 15004

    Use specific and consistent naming conventions when referencing AI services, models, and their parameters t...

    ⛶
  • Chunked data processing

    langchain-ai/langchainjs
    Algorithms TypeScript
    3
    ⭐ 15004

    When processing large arrays or data structures, implement chunked processing to avoid stack size limitatio...

    ⛶
  • AI dependency management

    langchain-ai/langchainjs
    AI Json
    3
    ⭐ 15004

    When integrating AI models and language processing libraries, follow these dependency management best pract...

    ⛶
  • Use table-driven tests

    kubeflow/kubeflow
    Testing Go
    3
    ⭐ 15064

    In Go, prefer table-driven tests over multiple separate test functions. Table tests allow for concise testi...

    ⛶
  • Use snake_case in Python

    kubeflow/kubeflow
    Naming Conventions Python
    3
    ⭐ 15064

    Follow Python's PEP 8 naming convention by using snake_case for variables, functions, and methods rather th...

    ⛶
  • Use appropriate log levels

    kubeflow/kubeflow
    Logging Go
    3
    ⭐ 15064

    Always match logging levels to the message's purpose and severity. Use log.Info for general information, lo...

    ⛶
  • Structured OWNERS files

    kubeflow/kubeflow
    Documentation Other
    3
    ⭐ 15064

    OWNERS files must follow project documentation standards to properly reflect component ownership and mainta...

    ⛶
  • Standardize build configurations

    kubeflow/kubeflow
    CI/CD Markdown
    3
    ⭐ 15064

    All components should use consistent build configurations and patterns in their CI/CD setup. This includes ...

    ⛶
  • Specific network access documentation

    kubeflow/kubeflow
    Networking Markdown
    3
    ⭐ 15064

    When documenting network access methods or service connections, always provide specific commands with expli...

    ⛶
  • Normalize URL paths

    kubeflow/kubeflow
    Networking TypeScript
    3
    ⭐ 15064

    When handling URLs in web applications, consistently normalize path formats to prevent routing and service ...

    ⛶
  • Mark UI text i18n

    kubeflow/kubeflow
    Documentation Html
    3
    ⭐ 15064

    All user-facing text in HTML templates should be marked for internationalization using the i18n directive. ...

    ⛶
  • Manage configuration changes

    kubeflow/kubeflow
    Configurations Json
    3
    ⭐ 15064

    Carefully manage configuration file changes to ensure consistency and minimize unintended impacts across yo...

    ⛶
  • Environment-aware configuration design

    kubeflow/kubeflow
    Configurations Yaml
    3
    ⭐ 15064

    Design configurations that work consistently across different environments without requiring environment-sp...

    ⛶
  • Document with precision

    kubeflow/kubeflow
    Documentation Dockerfile
    3
    ⭐ 15064

    Write informative, consistent, and precise code comments throughout your codebase. When documenting code: ...

    ⛶
  • Check before use

    kubeflow/kubeflow
    Null Handling Go
    3
    ⭐ 15064

    Always validate that objects, maps, and other reference types are non-nil before attempting to use them. Us...

    ⛶
  • Standardize build configurations

    JetBrains/kotlin
    Configurations Other
    3
    ⭐ 50857

    Maintain consistent and standardized build configurations across the project to improve maintainability and...

    ⛶
  • Handle AI provider specifics

    kilo-org/kilocode
    AI TypeScript
    3
    ⭐ 7302

    Different AI providers and models have unique requirements for input processing, output filtering, and API ...

    ⛶
  • API header management

    kilo-org/kilocode
    API TypeScript
    3
    ⭐ 7302

    Establish consistent patterns for handling headers in API clients to avoid duplication and ensure predictab...

    ⛶
  • validate network state

    apache/kafka
    Networking Java
    3
    ⭐ 30575

    Always validate network connectivity and cluster state before attempting network operations. Check for lead...

    ⛶
  • Validate configurations early

    apache/kafka
    Configurations Other
    3
    ⭐ 30575

    Perform comprehensive configuration validation as early as possible in the execution flow, before any state...

    ⛶
  • Use parameterized logging

    apache/kafka
    Logging Java
    3
    ⭐ 30575

    Use parameterized logging with placeholders (`{}`) instead of string concatenation for better performance a...

    ⛶
  • Use condition-based waiting

    apache/kafka
    Concurrency Other
    3
    ⭐ 30575

    Replace fixed-time delays with condition-based waiting mechanisms to ensure reliable synchronization and av...

    ⛶
  • sequence data state updates

    apache/kafka
    Database Other
    3
    ⭐ 30575

    When working with distributed data systems, ensure that state updates are performed in the correct conceptu...

    ⛶
  • maintain naming consistency

    apache/kafka
    Naming Conventions Other
    3
    ⭐ 30575

    Ensure consistent naming conventions and parameter ordering throughout the codebase. This includes maintain...

    ⛶
  • Add proactive null checks

    apache/kafka
    Null Handling Other
    3
    ⭐ 30575

    Always add null checks before accessing methods or properties on objects that can potentially be null, espe...

    ⛶
  • Use safe optional defaults

    jj-vcs/jj
    Null Handling Rust
    3
    ⭐ 21171

    When working with optional values, prefer safe extraction methods that provide defaults rather than methods...

    ⛶
  • Use intuitive descriptive names

    jj-vcs/jj
    Naming Conventions Other
    3
    ⭐ 21171

    Choose names that clearly communicate purpose and intent without requiring additional documentation or cont...

    ⛶
  • documentation formatting consistency

    jj-vcs/jj
    Code Style Markdown
    3
    ⭐ 21171

    Maintain consistent formatting and style patterns across all documentation to improve readability and user ...

    ⛶
  • Config file naming clarity

    jj-vcs/jj
    Configurations Rust
    3
    ⭐ 21171

    Use descriptive, unambiguous names for configuration files to clearly indicate their scope and prevent user...

    ⛶
  • Use descriptive names

    menloresearch/jan
    Naming Conventions TypeScript
    3
    ⭐ 37620

    Choose variable and function names that clearly communicate their purpose, type, and behavior. Names should...

    ⛶
  • Externalize hardcoded configurations

    menloresearch/jan
    Configurations TypeScript
    3
    ⭐ 37620

    Avoid hardcoding configuration values like ports, URLs, API endpoints, and environment-specific settings di...

    ⛶
  • Eliminate filler language

    menloresearch/jan
    Documentation Other
    3
    ⭐ 37620

    Remove unnecessary filler words and repetitive phrases that dilute clarity and assume reader incompetence. ...

    ⛶
  • Configuration structure clarity

    menloresearch/jan
    Configurations Markdown
    3
    ⭐ 37620

    Ensure configuration parameters are properly structured, accurately documented, and clearly indicate their ...

    ⛶
  • Concise documentation writing

    menloresearch/jan
    Documentation Markdown
    3
    ⭐ 37620

    Write documentation that respects user intelligence by being concise and avoiding over-explanation of obvio...

    ⛶
  • maintain consistent naming patterns

    istio/istio
    Naming Conventions Yaml
    3
    ⭐ 37192

    Ensure naming consistency across related components and throughout the codebase to prevent developer confus...

    ⛶
  • leverage kernel network structures

    istio/istio
    Networking C
    3
    ⭐ 37192

    When implementing eBPF networking programs, prefer using kernel-native data structures and BPF helpers over...

    ⛶
  • Early nil checks

    istio/istio
    Null Handling Go
    3
    ⭐ 37192

    Add nil and empty checks at the beginning of functions to prevent downstream issues and avoid unnecessary p...

    ⛶
  • consistent log formatting

    istio/istio
    Logging Go
    3
    ⭐ 37192

    Maintain consistent formatting conventions across log messages to improve code readability and debugging ef...

    ⛶
  • Configuration documentation standards

    istio/istio
    Configurations Yaml
    3
    ⭐ 37192

    Ensure all user-configurable options are properly documented and discoverable, while keeping configuration ...

    ⛶
  • avoid timing dependencies

    istio/istio
    Testing Go
    3
    ⭐ 37192

    Eliminate timing dependencies in tests by using proper retry mechanisms and assertions instead of sleep sta...

    ⛶
  • avoid repeated expensive operations

    istio/istio
    Algorithms Go
    3
    ⭐ 37192

    Avoid performing expensive computational operations repeatedly when the same result can be achieved through...

    ⛶
  • Use descriptive variable names

    vadimdemedes/ink
    Naming Conventions TSX
    3
    ⭐ 31825

    Avoid single-character variables and abbreviations in favor of descriptive, full-word names that clearly co...

    ⛶
  • Use descriptive names

    vadimdemedes/ink
    Naming Conventions JavaScript
    3
    ⭐ 31825

    Choose variable, function, and export names that clearly communicate their purpose and content. Avoid abbre...

    ⛶
  • Provide clear documentation context

    vadimdemedes/ink
    Documentation Markdown
    3
    ⭐ 31825

    Documentation should include practical context, clear explanations, and appropriate examples to help users ...

    ⛶
  • Fix linting root causes

    vadimdemedes/ink
    Code Style TSX
    3
    ⭐ 31825

    Address underlying code issues rather than disabling linting rules or working around auto-formatter conflic...

    ⛶
  • explicit type checking

    vadimdemedes/ink
    Null Handling TypeScript
    3
    ⭐ 31825

    Always perform explicit type and existence checks before operations that could fail with null or undefined ...

    ⛶
  • Consistent code formatting

    vadimdemedes/ink
    Code Style TypeScript
    3
    ⭐ 31825

    Maintain consistent formatting and alignment throughout the codebase to improve readability and maintainabi...

    ⛶
  • Type over primitives

    influxdata/influxdb
    Algorithms Go
    3
    ⭐ 30268

    Use domain-specific types instead of primitives (like strings, []byte, or generic maps) to represent domain...

    ⛶
  • Secure token lifecycle

    influxdata/influxdb
    Security Rust
    3
    ⭐ 30268

    Implement comprehensive lifecycle controls for authentication tokens to maintain security throughout token ...

    ⛶
  • Explicit security parameters

    influxdata/influxdb
    Security Go
    3
    ⭐ 30268

    Security-critical features should be implemented as required parameters rather than optional parameters or ...

    ⛶
  • Document complete data flows

    influxdata/influxdb
    Database Markdown
    3
    ⭐ 30268

    When documenting database systems, ensure all documentation includes complete end-to-end data flows. Both d...

    ⛶
  • Complete schema management

    influxdata/influxdb
    Database Go
    3
    ⭐ 30268

    When working with database systems that have flexible schemas (like InfluxDB), ensure complete schema disco...

    ⛶
  • Sanitize external content

    elie222/inbox-zero
    Security TSX
    3
    ⭐ 8267

    Always sanitize and validate external content before processing or rendering it to prevent security vulnera...

    ⛶
  • Remove commented out code

    elie222/inbox-zero
    Code Style TypeScript
    3
    ⭐ 8267

    Delete commented-out code instead of retaining it in the codebase. Commented code creates confusion, adds m...

    ⛶
  • Next.js async behavior

    elie222/inbox-zero
    Next TSX
    3
    ⭐ 8267

    Understand and correctly implement the asynchronous behavior of Next.js APIs and components. Follow these g...

    ⛶
  • Guard against null chains

    elie222/inbox-zero
    Null Handling TypeScript
    3
    ⭐ 8267

    Prevent null pointer exceptions by validating object chains before accessing nested properties. Use early r...

    ⛶
  • Externalize configuration values

    elie222/inbox-zero
    Configurations Yaml
    3
    ⭐ 8267

    Configuration files should not contain hardcoded values for usernames, credentials, hostnames, or environme...

    ⛶
  • Database type best practices

    elie222/inbox-zero
    Database Sql
    3
    ⭐ 8267

    Select appropriate data types and defaults for database columns to ensure data integrity and simplify appli...

    ⛶
  • optimize with bit manipulation

    hyprwm/Hyprland
    Algorithms Other
    3
    ⭐ 28863

    Use bit manipulation techniques to optimize memory usage and computational efficiency in data structures an...

    ⛶
  • configuration consistency validation

    hyprwm/Hyprland
    Configurations Other
    3
    ⭐ 28863

    When modifying configuration options, ensure changes are consistently applied across all relevant locations...

    ⛶
  • API identifier consistency

    juspay/hyperswitch
    API Toml
    3
    ⭐ 34028

    Maintain consistent naming conventions for API identifiers, configuration keys, and payment method types. U...

    ⛶
  • Use realistic doc examples

    helix-editor/helix
    Documentation Markdown
    3
    ⭐ 39026

    Documentation should include concrete, realistic examples that demonstrate practical usage rather than abst...

    ⛶
  • Semantic identifier naming patterns

    helix-editor/helix
    Naming Conventions Other
    3
    ⭐ 39026

    Use consistent naming patterns that reflect the semantic role of identifiers: 1. Constants should use UPPE...

    ⛶
  • Optimize query performance

    helix-editor/helix
    Algorithms Other
    3
    ⭐ 39026

    When writing tree-sitter queries, prioritize performance by choosing efficient predicates and avoiding comp...

    ⛶
  • Nest related configuration options

    helix-editor/helix
    Configurations Markdown
    3
    ⭐ 39026

    Group related configuration options into nested TOML sections rather than using flat key-value pairs. This ...

    ⛶
  • Documentation style and formatting

    helix-editor/helix
    Code Style Markdown
    3
    ⭐ 39026

    Maintain consistent documentation style by following these guidelines: 1. Use concise, descriptive languag...

    ⛶
  • avoid version-specific documentation

    helix-editor/helix
    CI/CD Markdown
    3
    ⭐ 39026

    When writing build and deployment documentation, avoid hard-coding specific version numbers, toolchain assu...

    ⛶
  • Proper mocking techniques

    grafana/grafana
    Testing TSX
    3
    ⭐ 68825

    Use appropriate mocking approaches for different dependencies in tests to ensure accurate test results and ...

    ⛶
  • Optimize hot paths

    grafana/grafana
    Algorithms TypeScript
    3
    ⭐ 68825

    Identify and optimize frequently executed code paths by moving invariant calculations and conditional logic...

    ⛶
  • Measure before optimizing

    grafana/grafana
    Performance Optimization TSX
    3
    ⭐ 68825

    Performance optimizations should be validated with measurements rather than assumptions. When implementing ...

    ⛶
  • Maintain API version compatibility

    grafana/grafana
    API TypeScript
    3
    ⭐ 68825

    When implementing or modifying APIs, ensure backward compatibility across versions and client interfaces. C...

    ⛶
  • Graceful feature availability

    grafana/grafana
    Configurations TSX
    3
    ⭐ 68825

    When implementing configurable features, ensure they degrade gracefully based on environment conditions lik...

    ⛶
  • Feature toggle lifecycle

    grafana/grafana
    Configurations TypeScript
    3
    ⭐ 68825

    When working with feature toggles and configuration flags, manage their entire lifecycle carefully to preve...

    ⛶
  • Design token value consistency

    grafana/grafana
    Code Style Json
    3
    ⭐ 68825

    When implementing design tokens in code, ensure values accurately represent the intended visual outcome, ev...

    ⛶
  • Complete configuration fields

    grafana/grafana
    Configurations Json
    3
    ⭐ 68825

    Ensure all plugin configuration files include the complete set of required fields specific to their plugin ...

    ⛶
  • Use idiomatic optional patterns

    block/goose
    Null Handling Rust
    3
    ⭐ 19037

    Prefer Rust's built-in optional handling methods over manual checks and intermediate variables. Use `if let...

    ⛶
  • Optimize hook dependencies

    block/goose
    React TSX
    3
    ⭐ 19037

    Understand React's built-in optimizations and avoid unnecessary dependencies in hook arrays. React guarante...

    ⛶
  • extract duplicated code

    block/goose
    Code Style TSX
    3
    ⭐ 19037

    Identify and eliminate code duplication by extracting shared logic into reusable functions, components, or ...

    ⛶
  • Environment-aware configuration handling

    block/goose
    Configurations TypeScript
    3
    ⭐ 19037

    Use environment variables to control application behavior and ensure configuration changes are properly syn...

    ⛶
  • Document non-obvious code

    block/goose
    Documentation Rust
    3
    ⭐ 19037

    Add clear documentation for code elements that aren't immediately self-explanatory to improve readability a...

    ⛶
  • default least permissive

    block/goose
    Security Rust
    3
    ⭐ 19037

    When implementing security controls, always default to the most restrictive option and require explicit opt...

    ⛶
  • Use benchmarked thresholds

    golang/go
    Performance Optimization Go
    3
    ⭐ 129599

    Base performance-critical constants, limits, and thresholds on empirical benchmarking rather than arbitrary...

    ⛶
  • Go module configuration

    golang/go
    Configurations Html
    3
    ⭐ 129599

    Ensure Go projects use modern module configuration instead of legacy GOPATH setup. Projects should be creat...

    ⛶
  • Write resilient tests

    gin-gonic/gin
    Testing Go
    3
    ⭐ 83022

    Tests should be designed to validate behavior without being brittle or sensitive to implementation details....

    ⛶
  • Use standard API constants

    gin-gonic/gin
    API Go
    3
    ⭐ 83022

    Always use standard library constants for HTTP methods and status codes rather than string literals or nume...

    ⛶
  • Precompute over recalculate

    gin-gonic/gin
    Performance Optimization Go
    3
    ⭐ 83022

    Perform expensive calculations during initialization rather than on each request, and avoid unnecessary ope...

    ⛶
  • Early return pattern

    gin-gonic/gin
    Code Style Go
    3
    ⭐ 83022

    Prefer returning early from functions rather than nesting conditions. When a condition can lead to an early...

    ⛶
  • Configuration file precision

    gin-gonic/gin
    Configurations Other
    3
    ⭐ 83022

    Ensure configuration files are precisely maintained with correct syntax and compatible version declarations...

    ⛶
  • Prefer safe optional handling

    ghostty-org/ghostty
    Null Handling Swift
    3
    ⭐ 32864

    Always use Swift's built-in mechanisms for safely handling optional values instead of force unwrapping or m...

    ⛶
  • Encapsulate implementation details

    ghostty-org/ghostty
    API Other
    3
    ⭐ 32864

    When designing APIs, create appropriate abstractions that hide platform-specific or low-level implementatio...

    ⛶
  • Define explicit error sets

    ghostty-org/ghostty
    Error Handling Other
    3
    ⭐ 32864

    Always define explicit error sets for functions that can fail, rather than using inferred error sets. This ...

    ⛶
  • Centralize configuration values

    ghostty-org/ghostty
    Configurations Yaml
    3
    ⭐ 32864

    Hardcoded configuration values scattered throughout codebases create maintenance burdens and increase the r...

    ⛶
  • Centralize configuration management

    ghostty-org/ghostty
    Configurations Swift
    3
    ⭐ 32864

    Avoid hardcoded or duplicated configuration values by centralizing them in a dedicated location. When confi...

    ⛶
  • Remove unsupported runtime versions

    google-gemini/gemini-cli
    CI/CD Yaml
    3
    ⭐ 65062

    When maintaining CI/CD pipelines, regularly audit and remove runtime versions that are no longer supported ...

    ⛶
  • Prevent React race conditions

    google-gemini/gemini-cli
    React TypeScript
    3
    ⭐ 65062

    When building React components that handle rapid user input or manage complex interdependent state, consoli...

    ⛶
  • Maintain consistent naming

    google-gemini/gemini-cli
    Naming Conventions Markdown
    3
    ⭐ 65062

    Ensure naming consistency across all contexts where an identifier appears - configuration files, code enums...

    ⛶
  • Document configuration defaults clearly

    google-gemini/gemini-cli
    Configurations Markdown
    3
    ⭐ 65062

    When documenting configuration options, always specify exact file paths, explicit default values, and clari...

    ⛶
  • Thread safety synchronization

    flutter/flutter
    Concurrency Other
    3
    ⭐ 172252

    Ensure proper synchronization when accessing shared data structures and coordinate operations across multip...

    ⛶
  • preserve error context

    firecrawl/firecrawl
    Error Handling TypeScript
    3
    ⭐ 54535

    Always maintain complete error information when logging or re-throwing errors to enable effective debugging...

    ⛶
  • Validate security inputs

    gofiber/fiber
    Security Go
    3
    ⭐ 37560

    Always validate security-critical inputs to prevent DoS attacks and injection vulnerabilities. Implement si...

    ⛶
  • Update documentation proactively

    gofiber/fiber
    Documentation Go
    3
    ⭐ 37560

    When code behavior changes, new features are added, or potential usage pitfalls are identified, proactively...

    ⛶
  • Prefer standard library functions

    gofiber/fiber
    Algorithms Go
    3
    ⭐ 37560

    When implementing algorithms, prioritize using standard library functions over manual implementations when ...

    ⛶
  • maintain clean linter configs

    gofiber/fiber
    Configurations Yaml
    3
    ⭐ 37560

    Ensure linter configuration files are well-maintained by avoiding duplicate entries, using current non-depr...

    ⛶
  • explicit CI/CD configuration

    gofiber/fiber
    CI/CD Yaml
    3
    ⭐ 37560

    Always use explicit configuration in CI/CD workflows rather than relying on defaults or convenience shortcu...

    ⛶
  • Enforce secure TLS configuration

    gofiber/fiber
    Networking Go
    3
    ⭐ 37560

    Always configure TLS connections with secure minimum version requirements and proper certificate handling. ...

    ⛶
  • Clear network API documentation

    gofiber/fiber
    Networking Markdown
    3
    ⭐ 37560

    Ensure networking-related API documentation and descriptions are specific, clear, and include concrete impl...

    ⛶
  • Choose descriptive property names

    gofiber/fiber
    Naming Conventions Markdown
    3
    ⭐ 37560

    Property and configuration field names should clearly communicate their purpose, behavior, and relationship...

    ⛶
  • Consistent Fastify Integration Patterns

    fastify/fastify
    Fastify TypeScript
    3
    ⭐ 34000

    When implementing integrations and plugins using the Fastify framework, maintain consistent coding patterns...

    ⛶
  • Standardize version transitions

    fastapi/fastapi
    Configurations Python
    3
    ⭐ 86871

    When supporting multiple library versions or preparing for version deprecation in configuration-dependent c...

    ⛶
  • Secure JWT authentication

    fastapi/fastapi
    Security Markdown
    3
    ⭐ 86871

    Implement secure authentication using JWT tokens by following these best practices: 1. **Use secure librar...

    ⛶
  • Proper response handling

    fastapi/fastapi
    API Python
    3
    ⭐ 86871

    When designing APIs, ensure responses adhere to HTTP semantics by: 1. Using semantic status code constants...

    ⛶
  • Preserve unset field values

    fastapi/fastapi
    Null Handling Markdown
    3
    ⭐ 86871

    When implementing partial updates in FastAPI, use the `exclude_unset` parameter in Pydantic's `.dict()` or ...

    ⛶
  • Explicit exception propagation

    fastapi/fastapi
    Error Handling Markdown
    3
    ⭐ 86871

    Always be explicit about how exceptions are handled, propagated, and recovered from in your code. When catc...

    ⛶
  • Structured release workflows

    expressjs/express
    CI/CD Markdown
    3
    ⭐ 67300

    Implement a clearly defined release strategy that distinguishes between different types of changes. Create ...

    ⛶
  • Purposeful style changes

    expressjs/express
    Code Style Markdown
    3
    ⭐ 67300

    Code style modifications should accompany functional improvements rather than being submitted as standalone...

    ⛶
  • Implement least privilege

    expressjs/express
    Security Markdown
    3
    ⭐ 67300

    Apply the principle of least privilege for all repository and system access to enhance security. Each role ...

    ⛶
  • verify platform network compatibility

    evanw/esbuild
    Networking Other
    3
    ⭐ 39161

    When adding support for new platforms or architectures, thoroughly verify that networking functionality wor...

    ⛶
  • validate external input safely

    electron/electron
    Security Other
    3
    ⭐ 117644

    Always validate and sanitize external input using established libraries rather than manual string manipulat...

    ⛶
  • Use semantically accurate names

    electron/electron
    Naming Conventions Markdown
    3
    ⭐ 117644

    Choose parameter and method names that accurately reflect their semantic meaning and implementation reality...

    ⛶
  • organize code structure

    electron/electron
    Code Style TypeScript
    3
    ⭐ 117644

    Make deliberate structural decisions that improve code maintainability and readability. Consider the approp...

    ⛶
  • Document error handling limitations

    electron/electron
    Error Handling Markdown
    3
    ⭐ 117644

    When documenting error handling mechanisms, always provide complete context about how they work, including ...

    ⛶
  • defensive null checking

    electron/electron
    Null Handling TypeScript
    3
    ⭐ 117644

    Implement robust null and undefined handling patterns to prevent runtime errors and maintain code reliabili...

    ⛶
  • Context-aware module loading

    electron/electron
    Configurations TypeScript
    3
    ⭐ 117644

    Choose appropriate module loading syntax based on your execution context and build configuration settings. ...

    ⛶
  • async destruction safety

    electron/electron
    Concurrency Other
    3
    ⭐ 117644

    When destroying objects asynchronously to avoid crashes from observer notifications or other synchronous de...

    ⛶
  • Stage intensive operations carefully

    elastic/elasticsearch
    Performance Optimization Markdown
    3
    ⭐ 73104

    When implementing operations that consume significant system resources (CPU, memory, I/O), introduce change...

    ⛶
  • Scope and document configurations

    elastic/elasticsearch
    Configurations Markdown
    3
    ⭐ 73104

    When designing and implementing configuration options, carefully consider two key aspects: 1. **Choose app...

    ⛶
  • Design for evolution

    elastic/elasticsearch
    API Java
    3
    ⭐ 73104

    When designing APIs, prioritize flexibility and independent evolution of components. Avoid tightly coupling...

    ⛶
  • Simplify and organize code

    dyad-sh/dyad
    Code Style TSX
    3
    ⭐ 16903

    Keep code simple, direct, and well-organized by avoiding unnecessary complexity and properly structuring co...

    ⛶
  • use default serialization methods

    duckdb/duckdb
    Migrations C++
    3
    ⭐ 32061

    When adding new properties to serialization methods, use `WritePropertyWithDefault` and `ReadPropertyWithDe...

    ⛶
  • thoughtful configuration design

    duckdb/duckdb
    Configurations Txt
    3
    ⭐ 32061

    When designing configuration options, environment variables, and build settings, follow established pattern...

    ⛶
  • Maintain consistent naming patterns

    duckdb/duckdb
    Naming Conventions Json
    3
    ⭐ 32061

    Ensure all new functions, files, and identifiers follow established naming conventions within the codebase....

    ⛶
  • Guard expensive logging operations

    duckdb/duckdb
    Logging C++
    3
    ⭐ 32061

    Avoid executing expensive operations in logging code paths when logging is disabled or not needed. Always c...

    ⛶
  • generate test data dynamically

    duckdb/duckdb
    Testing Csv
    3
    ⭐ 32061

    Instead of adding static test data files to the repository, generate test data programmatically within test...

    ⛶
  • Environment variable handling

    duckdb/duckdb
    Configurations Python
    3
    ⭐ 32061

    When working with environment variables, follow consistent naming conventions, properly check for their pre...

    ⛶
  • avoid redundant lookups

    duckdb/duckdb
    Algorithms C++
    3
    ⭐ 32061

    When working with associative containers (sets, maps, unordered_set, unordered_map), avoid performing redun...

    ⛶
  • preserve thread-local state

    stanfordnlp/dspy
    Concurrency Python
    3
    ⭐ 27813

    When launching threads in DSPy, ensure that child threads inherit the parent thread's local overrides to ma...

    ⛶
  • Cache key serialization

    stanfordnlp/dspy
    Caching Python
    3
    ⭐ 27813

    When implementing caching for functions that accept complex objects (dictionaries with mixed types, Pydanti...

    ⛶
  • optimize algorithmic performance

    drizzle-team/drizzle-orm
    Algorithms TypeScript
    3
    ⭐ 29461

    Prioritize algorithmic efficiency and avoid unnecessary computational overhead, especially in type-level op...

    ⛶
  • Validate security-related inputs

    django/django
    Security Python
    3
    ⭐ 84182

    Always validate and sanitize all inputs that influence security-related functionality at the application le...

    ⛶
  • Validate configuration changes

    django/django
    Configurations Txt
    3
    ⭐ 84182

    Before modifying default configuration settings, thoroughly understand and test their implications. Django'...

    ⛶
  • Transaction-aware task enqueuing

    django/django
    Celery Txt
    3
    ⭐ 84182

    When working with background tasks that depend on database changes, ensure tasks are enqueued only after th...

    ⛶
  • Prefer semantic CSS selectors

    django/django
    Code Style Css
    3
    ⭐ 84182

    Use semantic attribute-based selectors instead of structural or overly specific class names when the semant...

    ⛶
  • Feature flags over vendors

    django/django
    Configurations Python
    3
    ⭐ 84182

    When checking for database backend capabilities, always use feature flags rather than checking specific ven...

    ⛶
  • Fail predictably, loudly

    django/django
    API Txt
    3
    ⭐ 84182

    Design APIs that fail explicitly and predictably when used incorrectly. When an operation is attempted in a...

    ⛶
  • Document accessibility decisions

    django/django
    Documentation Html
    3
    ⭐ 84182

    When implementing HTML templates, add clear comments documenting accessibility-related decisions. Explain t...

    ⛶
  • Consider related object cleanup

    django/django
    Migrations Python
    3
    ⭐ 84182

    When implementing migration operations that modify or remove database objects like fields and models, ensur...

    ⛶
  • Break lines for readability

    django/django
    Code Style Python
    3
    ⭐ 84182

    Format code with semantic line breaks that enhance readability rather than adhering strictly to character l...

    ⛶
  • Async resource cleanup guarantees

    django/django
    Concurrency Python
    3
    ⭐ 84182

    When implementing async context managers, always ensure proper resource cleanup even during task cancellati...

    ⛶
  • Validate configuration dependencies

    discourse/discourse
    Configurations Yaml
    3
    ⭐ 44898

    Configuration settings often depend on other settings or external resources to function correctly. Always i...

    ⛶
  • Safe configuration access

    discourse/discourse
    Configurations Other
    3
    ⭐ 44898

    Always verify configuration properties exist before accessing them to prevent runtime errors. Configuration...

    ⛶
  • prefer CSS custom properties

    discourse/discourse
    Code Style Css
    3
    ⭐ 44898

    Use CSS custom properties (CSS variables) instead of hardcoded values for fonts, spacing, colors, and other...

    ⛶
  • Include contextual error information

    discourse/discourse
    Error Handling Ruby
    3
    ⭐ 44898

    Error messages should include relevant contextual information such as IDs, file paths, job identifiers, and...

    ⛶
  • CSS modifier naming

    discourse/discourse
    Naming Conventions Css
    3
    ⭐ 44898

    Use consistent modifier patterns with `--` prefixes for CSS classes and variables. Prefer semantic base nam...

    ⛶
  • Cache expensive operations

    discourse/discourse
    Performance Optimization Ruby
    3
    ⭐ 44898

    Identify and eliminate duplicate computations by caching results of expensive operations. This includes mem...

    ⛶
  • avoid underscore prefixes

    discourse/discourse
    Naming Conventions JavaScript
    3
    ⭐ 44898

    Do not use underscore prefixes (`_`) for private or internal methods and properties. The team consensus is ...

    ⛶
  • Avoid optimization anti-patterns

    discourse/discourse
    Performance Optimization Other
    3
    ⭐ 44898

    Identify and eliminate code patterns that appear to be performance optimizations but actually hurt performa...

    ⛶
  • Optimize data structures

    langgenius/dify
    Algorithms Python
    3
    ⭐ 114231

    Choose appropriate built-in data structures and collection types to improve code efficiency and readability...

    ⛶
  • Maintain consistent organization

    langgenius/dify
    Code Style TSX
    3
    ⭐ 114231

    Ensure proper file organization and consistent import conventions throughout the codebase. Assets should be...

    ⛶
  • Ensure configuration consistency

    langgenius/dify
    Configurations Other
    3
    ⭐ 114231

    Maintain consistency across configuration variables to prevent setup confusion and deployment issues. Avoid...

    ⛶
  • Conservative configuration management

    langgenius/dify
    Configurations Json
    3
    ⭐ 114231

    Be selective and intentional with configuration choices to avoid bloat and unnecessary complexity. This app...

    ⛶
  • Configuration defaults appropriateness

    langgenius/dify
    Configurations Yaml
    3
    ⭐ 114231

    Ensure configuration parameters have appropriate default values and avoid hardcoded or overly specific sett...

    ⛶
  • Choose descriptive, unambiguous names

    langgenius/dify
    Naming Conventions TypeScript
    3
    ⭐ 114231

    Select variable, method, and property names that clearly communicate their purpose and avoid ambiguity. Pri...

    ⛶
  • Balance CI/CD trade-offs

    langgenius/dify
    CI/CD Yaml
    3
    ⭐ 114231

    When configuring CI/CD pipelines, balance comprehensive coverage and security with practical constraints li...

    ⛶
  • Lazy initialization patterns

    zen-browser/desktop
    Performance Optimization Other
    3
    ⭐ 34711

    Avoid repeatedly performing expensive operations like adding event handlers, loading resources, or fetching...

    ⛶
  • Use descriptive identifiers

    denoland/deno
    Naming Conventions TypeScript
    3
    ⭐ 103714

    Choose names that clearly communicate the purpose, functionality, and usage context of variables, methods, ...

    ⛶
  • Use backticks for identifiers

    denoland/deno
    Documentation TypeScript
    3
    ⭐ 103714

    Wrap all code identifiers, method names, interface names, class names, and API references in JSDoc comments...

    ⛶
  • network address validation

    denoland/deno
    Networking Rust
    3
    ⭐ 103714

    When validating network addresses and interfaces, properly handle special address values and use protocol-s...

    ⛶
  • Explain non-obvious decisions

    denoland/deno
    Documentation Rust
    3
    ⭐ 103714

    When code contains non-obvious parameter choices, conditional logic, or unexpected implementation changes, ...

    ⛶
  • environment loading order

    denoland/deno
    Configurations Rust
    3
    ⭐ 103714

    Environment files and variables must be loaded before creating any factories, services, or components that ...

    ⛶
  • Document network APIs comprehensively

    denoland/deno
    Networking TypeScript
    3
    ⭐ 103714

    Network APIs and interfaces should include comprehensive documentation with clear descriptions, practical e...

    ⛶
  • Control cache lifecycle

    denoland/deno
    Caching Rust
    3
    ⭐ 103714

    Design cache systems so that higher-level components control when cache entries are invalidated or cleaned ...

    ⛶
  • Choose appropriate algorithms

    denoland/deno
    Algorithms Rust
    3
    ⭐ 103714

    When implementing functionality, carefully evaluate different algorithmic approaches and data structures to...

    ⛶
  • Add comprehensive test coverage

    denoland/deno
    Testing Rust
    3
    ⭐ 103714

    Ensure that all functionality, especially complex or quirky features, has corresponding unit tests. When ad...

    ⛶
  • Configuration parameter validation

    bytedance/deer-flow
    Configurations Python
    3
    ⭐ 16482

    Always validate configuration parameters for type, range, and reasonable values before use. Provide safe de...

    ⛶
  • Use appropriate logging levels

    deeplearning4j/deeplearning4j
    Logging C++
    3
    ⭐ 14036

    Reserve logging statements for their appropriate purposes and levels. Use debugging-level logs (`sd_debug`)...

    ⛶
  • Parameterize configuration scripts

    deeplearning4j/deeplearning4j
    Configurations Markdown
    3
    ⭐ 14036

    Configuration scripts should use variables for values that might change or are used in multiple places, suc...

    ⛶
  • Eliminate redundant code

    deeplearning4j/deeplearning4j
    Code Style Other
    3
    ⭐ 14036

    Keep code clean by removing all forms of redundancy that affect readability and maintainability. This inclu...

    ⛶
  • Clear descriptive identifiers

    deeplearning4j/deeplearning4j
    Naming Conventions Java
    3
    ⭐ 14036

    Choose clear, self-descriptive names for all code identifiers that accurately reflect their purpose and beh...

    ⛶
  • Avoid environment-specific paths

    deeplearning4j/deeplearning4j
    Configurations Shell
    3
    ⭐ 14036

    Always use environment variables or configuration mechanisms instead of hardcoding paths to compilers, tool...

    ⛶
  • Always secure your locks

    deeplearning4j/deeplearning4j
    Concurrency Java
    3
    ⭐ 14036

    When using locks or other synchronization mechanisms in concurrent code, always release locks in a finally ...

    ⛶
  • Use exact dependency versions

    cypress-io/cypress
    Configurations Json
    3
    ⭐ 48850

    Always specify exact dependency versions in package.json files instead of using version ranges (^, ~) to en...

    ⛶
  • structured debug logging

    cypress-io/cypress
    Logging Other
    3
    ⭐ 48850

    Use structured logging with object notation instead of string interpolation for debug messages to improve r...

    ⛶
  • Prefer semantic test selectors

    cypress-io/cypress
    Testing TSX
    3
    ⭐ 48850

    When writing tests, prioritize semantic and accessibility-based selectors over data attributes or generic s...

    ⛶
  • Informative error messages

    cypress-io/cypress
    Error Handling TypeScript
    3
    ⭐ 48850

    Error messages should be informative and include the actual values that caused the problem, not just generi...

    ⛶
  • Extract inline code

    cypress-io/cypress
    Code Style TSX
    3
    ⭐ 48850

    Extract complex inline code elements into separate functions, components, or constants to improve readabili...

    ⛶
  • Consistent naming patterns

    cypress-io/cypress
    Naming Conventions Other
    3
    ⭐ 48850

    Establish and enforce consistent naming conventions across different contexts in your codebase. Teams shoul...

    ⛶
  • Clarify testing documentation

    cypress-io/cypress
    Testing Markdown
    3
    ⭐ 48850

    Ensure that testing documentation, including changelogs, API docs, and guides, uses clear and precise langu...

    ⛶
  • Validate configurations up front

    crewaiinc/crewai
    Configurations Python
    3
    ⭐ 33945

    Always validate configuration parameters and environment variables at initialization time, providing clear ...

    ⛶
  • Typed API client abstractions

    crewaiinc/crewai
    API Python
    3
    ⭐ 33945

    When designing API clients, encapsulate responses in typed objects rather than passing raw JSON throughout ...

    ⛶
  • Thread safety first

    crewaiinc/crewai
    Concurrency Python
    3
    ⭐ 33945

    When implementing features that may run concurrently, always ensure thread safety using appropriate synchro...

    ⛶
  • Test behavior not calls

    crewaiinc/crewai
    Testing Python
    3
    ⭐ 33945

    Tests should validate actual system behavior rather than just verifying method calls. When writing tests, f...

    ⛶
  • Explicit over implicit

    crewaiinc/crewai
    Configurations Other
    3
    ⭐ 33945

    Always explicitly configure important system components rather than relying on implicit defaults or environ...

    ⛶
  • Clear AI component interfaces

    crewaiinc/crewai
    AI Other
    3
    ⭐ 33945

    When designing AI components and tools, use domain-specific terminology and provide clear interface documen...

    ⛶
  • Vue component type safety

    vuejs/core
    Vue TSX
    3
    ⭐ 50769

    When defining Vue components with TypeScript, use appropriate component definition patterns to ensure prope...

    ⛶
  • Use environment flags consistently

    vuejs/core
    Configurations TypeScript
    3
    ⭐ 50769

    Feature flags like `__DEV__` and `__COMPAT__` are critical configuration mechanisms that control environmen...

    ⛶
  • Use configuration constants

    home-assistant/core
    Configurations Python
    3
    ⭐ 80450

    Always use predefined constants from `homeassistant.const` instead of string literals when accessing config...

    ⛶
  • Use asyncio.gather concurrency

    home-assistant/core
    Concurrency Python
    3
    ⭐ 80450

    When performing multiple independent async operations, use `asyncio.gather()` to execute them concurrently ...

    ⛶
  • Lifecycle effects management

    vuejs/core
    React TypeScript
    3
    ⭐ 50769

    Properly manage component lifecycle effects and cleanup in React components to prevent memory leaks and per...

    ⛶
  • configuration status accuracy

    home-assistant/core
    Configurations Yaml
    3
    ⭐ 80450

    Ensure that configuration file status values accurately reflect the actual implementation state. Use 'done'...

    ⛶
  • API polling optimization

    home-assistant/core
    API Python
    3
    ⭐ 80450

    Optimize API polling patterns to avoid excessive calls and improve performance. Use appropriate update inte...

    ⛶
  • Use established configuration patterns

    continuedev/continue
    Configurations TSX
    3
    ⭐ 27819

    Always access and set configuration values using established patterns and correct property names. Understan...

    ⛶
  • Tests must assert

    continuedev/continue
    Testing Python
    3
    ⭐ 27819

    Test methods should contain active, uncommented code that includes at least one assertion to verify expecte...

    ⛶
  • Standardize LLM configurations

    continuedev/continue
    AI Markdown
    3
    ⭐ 27819

    When configuring LLM providers and their capabilities, always use proper JSON syntax with quoted property n...

    ⛶
  • Smart model selection

    continuedev/continue
    AI Python
    3
    ⭐ 27819

    Implement intelligent model selection mechanisms that adapt to different scenarios instead of hardcoding sp...

    ⛶
  • Memoize expensive calculations

    continuedev/continue
    Performance Optimization TSX
    3
    ⭐ 27819

    Cache computation results in React components to prevent unnecessary recalculations during re-renders, whic...

    ⛶
  • Include concrete examples

    continuedev/continue
    Documentation Markdown
    3
    ⭐ 27819

    Technical documentation should always include concrete, working examples that demonstrate the described con...

    ⛶
  • Enforce strict config schemas

    continuedev/continue
    Configurations TypeScript
    3
    ⭐ 27819

    Configuration schemas should explicitly define all required fields and validate types at compile time to pr...

    ⛶
  • Document configurations completely

    continuedev/continue
    Configurations Other
    3
    ⭐ 27819

    Ensure configuration documentation is comprehensive, clear and actionable for developers. This includes: 1...

    ⛶
  • Complete dependency arrays

    continuedev/continue
    React TSX
    3
    ⭐ 27819

    Always include all referenced variables in React hook dependency arrays (useEffect, useCallback, useMemo). ...

    ⛶
  • Validate before value use

    docker/compose
    Null Handling Go
    3
    ⭐ 35858

    Always validate potentially null or empty values before use, and provide explicit default values when handl...

    ⛶
  • specific defensive error handling

    docker/compose
    Error Handling Python
    3
    ⭐ 35858

    Implement specific exception handling and defensive programming practices to prevent generic errors from ma...

    ⛶
  • Schema changes upstream first

    docker/compose
    Configurations Json
    3
    ⭐ 35858

    When modifying configuration schemas, always propose changes to the upstream/source repository first before...

    ⛶
  • Safe collection modification

    docker/compose
    Algorithms Go
    3
    ⭐ 35858

    When modifying collections during iteration, use safe patterns to avoid subtle bugs and undefined behavior....

    ⛶
  • prefer explicit readability

    docker/compose
    Code Style Python
    3
    ⭐ 35858

    Choose explicit, readable code constructs over "clever" or overly complex ones. Complex functional programm...

    ⛶
  • Pin build dependency versions

    docker/compose
    Configurations Dockerfile
    3
    ⭐ 35858

    Always pin specific versions for build dependencies and tools to prevent unexpected build failures, even wh...

    ⛶
  • Network API precision

    docker/compose
    Networking Go
    3
    ⭐ 35858

    Use the appropriate Docker network API method based on the specific behavior you need. NetworkList and Netw...

    ⛶
  • Maintain documentation consistency

    docker/compose
    Documentation Markdown
    3
    ⭐ 35858

    Ensure consistent terminology, precise language, and uniform formatting throughout all documentation to imp...

    ⛶
  • Environment variable safety

    docker/compose
    Configurations Python
    3
    ⭐ 35858

    Always use `os.environ.get()` instead of direct dictionary access when reading environment variables to avo...

    ⛶
  • CI security boundaries

    docker/compose
    CI/CD Yaml
    3
    ⭐ 35858

    Maintain strict security boundaries in CI/CD workflows by treating CI as a validation-only system and caref...

    ⛶
  • avoid mutable defaults

    docker/compose
    Null Handling Python
    3
    ⭐ 35858

    Never use mutable objects (lists, dictionaries, sets) as default parameter values in function definitions. ...

    ⛶
  • avoid CI resource conflicts

    docker/compose
    CI/CD Other
    3
    ⭐ 35858

    Design CI workflows to prevent resource conflicts when multiple builds run concurrently on shared infrastru...

    ⛶
  • Prevent path traversal

    comfyanonymous/ComfyUI
    Security Python
    3
    ⭐ 83726

    Always validate and sanitize file paths from user input to prevent directory traversal attacks. Malicious a...

    ⛶
  • Optimize cache key design

    comfyanonymous/ComfyUI
    Caching Python
    3
    ⭐ 83726

    Design cache keys to avoid performance pitfalls and ensure reliable cache behavior. Cache keys should be li...

    ⛶
  • Environment variable consistency

    comfyanonymous/ComfyUI
    Configurations Dockerfile
    3
    ⭐ 83726

    Ensure consistent formatting and proper usage of environment variables in Dockerfiles. Remove unnecessary q...

    ⛶
  • Propagate errors appropriately

    openai/codex
    Error Handling TypeScript
    3
    ⭐ 31275

    Allow errors to bubble up to their appropriate handling layers rather than catching them prematurely. Catch...

    ⛶
  • Extract reusable logic

    openai/codex
    Code Style TSX
    3
    ⭐ 31275

    Avoid duplicating logic across the codebase. Instead, extract common functionality into well-named helper f...

    ⛶
  • Avoid unnecessary operations

    openai/codex
    Performance Optimization Rust
    3
    ⭐ 31275

    Optimize performance by eliminating operations that don't contribute meaningful value to your code's functi...

    ⛶
  • validate untrusted inputs

    cline/cline
    Security TypeScript
    3
    ⭐ 48299

    Always validate and sanitize untrusted inputs to prevent injection attacks and security vulnerabilities. Th...

    ⛶
  • validate configuration values

    cline/cline
    Configurations Json
    3
    ⭐ 48299

    Always verify configuration values against official documentation and test across target platforms before c...

    ⛶
  • validate algorithmic correctness

    cline/cline
    Algorithms TypeScript
    3
    ⭐ 48299

    Always verify algorithms work correctly across edge cases and boundary conditions through concrete examples...

    ⛶
  • Use theme-based styling

    cline/cline
    Code Style TSX
    3
    ⭐ 48299

    Always use CSS custom properties (CSS variables) for colors and include proper accessibility attributes ins...

    ⛶
  • Set evidence-based timeouts

    cline/cline
    Performance Optimization TypeScript
    3
    ⭐ 48299

    Configure timeout values based on empirical testing and user experience requirements rather than arbitrary ...

    ⛶
  • Provide configuration fallbacks

    cline/cline
    Configurations TSX
    3
    ⭐ 48299

    Always provide sensible default or fallback values for configuration properties to prevent undefined states...

    ⛶
  • prevent unnecessary operations

    cline/cline
    Performance Optimization TSX
    3
    ⭐ 48299

    Identify and eliminate redundant computations, network requests, and re-renders in React components to impr...

    ⛶
  • Prevent async race conditions

    cline/cline
    Concurrency TypeScript
    3
    ⭐ 48299

    Identify and prevent race conditions in asynchronous operations, especially when operations depend on each ...

    ⛶
  • AI provider naming clarity

    cline/cline
    AI TypeScript
    3
    ⭐ 48299

    Use specific, unambiguous names for AI providers and models to prevent confusion when working with multiple...

    ⛶
  • Verify database state changes

    ClickHouse/ClickHouse
    Database Python
    3
    ⭐ 42425

    When testing database operations that modify schema, data, or metadata, always add comprehensive assertions...

    ⛶
  • validate user inputs

    ClickHouse/ClickHouse
    Security C++
    3
    ⭐ 42425

    Always validate and properly escape user-controlled input before incorporating it into structured data form...

    ⛶
  • Validate before unsafe operations

    ClickHouse/ClickHouse
    Null Handling C++
    3
    ⭐ 42425

    Always validate values before performing operations that could result in undefined behavior, particularly d...

    ⛶
  • prefer simple optimizations

    ClickHouse/ClickHouse
    Performance Optimization Other
    3
    ⭐ 42425

    When implementing performance optimizations, favor simple, straightforward approaches over complex solution...

    ⛶
  • Documentation completeness standards

    ClickHouse/ClickHouse
    Documentation Markdown
    3
    ⭐ 42425

    Ensure all documentation meets completeness and formatting standards. This includes: (1) Adding language sp...

    ⛶
  • Document mutex responsibilities

    ClickHouse/ClickHouse
    Concurrency Other
    3
    ⭐ 42425

    Use Thread Safety Analysis (TSA) annotations to explicitly document which mutexes protect which variables, ...

    ⛶
  • Consistent naming conventions

    ClickHouse/ClickHouse
    Naming Conventions Markdown
    3
    ⭐ 42425

    Maintain consistent naming conventions within your codebase, even when external specifications or APIs use ...

    ⛶
  • consistent formatting rules

    ClickHouse/ClickHouse
    Code Style Other
    3
    ⭐ 42425

    Maintain consistent formatting throughout the codebase to improve readability and maintainability. This inc...

    ⛶
  • Avoid duplicate HTTP headers

    ClickHouse/ClickHouse
    Networking C++
    3
    ⭐ 42425

    Ensure HTTP headers are sent only once per response to prevent network protocol violations and connection e...

    ⛶
  • Validate security configurations

    snyk/cli
    Security TypeScript
    3
    ⭐ 5178

    Always validate security-related configurations and implementations to ensure they follow established secur...

    ⛶
  • validate environment variables early

    snyk/cli
    Configurations Other
    3
    ⭐ 5178

    Environment variables should be validated early in the application lifecycle with descriptive, actionable e...

    ⛶
  • synchronize configuration values

    snyk/cli
    Configurations Yaml
    3
    ⭐ 5178

    Ensure configuration values remain consistent and aligned across all related files, environments, and syste...

    ⛶
  • optimize CI resource allocation

    snyk/cli
    CI/CD Yaml
    3
    ⭐ 5178

    Match CI/CD resource allocation to actual job requirements rather than using oversized configurations globa...

    ⛶
  • defensive shell script configuration

    snyk/cli
    Configurations Shell
    3
    ⭐ 5178

    Configure shell scripts with defensive practices to ensure reliability and debuggability. Use appropriate `...

    ⛶
  • Configuration naming consistency

    snyk/cli
    Configurations JavaScript
    3
    ⭐ 5178

    Ensure configuration elements (environment variables, feature flags, config files) maintain consistent nami...

    ⛶
  • Balance concurrent operations

    snyk/cli
    Concurrency TypeScript
    3
    ⭐ 5178

    When implementing concurrent operations, carefully balance performance gains with resource consumption and ...

    ⛶
  • Standardize shell flags

    chef/chef
    Code Style Shell
    3
    ⭐ 7860

    Always use `set -eou pipefail` at the beginning of shell scripts to ensure consistent error handling and be...

    ⛶
  • Remove commented code

    chef/chef
    Code Style Yaml
    3
    ⭐ 7860

    Avoid leaving commented-out code in the codebase. Version control systems already track the history of chan...

    ⛶
  • Fail fast principle

    chef/chef
    CI/CD Other
    3
    ⭐ 7860

    Design CI/CD pipelines to fail quickly and visibly rather than masking errors through excessive retries or ...

    ⛶
  • Clear abstraction boundaries

    chef/chef
    API Ruby
    3
    ⭐ 7860

    Design APIs with clear and consistent abstraction boundaries to maintain code quality and prevent interface...

    ⛶
  • Validate configurations correctly

    bridgecrewio/checkov
    Configurations Yaml
    3
    ⭐ 7668

    When writing validation logic for configurations, ensure you're using the appropriate operators that correc...

    ⛶
  • Support all target environments

    bridgecrewio/checkov
    Configurations Other
    3
    ⭐ 7667

    When managing dependency configurations (Pipfiles, requirements.txt, lock files), ensure compatibility with...

    ⛶
  • Comprehensive security scanning

    bridgecrewio/checkov
    Security Yaml
    3
    ⭐ 7667

    Always configure security scanning tools with comprehensive coverage and readable output to maximize vulner...

    ⛶
  • Backward compatible parameters

    bridgecrewio/checkov
    API Python
    3
    ⭐ 7667

    When evolving API function signatures, maintain backward compatibility by making new parameters optional wi...

    ⛶
  • validate business logic constraints

    calcom/cal.com
    Database Prisma
    3
    ⭐ 37732

    Before adding database constraints or designing schema relationships, thoroughly understand the underlying ...

    ⛶
  • Keep API handlers thin

    calcom/cal.com
    API TypeScript
    3
    ⭐ 37732

    API handlers should be lightweight and focused on request/response handling, not business logic. Extract sp...

    ⛶
  • Favor component composition

    calcom/cal.com
    React TSX
    3
    ⭐ 37732

    Design components to be configurable through props rather than relying on external context like URL paths o...

    ⛶
  • Contextual error responses

    calcom/cal.com
    Error Handling TypeScript
    3
    ⭐ 37732

    Choose error response strategies based on the error's origin, caller context, and downstream impact rather ...

    ⛶
  • comprehensive security checks

    calcom/cal.com
    Security TSX
    3
    ⭐ 37732

    Ensure that security checks for authorization, authentication, and information disclosure are comprehensive...

    ⛶
  • Avoid nested ternaries

    calcom/cal.com
    Code Style TypeScript
    3
    ⭐ 37732

    Avoid using nested ternary operators as they significantly reduce code readability and make debugging diffi...

    ⛶
  • Avoid hardcoded configuration values

    calcom/cal.com
    Configurations TypeScript
    3
    ⭐ 37732

    Extract hardcoded configuration values into constants, environment variables, or function parameters to imp...

    ⛶
  • Verify assertions properly

    oven-sh/bun
    Testing JavaScript
    3
    ⭐ 79093

    Ensure test assertions correctly validate the intended behavior by: 1. **Awaiting promise assertions** whe...

    ⛶
  • Technical documentation accuracy

    oven-sh/bun
    Documentation Markdown
    3
    ⭐ 79093

    Documentation must precisely reflect the current state of the codebase to prevent confusion and ensure deve...

    ⛶
  • Respect existing configurations

    oven-sh/bun
    Configurations TypeScript
    3
    ⭐ 79093

    When integrating with external services or tools, design your configuration options to respect users' exist...

    ⛶
  • Never swallow errors

    oven-sh/bun
    Error Handling TypeScript
    3
    ⭐ 79093

    Always ensure errors are properly surfaced rather than silently ignored. Silent error handling can lead to ...

    ⛶
  • Maintain portable config values

    oven-sh/bun
    Configurations Other
    3
    ⭐ 79093

    Always use portable, environment-agnostic values in configuration files. Avoid hardcoded absolute paths, sy...

    ⛶
  • Deterministic lock management

    oven-sh/bun
    Concurrency Other
    3
    ⭐ 79093

    Always ensure locks are acquired and released in a deterministic manner in concurrent code. Use `defer` sta...

    ⛶
  • validate file inputs

    browser-use/browser-use
    Security Python
    3
    ⭐ 69139

    All file-related operations must implement comprehensive input validation and sanitization to prevent path ...

    ⛶
  • Simplify algorithmic approaches

    browser-use/browser-use
    Algorithms Python
    3
    ⭐ 69139

    When implementing functionality, evaluate whether simpler algorithmic approaches or more appropriate data s...

    ⛶
  • Safe attribute access

    browser-use/browser-use
    Null Handling Python
    3
    ⭐ 69139

    Always use defensive programming patterns when accessing object attributes, especially when dealing with op...

    ⛶
  • Replace polling with events

    browser-use/browser-use
    Concurrency Python
    3
    ⭐ 69139

    Replace busy-wait polling loops with event-driven async patterns using asyncio.Event() or similar synchroni...

    ⛶
  • Pin testing dependency versions

    browser-use/browser-use
    Testing Dockerfile
    3
    ⭐ 69139

    Always specify explicit versions for testing frameworks and tools to ensure reproducible test environments ...

    ⛶
  • optimize Docker layers

    browser-use/browser-use
    Configurations Dockerfile
    3
    ⭐ 69139

    Avoid unnecessary duplication and bloat in Docker layers by trusting base images to provide standard tools ...

    ⛶
  • Consistent terminology usage

    browser-use/browser-use
    Naming Conventions Python
    3
    ⭐ 69139

    Maintain consistent terminology and naming patterns throughout the codebase to avoid confusion and future c...

    ⛶
  • Use ASCII-only URLs

    Homebrew/brew
    Networking Ruby
    3
    ⭐ 44168

    URLs in code should exclusively use ASCII characters for maximum security and compatibility. This prevents ...

    ⛶
  • Structure test fixtures clearly

    Homebrew/brew
    Testing Ruby
    3
    ⭐ 44168

    Test fixtures should clearly separate input parameters from expected outputs to enhance readability and mai...

    ⛶
  • Secure API URL parsing

    Homebrew/brew
    API Shell
    3
    ⭐ 44168

    When parsing API endpoint URLs, implement rigorous input validation using precise regular expressions. This...

    ⛶
  • Prevent injection vulnerabilities

    Homebrew/brew
    Security Ruby
    3
    ⭐ 44168

    Always sanitize input data before using it in sensitive operations to prevent injection vulnerabilities. Th...

    ⛶
  • Fail with messages

    Homebrew/brew
    Error Handling Shell
    3
    ⭐ 44168

    Functions and scripts should never fail silently. When detecting error conditions, always provide clear err...

    ⛶
  • Environment variable safety

    Homebrew/brew
    Configurations Shell
    3
    ⭐ 44168

    When configuring environment variables, especially those related to paths, implement these safety practices...

    ⛶
  • Document non-obvious decisions

    Homebrew/brew
    Documentation Ruby
    3
    ⭐ 44168

    Always add clear comments explaining non-obvious code decisions such as magic numbers, arbitrary values, tr...

    ⛶
  • Document CI pipeline comprehensively

    Homebrew/brew
    CI/CD Markdown
    3
    ⭐ 44168

    Ensure CI/CD pipeline documentation accurately reflects the complete workflow, including job dependencies, ...

    ⛶
  • Manage test environments

    boto/boto3
    Configurations Python
    3
    ⭐ 9417

    When writing tests that interact with environment variables or configuration settings, always (1) preserve ...

    ⛶
  • Demonstrate canonical API patterns

    boto/boto3
    API Other
    3
    ⭐ 9417

    Always provide examples that demonstrate the recommended and most current API usage patterns. This includes...

    ⛶
  • Consistent naming standards

    boto/boto3
    Naming Conventions Other
    3
    ⭐ 9417

    Follow standard Python naming conventions consistently throughout code and documentation. Use underscores i...

    ⛶
  • Avoid hidden performance costs

    boto/boto3
    Performance Optimization Python
    3
    ⭐ 9417

    When designing APIs that interact with remote services, be cautious about implementing convenience features...

    ⛶
  • Use descriptive naming

    better-auth/better-auth
    Naming Conventions TypeScript
    3
    ⭐ 19651

    Choose specific, contextual names over generic terms to improve code clarity and maintainability. Generic n...

    ⛶
  • comprehensive test coverage

    better-auth/better-auth
    Testing TypeScript
    3
    ⭐ 19651

    When adding new functionality, configuration options, or plugins, always include corresponding tests that v...

    ⛶
  • API consistency standards

    better-auth/better-auth
    API Other
    3
    ⭐ 19651

    Maintain consistent parameter formats and requirements across all API providers and endpoints. When documen...

    ⛶
  • Use standard API abstractions

    bazelbuild/bazel
    API Other
    3
    ⭐ 24489

    Prefer established, type-safe abstractions over primitive types or direct property access when designing AP...

    ⛶
  • explicit null checks

    bazelbuild/bazel
    Null Handling Other
    3
    ⭐ 24489

    Use explicit null/undefined checks instead of methods that silently handle missing values. When you expect ...

    ⛶
  • Environment-aware configuration testing

    bazelbuild/bazel
    Configurations Shell
    3
    ⭐ 24489

    When writing tests for configuration-dependent functionality, implement environment detection and condition...

    ⛶
  • Clarify configuration examples

    bazelbuild/bazel
    Configurations Markdown
    3
    ⭐ 24489

    Configuration documentation should provide concrete, platform-specific examples rather than generic placeho...

    ⛶
  • Check operation failures

    bazelbuild/bazel
    Error Handling Other
    3
    ⭐ 24489

    Always validate inputs and check return values of operations that can fail, providing clear error messages ...

    ⛶
  • Avoid eager cache invalidation

    bazelbuild/bazel
    Caching Java
    3
    ⭐ 24489

    Resist the urge to eagerly invalidate cache entries unless you have definitive proof that the cached data i...

    ⛶
  • Surface errors appropriately

    Azure/azure-sdk-for-net
    Error Handling Markdown
    3
    ⭐ 5809

    Ensure errors are visible and properly handled rather than silently processed or hidden. Provide mechanisms...

    ⛶
  • Prefer identity-based authentication

    Azure/azure-sdk-for-net
    Security Markdown
    3
    ⭐ 5809

    Always prioritize modern identity-based authentication methods over traditional username/password credentia...

    ⛶
  • Follow formatting standards

    Azure/azure-sdk-for-net
    Code Style Markdown
    3
    ⭐ 5809

    Maintain consistent code formatting by adhering to the defined standards in the .editorconfig file and Azur...

    ⛶
  • Descriptive consistent identifiers

    Azure/azure-sdk-for-net
    Naming Conventions Other
    3
    ⭐ 5809

    Use clear, descriptive identifiers that accurately reflect their purpose, and maintain consistent naming pa...

    ⛶
  • Centralize pipeline configurations

    Azure/azure-sdk-for-net
    CI/CD Yaml
    3
    ⭐ 5809

    Use centralized templates and variables for pipeline configurations instead of duplicating or hardcoding va...

    ⛶
  • Document feature flags

    tokio-rs/axum
    Configurations TOML
    3
    ⭐ 22100

    When configuring feature flags in Cargo.toml, ensure they are properly structured and documented. Chain fea...

    ⛶
  • Proper Axios Configuration and Usage

    axios/axios
    Axios TypeScript
    3
    ⭐ 107000

    When implementing code that uses the Axios library in TypeScript, it is important to follow best practices ...

    ⛶
  • Consistent Naming Conventions for Axios Requests and Responses

    axios/axios
    Axios TypeScript
    3
    ⭐ 107000

    When using the Axios library in TypeScript, it is important to follow consistent naming conventions to impr...

    ⛶
  • Configuration property standards

    axios/axios
    Configurations JavaScript
    3
    ⭐ 107000

    Always define configuration properties with sensible defaults and consistent naming conventions. When addin...

    ⛶
  • Validate configurations with clarity

    aws/aws-sdk-js
    Configurations JavaScript
    3
    ⭐ 7628

    Configuration validation should use explicit checks and clear conditional logic to improve code readability...

    ⛶
  • Test configuration precedence

    aws/aws-sdk-js
    Configurations Other
    3
    ⭐ 7628

    When implementing systems that load configuration from multiple sources, always test the precedence rules e...

    ⛶
  • Limit cache size

    aws/aws-sdk-js
    Caching JavaScript
    3
    ⭐ 7628

    Always implement size constraints on caches to prevent memory leaks and performance degradation. Unbounded ...

    ⛶
  • Follow established testing patterns

    aws/aws-sdk-js
    Testing Other
    3
    ⭐ 7628

    When writing tests, use existing patterns and infrastructure already established in the codebase rather tha...

    ⛶
  • Explicit verified configurations

    aws/aws-sdk-js
    Configurations Json
    3
    ⭐ 7628

    Always specify configuration values explicitly and verify their accuracy against official documentation or ...

    ⛶
  • Document APIs completely

    aws/aws-sdk-js
    Documentation TypeScript
    3
    ⭐ 7628

    Always provide complete, clear, and contextually rich documentation for all public APIs. Documentation shou...

    ⛶
  • optimize CI efficiency

    avelino/awesome-go
    CI/CD Yaml
    3
    ⭐ 151435

    Optimize CI/CD pipelines by minimizing resource usage and avoiding unnecessary operations. Use lightweight ...

    ⛶
  • Enforce coverage thresholds

    avelino/awesome-go
    Testing Markdown
    3
    ⭐ 151435

    All code contributions must meet a minimum test coverage threshold of 80% before being accepted. This ensur...

    ⛶
  • Validate configuration appropriateness

    argoproj/argo-cd
    Configurations Other
    3
    ⭐ 20149

    Ensure configurations are contextually appropriate and properly validated for their intended use case. This...

    ⛶
  • Extract testable units

    argoproj/argo-cd
    Testing Go
    3
    ⭐ 20149

    Avoid copying or reimplementing production logic in test files. Instead, refactor the production code to ex...

    ⛶
  • Comprehensive function documentation

    argoproj/argo-cd
    Documentation Go
    3
    ⭐ 20149

    Functions should have thorough documentation that follows Go conventions and explains both the "what" and "...

    ⛶
  • API documentation clarity

    argoproj/argo-cd
    API Markdown
    3
    ⭐ 20149

    Ensure API parameter documentation clearly specifies default values, valid options, error conditions, and p...

    ⛶
  • Version migration dependencies carefully

    appwrite/appwrite
    Migrations Json
    3
    ⭐ 51959

    When updating dependencies for migration-related components or making schema changes, verify compatibility ...

    ⛶
  • Validate configuration formatting

    appwrite/appwrite
    Code Style Json
    3
    ⭐ 51959

    Ensure all JSON configuration files adhere to proper syntax and formatting conventions. Common issues to av...

    ⛶
  • Use object methods consistently

    appwrite/appwrite
    Code Style PHP
    3
    ⭐ 51959

    When working with Document objects, always use their accessor methods rather than array-style syntax. Use `...

    ⛶
  • Self-contained test scenarios

    appwrite/appwrite
    Testing Other
    3
    ⭐ 51959

    Tests should be fully self-contained to ensure reliability and prevent unexpected failures. Each test scena...

    ⛶
  • Resilient configuration patterns

    appwrite/appwrite
    Configurations Yaml
    3
    ⭐ 51959

    When modifying or defining configuration values, use patterns that are resistant to future changes and sile...

    ⛶
  • OpenAPI spec compliance

    appwrite/appwrite
    API Json
    3
    ⭐ 51959

    Ensure all API definitions strictly follow OpenAPI specification standards to maintain compatibility with t...

    ⛶
  • Guard database query results

    appwrite/appwrite
    Null Handling PHP
    3
    ⭐ 51959

    Always validate database query results before accessing their methods or properties. Methods like `findOne(...

    ⛶
  • Active service health checks

    appwrite/appwrite
    CI/CD Yaml
    3
    ⭐ 51959

    Replace static delays with active health checks in CI/CD workflows to ensure service readiness. Instead of ...

    ⛶
  • Standardize deprecation documentation

    ant-design/ant-design
    Documentation TSX
    3
    ⭐ 95882

    When marking APIs, components, or features as deprecated, use consistent JSDoc @deprecated tags with clear ...

    ⛶
  • Optimize expensive operations

    ant-design/ant-design
    Performance Optimization TypeScript
    3
    ⭐ 95882

    Minimize performance impact of costly operations through strategic ordering, batching, and avoiding unneces...

    ⛶
  • Centralize configuration management

    ant-design/ant-design
    Configurations TSX
    3
    ⭐ 95882

    Avoid duplicate configuration processing and keep configuration data properly centralized. When configurati...

    ⛶
  • Avoid unnecessary memoization

    ant-design/ant-design
    Performance Optimization TSX
    3
    ⭐ 95882

    Memoization (useMemo, useCallback, React.memo) should only be used when the performance benefits outweigh t...

    ⛶
  • Avoid hardcoded configuration values

    ant-design/ant-design
    Configurations TypeScript
    3
    ⭐ 95882

    Replace hardcoded values in configuration code with design tokens, parameters, or configurable constants to...

    ⛶
  • Verify SSR documentation accuracy

    angular/angular
    Next Markdown
    3
    ⭐ 98611

    Ensure that documentation about server-side rendering (SSR), static site generation (SSG), and related rend...

    ⛶
  • precise build targeting

    angular/angular
    CI/CD Other
    3
    ⭐ 98611

    Build targets should use specific file patterns rather than broad globs to improve build performance, clari...

    ⛶
  • limit error handling scope

    angular/angular
    Error Handling TypeScript
    3
    ⭐ 98611

    When implementing error handling, carefully limit the scope of try-catch blocks to prevent cascading failur...

    ⛶
  • Clarify configuration option limitations

    angular/angular
    Configurations Markdown
    3
    ⭐ 98611

    When documenting or designing configuration options, explicitly state both what the option does AND what it...

    ⛶
  • Build configuration consistency

    angular/angular
    CI/CD Markdown
    3
    ⭐ 98611

    Maintain consistent build and release configurations across the project by following established patterns a...

    ⛶
  • API terminology consistency

    angular/angular
    API Markdown
    3
    ⭐ 98611

    Maintain consistent, precise terminology throughout API documentation and interfaces. Avoid ambiguous or mi...

    ⛶
  • Use constraining types

    alacritty/alacritty
    API Rust
    3
    ⭐ 59675

    API functions should use specific types and enums to clearly communicate valid parameter values rather than...

    ⛶
  • Follow metadata specifications

    alacritty/alacritty
    Documentation Xml
    3
    ⭐ 59675

    When writing metadata files (such as AppStream, package manifests, or configuration files), always consult ...

    ⛶
  • Consistent naming conventions

    alacritty/alacritty
    Naming Conventions Other
    3
    ⭐ 59675

    Maintain consistent naming patterns and capitalization throughout the codebase, especially for configuratio...

    ⛶
  • Choose familiar, intuitive names

    alacritty/alacritty
    Naming Conventions Yaml
    3
    ⭐ 59675

    When naming variables, methods, or configuration options, prioritize terms that are both intuitive to users...

    ⛶
  • Follow naming conventions

    apache/airflow
    Naming Conventions TSX
    3
    ⭐ 40858

    Use proper naming conventions to make code more readable and maintainable: 1. **Functions should start wit...

    ⛶
  • Enforce authentication boundaries

    apache/airflow
    Security Other
    3
    ⭐ 40858

    Implement strict authentication boundaries and access controls to prevent security vulnerabilities: 1. Whe...

    ⛶
  • Document intentional choices

    apache/airflow
    Documentation Python
    3
    ⭐ 40858

    Add explanatory comments for non-obvious code decisions that might appear incorrect, unusual, or suboptimal...

    ⛶
  • Standardize model access

    Aider-AI/aider
    AI Python
    3
    ⭐ 35856

    When integrating AI models into applications, provide consistent configuration methods that support differe...

    ⛶
  • Validate pattern matching

    vercel/ai
    Algorithms TypeScript
    3
    ⭐ 15590

    When implementing algorithms that involve pattern matching or data parsing, ensure robustness across all ed...

    ⛶
  • Test before documenting

    vercel/ai
    API Other
    3
    ⭐ 15590

    Always thoroughly test API features and endpoints before documenting them, especially when integrating with...

    ⛶
  • Provide actionable examples

    vercel/ai
    Documentation Other
    3
    ⭐ 15590

    Documentation should include concrete, executable code examples rather than vague instructions. Make your e...

    ⛶
  • Document configuration decisions

    vercel/ai
    Configurations Json
    3
    ⭐ 15590

    When modifying configuration files (package.json, tsconfig.json, etc.), document the reasoning behind signi...

    ⛶
  • Async error callbacks

    vercel/ai
    Error Handling TypeScript
    3
    ⭐ 15590

    When handling asynchronous operations, especially those that might continue running in the background after...

    ⛶
  • Use descriptive names

    cloudflare/agents
    Naming Conventions TypeScript
    3
    ⭐ 2312

    Choose clear, descriptive names for variables, methods, types, and parameters that unambiguously convey the...

    ⛶
  • Use definite assignment assertions

    cloudflare/agents
    Null Handling TypeScript
    3
    ⭐ 2312

    When you're certain a value will be initialized but TypeScript can't infer this, use the definite assignmen...

    ⛶
  • Explicit API parameters

    cloudflare/agents
    API TypeScript
    3
    ⭐ 2312

    Design APIs with explicit parameters rather than implicit defaults or hidden behavior. When an API function...

    ⛶
  • Balance organization with constraints

    cloudflare/agents
    Code Style TypeScript
    3
    ⭐ 2312

    When making code organization decisions, consider the broader impact beyond just eliminating duplication or...

    ⛶
  • Proper documentation linking

    zed-industries/zed
    Documentation Markdown
    2
    ⭐ 62119

    Documentation should use appropriate linking strategies to ensure content remains accessible and navigable ...

    ⛶
  • Precise test pattern matching

    zed-industries/zed
    Testing Other
    2
    ⭐ 62119

    When identifying test patterns in code, use specific equality predicates (`#eq?`) instead of list inclusion...

    ⛶
  • Minimize credential exposure lifetime

    zed-industries/zed
    Security Rust
    2
    ⭐ 62119

    Credentials and secrets should never be stored persistently in memory or written to files. Instead, use eph...

    ⛶
  • Explicit over implicit

    zed-industries/zed
    API Other
    2
    ⭐ 62119

    When designing APIs, prioritize explicit parameter identification over implicit context. APIs with clear, u...

    ⛶
  • Document configuration clearly

    zed-industries/zed
    Code Style Json
    2
    ⭐ 62119

    When adding or modifying configuration parameters, especially in JSON settings files, ensure they are clear...

    ⛶
  • Write focused single-purpose tests

    facebook/yoga
    Testing Html
    2
    ⭐ 18255

    Tests should focus on validating one specific behavior or scenario rather than combining multiple test case...

    ⛶
  • verify configuration completeness

    facebook/yoga
    Configurations Json
    2
    ⭐ 18255

    Always verify that configuration files completely and accurately specify their requirements. This includes ...

    ⛶
  • Use semantic naming

    facebook/yoga
    Naming Conventions TypeScript
    2
    ⭐ 18255

    Choose semantic, logical names that describe purpose and intent rather than physical characteristics or imp...

    ⛶
  • Use descriptive function names

    facebook/yoga
    Naming Conventions C
    2
    ⭐ 18255

    Function names should clearly convey their purpose and behavior, not just their signature or implementation...

    ⛶
  • Use appropriate CI toolchains

    facebook/yoga
    CI/CD Yaml
    2
    ⭐ 18255

    Ensure CI/CD workflows use technology-specific setup actions and execute commands in the correct working di...

    ⛶
  • understand undefined value semantics

    facebook/yoga
    Null Handling C++
    2
    ⭐ 18255

    Before modifying initialization patterns or removing static variables, investigate the semantic meaning of ...

    ⛶
  • separate formatting from logging

    facebook/yoga
    Logging Other
    2
    ⭐ 18255

    Design logging utility functions to return formatted strings rather than directly performing logging operat...

    ⛶
  • Safe configuration definitions

    facebook/yoga
    Configurations C++
    2
    ⭐ 18255

    When defining configuration flags and options, use practices that ensure compatibility across different pre...

    ⛶
  • Reset algorithm state internally

    facebook/yoga
    Algorithms JavaScript
    2
    ⭐ 18255

    Algorithms should handle their own state initialization and cleanup internally rather than relying on calle...

    ⛶
  • prevent off-by-one errors

    facebook/yoga
    Algorithms C++
    2
    ⭐ 18255

    When implementing algorithms that involve spacing, gaps, or iterative calculations, carefully verify loop b...

    ⛶
  • Pin dependency versions

    facebook/yoga
    Configurations Other
    2
    ⭐ 18255

    Always specify exact versions for dependencies and avoid pointing to moving targets like "master" branches ...

    ⛶
  • Manage resource lifecycles

    facebook/yoga
    Null Handling C#
    2
    ⭐ 18255

    Ensure proper resource allocation and cleanup pairing, and maintain clear ownership semantics to prevent me...

    ⛶
  • Keep configuration versions current

    facebook/yoga
    Configurations Swift
    2
    ⭐ 18255

    Regularly review and update version specifications in configuration files to align with current standards a...

    ⛶
  • Follow language naming conventions

    facebook/yoga
    Naming Conventions C#
    2
    ⭐ 18255

    Ensure all identifiers (properties, methods, classes, variables) follow the established naming conventions ...

    ⛶
  • Extract complex conditions

    facebook/yoga
    Code Style C
    2
    ⭐ 18255

    When encountering complex conditional expressions or generic variable references, extract them into clearly...

    ⛶
  • Enforce style in CI

    facebook/yoga
    Code Style Yaml
    2
    ⭐ 18255

    Configure automated formatting tools in CI/CD pipelines to enforce code style standards rather than silentl...

    ⛶
  • Control structure formatting

    facebook/yoga
    Code Style Java
    2
    ⭐ 18255

    Always use braces for control structures (if, for, while, etc.) even for single statements, and maintain co...

    ⛶
  • Choose meaningful identifiers

    facebook/yoga
    Naming Conventions Other
    2
    ⭐ 18255

    All identifiers including parameters, files, functions, and categories should clearly communicate their pur...

    ⛶
  • Centralize configuration values

    facebook/yoga
    Configurations JavaScript
    2
    ⭐ 18255

    Consolidate all configuration variables, constants, and settings into a centralized configuration object ra...

    ⛶
  • Cache expensive computations

    facebook/yoga
    Performance Optimization C++
    2
    ⭐ 18255

    Identify and cache the results of expensive computations to avoid redundant calculations, especially in per...

    ⛶
  • benchmark performance optimizations

    facebook/yoga
    Performance Optimization JavaScript
    2
    ⭐ 18255

    Always measure and validate performance optimizations through benchmarking before assuming they provide ben...

    ⛶
  • Avoid configuration side effects

    facebook/yoga
    Configurations Objective-C
    2
    ⭐ 18255

    Configuration properties should behave predictably without hidden side effects that override explicitly set...

    ⛶
  • avoid build side effects

    facebook/yoga
    CI/CD JavaScript
    2
    ⭐ 18255

    Build scripts should avoid performing operations as side effects and instead use explicit, dedicated tasks ...

    ⛶
  • preserve URL integrity

    mountain-loop/yaak
    API TypeScript
    2
    ⭐ 13008

    When manipulating URLs for API calls, prioritize preserving the original URL structure over using convenien...

    ⛶
  • workflow documentation clarity

    cloudflare/workers-sdk
    Temporal TypeScript
    2
    ⭐ 3379

    Ensure all workflow-related documentation, help text, and code comments use proper grammar and punctuation....

    ⛶
  • Use configuration placeholders

    cloudflare/workers-sdk
    Configurations Toml
    2
    ⭐ 3379

    Configuration files should use placeholder values like `` instead of hardcoded values for fields that ...

    ⛶
  • telemetry documentation consistency

    cloudflare/workers-sdk
    Observability Markdown
    2
    ⭐ 3379

    Maintain consistent formatting and style when documenting telemetry and observability systems. This include...

    ⛶
  • Respect automated tooling

    cloudflare/workers-sdk
    CI/CD Json
    2
    ⭐ 3379

    Avoid manually updating files or configurations that are managed by automated CI/CD tools. Many modern deve...

    ⛶
  • Provide specific examples

    cloudflare/workers-sdk
    Documentation Markdown
    2
    ⭐ 3379

    Documentation should include concrete, actionable examples and use clear, unambiguous terminology to elimin...

    ⛶
  • maintain clean project structure

    cloudflare/workers-sdk
    Code Style Other
    2
    ⭐ 3379

    Keep your codebase organized and clutter-free by removing unnecessary files, directories, and artifacts tha...

    ⛶
  • Explicit configuration definitions

    cloudflare/workers-sdk
    Configurations Yaml
    2
    ⭐ 3379

    Ensure all configuration dependencies and environment variables are explicitly defined rather than relying ...

    ⛶
  • document workflow capabilities

    cloudflare/workers-sdk
    Temporal JavaScript
    2
    ⭐ 3379

    Workflow methods should include comments that document their orchestration capabilities and data access pat...

    ⛶
  • Design repeatable CI workflows

    cloudflare/workers-sdk
    CI/CD Yaml
    2
    ⭐ 3379

    CI workflows should be idempotent and handle cleanup automatically to avoid manual intervention and ensure ...

    ⛶
  • Design intuitive API interfaces

    cloudflare/workers-sdk
    API Markdown
    2
    ⭐ 3379

    APIs should be designed with user experience in mind, accepting inputs in formats users naturally encounter...

    ⛶
  • validate post-manipulation state

    cloudflare/workerd
    Null Handling JavaScript
    2
    ⭐ 6989

    Always explicitly validate object state after performing manipulations that could potentially result in nul...

    ⛶
  • Use appropriate API methods

    cloudflare/workerd
    API Rust
    2
    ⭐ 6989

    When integrating with external APIs or implementing interface methods, ensure you're using the correct API ...

    ⛶
  • Test comprehensive error scenarios

    cloudflare/workerd
    Error Handling JavaScript
    2
    ⭐ 6989

    When implementing error handling, ensure comprehensive test coverage by testing multiple error scenarios, e...

    ⛶
  • optimize CI resource usage

    cloudflare/workerd
    CI/CD Yaml
    2
    ⭐ 6989

    Design CI workflows to maximize resource efficiency by reusing build artifacts across jobs whenever possibl...

    ⛶
  • Optimize algorithm performance

    cloudflare/workerd
    Algorithms Other
    2
    ⭐ 6989

    When implementing algorithms, prioritize performance by using batching techniques to reduce API call overhe...

    ⛶
  • Format observability test data

    cloudflare/workerd
    Observability JavaScript
    2
    ⭐ 6989

    When writing tests for observability systems (tracing, metrics, logging), structure test assertions to be e...

    ⛶
  • extract repeated expressions

    cloudflare/workerd
    Code Style JavaScript
    2
    ⭐ 6989

    When the same expression or computation appears multiple times within a code block, extract it to a variabl...

    ⛶
  • ensure test cleanup

    cloudflare/workerd
    Testing Other
    2
    ⭐ 6989

    Tests must properly clean up resources and handle conditional execution regardless of test outcome. This in...

    ⛶
  • Choose appropriate logging functions

    cloudflare/workerd
    Logging Other
    2
    ⭐ 6989

    Select the correct logging function based on frequency, severity, and destination to avoid log spam and ens...

    ⛶
  • Balance configuration automation complexity

    cloudflare/workerd
    Configurations Python
    2
    ⭐ 6989

    When implementing configuration management solutions, carefully weigh the benefits of automation against th...

    ⛶
  • avoid unnecessary Arc wrapping

    cloudflare/workerd
    Concurrency Rust
    2
    ⭐ 6989

    Don't wrap atomic types in Arc unless you need to share ownership across multiple owners. Atomic types like...

    ⛶
  • Descriptive semantic naming

    microsoft/vscode
    Naming Conventions Json
    2
    ⭐ 174887

    Names should accurately reflect their purpose and behavior, providing users and developers with clear expec...

    ⛶
  • Configuration naming conventions

    microsoft/vscode
    Configurations Json
    2
    ⭐ 174887

    When adding new configuration settings, follow these naming conventions to maintain consistency and clarity...

    ⛶
  • Use latest patch versions

    volcano-sh/volcano
    Configurations Dockerfile
    2
    ⭐ 4899

    When configuring dependencies in Dockerfiles and other configuration files, use the latest patch versions w...

    ⛶
  • Use controlled concurrency patterns

    volcano-sh/volcano
    Concurrency Go
    2
    ⭐ 4899

    Implement proper concurrency control mechanisms to prevent resource exhaustion and ensure thread-safe opera...

    ⛶
  • Review security permissions

    volcano-sh/volcano
    Security Yaml
    2
    ⭐ 4899

    Carefully review all security permissions and privileges to ensure they follow the principle of least privi...

    ⛶
  • Resource-specific optimization factors

    volcano-sh/volcano
    Performance Optimization Markdown
    2
    ⭐ 4899

    Configure different optimization parameters for different resource types (CPU, memory, GPU) rather than app...

    ⛶
  • Protocol-specific network discovery

    volcano-sh/volcano
    Networking Markdown
    2
    ⭐ 4899

    When implementing network topology discovery features, use discovery methods that are appropriate for the s...

    ⛶
  • network topology plugin configuration

    volcano-sh/volcano
    Networking Go
    2
    ⭐ 4899

    When implementing network topology-aware scheduling, ensure that the appropriate topology plugins are prope...

    ⛶
  • Implement simulation testing

    volcano-sh/volcano
    Testing Markdown
    2
    ⭐ 4899

    When developing complex systems like schedulers or resource managers, create simulation-based testing frame...

    ⛶
  • Avoid external configuration dependencies

    volcano-sh/volcano
    Configurations Other
    2
    ⭐ 4899

    When designing configuration management systems, avoid strong dependencies on external projects for configu...

    ⛶
  • API validation consistency

    volcano-sh/volcano
    API Go
    2
    ⭐ 4899

    Ensure API validation rules and type definitions remain consistent across all validation layers and compone...

    ⛶
  • Optimize tensor memory operations

    vllm-project/vllm
    Pytorch Python
    2
    ⭐ 51730

    When working with PyTorch tensors, use memory-efficient operations that avoid unnecessary copies. Specify m...

    ⛶
  • Optimize GPU execution

    vllm-project/vllm
    Performance Optimization CUDA
    2
    ⭐ 51730

    Ensure GPU code is optimized for both proper thread utilization and correct architecture dispatching: 1. *...

    ⛶
  • Match reference names

    vllm-project/vllm
    Naming Conventions Other
    2
    ⭐ 51730

    Ensure that filenames and paths referenced in scripts, commands, or configuration files exactly match the a...

    ⛶
  • Environment-aware configuration values

    vllm-project/vllm
    Configurations Other
    2
    ⭐ 51730

    When creating configuration files or defining configuration constants, ensure they properly adapt to differ...

    ⛶
  • Combine identical CSS

    vllm-project/vllm
    Code Style Css
    2
    ⭐ 51730

    When multiple CSS selectors share identical styling properties, combine them using comma separation rather ...

    ⛶
  • AI model persistence

    vllm-project/vllm
    AI Other
    2
    ⭐ 51730

    When containerizing AI applications, ensure proper model persistence by mounting volumes to the default cac...

    ⛶
  • Validate environment configurations

    vitessio/vitess
    Configurations Yaml
    2
    ⭐ 19815

    Ensure that all environment-specific configurations work properly across all target environments, particula...

    ⛶
  • Size fields appropriately

    vitessio/vitess
    Database Sql
    2
    ⭐ 19815

    When designing database schemas, choose field types and sizes that accommodate both current and anticipated...

    ⛶
  • Pin environment versions

    vitessio/vitess
    CI/CD Yaml
    2
    ⭐ 19815

    Always use explicit version tags for CI/CD environments (runners, containers, images, tool versions) instea...

    ⛶
  • Manage workflow state transitions

    vitessio/vitess
    Temporal Go
    2
    ⭐ 19815

    When working with temporal workflows, always implement explicit state transitions rather than abrupt deleti...

    ⛶
  • Justify CI resource additions

    vitessio/vitess
    CI/CD Other
    2
    ⭐ 19815

    Before adding new resources (Dockerfiles, jobs, images) to CI/CD pipelines, provide clear justification for...

    ⛶
  • Document configuration precedence

    vitessio/vitess
    Configurations Txt
    2
    ⭐ 19815

    When implementing multiple configuration methods (e.g., config files, command-line flags, environment varia...

    ⛶
  • Database configuration best practices

    vitessio/vitess
    Database Markdown
    2
    ⭐ 19815

    When implementing or modifying database-related configurations, follow these principles: 1. Use semantical...

    ⛶
  • Consistent database APIs

    vitessio/vitess
    Database Other
    2
    ⭐ 19815

    Design database APIs with consistent patterns for response structures and error handling. Follow establishe...

    ⛶
  • Clear metric documentation

    vitessio/vitess
    Observability Markdown
    2
    ⭐ 19815

    When adding, modifying, or deprecating metrics, ensure comprehensive and clear documentation. Include: 1. ...

    ⛶
  • Avoid skipping e2e tests

    vitessio/vitess
    Testing Json
    2
    ⭐ 19815

    Do not use the `skip_e2e` flag to bypass end-to-end tests that fail. Instead, fix the test implementation b...

    ⛶
  • Vue component import handling

    vitejs/vite
    Vue TypeScript
    2
    ⭐ 74031

    When working with Vue single-file components, pay special attention to how imports are processed, particula...

    ⛶
  • Targeted yet comprehensive

    vitejs/vite
    Testing JavaScript
    2
    ⭐ 74031

    Write focused tests that verify specific functionality without unnecessary setup, while still ensuring comp...

    ⛶
  • Separate configuration responsibilities

    vitejs/vite
    Configurations Other
    2
    ⭐ 74031

    Design configuration files with clear separation of responsibilities and maintain flexibility for future ch...

    ⛶
  • Self-referential worker URLs

    vitejs/vite
    Networking JavaScript
    2
    ⭐ 74031

    When creating Web Workers for network communication, use self-referential URL patterns that are resilient t...

    ⛶
  • React transformation tool clarity

    vitejs/vite
    React Markdown
    2
    ⭐ 74031

    When working with React in Vite projects, be precise about which transformation tools (Babel, SWC, Oxc, esb...

    ⛶
  • Precise documentation language

    vitejs/vite
    Documentation Other
    2
    ⭐ 74031

    Use specific and clear language in all documentation to improve user understanding and avoid ambiguity. Fav...

    ⛶
  • Explicit version requirements

    vitejs/vite
    Configurations JavaScript
    2
    ⭐ 74031

    Always specify explicit Node.js version requirements in configuration files to ensure compatibility with la...

    ⛶
  • Document protocol configurations clearly

    vitejs/vite
    Networking Markdown
    2
    ⭐ 74031

    When documenting network protocol configurations (TLS, HTTP/2, CORS), provide specific details about requir...

    ⛶
  • Configure SSR environments

    vitejs/vite
    Next Markdown
    2
    ⭐ 74031

    When implementing server-side rendering in Next.js projects that use Vite as a bundler, ensure proper envir...

    ⛶
  • Complete deployment commands

    vitejs/vite
    CI/CD Markdown
    2
    ⭐ 74031

    Always ensure build commands in CI/CD configurations include all necessary steps for successful deployment,...

    ⛶
  • Code example consistency

    vitejs/vite
    Code Style Markdown
    2
    ⭐ 74031

    Ensure code examples in documentation and comments are syntactically correct and properly marked with the a...

    ⛶
  • Clean network resources

    vitejs/vite
    Networking TypeScript
    2
    ⭐ 74031

    Always properly close and clean up network connections to prevent memory leaks and resource exhaustion. Whe...

    ⛶
  • use `-prod` for performance

    vlang/v
    Performance Optimization Markdown
    2
    ⭐ 36582

    Always use the `-prod` compiler flag when building performance-critical code or running benchmarks. The `-p...

    ⛶
  • Test deployment edge cases

    astral-sh/uv
    Testing Python
    2
    ⭐ 60322

    Ensure that code paths handling different deployment environments (installation prefixes, target directorie...

    ⛶
  • Optimize docker build caching

    astral-sh/uv
    CI/CD Dockerfile
    2
    ⭐ 60322

    Leverage Docker BuildKit's cache and bind mount capabilities to dramatically improve CI build times and red...

    ⛶
  • Document build configurations

    astral-sh/uv
    Configurations Dockerfile
    2
    ⭐ 60322

    When setting Rust build configurations, especially in CI/Docker environments, explicitly document optimizat...

    ⛶
  • Cache sharing strategy

    astral-sh/uv
    Caching Dockerfile
    2
    ⭐ 60322

    When implementing caching in build systems, carefully configure cache sharing behavior based on your concur...

    ⛶
  • Avoid unnecessary constraints

    astral-sh/uv
    Configurations Toml
    2
    ⭐ 60322

    When specifying dependencies and version requirements in project configuration files, avoid adding unnecess...

    ⛶
  • Validate API parameter formats

    Unstructured-IO/unstructured
    API Shell
    2
    ⭐ 12117

    Ensure API parameters match the expected format and structure of target APIs before runtime. Validate param...

    ⛶
  • Use descriptive specific names

    Unstructured-IO/unstructured
    Naming Conventions Markdown
    2
    ⭐ 12117

    Choose names that clearly indicate their context and purpose rather than generic terms. Generic names can b...

    ⛶
  • separate formatting changes

    Unstructured-IO/unstructured
    Code Style Other
    2
    ⭐ 12117

    Keep formatting and style changes separate from functional code changes to maintain clear, reviewable diffs...

    ⛶
  • Python version standardization

    Unstructured-IO/unstructured
    Configurations Txt
    2
    ⭐ 12117

    Establish and document a consistent Python version standard for dependency compilation across the project. ...

    ⛶
  • Parameterize hardcoded configuration values

    Unstructured-IO/unstructured
    Configurations Dockerfile
    2
    ⭐ 12117

    Replace hardcoded values in configuration files with parameterized variables to improve flexibility and mai...

    ⛶
  • maintain established naming conventions

    Unstructured-IO/unstructured
    Naming Conventions Json
    2
    ⭐ 12117

    Ensure all naming follows established patterns and conventions already present in the codebase. When introd...

    ⛶
  • intentional naming patterns

    Unstructured-IO/unstructured
    Naming Conventions Other
    2
    ⭐ 12117

    Recognize when seemingly redundant naming patterns serve specific technical purposes rather than being mist...

    ⛶
  • improve code readability

    Unstructured-IO/unstructured
    Code Style Shell
    2
    ⭐ 12117

    Format code to enhance readability and maintainability by breaking long lines and extracting repeated value...

    ⛶
  • Enhance documentation detail

    Unstructured-IO/unstructured
    Documentation Markdown
    2
    ⭐ 12117

    Documentation should provide comprehensive detail that enables users to understand impacts and developers t...

    ⛶
  • embedding provider configuration

    Unstructured-IO/unstructured
    AI Shell
    2
    ⭐ 12117

    When configuring embedding providers in AI integrations, ensure proper dimension specification and use dedi...

    ⛶
  • Document configuration parameters clearly

    Unstructured-IO/unstructured
    Configurations Markdown
    2
    ⭐ 12117

    When documenting configuration objects and their parameters, provide clear explanations of each parameter's...

    ⛶
  • Centralize configuration sources

    Unstructured-IO/unstructured
    Configurations Toml
    2
    ⭐ 12117

    Maintain configuration settings in a single authoritative source to avoid duplication and inconsistencies a...

    ⛶
  • avoid hardcoded secrets

    Unstructured-IO/unstructured
    Security Python
    2
    ⭐ 12117

    Never include real API keys, passwords, or other sensitive credentials directly in source code, including e...

    ⛶
  • Version serializable structures

    unionlabs/union
    Migrations Rust
    2
    ⭐ 74800

    All serializable data structures that may evolve over time must include explicit versioning to enable backw...

    ⛶
  • Validate network addresses

    unionlabs/union
    Networking Other
    2
    ⭐ 74800

    Always validate network addresses according to their specific protocol requirements and maintain consistent...

    ⛶
  • validate input uniqueness

    unionlabs/union
    Security Rust
    2
    ⭐ 74800

    Always validate that input data is unique and matches expected values to prevent replay attacks and data ma...

    ⛶
  • preserve original error codes

    unionlabs/union
    Error Handling Other
    2
    ⭐ 74800

    When handling errors, preserve the original error information rather than replacing it with generic error c...

    ⛶
  • organize for readability

    unionlabs/union
    Code Style TypeScript
    2
    ⭐ 74800

    Structure code to minimize repetition and improve clarity through appropriate abstraction and import organi...

    ⛶
  • Optimize database queries

    unionlabs/union
    Database TypeScript
    2
    ⭐ 74800

    When writing database queries, prioritize both performance and correctness. Avoid unnecessary joins that ca...

    ⛶
  • Mock external dependencies

    unionlabs/union
    Testing TypeScript
    2
    ⭐ 74800

    Always mock external dependencies in tests to ensure isolation and reliability. Unit tests should not make ...

    ⛶
  • Environment-specific configuration values

    unionlabs/union
    Configurations Go
    2
    ⭐ 74800

    Avoid hardcoding configuration values that should vary between different deployment environments (testnet, ...

    ⛶
  • Environment-aware logging configuration

    unionlabs/union
    Logging TypeScript
    2
    ⭐ 74800

    Configure logging behavior dynamically based on the current environment to ensure appropriate log levels an...

    ⛶
  • Ensure semantic precision

    unionlabs/union
    Naming Conventions TypeScript
    2
    ⭐ 74800

    Choose names and identifiers that precisely convey their intended semantic meaning and avoid ambiguity or c...

    ⛶
  • Ensure comprehensive test coverage

    unionlabs/union
    Testing Rust
    2
    ⭐ 74800

    All new functionality must include corresponding tests that verify both success and failure scenarios. When...

    ⛶
  • Clean documentation links

    unionlabs/union
    Documentation Rust
    2
    ⭐ 74800

    When writing Rust documentation links, separate the display name from the full path to improve readability ...

    ⛶
  • avoid unnecessary memory operations

    unionlabs/union
    Performance Optimization Rust
    2
    ⭐ 74800

    Be mindful of memory usage when working with large data structures. Avoid unnecessary clones of large objec...

    ⛶
  • avoid suppressing TypeScript errors

    unionlabs/union
    Null Handling Other
    2
    ⭐ 74800

    Do not use `@ts-expect-error` comments to suppress TypeScript errors, especially those related to null, und...

    ⛶
  • Use concise methods

    shadcn-ui/ui
    Code Style Other
    2
    ⭐ 90568

    Prefer built-in methods and properties that achieve the same result with less code. This improves readabili...

    ⛶
  • Use cross-platform build commands

    bytedance/UI-TARS-desktop
    CI/CD Json
    2
    ⭐ 18021

    Replace native shell commands in package.json scripts with cross-platform alternatives to ensure build cons...

    ⛶
  • Native fetch over dependencies

    bytedance/UI-TARS-desktop
    API Json
    2
    ⭐ 18021

    Prefer Node.js native fetch API over external HTTP client libraries like `node-fetch` when the target Node....

    ⛶
  • Externalize configuration values

    bytedance/UI-TARS-desktop
    Configurations TypeScript
    2
    ⭐ 18021

    Avoid hard-coding configuration values directly in source files. Instead, externalize them using environmen...

    ⛶
  • Preprocess data early

    shadcn-ui/ui
    Algorithms TSX
    2
    ⭐ 90568

    Transform and prepare data structures at their source rather than during consumption. This includes flatten...

    ⛶
  • Optimize documentation for usability

    shadcn-ui/ui
    Documentation TSX
    2
    ⭐ 90568

    When creating component documentation, prioritize the developer experience by providing clear, usable examp...

    ⛶
  • Consistent import paths

    shadcn-ui/ui
    Code Style TypeScript
    2
    ⭐ 90568

    Establish and follow consistent import path conventions throughout the codebase. Prefer aliased imports usi...

    ⛶
  • Use TypeScript-specific tests

    microsoft/typescript
    Testing Markdown
    2
    ⭐ 105378

    Always use fourslash tests (for IDE/language service features) or compiler tests (for TypeScript compilatio...

    ⛶
  • Use absolute paths

    microsoft/typescript
    Configurations Other
    2
    ⭐ 105378

    When specifying file paths in configuration files (like ESLint or TypeScript configs), use absolute paths r...

    ⛶
  • Streamline workflow configurations

    microsoft/typescript
    CI/CD Yaml
    2
    ⭐ 105378

    Maintain efficient and properly structured CI/CD workflows by removing unnecessary dependencies and using c...

    ⛶
  • Consistent module resolution

    microsoft/typescript
    Configurations JavaScript
    2
    ⭐ 105378

    Configure consistent module resolution strategies across related projects and ensure package.json files are...

    ⛶
  • Consistent message terminology

    microsoft/typescript
    Naming Conventions Json
    2
    ⭐ 105378

    Use clear, consistent terminology in all error messages and user-facing text. Avoid technical jargon that m...

    ⛶
  • Actionable error messages

    microsoft/typescript
    API JavaScript
    2
    ⭐ 105378

    When designing APIs, provide error messages that are contextually accurate, descriptive, and actionable. Ge...

    ⛶
  • Single source of truth

    twentyhq/twenty
    API TSX
    2
    ⭐ 35477

    Establish a single authoritative source for each piece of data in your API interfaces rather than maintaini...

    ⛶
  • optimize data structure lookups

    twentyhq/twenty
    Algorithms TypeScript
    2
    ⭐ 35477

    Choose data structures that provide optimal time complexity for your access patterns. When you need frequen...

    ⛶
  • Follow React component patterns

    twentyhq/twenty
    React TSX
    2
    ⭐ 35477

    React components should be rendered as standard JSX elements, not called as functions, and should follow es...

    ⛶
  • Enforce restrictive security defaults

    twentyhq/twenty
    Security TSX
    2
    ⭐ 35477

    Always start with the most restrictive security settings and only grant additional permissions when absolut...

    ⛶
  • Verify test commands

    vercel/turborepo
    Testing Markdown
    2
    ⭐ 28115

    Always verify that test commands documented in project guides work exactly as written. Test commands should...

    ⛶
  • Use workspace dependencies consistently

    vercel/turborepo
    Configurations Toml
    2
    ⭐ 28115

    Always use workspace-level dependency declarations (`workspace = true`) rather than specifying exact versio...

    ⛶
  • Use JSDoc deprecation standards

    vercel/turborepo
    Documentation TypeScript
    2
    ⭐ 28115

    When marking code as deprecated, use JSDoc standards to provide clear guidance for developers. Always use t...

    ⛶
  • Use environment-aware configurations

    vercel/turborepo
    Configurations JavaScript
    2
    ⭐ 28115

    Configure paths and system references dynamically to ensure they work across all environments (development,...

    ⛶
  • Link terms, provide examples

    vercel/turborepo
    Documentation Other
    2
    ⭐ 28115

    When writing technical documentation, link to related concepts the first time they are mentioned, and inclu...

    ⛶
  • Hybrid monorepo testing

    vercel/turborepo
    Testing Other
    2
    ⭐ 28115

    When working with tests in a monorepo, implement a hybrid testing approach that balances local development ...

    ⛶
  • Handle errors appropriately

    vercel/turborepo
    Error Handling TypeScript
    2
    ⭐ 28115

    Implement appropriate error handling strategies based on the criticality of operations. For non-critical op...

    ⛶
  • Graceful error recovery

    vercel/turborepo
    Error Handling Other
    2
    ⭐ 28115

    Implement error handling that accumulates diagnostics rather than failing immediately, especially for opera...

    ⛶
  • Framework-specific entrypoints organization

    vercel/turborepo
    Next Other
    2
    ⭐ 28115

    When creating libraries that integrate with Next.js or other frameworks, organize your code with separate e...

    ⛶
  • Design for testability

    vercel/turborepo
    Testing TypeScript
    2
    ⭐ 28115

    Extract complex logic into separate, pure functions to improve testability. Functions with clear inputs and...

    ⛶
  • Consider config generation methods

    vercel/turborepo
    Configurations Go
    2
    ⭐ 28115

    When implementing code to handle configuration files like lockfiles or environment settings, carefully cons...

    ⛶
  • validate inputs early

    tree-sitter/tree-sitter
    Error Handling C
    2
    ⭐ 21799

    Functions should validate input parameters at the beginning and return appropriate error indicators (like f...

    ⛶
  • validate algorithmic inputs

    tree-sitter/tree-sitter
    Algorithms Other
    2
    ⭐ 21799

    Always validate inputs and handle edge cases before performing algorithmic operations, especially when deal...

    ⛶
  • target-specific CMake configurations

    tree-sitter/tree-sitter
    Configurations Txt
    2
    ⭐ 21799

    Use target-specific CMake commands instead of global ones to ensure proper scoping and avoid polluting the ...

    ⛶
  • Strategic configuration exclusions

    tree-sitter/tree-sitter
    Configurations Swift
    2
    ⭐ 21799

    When configuring build exclusions in package manifests or configuration files, be strategic and minimal. On...

    ⛶
  • optimize memory usage patterns

    tree-sitter/tree-sitter
    Performance Optimization C
    2
    ⭐ 21799

    Focus on reducing memory footprint and improving cache efficiency through careful data structure design and...

    ⛶
  • measure performance implications

    tree-sitter/tree-sitter
    Performance Optimization Other
    2
    ⭐ 21799

    When making design decisions that could impact performance, evaluate resource implications and provide conc...

    ⛶
  • Ensure semantic naming clarity

    tree-sitter/tree-sitter
    Naming Conventions TypeScript
    2
    ⭐ 21799

    Names should clearly convey their semantic purpose and avoid conflicts that reduce code readability. This a...

    ⛶
  • Document configuration changes

    tree-sitter/tree-sitter
    Configurations Json
    2
    ⭐ 21799

    When modifying configuration files (tsconfig.json, environment configs, build settings, etc.), always provi...

    ⛶
  • descriptive naming patterns

    tree-sitter/tree-sitter
    Naming Conventions Json
    2
    ⭐ 21799

    Use descriptive names that clearly indicate the expected format, convention, or constraints. This applies t...

    ⛶
  • Cross-platform configuration examples

    tree-sitter/tree-sitter
    Configurations Markdown
    2
    ⭐ 21799

    Ensure configuration examples and documentation work across different operating systems and clearly disting...

    ⛶
  • consolidate related logging

    tree-sitter/tree-sitter
    Logging C
    2
    ⭐ 21799

    When logging information about the same operation or context, combine multiple related log statements into ...

    ⛶
  • Complete technical documentation

    tree-sitter/tree-sitter
    Documentation Markdown
    2
    ⭐ 21799

    When documenting technical features, APIs, or data structures, provide comprehensive coverage that includes...

    ⛶
  • CMake custom command design

    tree-sitter/tree-sitter
    CI/CD Txt
    2
    ⭐ 21799

    When implementing CMake build automation for code generation, carefully choose between `add_custom_command`...

    ⛶
  • Clarify API documentation

    tree-sitter/tree-sitter
    Documentation Other
    2
    ⭐ 21799

    API documentation should provide clear, unambiguous explanations of function behavior, return values, and e...

    ⛶
  • automate frequent releases

    tree-sitter/tree-sitter
    CI/CD Markdown
    2
    ⭐ 21799

    Implement automated release workflows to publish updates frequently and consistently across all distributio...

    ⛶
  • Assert null before access

    tree-sitter/tree-sitter
    Null Handling C
    2
    ⭐ 21799

    When asserting conditions on potentially null pointers, always check for null first before accessing the po...

    ⛶
  • API type definition consistency

    tree-sitter/tree-sitter
    API TypeScript
    2
    ⭐ 21799

    When modifying API type definitions, ensure all related definition files are updated consistently and depen...

    ⛶
  • API documentation synchronization

    tree-sitter/tree-sitter
    API Markdown
    2
    ⭐ 21799

    Ensure that all API documentation, including code examples and integration guides, accurately reflects the ...

    ⛶
  • provide contextual error information

    traefik/traefik
    Error Handling Go
    2
    ⭐ 55772

    Ensure error messages and logging provide sufficient context to understand what failed and why. Include rel...

    ⛶
  • proper context handling

    traefik/traefik
    Concurrency Go
    2
    ⭐ 55772

    Always propagate contexts consistently throughout the call chain and handle context cancellation properly i...

    ⛶
  • optimize selection algorithms

    traefik/traefik
    Algorithms Go
    2
    ⭐ 55772

    When implementing selection algorithms that choose from a pool of candidates, design the algorithm to filte...

    ⛶
  • Health check lifecycle completeness

    traefik/traefik
    Observability Go
    2
    ⭐ 55772

    Ensure health check systems are not only created but also properly launched and integrated with observabili...

    ⛶
  • avoid external dependencies

    traefik/traefik
    Testing Go
    2
    ⭐ 55772

    Unit tests should not depend on external components like databases, Redis, or Kubernetes clusters. Instead,...

    ⛶
  • Follow established naming conventions

    bytedance/trae-agent
    Naming Conventions Python
    2
    ⭐ 9088

    Adhere to established naming conventions consistently throughout the codebase, prioritizing official docume...

    ⛶
  • Externalize hardcoded configurations

    bytedance/trae-agent
    Configurations Python
    2
    ⭐ 9088

    Configuration values should be externalized to environment variables rather than hardcoded in the source co...

    ⛶
  • Test production configurations too

    tokio-rs/tokio
    Testing Yaml
    2
    ⭐ 28981

    Include testing configurations that mirror production environments to catch issues that might only manifest...

    ⛶
  • Test diverse configurations

    tokio-rs/tokio
    Testing Yaml
    2
    ⭐ 28989

    Configure test suites to run under multiple specialized environments to catch issues that might not appear ...

    ⛶
  • Simplify configuration flags

    tokio-rs/tokio
    Configurations Yaml
    2
    ⭐ 28989

    Keep configuration flags, feature toggles, and build settings concise and well-organized. Use simpler names...

    ⛶
  • Version AI dependencies appropriately

    huggingface/tokenizers
    AI Toml
    2
    ⭐ 9868

    When adding or updating dependencies for AI/ML libraries in your project, follow these two key practices: ...

    ⛶
  • Use explicit assertions

    huggingface/tokenizers
    Testing Rust
    2
    ⭐ 9868

    Tests should assert specific expected values rather than just verifying general functionality. This practic...

    ⛶
  • Test algorithmic behavior

    huggingface/tokenizers
    Algorithms Python
    2
    ⭐ 9868

    When testing algorithms, verify their actual functionality rather than just checking for proper instantiati...

    ⛶
  • Smart configuration defaults

    huggingface/tokenizers
    Configurations Python
    2
    ⭐ 9868

    Prefer smart configuration defaults that auto-detect the environment instead of requiring explicit configur...

    ⛶
  • Robust workflow configurations

    huggingface/tokenizers
    Configurations Yaml
    2
    ⭐ 9868

    Ensure CI/CD workflow configuration files follow best practices for maintainability and correctness: 1. Us...

    ⛶
  • Prioritize tokenizer simplicity

    huggingface/tokenizers
    AI TypeScript
    2
    ⭐ 9868

    When implementing AI model components like tokenizers, favor simplicity over rarely-used features that sign...

    ⛶
  • Flexible tokenizer implementation

    huggingface/tokenizers
    AI Python
    2
    ⭐ 9868

    When implementing tokenizers for AI models, ensure flexibility and robust behavior across different context...

    ⛶
  • Document for comprehension

    huggingface/tokenizers
    Documentation Python
    2
    ⭐ 9868

    Add comprehensive documentation that helps others understand both the interface and implementation of your ...

    ⛶
  • Consistent API design

    huggingface/tokenizers
    API Other
    2
    ⭐ 9868

    When designing and modifying APIs, ensure consistency in parameter naming, default values, and which functi...

    ⛶
  • Secure checkout configurations

    hashicorp/terraform
    CI/CD Yaml
    2
    ⭐ 45532

    When configuring GitHub Actions workflows, pay special attention to the checkout action's configuration to ...

    ⛶
  • Explicit dependency graph

    hashicorp/terraform
    Algorithms Go
    2
    ⭐ 45532

    When implementing algorithms involving dependencies between components or operations, model the dependency ...

    ⛶
  • Descriptive migration functions

    hashicorp/terraform
    Migrations Shell
    2
    ⭐ 45532

    Name migration-related functions descriptively to convey their exact purpose and context of use. Include de...

    ⛶
  • Specify security requirements

    microsoft/terminal
    Security Other
    2
    ⭐ 99242

    Always explicitly declare security requirements and provide clear security guidance in both configuration f...

    ⛶
  • Protocol response formatting

    microsoft/terminal
    Networking C++
    2
    ⭐ 99242

    When implementing terminal protocol responses (CSI, DCS, OSC sequences), ensure proper formatting with corr...

    ⛶
  • API clarity over convenience

    microsoft/terminal
    API Other
    2
    ⭐ 99242

    When designing APIs, prioritize clarity and self-documentation over implementation convenience. Choose inte...

    ⛶
  • Add comprehensive explanatory comments

    microsoft/terminal
    Documentation Other
    2
    ⭐ 99242

    When code involves complex relationships between multiple components or non-obvious usage patterns, add com...

    ⛶
  • Verify platform compatibility first

    tensorflow/tensorflow
    Networking Shell
    2
    ⭐ 190625

    When writing networking code that interacts with platform-specific features, always check for the existence...

    ⛶
  • Use modern assertions

    tensorflow/tensorflow
    Testing Python
    2
    ⭐ 190625

    Always use current assertion methods in test code to ensure clarity and future compatibility. Specifically,...

    ⛶
  • Secure infrastructure maintenance

    tensorflow/tensorflow
    CI/CD Dockerfile
    2
    ⭐ 190625

    Maintain CI/CD infrastructure with security and currency as top priorities. This includes: 1. **Keep build...

    ⛶
  • Parameterize ci/cd scripts

    tensorflow/tensorflow
    CI/CD Shell
    2
    ⭐ 190625

    Avoid duplicating CI/CD scripts by leveraging configuration files and parameterization instead of creating ...

    ⛶
  • Framework migration instructions

    tensorflow/tensorflow
    AI Markdown
    2
    ⭐ 190625

    When documenting AI framework migrations (like TensorFlow/Keras version changes), provide complete instruct...

    ⛶
  • Format lines and comments

    tensorflow/tensorflow
    Code Style Python
    2
    ⭐ 190625

    Ensure all code follows formatting guidelines for readability and consistency. Keep lines under 80 characte...

    ⛶
  • Document non-obvious code

    tensorflow/tensorflow
    Documentation Other
    2
    ⭐ 190625

    Add clarifying comments to improve code readability and maintainability when code behavior isn't immediatel...

    ⛶
  • Consistent variable naming

    tensorflow/tensorflow
    Naming Conventions Shell
    2
    ⭐ 190625

    Use ALL_CAPS for constants and environment variables in shell scripts, and reference these variables consis...

    ⛶
  • Build dependency synchronization

    tensorflow/tensorflow
    Configurations Python
    2
    ⭐ 190625

    When adding new imports to code files, always synchronize by updating the corresponding dependencies in BUI...

    ⛶
  • Be explicit in references

    tensorflow/tensorflow
    Documentation Markdown
    2
    ⭐ 190625

    When writing documentation, always be specific and explicit when referring to files, tools, configurations,...

    ⛶
  • Protocol buffer organization

    temporalio/temporal
    Code Style Other
    2
    ⭐ 14953

    When defining protocol buffer messages, prioritize good organization and reuse: 1. Reuse existing message ...

    ⛶
  • Protobuf extensibility patterns

    temporalio/temporal
    API Other
    2
    ⭐ 14953

    When designing Protocol Buffer APIs, use `oneof` fields to create extensible message structures that mainta...

    ⛶
  • Optimize API consumption

    temporalio/temporal
    API Yaml
    2
    ⭐ 14953

    When interacting with APIs, minimize network requests and improve code maintainability by: 1. Extracting re...

    ⛶
  • Explicit CI configuration conditions

    temporalio/temporal
    CI/CD Yaml
    2
    ⭐ 14953

    When writing CI/CD workflow configurations, always use explicit and precise conditions, paths, and selector...

    ⛶
  • Configure OpenTelemetry programmatically

    temporalio/temporal
    Observability Yaml
    2
    ⭐ 14953

    Configure OpenTelemetry programmatically rather than through environment variables or command-line flags. T...

    ⛶
  • Analyze algorithm tradeoffs

    temporalio/temporal
    Algorithms Other
    2
    ⭐ 14953

    When implementing functionality that involves multiple possible algorithmic approaches, explicitly analyze ...

    ⛶
  • validate before access

    gravitational/teleport
    Null Handling Go
    2
    ⭐ 19109

    Always check for null, empty, or unset values before accessing or processing them, and return meaningful er...

    ⛶
  • Use semantic HTML elements

    gravitational/teleport
    React TSX
    2
    ⭐ 19109

    When creating interactive components in React, use proper HTML semantic elements as the foundation, even wh...

    ⛶
  • Safe null handling

    gravitational/teleport
    Null Handling TypeScript
    2
    ⭐ 19109

    Always handle potentially null or undefined values defensively using appropriate JavaScript patterns. Choos...

    ⛶
  • parameterize configuration values

    gravitational/teleport
    Configurations Yaml
    2
    ⭐ 19109

    Avoid hardcoded values in configuration files and templates. Make settings parameterizable with sensible de...

    ⛶
  • Network address clarity

    gravitational/teleport
    Networking Other
    2
    ⭐ 19109

    When documenting or configuring network addresses, DNS names, and IP addresses, be explicit about traffic d...

    ⛶
  • Follow platform naming conventions

    gravitational/teleport
    Naming Conventions TSX
    2
    ⭐ 19109

    Always use the correct naming conventions for the platform you're working with, particularly React and HTML...

    ⛶
  • Environment variable precedence

    gravitational/teleport
    Configurations Go
    2
    ⭐ 19109

    When working with environment variables in configuration management, ensure proper precedence handling and ...

    ⛶
  • Environment-specific configuration identifiers

    gravitational/teleport
    Configurations TypeScript
    2
    ⭐ 19109

    Use distinct, environment-specific identifiers in configuration to prevent conflicts between different appl...

    ⛶
  • Design intuitive query interfaces

    gravitational/teleport
    Algorithms Markdown
    2
    ⭐ 19109

    When designing algorithms for querying, filtering, or data manipulation, prioritize user-friendly function ...

    ⛶
  • Design comprehensive metrics

    gravitational/teleport
    Observability Markdown
    2
    ⭐ 19109

    When designing observability metrics, ensure they are explicit about all possible states, comprehensive in ...

    ⛶
  • defensive error handling

    gravitational/teleport
    Error Handling TypeScript
    2
    ⭐ 19109

    Implement defensive programming practices to prevent runtime errors and provide meaningful error informatio...

    ⛶
  • Database query parameter hygiene

    gravitational/teleport
    Database Go
    2
    ⭐ 19109

    Ensure all database query parameters serve a clear purpose and are properly utilized. Remove unused filter ...

    ⛶
  • avoid platform-specific CI features

    gravitational/teleport
    CI/CD Yaml
    2
    ⭐ 19109

    Avoid using CI platform-specific features in workflows to prevent vendor lock-in and ensure portability. In...

    ⛶
  • Assess optimization necessity

    gravitational/teleport
    Performance Optimization TSX
    2
    ⭐ 19109

    Evaluate whether performance optimizations are actually needed based on your specific context, data size, a...

    ⛶
  • Swift style consistency

    tensorflow/swift
    Code Style Markdown
    2
    ⭐ 6136

    Maintain consistent Swift style conventions throughout all code, including examples in documentation and co...

    ⛶
  • Minimize cross-device transfers

    tensorflow/swift
    Performance Optimization Markdown
    2
    ⭐ 6136

    Data transfers between different compute devices (CPU/host to GPU/accelerator and back) can significantly i...

    ⛶
  • Follow Swift conventions

    tensorflow/swift
    API Markdown
    2
    ⭐ 6136

    When designing and documenting APIs in Swift, adhere to Swift's established naming conventions and document...

    ⛶
  • Handle AI provider inconsistencies

    SWE-agent/SWE-agent
    AI Python
    2
    ⭐ 16839

    When integrating with AI model providers, implement defensive programming to handle API inconsistencies, bu...

    ⛶
  • Document configuration decisions

    SWE-agent/SWE-agent
    Configurations Yaml
    2
    ⭐ 16839

    When making configuration changes, especially those involving version specifications or constraints, includ...

    ⛶
  • Document configuration clarity

    SWE-agent/SWE-agent
    Configurations Markdown
    2
    ⭐ 16839

    Ensure all configuration options and setup instructions are clearly documented with their intended purposes...

    ⛶
  • Write clear test cases

    sveltejs/svelte
    Testing Other
    2
    ⭐ 83580

    Tests should be written with clear intent and expectations. Use descriptive names that accurately reflect w...

    ⛶
  • Validate configuration interdependencies

    sveltejs/svelte
    Configurations TypeScript
    2
    ⭐ 83580

    When configuration options have logical dependencies or constraints, implement both smart defaults and vali...

    ⛶
  • SSR documentation clarity

    sveltejs/svelte
    Next Markdown
    2
    ⭐ 83580

    Ensure server-side rendering documentation is grammatically correct and clearly explains the differences be...

    ⛶
  • Runtime HTML escaping

    sveltejs/svelte
    Security JavaScript
    2
    ⭐ 83580

    HTML escaping must occur at runtime, not during compilation or build time, to properly prevent XSS vulnerab...

    ⛶
  • optimize computational complexity

    sveltejs/svelte
    Algorithms TypeScript
    2
    ⭐ 83580

    When implementing algorithms, especially in runtime or performance-critical code, prioritize computational ...

    ⛶
  • Justify configuration changes

    sveltejs/svelte
    Configurations Json
    2
    ⭐ 83580

    When making configuration changes, especially dependency upgrades, provide clear justification for why the ...

    ⛶
  • Format complex CSS selectors

    sveltejs/svelte
    Code Style Other
    2
    ⭐ 83580

    When working with complex CSS selectors that include multiple nested pseudo-selectors like `:is()`, `:where...

    ⛶
  • Follow snake_case convention

    sveltejs/svelte
    Naming Conventions TypeScript
    2
    ⭐ 83580

    Consistently use snake_case naming throughout the codebase for variables, methods, and identifiers to maint...

    ⛶
  • Document non-obvious behavior

    sveltejs/svelte
    Documentation TypeScript
    2
    ⭐ 83580

    Write documentation that explains behavior and context that may not be obvious to newcomers, even if it see...

    ⛶
  • avoid unclear abbreviations

    sveltejs/svelte
    Naming Conventions Markdown
    2
    ⭐ 83580

    Use clear, descriptive names instead of abbreviated variable names that reduce code readability. Abbreviati...

    ⛶
  • Use null strategically

    supabase/supabase
    Null Handling TypeScript
    2
    ⭐ 86070

    When handling empty or missing values, be intentional about using `null`, `undefined`, or empty strings bas...

    ⛶
  • Use appropriate HTTP methods

    supabase/supabase
    API TypeScript
    2
    ⭐ 86070

    Choose HTTP methods that align with the actual operation being performed. Use GET for retrieving data with ...

    ⛶
  • Sync environment variables

    supabase/supabase
    Configurations Yaml
    2
    ⭐ 86070

    When converting hardcoded values to environment variables in configuration files (like docker-compose.yml),...

    ⛶
  • Safe database operations

    supabase/supabase
    Database TypeScript
    2
    ⭐ 86070

    When modifying database structures or executing dynamic SQL queries, prioritize both performance and safety...

    ⛶
  • Optimize large field queries

    supabase/supabase
    Performance Optimization TypeScript
    2
    ⭐ 86070

    When working with database queries that process large text fields or arrays, choose operations that minimiz...

    ⛶
  • Consistent case style

    supabase/supabase
    Naming Conventions TypeScript
    2
    ⭐ 86070

    Use consistent case styles in your codebase, adapting to the conventions of the ecosystem you're interactin...

    ⛶
  • Connection resilience patterns

    supabase/supabase
    Networking TypeScript
    2
    ⭐ 86070

    Implement resilient networking connections with retry mechanisms for all client-service interactions. When ...

    ⛶
  • Concise performance documentation

    supabase/supabase
    Performance Optimization Other
    2
    ⭐ 86070

    When documenting performance metrics, benchmarks, or scalability information, prioritize clarity and concis...

    ⛶
  • Avoid code duplication

    supabase/supabase
    Code Style TypeScript
    2
    ⭐ 86070

    Maintain clean, maintainable code by avoiding duplication and following proper code organization principles...

    ⛶
  • Keep build scripts portable

    browserbase/stagehand
    CI/CD Json
    2
    ⭐ 16443

    Build scripts should remain environment-agnostic and free from personal customizations or assumptions about...

    ⛶
  • Control caching through instantiation

    browserbase/stagehand
    Caching TypeScript
    2
    ⭐ 16443

    When implementing optional caching functionality, control cache behavior through conditional instantiation ...

    ⛶
  • AI provider naming standards

    browserbase/stagehand
    AI Markdown
    2
    ⭐ 16443

    Maintain consistent and proper naming conventions for AI model providers throughout code, documentation, an...

    ⛶
  • AI dependency classification

    browserbase/stagehand
    AI Json
    2
    ⭐ 16443

    When adding AI/ML libraries to a project, carefully consider whether they belong in `dependencies` or `devD...

    ⛶
  • Verify operation semantics

    spring-projects/spring-framework
    Algorithms Other
    2
    ⭐ 58382

    When implementing algorithms that process collections or use conditional logic, always verify the exact sem...

    ⛶
  • Use documentation features properly

    spring-projects/spring-framework
    Documentation Other
    2
    ⭐ 58382

    Utilize Asciidoc features correctly when writing or updating Spring Framework documentation. Instead of har...

    ⛶
  • Structured log message quality

    spring-projects/spring-boot
    Logging Java
    2
    ⭐ 77637

    Design log messages to be clear, concise, and properly structured to maximize their utility for debugging a...

    ⛶
  • Stable observability components

    spring-projects/spring-boot
    Observability Other
    2
    ⭐ 77637

    Always use stable, production-ready versions of observability components (libraries, dependencies, and docu...

    ⛶
  • Include database-specific migration dependencies

    spring-projects/spring-boot
    Migrations Other
    2
    ⭐ 77637

    When implementing database migrations with tools like Flyway, ensure you include the appropriate database-s...

    ⛶
  • Environment variables best practices

    spring-projects/spring-boot
    Configurations Other
    2
    ⭐ 77637

    When working with environment variables in configuration files, follow these practices to ensure reliabilit...

    ⛶
  • Consistent terminology usage

    spring-projects/spring-boot
    Naming Conventions Other
    2
    ⭐ 77637

    When referring to technical concepts in documentation and code comments, use proper full names and consiste...

    ⛶
  • Clear structured logging documentation

    spring-projects/spring-boot
    Logging Other
    2
    ⭐ 77637

    Document structured logging implementations with clarity, explicitly noting precedence rules and interactio...

    ⛶
  • Bean lifecycle management

    spring-projects/spring-boot
    Spring Other
    2
    ⭐ 77637

    When using containers and external services in Spring applications (especially with Testcontainers), declar...

    ⛶
  • validate before data access

    apache/spark
    Null Handling Python
    2
    ⭐ 41554

    Always validate for null or None values before accessing data elements, especially when working with collec...

    ⛶
  • Test algorithmic performance scaling

    apache/spark
    Algorithms Java
    2
    ⭐ 41554

    When implementing or modifying algorithms, especially data structures like hash tables, bloom filters, or p...

    ⛶
  • prefer system properties directly

    apache/spark
    Configurations Java
    2
    ⭐ 41554

    When detecting operating system or environment characteristics, prefer direct access to system properties o...

    ⛶
  • optimize expensive operations

    apache/spark
    Algorithms Python
    2
    ⭐ 41554

    Before executing computationally expensive operations, implement conditional checks to determine if the ope...

    ⛶
  • ensure test isolation

    apache/spark
    Testing Python
    2
    ⭐ 41554

    Tests must properly clean up resources and avoid side effects that can impact other tests, especially when ...

    ⛶
  • Eliminate unnecessary complexity

    apache/spark
    Code Style Python
    2
    ⭐ 41554

    Remove unnecessary default parameters and consolidate related conditional logic to improve code clarity and...

    ⛶
  • consistent null handling

    apache/spark
    Null Handling Java
    2
    ⭐ 41554

    Maintain consistency in null handling patterns across the codebase. When multiple approaches exist for repr...

    ⛶
  • Complete method documentation

    apache/spark
    Documentation Java
    2
    ⭐ 41554

    All public methods, especially in interfaces and APIs, must have comprehensive JavaDoc documentation that c...

    ⛶
  • Numeric API completeness

    bytedance/sonic
    API Go
    2
    ⭐ 8532

    When designing APIs that handle numeric values, ensure comprehensive support for different integer types (I...

    ⛶
  • Meaningful comment practices

    bytedance/sonic
    Documentation C
    2
    ⭐ 8532

    Comments should explain the reasoning behind code decisions rather than restating what the code obviously d...

    ⛶
  • Maintain consistent formatting

    bytedance/sonic
    Code Style Go
    2
    ⭐ 8532

    Ensure all code follows the established project formatting standards consistently across the codebase. This...

    ⛶
  • Function documentation standards

    bytedance/sonic
    Documentation Go
    2
    ⭐ 8532

    Function documentation comments must follow Go conventions by starting with the function name, and all para...

    ⛶
  • Empty vs nil distinction

    bytedance/sonic
    Null Handling Go
    2
    ⭐ 8532

    Always distinguish between nil and empty values when handling nullable types, as they carry different seman...

    ⛶
  • Defensive error handling

    bytedance/sonic
    Error Handling Go
    2
    ⭐ 8532

    Implement defensive checks when managing error state to prevent overwriting existing errors and add safegua...

    ⛶
  • consistent code formatting

    bytedance/sonic
    Code Style C
    2
    ⭐ 8532

    Maintain consistent indentation and brace alignment throughout the codebase to improve readability and code...

    ⛶
  • bounds checking first

    bytedance/sonic
    Algorithms C
    2
    ⭐ 8532

    Always validate array and buffer bounds before accessing elements to prevent out-of-bounds access and poten...

    ⛶
  • validate before accessing

    SigNoz/signoz
    Null Handling Go
    2
    ⭐ 23369

    Always validate bounds, nil pointers, and other potentially unsafe conditions before accessing values to pr...

    ⛶
  • Use descriptive names

    SigNoz/signoz
    Naming Conventions TypeScript
    2
    ⭐ 23369

    Variable and function names should clearly communicate their actual purpose and behavior, not just their in...

    ⛶
  • reuse existing utilities

    SigNoz/signoz
    Code Style TypeScript
    2
    ⭐ 23369

    Before creating new utility functions, check if existing ones can be reused or extended. Avoid code duplica...

    ⛶
  • provide defaults when destructuring

    SigNoz/signoz
    Null Handling TSX
    2
    ⭐ 23369

    When destructuring properties from objects that might contain undefined values, use the nullish coalescing ...

    ⛶
  • Prefer realistic testing

    SigNoz/signoz
    Testing TSX
    2
    ⭐ 23369

    Write tests that closely mirror real user interactions and application behavior rather than relying on arti...

    ⛶
  • orchestrate observability services

    SigNoz/signoz
    Observability Other
    2
    ⭐ 23369

    When setting up observability infrastructure in build systems, use proper dependency management and descrip...

    ⛶
  • Optimize React architecture

    SigNoz/signoz
    React TSX
    2
    ⭐ 23369

    Prefer direct hook usage over prop drilling and carefully consider context provider placement to maintain c...

    ⛶
  • Observability correctness and maintainability

    SigNoz/signoz
    Observability Go
    2
    ⭐ 23369

    Ensure observability implementations prioritize both mathematical correctness and code maintainability. Obs...

    ⛶
  • meaningful ABC usage

    SigNoz/signoz
    Code Style Python
    2
    ⭐ 23369

    Only inherit from ABC when you have abstract methods that subclasses must implement. Avoid using ABC inheri...

    ⛶
  • justify caching strategies

    SigNoz/signoz
    Caching Go
    2
    ⭐ 23369

    When implementing caching solutions, clearly document and justify your caching strategy decisions based on ...

    ⛶
  • Explicit configuration management

    SigNoz/signoz
    Configurations TypeScript
    2
    ⭐ 23369

    Configuration changes should be intentional, well-documented, and implemented using clean, understandable p...

    ⛶
  • Ensure log message clarity

    SigNoz/signoz
    Logging Go
    2
    ⭐ 23369

    Log messages should be clear, unambiguous, and avoid creating confusion for developers and operators. This ...

    ⛶
  • Configuration migration fallbacks

    SigNoz/signoz
    Configurations TSX
    2
    ⭐ 23369

    When configuration structures evolve, implement fallback mechanisms to handle both old and new formats grac...

    ⛶
  • avoid inline object creation

    SigNoz/signoz
    Performance Optimization TSX
    2
    ⭐ 23369

    Inline objects and functions created within render methods are recreated on every render, causing unnecessa...

    ⛶
  • Add tests for new code

    SigNoz/signoz
    Testing Go
    2
    ⭐ 23369

    All new code additions, regardless of complexity, should include corresponding unit tests to ensure functio...

    ⛶
  • CUDA compatibility verification

    sgl-project/sglang
    AI Dockerfile
    2
    ⭐ 17245

    When modifying CUDA versions or GPU architecture configurations in AI/ML projects, verify compatibility acr...

    ⛶
  • consolidate duplicated logic

    sgl-project/sglang
    Code Style CUDA
    2
    ⭐ 17245

    When you identify duplicated code patterns across different branches or functions, consolidate the shared l...

    ⛶
  • Avoid broad exception catching

    sgl-project/sglang
    Error Handling Python
    2
    ⭐ 17245

    Avoid using overly broad exception handling like `except Exception` as it can mask specific errors and make...

    ⛶
  • AI model documentation consistency

    sgl-project/sglang
    AI Other
    2
    ⭐ 17245

    Ensure consistent parameter names and configuration instructions across AI model documentation. Inconsisten...

    ⛶
  • AI dependency justification

    sgl-project/sglang
    AI Toml
    2
    ⭐ 17245

    When modifying AI library dependencies, always provide clear justification for version choices, especially ...

    ⛶
  • validate subprocess errors comprehensively

    servo/servo
    Error Handling Python
    2
    ⭐ 32962

    When executing external commands via subprocess, don't rely solely on return codes for error detection. Som...

    ⛶
  • Network request configuration

    servo/servo
    Networking Rust
    2
    ⭐ 32962

    When creating network requests, ensure all security-sensitive parameters are properly configured including ...

    ⛶
  • implement security validation

    servo/servo
    Security Other
    2
    ⭐ 32962

    Ensure all security-related functionality includes complete validation checks and proper testing. This appl...

    ⛶
  • enhance testing interfaces

    servo/servo
    Testing Python
    2
    ⭐ 32962

    Design testing tool interfaces to be both flexible and discoverable. Support multiple keyword variations fo...

    ⛶
  • configuration parameter handling

    servo/servo
    Configurations Python
    2
    ⭐ 32962

    When working with configuration parameters and values, follow these best practices to ensure maintainable a...

    ⛶
  • Algorithm edge case validation

    servo/servo
    Algorithms Other
    2
    ⭐ 32962

    Ensure algorithmic implementations properly handle edge cases and boundary conditions before considering th...

    ⛶
  • maintain proper formatting

    serverless/serverless
    Code Style Markdown
    2
    ⭐ 46810

    Ensure code and configuration files follow proper formatting standards that maintain both syntactic validit...

    ⛶
  • maintain naming consistency

    serverless/serverless
    Naming Conventions Markdown
    2
    ⭐ 46810

    Ensure consistent naming patterns across related components and configurations. When naming properties, met...

    ⛶
  • maintain configuration standards

    serverless/serverless
    Configurations Yaml
    2
    ⭐ 46810

    Ensure configuration files maintain both consistency and currency across all services. Configuration values...

    ⛶
  • explicit observability configuration

    serverless/serverless
    Observability Markdown
    2
    ⭐ 46810

    Ensure observability features are configured explicitly with clear documentation about their scope and impa...

    ⛶
  • Complete CI/CD documentation

    serverless/serverless
    CI/CD Markdown
    2
    ⭐ 46810

    Ensure all CI/CD documentation is comprehensive and technically accurate, covering complete workflows and t...

    ⛶
  • prefer marketplace actions

    oraios/serena
    CI/CD Yaml
    2
    ⭐ 14465

    Before implementing custom tool installation steps in GitHub Actions workflows, check if there's an existin...

    ⛶
  • Inline configuration dictionaries

    oraios/serena
    Configurations Json
    2
    ⭐ 14465

    Avoid storing simple configuration data in separate JSON files. Instead, define configuration as Python dic...

    ⛶
  • Use acks_late for reliability

    getsentry/sentry
    Celery Python
    2
    ⭐ 41297

    Configure Celery tasks with `acks_late=True` when task reliability is critical and you prefer to risk dupli...

    ⛶
  • Reduce code nesting

    getsentry/sentry
    Code Style Python
    2
    ⭐ 41297

    Excessive indentation makes code harder to read and understand. Two common techniques can help flatten your...

    ⛶
  • Keep testing dependencies current

    getsentry/sentry-php
    Testing Json
    2
    ⭐ 1873

    Regularly update testing framework dependencies (PHPUnit, PHPStan, etc.) to maintain compatibility with you...

    ⛶
  • Ensure test isolation

    getsentry/sentry-php
    Testing Other
    2
    ⭐ 1873

    Tests should be independent and isolated from each other to prevent state leakage and ensure reliable resul...

    ⛶
  • Dynamic error configuration

    getsentry/sentry-php
    Error Handling Markdown
    2
    ⭐ 1873

    Design error handling systems that respect runtime changes to error settings rather than fixing configurati...

    ⛶
  • Document configuration comprehensively

    getsentry/sentry-php
    Configurations Markdown
    2
    ⭐ 1873

    When adding or modifying configuration options, ensure they are documented with complete context. Group rel...

    ⛶
  • Optimize lookup operations

    getsentry/sentry
    Algorithms TSX
    2
    ⭐ 41297

    Choose appropriate data structures to minimize computational complexity when performing lookups. Prefer dir...

    ⛶
  • Migration model imports

    getsentry/sentry
    Migrations Python
    2
    ⭐ 41297

    When writing Django migrations, avoid importing and referencing external models directly. Django migrations...

    ⛶
  • Meaningful test design

    getsentry/sentry
    Testing TypeScript
    2
    ⭐ 41297

    Write tests that focus on unique edge cases and avoid redundancy. When designing test suites: 1. Consolida...

    ⛶
  • Validate CI pipeline inputs

    semgrep/semgrep
    CI/CD Python
    2
    ⭐ 12598

    Always validate and sanitize dynamic inputs in CI/CD pipelines before using them in URLs, file operations, ...

    ⛶
  • Use proper URI parsing

    semgrep/semgrep
    Networking Other
    2
    ⭐ 12598

    When working with URLs and URIs in networking code, use proper URI parsing libraries and types instead of s...

    ⛶
  • use consistent JavaScript syntax

    semgrep/semgrep
    Networking JavaScript
    2
    ⭐ 12598

    Maintain consistent use of modern JavaScript syntax throughout networking code to improve reliability and m...

    ⛶
  • use appropriate test markers

    semgrep/semgrep
    Testing Python
    2
    ⭐ 12598

    Test markers and annotations should match the test type and context they're applied to. Different test cate...

    ⛶
  • justify error handling design

    semgrep/semgrep
    Error Handling Python
    2
    ⭐ 12598

    When implementing error handling mechanisms, ensure that design decisions are well-justified and properly r...

    ⛶
  • CI blocking with overrides

    strands-agents/sdk-python
    CI/CD Yaml
    2
    ⭐ 4044

    When implementing CI checks that can block pull request merges, always provide clear override mechanisms fo...

    ⛶
  • Balance configuration practicality

    strands-agents/sdk-python
    Configurations Toml
    2
    ⭐ 4044

    When making configuration changes, balance technical best practices with developer workflow requirements an...

    ⛶
  • AI dependency management

    strands-agents/sdk-python
    AI Toml
    2
    ⭐ 4044

    When integrating AI libraries and SDKs, carefully manage dependencies by pinning versions with upper bounds...

    ⛶
  • Synchronize configuration files

    rust-lang/rust
    Configurations Json
    2
    ⭐ 105254

    Ensure all related configuration files are updated consistently when making changes to dependencies, versio...

    ⛶
  • Optimize dependency configurations

    rust-lang/rust
    Configurations Toml
    2
    ⭐ 105254

    When configuring project dependencies, be mindful of feature flags that may introduce unnecessary build dep...

    ⛶
  • Normalize variable test output

    rust-lang/rust
    Testing Other
    2
    ⭐ 105254

    When writing tests that capture output (like UI tests, stderr, or stdout), ensure you normalize any variabl...

    ⛶
  • Conditional CI resource management

    rust-lang/rust
    CI/CD Yaml
    2
    ⭐ 105254

    Configure CI workflows to intelligently manage system resources through conditional execution rather than d...

    ⛶
  • Use utility macros

    dotnet/runtime
    Code Style C
    2
    ⭐ 16578

    Use predefined utility macros for common operations instead of repeating manual calculations throughout you...

    ⛶
  • Platform-aware algorithm optimization

    dotnet/runtime
    Algorithms Txt
    2
    ⭐ 16578

    When implementing performance-critical algorithms, design your code to detect and utilize platform-specific...

    ⛶
  • Optimize aligned SIMD operations

    dotnet/runtime
    Performance Optimization C
    2
    ⭐ 16578

    Always use proper memory alignment for SIMD (Single Instruction, Multiple Data) operations to maximize perf...

    ⛶
  • Names reflect actual purpose

    dotnet/runtime
    Naming Conventions Other
    2
    ⭐ 16578

    Name variables, properties, and functions to accurately reflect their purpose and actual usage in code, not...

    ⛶
  • Memory barrier pairing

    dotnet/runtime
    Concurrency Other
    2
    ⭐ 16578

    When implementing low-level synchronization mechanisms in multi-threaded code, ensure that memory barriers ...

    ⛶
  • Maintain configuration compatibility

    dotnet/runtime
    Configurations Txt
    2
    ⭐ 16578

    When modifying configuration systems, prioritize backward compatibility unless there's an explicit breaking...

    ⛶
  • Honor API contracts

    dotnet/runtime
    API C#
    2
    ⭐ 16578

    When implementing or modifying APIs, carefully preserve the historical behavior and semantic contracts of e...

    ⛶
  • Feature flag implementation

    dotnet/runtime
    Configurations C#
    2
    ⭐ 16578

    When implementing feature flags, ensure consistency between runtime and compiled scenarios. Feature switche...

    ⛶
  • Explicit API versioning

    dotnet/runtime
    API Other
    2
    ⭐ 16578

    When extending interfaces with new methods or functionality, always implement proper versioning to ensure c...

    ⛶
  • Enable configurable instrumentation

    dotnet/runtime
    Performance Optimization Other
    2
    ⭐ 16578

    Always provide configurable options for performance instrumentation and hardware acceleration in your codeb...

    ⛶
  • Document non-obvious logic

    dotnet/runtime
    Documentation C
    2
    ⭐ 16578

    Add clear comments explaining the purpose and reasoning behind complex or non-obvious code logic. Comments ...

    ⛶
  • Document function contracts

    dotnet/runtime
    Documentation C++
    2
    ⭐ 16578

    Always document function contracts completely, even when surrounding code lacks documentation. Include head...

    ⛶
  • Centralize platform configurations

    dotnet/runtime
    Configurations C
    2
    ⭐ 16578

    Platform-specific code and API usage should be centralized in designated configuration files rather than sc...

    ⛶
  • Test edge cases

    astral-sh/ruff
    Testing Python
    2
    ⭐ 40619

    When writing tests, prioritize coverage of edge cases and non-standard code patterns to ensure robust funct...

    ⛶
  • Single yield algorithm

    astral-sh/ruff
    Algorithms Python
    2
    ⭐ 40619

    Context managers must follow a crucial algorithmic constraint: each execution path must yield exactly once....

    ⛶
  • Logical content organization

    astral-sh/ruff
    Code Style Markdown
    2
    ⭐ 40619

    Organize code and documentation logically based on functionality and dependencies. Place files in directori...

    ⛶
  • Clear and relevant comments

    astral-sh/ruff
    Code Style Python
    2
    ⭐ 40619

    Ensure all comments in the codebase provide value and clarity rather than creating confusion. Remove commen...

    ⛶
  • Prioritize code legibility

    TanStack/router
    Code Style TSX
    2
    ⭐ 11590

    Write clear, explicit code that prioritizes readability over brevity. Remove unnecessary operations and use...

    ⛶
  • Optimize React patterns

    TanStack/router
    React TypeScript
    2
    ⭐ 11590

    Prefer derived values over state and use appropriate React hooks for better performance and cleaner code. W...

    ⛶
  • optimize file-based routing

    TanStack/router
    Next TypeScript
    2
    ⭐ 11590

    Implement lazy loading patterns and strategic code-splitting in file-based routing systems to improve perfo...

    ⛶
  • memoize for render optimization

    TanStack/router
    Performance Optimization TSX
    2
    ⭐ 11590

    Use React memoization techniques strategically to prevent unnecessary re-renders and recomputations when va...

    ⛶
  • Intentional async usage

    TanStack/router
    Concurrency TypeScript
    2
    ⭐ 11590

    Be deliberate about when to use the `async` keyword and `await` expressions. Making a function `async` chan...

    ⛶
  • defensive null checking

    TanStack/router
    Null Handling Markdown
    2
    ⭐ 11590

    Always perform explicit null and undefined checks before accessing object properties or methods to prevent ...

    ⛶
  • comprehensive test validation

    TanStack/router
    Testing Json
    2
    ⭐ 11590

    Tests should validate all relevant aspects of the system to ensure comprehensive coverage. This includes in...

    ⛶
  • Clear contextual error messages

    TanStack/router
    Error Handling TSX
    2
    ⭐ 11590

    Error messages should be specific, contextually relevant, and provide actionable guidance to developers. Av...

    ⛶
  • break complex expressions

    TanStack/router
    Code Style TypeScript
    2
    ⭐ 11590

    Break down complex boolean expressions and conditions into well-named intermediate variables to improve cod...

    ⛶
  • avoid unnecessary workflow restrictions

    TanStack/router
    CI/CD Yaml
    2
    ⭐ 11590

    Remove unnecessary approval gates, custom tokens, and restrictive conditions in CI/CD workflows when existi...

    ⛶
  • Avoid repeated object creation

    TanStack/router
    Performance Optimization TypeScript
    2
    ⭐ 11590

    Prevent performance degradation by avoiding the creation of functions, objects, regular expressions, and ot...

    ⛶
  • Verify documentation references

    RooCodeInc/Roo-Code
    Documentation Markdown
    2
    ⭐ 17288

    Ensure all references in documentation (file paths, commands, code examples) actually exist in the codebase...

    ⛶
  • Sanitize user inputs

    RooCodeInc/Roo-Code
    Security JavaScript
    2
    ⭐ 17288

    Always validate and sanitize user-provided inputs before using them in security-sensitive operations to pre...

    ⛶
  • Avoid hardcoded configurations

    RooCodeInc/Roo-Code
    Configurations JavaScript
    2
    ⭐ 17288

    Always extract configuration values from appropriate sources (config files, environment variables, etc.) ra...

    ⛶
  • Separate multiple imports

    smallcloudai/refact
    Code Style Python
    2
    ⭐ 3114

    When importing multiple items from the same module, use separate import statements instead of combining the...

    ⛶
  • prefer simpler implementations

    smallcloudai/refact
    Code Style Rust
    2
    ⭐ 3114

    When writing code, favor simpler, more straightforward implementations over complex ones. Look for opportun...

    ⛶
  • optimize timing intervals

    smallcloudai/refact
    Performance Optimization Rust
    2
    ⭐ 3114

    Choose appropriate timing intervals for asynchronous operations to improve performance and responsiveness. ...

    ⛶
  • Follow API design conventions

    smallcloudai/refact
    API Python
    2
    ⭐ 3114

    Ensure API endpoints adhere to established design conventions including proper HTTP methods, authorization ...

    ⛶
  • Ensure semantic naming clarity

    smallcloudai/refact
    Naming Conventions Rust
    2
    ⭐ 3114

    Names should clearly communicate their actual behavior and preserve sufficient context for meaningful ident...

    ⛶
  • Complete model configurations

    smallcloudai/refact
    Configurations Markdown
    2
    ⭐ 3114

    When adding new models to configuration files, ensure all required configuration fields are populated, not ...

    ⛶
  • avoid problematic identifier names

    smallcloudai/refact
    Naming Conventions Python
    2
    ⭐ 3114

    Choose identifier names that avoid system compatibility issues and follow proper naming conventions. Avoid ...

    ⛶
  • Write readable conditionals

    facebook/react
    Code Style JavaScript
    2
    ⭐ 237000

    Structure conditionals for maximum clarity and comprehension. Avoid unnecessary negation in boolean express...

    ⛶
  • Standardize URL handling

    facebook/react
    Networking JavaScript
    2
    ⭐ 237000

    When working with URLs in networking code, always use the standard `URL` constructor to properly resolve re...

    ⛶
  • Structure documentation interfaces

    remix-run/react-router
    Documentation TSX
    2
    ⭐ 55270

    Organize interfaces and component props documentation to improve API clarity and maintainability. Extract r...

    ⛶
  • Remove obsolete configuration options

    remix-run/react-router
    Configurations TSX
    2
    ⭐ 55270

    Proactively remove configuration options that are no longer functional or relevant to prevent developer con...

    ⛶
  • Pin problematic dependencies

    remix-run/react-router
    CI/CD Yaml
    2
    ⭐ 55270

    When external dependencies or tools in CI/CD pipelines have known regressions or bugs, pin them to stable v...

    ⛶
  • organize test scripts properly

    remix-run/react-router
    Testing Json
    2
    ⭐ 55270

    Keep base test scripts generic and create specialized variants for specific workflows. Base scripts like "t...

    ⛶
  • Implement recursive safeguards

    remix-run/react-router
    Algorithms TypeScript
    2
    ⭐ 55270

    When implementing recursive algorithms, always include cycle detection and early termination conditions to ...

    ⛶
  • Handle SSR hydration mismatches

    remix-run/react-router
    Next TSX
    2
    ⭐ 55270

    When implementing server-side rendering, proactively handle scenarios where server and client rendering may...

    ⛶
  • distinguish falsy vs nullish

    remix-run/react-router
    Null Handling TSX
    2
    ⭐ 55270

    When handling potentially null or undefined values, carefully choose between the logical OR (`||`) and null...

    ⛶
  • Configure React build environments

    remix-run/react-router
    React JavaScript
    2
    ⭐ 55270

    Ensure proper environment and module configuration for React applications to load the correct versions and ...

    ⛶
  • configure build tools properly

    remix-run/react-router
    CI/CD JavaScript
    2
    ⭐ 55270

    Ensure build configurations use proper package.json exports fields and TypeScript settings to avoid hard-co...

    ⛶
  • Complete accurate documentation

    remix-run/react-router
    Documentation Json
    2
    ⭐ 55270

    Documentation should provide complete, accurate guidance that doesn't mislead developers about correct usag...

    ⛶
  • avoid timing-dependent tests

    remix-run/react-router
    Testing TypeScript
    2
    ⭐ 55270

    Tests should not rely on fixed delays, arbitrary timeouts, or assume deterministic ordering of asynchronous...

    ⛶
  • Proper Usage of React Hooks

    facebook/react
    React TypeScript
    2
    ⭐ 237000

    When using the React library in TypeScript, ensure that you are correctly implementing the recommended Reac...

    ⛶
  • Proper Scoping and Usage of React Variables

    facebook/react
    React TypeScript
    2
    ⭐ 237000

    When implementing React components, it is important to ensure that variables are properly scoped and used t...

    ⛶
  • Validate configuration formats

    facebook/react-native
    Configurations Yaml
    2
    ⭐ 123178

    Ensure configuration values use the correct data format expected by target systems and avoid duplication by...

    ⛶
  • Use proper documentation format

    facebook/react-native
    Documentation Kotlin
    2
    ⭐ 123178

    Use the appropriate documentation format for the target programming language. In Kotlin files, use KDoc for...

    ⛶
  • Use Kotlin testing idioms

    facebook/react-native
    Testing Kotlin
    2
    ⭐ 123178

    When writing tests in Kotlin, prefer Kotlin-specific testing libraries and language features over their Jav...

    ⛶
  • Use appropriate log levels

    facebook/react-native
    Logging JavaScript
    2
    ⭐ 123178

    Choose logging levels that match the intended audience and purpose of the message. Use debug or silent logg...

    ⛶
  • Replace magic numbers

    facebook/react-native
    Code Style Java
    2
    ⭐ 123178

    Replace magic numbers with named constants to improve code readability and maintainability. Magic numbers m...

    ⛶
  • prefer explicit code

    facebook/react-native
    Code Style C++
    2
    ⭐ 123178

    Write code that explicitly states its intent rather than relying on implicit behavior or complex constructs...

    ⛶
  • platform-aware configuration messages

    facebook/react-native
    Configurations C++
    2
    ⭐ 123178

    Configuration-related error messages, troubleshooting guidance, and feature flags should be accurate and ac...

    ⛶
  • platform API consistency

    facebook/react-native
    Networking Java
    2
    ⭐ 123178

    When implementing cross-platform functionality, prioritize consistency and avoid replicating platform-speci...

    ⛶
  • Optimize CI platform builds

    facebook/react-native
    CI/CD JavaScript
    2
    ⭐ 123178

    When configuring CI/CD build pipelines, limit builds to only the platforms your project actively supports a...

    ⛶
  • Optimize algorithmic choices

    facebook/react-native
    Algorithms Objective-C
    2
    ⭐ 123178

    When implementing algorithms, prioritize both correctness and efficiency by selecting the most appropriate ...

    ⛶
  • manage component state dependencies

    facebook/react-native
    React Java
    2
    ⭐ 123178

    Ensure React components have all necessary state information before rendering and that lifecycle events don...

    ⛶
  • maintain cross-platform API consistency

    facebook/react-native
    API JavaScript
    2
    ⭐ 123178

    When designing APIs that work across multiple platforms, ensure consistent return types and behavior to avo...

    ⛶
  • maintain API backwards compatibility

    facebook/react-native
    API Java
    2
    ⭐ 123178

    When modifying existing public APIs, prioritize backwards compatibility to avoid breaking external consumer...

    ⛶
  • Follow existing naming conventions

    facebook/react-native
    Naming Conventions Java
    2
    ⭐ 123178

    When adding new variables, methods, or constants, always follow the naming conventions already established ...

    ⛶
  • Follow established naming conventions

    facebook/react-native
    Naming Conventions Ruby
    2
    ⭐ 123178

    Ensure all identifiers (variables, methods, classes) adhere to the project's established naming conventions...

    ⛶
  • Environment variable validation

    facebook/react-native
    Configurations Ruby
    2
    ⭐ 123178

    Environment variables should be properly validated with correct type checking and without redundant conditi...

    ⛶
  • configuration consistency management

    facebook/react-native
    Configurations Java
    2
    ⭐ 123178

    Maintain consistent configuration references across all code branches and document temporary configuration ...

    ⛶
  • Component initialization state

    facebook/react-native
    React Other
    2
    ⭐ 123178

    Ensure components properly handle initialization state during their lifecycle, particularly when being recy...

    ⛶
  • avoid unnecessary component complexity

    facebook/react-native
    React Kotlin
    2
    ⭐ 123178

    When designing React components and their APIs, resist the temptation to add features, props, or methods th...

    ⛶
  • avoid unnecessary allocations

    facebook/react-native
    Algorithms C++
    2
    ⭐ 123178

    When implementing algorithms and data structure operations, avoid unnecessary memory allocations, object cr...

    ⛶
  • Multi-stack config settings

    facebook/react
    Configurations Other
    2
    ⭐ 237000

    When creating configuration files for development environments that use multiple technology stacks, ensure ...

    ⛶
  • Explicit CSP nonce management

    facebook/react
    Security JavaScript
    2
    ⭐ 237000

    When implementing Content Security Policy (CSP) protections, always explicitly pass nonce values to compone...

    ⛶
  • Dry configuration patterns

    facebook/react
    Configurations JavaScript
    2
    ⭐ 237000

    Apply DRY (Don't Repeat Yourself) principles to all configuration files to improve maintainability. Extract...

    ⛶
  • Document code intent

    facebook/react
    Documentation JavaScript
    2
    ⭐ 237000

    Add clear comments that explain the intent and behavior of code that might not be immediately obvious to ot...

    ⛶
  • Defensive Handling of Nullable React Components

    facebook/react
    React TypeScript
    2
    ⭐ 237000

    When working with React components that may return null or undefined values, implement defensive coding pat...

    ⛶
  • Test helpers for maintainability

    rails/rails
    Testing Other
    2
    ⭐ 57027

    Create reusable helper methods for common testing operations to improve test maintainability and consistenc...

    ⛶
  • AI library version compatibility

    QwenLM/Qwen3
    AI Other
    2
    ⭐ 24226

    When documenting AI/ML model deployment and inference procedures, always test and specify compatible librar...

    ⛶
  • Spring DI precedence rules

    quarkusio/quarkus
    Spring Java
    2
    ⭐ 14667

    When developing Quarkus extensions that interact with classes containing Spring annotations (like `@Service...

    ⛶
  • Prevent metrics cardinality explosion

    quarkusio/quarkus
    Observability Java
    2
    ⭐ 14667

    When implementing metrics and telemetry in your application, avoid using dynamic values like path parameter...

    ⛶
  • Optimize elimination paths

    quarkusio/quarkus
    Algorithms Other
    2
    ⭐ 14667

    When implementing algorithms that process large data structures or complex computational paths, prioritize ...

    ⛶
  • Keep configurations current

    quarkusio/quarkus
    Configurations Yaml
    2
    ⭐ 14667

    Always use the latest stable and supported versions in configuration files. This applies to runtime environ...

    ⛶
  • Document observability context flows

    quarkusio/quarkus
    Observability Other
    2
    ⭐ 14667

    When implementing observability features like OpenTelemetry exporters, metrics collection, or distributed t...

    ⛶
  • Design fluent HTTP APIs

    quarkusio/quarkus
    API Other
    2
    ⭐ 14667

    When designing HTTP-related APIs, prioritize readability and intuitiveness through well-crafted fluent inte...

    ⛶
  • Consolidate duplicate configurations

    quarkusio/quarkus
    Configurations Txt
    2
    ⭐ 14667

    Maintain a single source of truth for configuration files instead of duplicating them across the codebase. ...

    ⛶
  • Type-appropriate null representation

    pytorch/pytorch
    Null Handling C++
    2
    ⭐ 91345

    Always use type-appropriate mechanisms to represent the absence of a value. For objects, use default constr...

    ⛶
  • Reuse existing algorithms

    pytorch/pytorch
    Algorithms C++
    2
    ⭐ 91345

    Before implementing common algorithms or utilities, check if the codebase already contains an appropriate i...

    ⛶
  • Preserve API compatibility

    pytorch/pytorch
    API Other
    2
    ⭐ 91345

    When modifying existing APIs, always prioritize backward compatibility to avoid breaking client code. Befor...

    ⛶
  • Optimize container operations

    pytorch/pytorch
    Performance Optimization Other
    2
    ⭐ 91345

    Minimize CPU overhead in container operations by using efficient data structure patterns: 1. **Use static ...

    ⛶
  • Hardware acceleration considerations

    pytorch/pytorch
    AI Other
    2
    ⭐ 91345

    When implementing hardware-accelerated operations for AI models, ensure support for the latest architecture...

    ⛶
  • Descriptive unambiguous names

    pytorch/pytorch
    Naming Conventions C++
    2
    ⭐ 91345

    Always use descriptive variable names that clearly indicate their purpose without requiring readers to chec...

    ⛶
  • Choose data structures wisely

    pytorch/pytorch
    Algorithms Other
    2
    ⭐ 91345

    When designing algorithms, select data structures that accommodate all possible scenarios, not just the com...

    ⛶
  • Choose appropriate pointer types

    pytorch/pytorch
    Null Handling Other
    2
    ⭐ 91345

    Select the right pointer type based on ownership semantics to prevent null reference issues and memory leak...

    ⛶
  • Centralize configuration detection

    pytorch/pytorch
    Configurations Shell
    2
    ⭐ 91345

    Always use centralized configuration detection mechanisms (like CMake finder modules) instead of hardcoding...

    ⛶
  • Actionable error messages

    pytorch/pytorch
    Pytorch C++
    2
    ⭐ 91345

    When writing error messages in PyTorch code, include not only what went wrong but also clear guidance on ho...

    ⛶
  • Specific types for performance

    pydantic/pydantic
    Performance Optimization Markdown
    2
    ⭐ 24377

    Using concrete types instead of abstract container classes in data models improves validation performance. ...

    ⛶
  • Enforce style with linters

    pydantic/pydantic
    Code Style Toml
    2
    ⭐ 24377

    Use automated linting tools to enforce consistent code style across the project, but be deliberate about wh...

    ⛶
  • Data structure correctness

    pydantic/pydantic
    Algorithms Markdown
    2
    ⭐ 24377

    Ensure data structures are accurately represented with their proper constraints and valid implementations, ...

    ⛶
  • Avoid unnecessary operations

    pydantic/pydantic
    Performance Optimization Python
    2
    ⭐ 24364

    Check conditions early to skip unnecessary processing and reuse computed values where possible to optimize ...

    ⛶
  • Avoid shared structure mutation

    pydantic/pydantic
    Algorithms Python
    2
    ⭐ 24364

    When implementing algorithms that manipulate complex nested data structures, avoid directly mutating shared...

    ⛶
  • Write objectively

    prowler-cloud/prowler
    Documentation Markdown
    2
    ⭐ 11834

    Use an impersonal, objective tone in technical documentation. Avoid using second-person pronouns ("you") an...

    ⛶
  • Task signature methods

    prowler-cloud/prowler
    Celery Python
    2
    ⭐ 11834

    When chaining Celery tasks, choose the correct signature method: - Use `.s()` when a task needs the output ...

    ⛶
  • Prefer server components

    prowler-cloud/prowler
    Next TSX
    2
    ⭐ 11834

    Default to server components in Next.js applications to maximize the benefits of server-side rendering. Avo...

    ⛶
  • Parameterize configuration values

    prowler-cloud/prowler
    Configurations Dockerfile
    2
    ⭐ 11834

    Always extract configuration values (like versions, paths, or other changeable settings) into parameters ra...

    ⛶
  • Log exceptions with context

    prowler-cloud/prowler
    Logging Python
    2
    ⭐ 11834

    When handling exceptions in your code, ensure they are properly logged with sufficient context to aid debug...

    ⛶
  • Format AI code identifiers

    prowler-cloud/prowler
    AI Markdown
    2
    ⭐ 11834

    When documenting AI systems, always format code identifiers, function names, agent names, model names, and ...

    ⛶
  • Flexible AI model versions

    prowler-cloud/prowler
    AI Python
    2
    ⭐ 11834

    When integrating LLM or AI models into your application, implement model selection in a way that accommodat...

    ⛶
  • Environment variables for configurations

    prowler-cloud/prowler
    Configurations TSX
    2
    ⭐ 11834

    Store all configurable values such as URLs, API endpoints, and external service locations in environment va...

    ⛶
  • Endpoints for evolving data

    prowler-cloud/prowler
    API TypeScript
    2
    ⭐ 11834

    Design dedicated API endpoints for data that changes frequently or grows over time, rather than hardcoding ...

    ⛶
  • Enable database resilience

    prowler-cloud/prowler
    Database Json
    2
    ⭐ 11834

    Always configure appropriate resilience features for database services to ensure data durability and high a...

    ⛶
  • Consistent environment variable naming

    prowler-cloud/prowler
    Naming Conventions Other
    2
    ⭐ 11834

    When naming environment variables, ensure that names are both technically accurate and follow established p...

    ⛶
  • Configure observability variables

    prowler-cloud/prowler
    Observability Other
    2
    ⭐ 11834

    Always define all necessary environment variables for observability tools in configuration files, even if u...

    ⛶
  • Use proper configuration tooling

    prometheus/prometheus
    Configurations Shell
    2
    ⭐ 59616

    When working with configuration files and values, prefer dedicated tools and canonical sources over manual ...

    ⛶
  • test practical monitoring scenarios

    prometheus/prometheus
    Observability Other
    2
    ⭐ 59616

    When writing tests for observability features like metrics, functions, and alerting expressions, ensure tes...

    ⛶
  • Make build steps visible

    prometheus/prometheus
    CI/CD Other
    2
    ⭐ 59616

    Build processes should provide clear, visible feedback about the operations being performed rather than sup...

    ⛶
  • leverage standard algorithms

    prometheus/prometheus
    Algorithms Shell
    2
    ⭐ 59616

    When implementing common algorithmic tasks like string parsing, sorting, or comparison operations, prefer b...

    ⛶
  • consistent parameter naming

    prometheus/prometheus
    Naming Conventions Markdown
    2
    ⭐ 59616

    Maintain consistent naming and symbol choices throughout code and documentation, prioritizing readability a...

    ⛶
  • Centralize shared configurations

    prometheus/prometheus
    Configurations Other
    2
    ⭐ 59616

    When adding common functionality like help targets, build rules, or other configuration elements that will ...

    ⛶
  • Validate sensitive operations

    prisma/prisma
    Security TypeScript
    2
    ⭐ 42967

    Always implement safety checks before performing operations that could expose sensitive data or cause destr...

    ⛶
  • Research configuration format support

    prisma/prisma
    Configurations Other
    2
    ⭐ 42967

    When migrating configuration files to newer formats, research current ecosystem support before defaulting t...

    ⛶
  • Prioritize searchable names

    prisma/prisma
    Naming Conventions Yaml
    2
    ⭐ 42967

    Choose names that are easily searchable and immediately understandable, avoiding unclear abbreviations and ...

    ⛶
  • Official product naming

    prisma/prisma
    Naming Conventions Markdown
    2
    ⭐ 42967

    When referencing external products, libraries, or services in documentation and code, always use their offi...

    ⛶
  • Document network configuration

    prisma/prisma
    Networking Yaml
    2
    ⭐ 42967

    When configuring network settings in containerized services, always document the reasoning behind specific ...

    ⛶
  • Document configuration alternatives

    prisma/prisma
    Configurations Markdown
    2
    ⭐ 42967

    When documenting configuration setup, provide multiple formats and approaches to accommodate different tool...

    ⛶
  • Design runtime-specific API exports

    prisma/prisma
    API Json
    2
    ⭐ 42967

    When designing APIs that need to work across different JavaScript runtimes (Node.js, edge environments, bro...

    ⛶
  • Accurate method descriptions

    prisma/prisma
    Documentation TypeScript
    2
    ⭐ 42967

    API documentation must precisely describe method behavior, especially return values and cardinality. Inaccu...

    ⛶
  • Vue syntax parsing robustness

    prettier/prettier
    Vue JavaScript
    2
    ⭐ 50772

    When processing Vue components, ensure parsing logic handles edge cases correctly and selects appropriate p...

    ⛶
  • Use example configuration files

    prettier/prettier
    Configurations Json
    2
    ⭐ 50772

    When providing team configuration files that developers might want to customize, use `.example` suffixes an...

    ⛶
  • Use descriptive names

    prettier/prettier
    Naming Conventions Markdown
    2
    ⭐ 50772

    Choose names that clearly communicate purpose and meaning rather than implementation details or obscure abb...

    ⛶
  • Use cross-platform commands

    prettier/prettier
    CI/CD Markdown
    2
    ⭐ 50772

    When writing CI/CD scripts and documentation, prefer Node.js APIs over shell commands for file operations t...

    ⛶
  • Test all variations

    prettier/prettier
    Testing Other
    2
    ⭐ 50772

    Ensure comprehensive test coverage by testing all behavioral variations, configuration options, and edge ca...

    ⛶
  • targeted CSS modifications

    prettier/prettier
    Code Style Css
    2
    ⭐ 50772

    Make targeted, purposeful CSS modifications that either enhance visual presentation or fix specific functio...

    ⛶
  • Document CI workflow rationale

    prettier/prettier
    CI/CD Yaml
    2
    ⭐ 50772

    Always include clear comments explaining the reasoning behind CI workflow decisions, including test environ...

    ⛶
  • cache invalidation strategy

    prettier/prettier
    Caching Markdown
    2
    ⭐ 50772

    Implement comprehensive cache invalidation mechanisms that automatically handle format changes between vers...

    ⛶
  • Benchmark performance optimizations

    prettier/prettier
    Performance Optimization Markdown
    2
    ⭐ 50772

    Always measure and validate performance optimizations with concrete benchmarks before implementing them. Pe...

    ⛶
  • Angular syntax parsing

    prettier/prettier
    Angular JavaScript
    2
    ⭐ 50772

    When implementing Angular syntax parsing, ensure robust handling of Angular-specific constructs by properly...

    ⛶
  • Verify error handling paths

    PostHog/posthog
    Error Handling TypeScript
    2
    ⭐ 28460

    When implementing error handling logic, ensure that both the behavior and reasoning are clear, and that err...

    ⛶
  • validate schema decisions

    PostHog/posthog
    Database Other
    2
    ⭐ 28460

    When reviewing database schema changes or data structure modifications, ensure that field inclusion/exclusi...

    ⛶
  • validate before use

    PostHog/posthog
    Null Handling TypeScript
    2
    ⭐ 28460

    Always validate that values are truthy or defined before using them, even when they are expected to exist. ...

    ⛶
  • Use error chain iterators

    PostHog/posthog
    Error Handling Rust
    2
    ⭐ 28460

    When traversing error chains in Rust, prefer using the `chain()` iterator method over manual source travers...

    ⛶
  • two-phase filtering algorithms

    PostHog/posthog
    Algorithms Python
    2
    ⭐ 28460

    When working with large datasets or complex matching operations, implement algorithms that use a two-phase ...

    ⛶
  • Test edge cases comprehensively

    PostHog/posthog
    Testing Python
    2
    ⭐ 28460

    Ensure your tests cover not just the happy path, but also edge cases, empty states, error conditions, and b...

    ⛶
  • Optimize database query patterns

    PostHog/posthog
    Database TypeScript
    2
    ⭐ 28460

    Avoid N+1 query problems and overly complex conditional SQL construction. When loading related data, prefer...

    ⛶
  • minimize expensive operations

    PostHog/posthog
    Performance Optimization TSX
    2
    ⭐ 28460

    Avoid triggering expensive operations (queries, API calls, computations) on every user input or state chang...

    ⛶
  • Local configuration exclusion

    PostHog/posthog
    Configurations Other
    2
    ⭐ 28460

    Exclude personal and local configuration files from version control while ensuring they are properly handle...

    ⛶
  • leverage framework capabilities

    PostHog/posthog
    Temporal Python
    2
    ⭐ 28460

    Structure workflows and activities to take full advantage of the orchestration framework's built-in capabil...

    ⛶
  • Keep state in Kea

    PostHog/posthog
    React TSX
    2
    ⭐ 28460

    React components should focus on presentation and user interaction, not state management logic. All state l...

    ⛶
  • Follow CSS naming patterns

    PostHog/posthog
    Naming Conventions Css
    2
    ⭐ 28460

    Maintain consistency with established CSS naming conventions already used in the codebase. For CSS classes,...

    ⛶
  • Environment-based configuration management

    PostHog/posthog
    Configurations TypeScript
    2
    ⭐ 28460

    Prefer environment variables over file mounting for configuration values, and avoid hardcoded environment-s...

    ⛶
  • Enrich telemetry context

    PostHog/posthog
    Observability Python
    2
    ⭐ 28460

    Always include relevant contextual metadata when capturing telemetry data (events, exceptions, logs, metric...

    ⛶
  • Configuration naming clarity

    PostHog/posthog
    Configurations TSX
    2
    ⭐ 28460

    Ensure configuration variable names, display labels, and feature flag names accurately reflect their actual...

    ⛶
  • API parameter semantics

    PostHog/posthog
    API TSX
    2
    ⭐ 28460

    Ensure API parameters have clear semantic meaning and avoid sending null values for optional fields. When d...

    ⛶
  • API initialization side effects

    PostHog/posthog
    API Html
    2
    ⭐ 28460

    When initializing API clients, prefer bootstrap/configuration patterns over method calls that may trigger u...

    ⛶
  • Add monitoring metrics

    PostHog/posthog
    Observability TypeScript
    2
    ⭐ 28460

    Critical code paths, especially error handling and exception scenarios, should include metrics or counters ...

    ⛶
  • Use consistent temporal types

    pola-rs/polars
    Temporal Rust
    2
    ⭐ 34296

    When implementing or modifying temporal operations, maintain consistent data types that align with existing...

    ⛶
  • Edge case algorithm handling

    pola-rs/polars
    Algorithms Markdown
    2
    ⭐ 34296

    When implementing algorithms, pay special attention to edge cases, particularly empty collections. Define a...

    ⛶
  • Cross-platform feature flags

    pola-rs/polars
    Configurations Markdown
    2
    ⭐ 34296

    When documenting package installation commands with feature flags, ensure compatibility across different op...

    ⛶
  • Verify configuration options

    python-poetry/poetry
    Configurations Other
    2
    ⭐ 33496

    Always verify that configuration file options and command flags are correct and properly documented. Incorr...

    ⛶
  • specify tool version requirements

    python-poetry/poetry
    CI/CD Markdown
    2
    ⭐ 33496

    When documenting CI/CD tools and integrations, always specify exact version requirements and compatibility ...

    ⛶
  • Pin tool versions explicitly

    python-poetry/poetry
    CI/CD Yaml
    2
    ⭐ 33496

    Always specify exact versions for tools and dependencies in CI/CD workflows to ensure reproducible builds a...

    ⛶
  • Network request configuration

    python-poetry/poetry
    Networking Markdown
    2
    ⭐ 33496

    When implementing or documenting network functionality, ensure proper configuration options are provided an...

    ⛶
  • consistent semantic naming

    python-poetry/poetry
    Naming Conventions Yaml
    2
    ⭐ 33496

    Names should follow established team conventions while accurately reflecting their purpose and functionalit...

    ⛶
  • Add missing code documentation

    python-poetry/poetry
    Documentation Python
    2
    ⭐ 33496

    Ensure all methods have docstrings and complex logic includes explanatory comments to help contributors und...

    ⛶
  • validate input rigorously

    microsoft/playwright
    Security TypeScript
    2
    ⭐ 76113

    Always validate and sanitize input data against established standards to prevent injection attacks and ensu...

    ⛶
  • Use semantically clear names

    microsoft/playwright
    Naming Conventions TSX
    2
    ⭐ 76113

    Names should clearly communicate their actual purpose and be consistent across similar contexts. Avoid name...

    ⛶
  • Secure authentication state files

    microsoft/playwright
    Security Markdown
    2
    ⭐ 76113

    Authentication state files (such as browser session files, cookies, or tokens) contain sensitive credential...

    ⛶
  • Python syntax consistency

    microsoft/playwright
    Naming Conventions Markdown
    2
    ⭐ 76113

    Ensure Python code follows proper naming conventions and syntax rules. Use snake_case for variable and para...

    ⛶
  • Justify dependency changes

    microsoft/playwright
    Configurations Json
    2
    ⭐ 76113

    Always provide clear justification when modifying dependency configurations, including version updates, dep...

    ⛶
  • Handle errors explicitly

    microsoft/playwright
    Error Handling TSX
    2
    ⭐ 76113

    Always provide explicit error handling instead of allowing silent failures or blank screens. Any place wher...

    ⛶
  • graceful process termination

    microsoft/playwright
    Error Handling JavaScript
    2
    ⭐ 76113

    Implement systematic cleanup mechanisms that handle process termination signals without generating excessiv...

    ⛶
  • Document network limitations

    microsoft/playwright
    Networking Markdown
    2
    ⭐ 76113

    When documenting network-related features, clearly specify compatibility constraints, browser limitations, ...

    ⛶
  • Document configuration formats explicitly

    microsoft/playwright
    Configurations Markdown
    2
    ⭐ 76113

    When documenting environment variables and configuration options, explicitly list all supported value forma...

    ⛶
  • Document build configuration changes

    microsoft/playwright
    CI/CD JavaScript
    2
    ⭐ 76113

    When modifying build tool configurations, especially during migrations, provide detailed technical justific...

    ⛶
  • Comprehensive contextual error handling

    microsoft/playwright
    Error Handling Other
    2
    ⭐ 76113

    Implement thorough error handling that goes beyond basic logging and provides contextually accurate, action...

    ⛶
  • API documentation precision

    microsoft/playwright
    API Markdown
    2
    ⭐ 76113

    API documentation must use specific, well-defined types instead of generic ones, and clearly define behavio...

    ⛶
  • API consistency and decoupling

    microsoft/playwright
    API TSX
    2
    ⭐ 76113

    APIs should maintain consistent behavior and avoid tight coupling to implementation details or environmenta...

    ⛶
  • organize import groups

    emcie-co/parlant
    Code Style TSX
    2
    ⭐ 12205

    Imports should be organized into distinct groups with proper spacing for better readability. Group all thir...

    ⛶
  • Make test descriptions specific

    emcie-co/parlant
    Documentation Other
    2
    ⭐ 12205

    Test scenarios and steps should use specific, descriptive language that clearly communicates what is being ...

    ⛶
  • Implement graceful error handling

    emcie-co/parlant
    Error Handling Other
    2
    ⭐ 12205

    Replace assertions, unhandled exceptions, and error-suppression mechanisms with proper error handling that ...

    ⛶
  • Document meaningful complexity

    emcie-co/parlant
    Documentation Python
    2
    ⭐ 12205

    Documentation should add genuine value by explaining non-obvious behavior, complex approaches, or important...

    ⛶
  • Configuration design clarity

    emcie-co/parlant
    Configurations Other
    2
    ⭐ 12205

    Design configuration with clear semantics and appropriate scope. Avoid global constants for values that can...

    ⛶
  • Use relative documentation links

    opentofu/opentofu
    Error Handling Other
    2
    ⭐ 25901

    When documenting error handling mechanisms, always use relative path references (`../path/to/file.mdx`) ins...

    ⛶
  • Review consistency assumptions

    opentofu/opentofu
    Database Markdown
    2
    ⭐ 25901

    Periodically reassess your database operations based on updated consistency guarantees offered by storage t...

    ⛶
  • Provider instance management

    opentofu/opentofu
    Configurations Other
    2
    ⭐ 25901

    Ensure proper configuration of provider instances when using environment-specific settings. When using `for...

    ⛶
  • Protect infrastructure secrets

    opentofu/opentofu
    Security Markdown
    2
    ⭐ 25901

    Infrastructure-as-code tools like OpenTofu may store sensitive information in plaintext state files, creati...

    ⛶
  • Document phased migration paths

    opentofu/opentofu
    Migrations Markdown
    2
    ⭐ 25901

    When replacing an existing system feature with a new implementation, provide a clear and well-documented ph...

    ⛶
  • Contextualize security findings

    opentofu/opentofu
    Security Yaml
    2
    ⭐ 25901

    When reporting security vulnerabilities, include sufficient context beyond just vulnerability IDs or codes....

    ⛶
  • Clear relationship descriptions

    opentofu/opentofu
    Algorithms Markdown
    2
    ⭐ 25901

    When documenting algorithms or data structures with graph-like relationships, use precise terminology to de...

    ⛶
  • Use proper testing frameworks

    open-telemetry/opentelemetry-python
    Testing Shell
    2
    ⭐ 2061

    Always leverage established testing frameworks and APIs over custom bash scripts or direct Python execution...

    ⛶
  • Track observability API changes

    open-telemetry/opentelemetry-python
    Observability Other
    2
    ⭐ 2061

    Stay informed about API changes in observability libraries like OpenTelemetry, especially during their acti...

    ⛶
  • Telemetry version pinning

    open-telemetry/opentelemetry-python
    Observability Txt
    2
    ⭐ 2061

    When specifying observability frameworks like OpenTelemetry in requirements files, use the compatible relea...

    ⛶
  • Adapt for linter compatibility

    open-telemetry/opentelemetry-python
    Code Style Other
    2
    ⭐ 2061

    When writing or modifying code, design patterns and templates to be compatible with linting tools. This is ...

    ⛶
  • Use authoritative data sources

    commaai/openpilot
    Networking Other
    2
    ⭐ 58214

    When working with network-related data, always read from the most direct and authoritative source available...

    ⛶
  • Platform-specific socket configuration

    commaai/openpilot
    Networking Python
    2
    ⭐ 58214

    When configuring TCP socket options, always check the platform and apply appropriate settings for each oper...

    ⛶
  • pin external action versions

    commaai/openpilot
    CI/CD Yaml
    2
    ⭐ 58214

    Always pin external GitHub Actions to specific commit hashes rather than using tags or branch names, and pr...

    ⛶
  • Parameterize hardcoded API values

    commaai/openpilot
    API Other
    2
    ⭐ 58214

    When designing APIs or interfaces, avoid hardcoding string literals, configuration values, or identifiers t...

    ⛶
  • optimize mathematical mappings

    commaai/openpilot
    Algorithms Other
    2
    ⭐ 58214

    Use consistent units and data representations throughout mathematical calculations to avoid unnecessary com...

    ⛶
  • Optimize git network operations

    commaai/openpilot
    Networking Shell
    2
    ⭐ 58214

    When performing git operations that involve network communication, use proper syntax and efficient strategi...

    ⛶
  • maintain CI/CD parity

    commaai/openpilot
    CI/CD Shell
    2
    ⭐ 58214

    Ensure CI/CD pipeline tools run with the same configuration, flags, and behavior as developers use locally....

    ⛶
  • Explicit value specifications

    commaai/openpilot
    Null Handling Other
    2
    ⭐ 58214

    Always use explicit value specifications and type-safe handling to prevent undefined behavior and ensure pr...

    ⛶
  • Design convenient APIs

    commaai/openpilot
    API Python
    2
    ⭐ 58214

    APIs should provide convenient methods that handle common operations directly, rather than requiring users ...

    ⛶
  • Consistent terminology choices

    commaai/openpilot
    Naming Conventions TypeScript
    2
    ⭐ 58214

    When introducing new terminology or naming conventions, ensure consistency with existing patterns in the co...

    ⛶
  • Centralize error handling utilities

    commaai/openpilot
    Error Handling Other
    2
    ⭐ 58214

    Create reusable error handling functions that accept custom error callbacks instead of duplicating error ha...

    ⛶
  • Cache expensive operations

    commaai/openpilot
    Performance Optimization Other
    2
    ⭐ 58214

    Identify operations that are expensive and called frequently, then optimize them by caching results, moving...

    ⛶
  • Extract duplicated logic

    opengrep/opengrep
    Code Style Other
    2
    ⭐ 1546

    When you notice the same code pattern appearing in multiple places, extract it into a reusable function rat...

    ⛶
  • Ensure cross-platform compatibility

    opengrep/opengrep
    Code Style Shell
    2
    ⭐ 1546

    Write code that works consistently across different platforms and environments. Avoid using Unicode symbols...

    ⛶
  • Thread-safe resource cleanup

    opencv/opencv
    Concurrency Java
    2
    ⭐ 82865

    When implementing resource cleanup in concurrent applications, avoid using deprecated finalizers and instea...

    ⛶
  • Maintain build compatibility

    opencv/opencv
    CI/CD Txt
    2
    ⭐ 82865

    When modifying build scripts or configurations, ensure compatibility across all supported environments and ...

    ⛶
  • Document configuration version requirements

    opencv/opencv
    Configurations Python
    2
    ⭐ 82865

    Make build configuration options explicit and document their version dependencies. When introducing configu...

    ⛶
  • Check nulls directly

    opencv/opencv
    Null Handling Other
    2
    ⭐ 82865

    Check objects directly for null/empty state instead of using separate tracking variables. Always perform nu...

    ⛶
  • validate AI model configurations

    sst/opencode
    AI TypeScript
    2
    ⭐ 28213

    When adding or modifying AI model configurations, ensure proper validation through both pattern-based match...

    ⛶
  • Separate configuration concerns

    sst/opencode
    Configurations Go
    2
    ⭐ 28213

    Keep persistent user configuration separate from transient state, setup flags, and derived values. Persiste...

    ⛶
  • maintain JSON response consistency

    sst/opencode
    API TypeScript
    2
    ⭐ 28213

    When designing API responses that need to handle different data types or display states, maintain consisten...

    ⛶
  • Ensure proper error signaling

    sst/opencode
    Error Handling TypeScript
    2
    ⭐ 28213

    Errors must be communicated through appropriate mechanisms for their execution context. In CLI applications...

    ⛶
  • coordinate concurrent initialization

    sst/opencode
    Concurrency TypeScript
    2
    ⭐ 28213

    When implementing expensive initialization operations that may be triggered concurrently, use a shared prom...

    ⛶
  • Contextualize documentation decisions

    sst/opencode
    Documentation Other
    2
    ⭐ 28213

    Documentation should provide contextual guidance about when and why to use features, not just how to config...

    ⛶
  • Purpose-reflecting file names

    ollama/ollama
    Naming Conventions Other
    2
    ⭐ 145705

    File names should clearly communicate their purpose and functionality. Avoid generic, ambiguous, or numbere...

    ⛶
  • Path traversal prevention

    ollama/ollama
    Security Go
    2
    ⭐ 145705

    Implement multiple validation layers to prevent path traversal attacks. File paths provided by users or ext...

    ⛶
  • Optimize memory allocations

    ollama/ollama
    Performance Optimization C++
    2
    ⭐ 145705

    Be strategic about memory allocations to improve performance in your C++ code. Consider two key optimizatio...

    ⛶
  • Model precision matters

    ollama/ollama
    AI Shell
    2
    ⭐ 145705

    When deploying AI models on specialized hardware accelerators (GPUs, NPUs), ensure you're using compatible ...

    ⛶
  • Keep container images current

    ollama/ollama
    Configurations Dockerfile
    2
    ⭐ 145705

    Always use up-to-date and supported container images in Dockerfiles and configuration files. Before specify...

    ⛶
  • Extract duplicated code

    ollama/ollama
    Code Style Other
    2
    ⭐ 145705

    Identify repeated code segments and extract them into reusable functions or variables. This improves mainta...

    ⛶
  • Complete HTTP protocol handling

    ollama/ollama
    Networking Go
    2
    ⭐ 145705

    When implementing HTTP client functionality, ensure comprehensive support for all standard HTTP status code...

    ⛶
  • Complete documentation coverage

    ollama/ollama
    Documentation Markdown
    2
    ⭐ 145705

    Documentation should comprehensively cover all supported options, variations, and potential future use case...

    ⛶
  • AI dependency decoupling strategy

    ollama/ollama
    AI C++
    2
    ⭐ 145705

    Implement clear boundaries between your core AI system and external machine learning libraries through abst...

    ⛶
  • Verify documentation links

    octokit/octokit.net
    Documentation Markdown
    2
    ⭐ 2793

    Always ensure external links in documentation are valid, secure, and point to authoritative sources. This i...

    ⛶
  • Use appropriate framework targets

    octokit/octokit.net
    Configurations Other
    2
    ⭐ 2793

    When configuring .NET projects, always use the correct target framework elements and versions: 1. Use the ...

    ⛶
  • Secure permission modeling

    octokit/octokit.net
    Security C#
    2
    ⭐ 2793

    When implementing security-related models such as permissions, carefully design the properties to prevent u...

    ⛶
  • Precise and consistent naming

    octokit/octokit.net
    Naming Conventions Other
    2
    ⭐ 2793

    Names should clearly indicate their specific purpose and context, while maintaining correct capitalization ...

    ⛶
  • File-specific indentation standards

    octokit/octokit.net
    Code Style Json
    2
    ⭐ 2793

    Maintain consistent indentation based on file type to ensure code readability and prevent unwanted whitespa...

    ⛶
  • Use precise terminology

    nrwl/nx
    Naming Conventions Markdown
    2
    ⭐ 27518

    Always use specific, accurate terminology rather than vague or generic terms when naming sections, referenc...

    ⛶
  • Use explicit identifiers

    nrwl/nx
    Naming Conventions Rust
    2
    ⭐ 27518

    Choose explicit, unambiguous names for functions, variables, and parameters to avoid conflicts with common ...

    ⛶
  • Thread ownership clarity

    nrwl/nx
    Concurrency Rust
    2
    ⭐ 27518

    When designing concurrent systems, ensure data ownership is explicit and clear at thread boundaries. Avoid ...

    ⛶
  • synchronize declared versions

    nrwl/nx
    Configurations Toml
    2
    ⭐ 27518

    Ensure that version declarations in configuration files accurately reflect the versions actually being used...

    ⛶
  • standardize TODO comments

    nrwl/nx
    Documentation TypeScript
    2
    ⭐ 27518

    Use version-specific TODO comments with a consistent format to ensure actionable items are properly tracked...

    ⛶
  • Provide actionable error messages

    nrwl/nx
    Error Handling TypeScript
    2
    ⭐ 27518

    When handling errors, transform technical exceptions into user-friendly messages that include clear remedia...

    ⛶
  • organize testing documentation clearly

    nrwl/nx
    Testing Other
    2
    ⭐ 27518

    Ensure testing documentation is properly categorized and uses precise terminology to maintain clarity and a...

    ⛶
  • externalize configuration values

    nrwl/nx
    Configurations JavaScript
    2
    ⭐ 27518

    Configuration values should be externalized from code and read from standard locations like package.json or...

    ⛶
  • Ensure informative log messages

    nrwl/nx
    Logging TypeScript
    2
    ⭐ 27518

    Log messages should be clear, informative, and include specific details to help users understand what is ha...

    ⛶
  • Context-aware configuration logic

    nrwl/nx
    Configurations Rust
    2
    ⭐ 27518

    Configuration logic should adapt based on environmental context rather than using static values. Examine th...

    ⛶
  • Clean CI configurations

    nrwl/nx
    CI/CD Yaml
    2
    ⭐ 27518

    Maintain clean and well-documented CI configurations by removing dead code and properly documenting tempora...

    ⛶
  • cache isolation boundaries

    nrwl/nx
    Caching Markdown
    2
    ⭐ 27518

    When documenting caching systems, clearly specify cache isolation boundaries and access scopes to prevent c...

    ⛶
  • Avoid runtime API calls

    nrwl/nx
    API TSX
    2
    ⭐ 27518

    Components should not make external API calls for data that can be pre-generated at build time. Instead of ...

    ⛶
  • API documentation accuracy

    nrwl/nx
    API Other
    2
    ⭐ 27518

    Ensure API documentation examples use types, interfaces, and imports that actually exist in the documented ...

    ⛶
  • accessibility attributes for decorative elements

    nrwl/nx
    Code Style Other
    2
    ⭐ 27518

    Decorative images, icons, and other visual elements that don't convey meaningful content should include `ar...

    ⛶
  • Use proper HTTP utilities

    nuxt/nuxt
    Networking Markdown
    2
    ⭐ 57769

    When handling HTTP cookies and headers, use dedicated utility functions instead of manual string manipulati...

    ⛶
  • semantic names with counters

    nuxt/nuxt
    Naming Conventions JavaScript
    2
    ⭐ 57769

    When generating unique identifiers that may have multiple instances, combine semantic base names with count...

    ⛶
  • safe error data handling

    nuxt/nuxt
    Error Handling TypeScript
    2
    ⭐ 57769

    When processing error data that may contain unsafe or undefined values, use safe parsing methods and defens...

    ⛶
  • Preserve HTTP header semantics

    nuxt/nuxt
    Networking TypeScript
    2
    ⭐ 57769

    HTTP headers have specific semantics that must be respected when processing, merging, or deduplicating them...

    ⛶
  • organize accessibility attributes

    nuxt/nuxt
    Code Style Html
    2
    ⭐ 57769

    Systematically organize HTML elements by adding appropriate accessibility attributes (aria-label, role) to ...

    ⛶
  • optimize CI/CD configurations

    nuxt/nuxt
    CI/CD Yaml
    2
    ⭐ 57769

    Review CI/CD workflow configurations for both performance optimizations and accuracy in conditional logic. ...

    ⛶
  • improve code readability

    nuxt/nuxt
    Code Style TypeScript
    2
    ⭐ 57769

    Add line breaks and proper spacing between logical blocks within functions to improve code readability. Whe...

    ⛶
  • Filter sensitive data server-side

    nuxt/nuxt
    Security Markdown
    2
    ⭐ 57769

    Always filter sensitive data at the API/server level before sending responses to the client. Never rely on ...

    ⛶
  • consistent code formatting

    nuxt/nuxt
    React TypeScript
    2
    ⭐ 57769

    Maintain consistent formatting standards across code and documentation to improve readability and maintaina...

    ⛶
  • conditional component bundling

    nuxt/nuxt
    Next Other
    2
    ⭐ 57769

    When adding conditional components to your application, ensure they are only bundled when actually needed t...

    ⛶
  • Use constructor.name context

    novuhq/novu
    Logging TypeScript
    2
    ⭐ 37700

    Always set logger context using `this.constructor.name` and configure it via the `setContext()` method rath...

    ⛶
  • Strategic error handling

    novuhq/novu
    Error Handling TypeScript
    2
    ⭐ 37700

    Implement strategic error handling by properly checking exception types and using try/catch blocks to disti...

    ⛶
  • Pin dependency versions

    novuhq/novu
    Configurations Json
    2
    ⭐ 37700

    Always pin dependency versions by removing caret (^) and tilde (~) prefixes in package.json files to preven...

    ⛶
  • Event listener management

    novuhq/novu
    Networking TSX
    2
    ⭐ 37700

    Implement comprehensive event listener management by registering listeners on multiple relevant sources and...

    ⛶
  • consistent authentication patterns

    novuhq/novu
    Security TypeScript
    2
    ⭐ 37700

    Use standardized authentication decorators consistently across all endpoints to ensure proper security cove...

    ⛶
  • comprehensive null checks

    novuhq/novu
    Null Handling TSX
    2
    ⭐ 37700

    When checking for null or undefined values in conditional statements, ensure all related nullable dependenc...

    ⛶
  • avoid @Optional decorator

    novuhq/novu
    NestJS TypeScript
    2
    ⭐ 37700

    Avoid using the @Optional decorator in NestJS dependency injection as it disables runtime DI validation dur...

    ⛶
  • Validate network request parameters

    nodejs/node
    Security JavaScript
    2
    ⭐ 112178

    Always validate and sanitize all network request parameters to prevent injection attacks. This includes: 1...

    ⛶
  • Secure resource loading

    nodejs/node
    Security Other
    2
    ⭐ 112178

    Always validate and securely load external resources like libraries, configuration files, and modules to pr...

    ⛶
  • Descriptive behavior-based tests

    nodejs/node
    Testing Other
    2
    ⭐ 112178

    Tests should be named to describe the expected behavior or outcome being verified, not the input parameters...

    ⛶
  • Choose appropriate containers

    nodejs/node
    Algorithms Other
    2
    ⭐ 112178

    Select data structures based on expected collection size and usage patterns. For small collections (typical...

    ⛶
  • Validate Next.js Configuration Usage

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

    When implementing Next.js in your application, ensure that you are correctly using the framework's document...

    ⛶
  • Robust Error Handling in Next.js Components

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

    When building Next.js components, it is crucial to implement robust error handling to ensure the stability ...

    ⛶
  • Proper panic chains

    vercel/next.js
    Error Handling Rust
    2
    ⭐ 133000

    When implementing panic handlers, follow these critical practices to ensure robust error handling: register...

    ⛶
  • Non-blocking observability mechanisms

    vercel/next.js
    Observability TypeScript
    2
    ⭐ 133000

    When implementing observability mechanisms like telemetry or status monitoring, ensure they don't block or ...

    ⛶
  • Document configuration sources

    vercel/next.js
    Configurations JSON
    2
    ⭐ 133000

    When providing configuration instructions, document the exact location and method to obtain required values...

    ⛶
  • Dependency conscious APIs

    vercel/next.js
    API Rust
    2
    ⭐ 133000

    Design APIs with dependency implications in mind. Carefully consider how your API design choices might forc...

    ⛶
  • Complete error handling flows

    vercel/next.js
    Error Handling TypeScript
    2
    ⭐ 133000

    Implement robust error handling patterns that ensure both proper resource cleanup and error context preserv...

    ⛶
  • Complete data structures

    vercel/next.js
    Algorithms TypeScript
    2
    ⭐ 133000

    When implementing data structures such as tries, trees, or graphs, ensure all critical operations (insertio...

    ⛶
  • Choose optimal data structures

    vercel/next.js
    Algorithms Rust
    2
    ⭐ 133000

    Select data structures based on their performance characteristics and actual usage patterns. When implement...

    ⛶
  • Validate parameter boundaries

    ChatGPTNextWeb/NextChat
    Null Handling TypeScript
    2
    ⭐ 85721

    Always validate that parameters contain expected types and values within safe boundaries, not just null/und...

    ⛶
  • React hooks best practices

    ChatGPTNextWeb/NextChat
    React TSX
    2
    ⭐ 85721

    Always call React hooks at the top level of components and custom hooks to comply with the Rules of Hooks. ...

    ⛶
  • Prevent security vulnerabilities

    ChatGPTNextWeb/NextChat
    Security TypeScript
    2
    ⭐ 85721

    Proactively identify and prevent common security vulnerabilities in code, particularly around sensitive dat...

    ⛶
  • Package manager consistency

    ChatGPTNextWeb/NextChat
    Configurations Json
    2
    ⭐ 85721

    Maintain consistent package manager usage throughout the project lifecycle. When a project uses yarn (indic...

    ⛶
  • Implement stable sorting

    ChatGPTNextWeb/NextChat
    Algorithms TypeScript
    2
    ⭐ 85721

    When implementing sorting algorithms for collections, ensure stable and predictable ordering to avoid incon...

    ⛶
  • Consistent styling approach

    ChatGPTNextWeb/NextChat
    Code Style TSX
    2
    ⭐ 85721

    Maintain consistency in styling approaches within components and across the codebase. Avoid mixing classNam...

    ⛶
  • Configuration backward compatibility

    ChatGPTNextWeb/NextChat
    Configurations TypeScript
    2
    ⭐ 85721

    When modifying configuration schemas or adding new configuration options, always ensure backward compatibil...

    ⛶
  • Enable header validation

    netty/netty
    Security Java
    2
    ⭐ 34227

    Always enable HTTP header validation to prevent request/response splitting vulnerabilities. These attacks c...

    ⛶
  • Check feature compatibility

    netty/netty
    Networking C
    2
    ⭐ 34227

    When using kernel-specific networking features like io_uring, always implement runtime detection of feature...

    ⛶
  • Test dependency management

    nestjs/nest
    Testing Json
    2
    ⭐ 71767

    Testing tools and libraries should be placed in `devDependencies` rather than regular dependencies in packa...

    ⛶
  • Manage testing dependencies

    nestjs/nest
    Testing Json
    2
    ⭐ 71766

    Properly manage testing-related dependencies by placing them in devDependencies and regularly auditing them...

    ⛶
  • Document CI/CD changes

    nestjs/nest
    CI/CD Json
    2
    ⭐ 71766

    Always document changes to CI/CD configurations and scripts, and ensure pull requests remain focused on the...

    ⛶
  • optimize data structure operations

    neovim/neovim
    Algorithms C
    2
    ⭐ 91433

    When working with data structures, prioritize efficiency through proper memory management and compact data ...

    ⛶
  • follow protocol standards

    neovim/neovim
    Networking C
    2
    ⭐ 91433

    When implementing network protocols or communication formats, prioritize standardized specifications over l...

    ⛶
  • Document connection scope

    neovim/neovim
    Networking Txt
    2
    ⭐ 91433

    When documenting network connection operations, clearly specify the scope of when operations are supported ...

    ⛶
  • defer expensive operations

    neovim/neovim
    Performance Optimization Txt
    2
    ⭐ 91433

    Avoid performing expensive operations (like module loading, event emissions, or resource allocation) until ...

    ⛶
  • avoid Lua ternary traps

    neovim/neovim
    Null Handling Other
    2
    ⭐ 91433

    Avoid using the `condition and expr1 or expr2` pattern when `expr1` can be `nil` or `false`, as this will a...

    ⛶
  • API extensibility parameters

    neovim/neovim
    API C
    2
    ⭐ 91433

    Always design API functions with extensible parameter structures to accommodate future feature expansion wi...

    ⛶
  • Reliable concurrency synchronization

    neondatabase/neon
    Concurrency Python
    2
    ⭐ 19015

    When handling concurrent operations, prefer completion signals and proper thread management over arbitrary ...

    ⛶
  • Proper metrics design

    neondatabase/neon
    Observability Other
    2
    ⭐ 19015

    When designing metrics for observability systems like Prometheus, follow established best practices to ensu...

    ⛶
  • Optimize what matters

    neondatabase/neon
    Performance Optimization C
    2
    ⭐ 19015

    Focus optimization efforts on performance-critical paths rather than applying micro-optimizations everywher...

    ⛶
  • Modern shell syntax

    neondatabase/neon
    Code Style Yaml
    2
    ⭐ 19015

    Prefer double brackets (`[[ ]]`) over single brackets (`[ ]`) in shell scripts for improved functionality a...

    ⛶
  • Mind transaction boundaries

    neondatabase/neon
    Database Python
    2
    ⭐ 19015

    Be conscious of implicit transaction boundaries when working with databases. Programming constructs can cre...

    ⛶
  • Limit concurrent access slots

    neondatabase/neon
    Concurrency Other
    2
    ⭐ 19015

    Design concurrency mechanisms based on actual usage patterns rather than theoretical maximum connections. W...

    ⛶
  • Handle network interrupts safely

    neondatabase/neon
    Networking C
    2
    ⭐ 19015

    Network code must properly handle interrupts and maintain consistent connection state at all potential inte...

    ⛶
  • Feature flag implementation clarity

    neondatabase/neon
    Configurations Markdown
    2
    ⭐ 19015

    When implementing feature flags in the system, clearly document both the evaluation strategy and its perfor...

    ⛶
  • Document parameter choices

    neondatabase/neon
    Documentation Python
    2
    ⭐ 19015

    Always add explanatory comments for parameters or configuration options that aren't self-explanatory from t...

    ⛶
  • Document connection transitions

    neondatabase/neon
    Networking Markdown
    2
    ⭐ 19015

    When implementing systems that involve network connection state changes (such as during failovers, restarts...

    ⛶
  • Database replica promotion safeguards

    neondatabase/neon
    Database Other
    2
    ⭐ 19015

    When implementing database replica promotion logic, avoid temporary workarounds that bypass validation chec...

    ⛶
  • Balance flexibility with performance

    neondatabase/neon
    API Other
    2
    ⭐ 19015

    When designing APIs, carefully balance flexibility against performance constraints. More flexible APIs ofte...

    ⛶
  • Sanitize user input

    n8n-io/n8n
    Security Python
    2
    ⭐ 122978

    Always sanitize and validate user-controlled input before using it in sensitive operations, and never hard-...

    ⛶
  • Remove commented code immediately

    n8n-io/n8n
    Code Style TypeScript
    2
    ⭐ 122978

    Commented-out code should be removed immediately rather than committed to the codebase. Keeping commented c...

    ⛶
  • Preserve icon font families

    n8n-io/n8n
    Code Style Css
    2
    ⭐ 122978

    When working with icon elements in CSS, maintain the specialized font families designed for icon rendering....

    ⛶
  • Optimize Vue watchers

    n8n-io/n8n
    Vue Other
    2
    ⭐ 122978

    When implementing watchers in Vue applications, ensure they are configured appropriately for the data struc...

    ⛶
  • Avoid hardcoded configurations

    n8n-io/n8n
    Configurations Other
    2
    ⭐ 122978

    Never hardcode environment-specific values or feature states directly in your code. Instead, use environmen...

    ⛶
  • Use pytest parameterization

    apache/mxnet
    Testing Python
    2
    ⭐ 20801

    Structure unit tests using pytest's parameterize decorator instead of manual loops or wrapper functions. Th...

    ⛶
  • Use named constants

    apache/mxnet
    AI Other
    2
    ⭐ 20801

    In AI model implementations, avoid using magic numbers directly in code as they reduce readability and make...

    ⛶
  • Pre-compute reused data

    apache/mxnet
    Performance Optimization Python
    2
    ⭐ 20801

    When data will be accessed multiple times during processing, avoid redundant calculations by pre-computing ...

    ⛶
  • Consistent API documentation

    apache/mxnet
    API Markdown
    2
    ⭐ 20801

    Maintain high-quality, consistent documentation as a critical component of API design. Documentation should...

    ⛶
  • avoid stale ref values

    rocicorp/mono
    React TypeScript
    2
    ⭐ 2091

    When using React refs in hooks like useLayoutEffect or useEffect, pass the ref object itself rather than re...

    ⛶
  • avoid manual error handling

    rocicorp/mono
    Error Handling TSX
    2
    ⭐ 2091

    Prefer centralized error handling mechanisms and specialized utilities over manual error handling in indivi...

    ⛶
  • avoid global state

    rocicorp/mono
    Concurrency TypeScript
    2
    ⭐ 2091

    Avoid global state in concurrent environments where multiple instances, workers, or clients may share the s...

    ⛶
  • API parameter design

    rocicorp/mono
    API TSX
    2
    ⭐ 2091

    When designing API functions and types, prioritize maintainability and extensibility through proper paramet...

    ⛶
  • Write timeless documentation

    mui/material-ui
    Documentation TypeScript
    2
    ⭐ 96063

    Documentation should be written to remain clear and useful regardless of when it's read. Avoid references t...

    ⛶
  • Use screen queries

    mui/material-ui
    Testing TSX
    2
    ⭐ 96063

    When writing component tests, prefer using global `screen` queries from Testing Library instead of containe...

    ⛶
  • Use direct path imports

    mui/material-ui
    Performance Optimization Markdown
    2
    ⭐ 96063

    For optimal performance, use direct path imports instead of barrel imports when working with UI component l...

    ⛶
  • Secure API endpoints

    mui/material-ui
    Security JavaScript
    2
    ⭐ 96063

    Always implement appropriate security measures for API endpoints that perform sensitive operations. This in...

    ⛶
  • Prefer direct property access

    mui/material-ui
    Code Style TypeScript
    2
    ⭐ 96063

    When property names are known at development time, use direct property access (e.g., `object.property`) ove...

    ⛶
  • Parameterize build processes

    mui/material-ui
    CI/CD Json
    2
    ⭐ 96063

    When designing build scripts for multi-package repositories, use parameterization to handle special cases r...

    ⛶
  • Parameter interaction design

    mui/material-ui
    API TypeScript
    2
    ⭐ 96063

    Design APIs with clear parameter interactions and priority rules to create intuitive interfaces. When multi...

    ⛶
  • Optimize CI/CD infrastructure

    mui/material-ui
    CI/CD Markdown
    2
    ⭐ 96063

    Continuously optimize and maintain your CI/CD infrastructure to keep development velocity high while ensuri...

    ⛶
  • Next.js integration patterns

    mui/material-ui
    Next TSX
    2
    ⭐ 96063

    When integrating with Next.js, follow framework-specific patterns carefully and stay updated with API chang...

    ⛶
  • Isolate DOM security boundaries

    mui/material-ui
    Security TypeScript
    2
    ⭐ 96063

    When developing UI components, establish clear DOM manipulation boundaries to prevent security risks. Compo...

    ⛶
  • Graceful component errors

    mui/material-ui
    Error Handling TypeScript
    2
    ⭐ 96063

    Use descriptive error messages and appropriate error severity based on component maturity and usage pattern...

    ⛶
  • Follow library recommendations

    mui/material-ui
    Testing TypeScript
    2
    ⭐ 96063

    When writing tests, prioritize following the official recommendations and best practices of testing librari...

    ⛶
  • Document design decisions

    mui/material-ui
    Documentation TSX
    2
    ⭐ 96063

    When making architectural choices or modifying existing APIs, document your reasoning directly in the code ...

    ⛶
  • Consistent package naming

    mui/material-ui
    Naming Conventions Json
    2
    ⭐ 96063

    Use consistent and meaningful naming patterns for packages based on their purpose, visibility, and scope. T...

    ⛶
  • Use semantic null handling

    mastodon/mastodon
    Null Handling TypeScript
    2
    ⭐ 48691

    When designing APIs and data structures, be intentional about null and undefined usage. Use null and undefi...

    ⛶
  • Safe proxy configuration

    mastodon/mastodon
    Networking JavaScript
    2
    ⭐ 48691

    When configuring proxy settings for network applications, always use proper compilation methods to prevent ...

    ⛶
  • Review configuration currency

    mastodon/mastodon
    Configurations JavaScript
    2
    ⭐ 48691

    Regularly audit and update configuration to align with current tool capabilities and best practices. Remove...

    ⛶
  • remove redundant code

    mastodon/mastodon
    Code Style TypeScript
    2
    ⭐ 48691

    Identify and remove code elements that no longer serve a purpose, including unused imports, redundant funct...

    ⛶
  • prefer findBy async queries

    mastodon/mastodon
    Testing TSX
    2
    ⭐ 48691

    When testing components that require waiting for elements to appear, prefer using findBy* queries over wait...

    ⛶
  • prefer established configuration patterns

    mastodon/mastodon
    Configurations TSX
    2
    ⭐ 48691

    When making configuration choices, prioritize existing centralized configuration values and established pat...

    ⛶
  • Optimize React hooks

    mastodon/mastodon
    React JSX
    2
    ⭐ 48691

    Avoid unnecessary useCallback and useEffect dependencies to improve performance and code clarity. When even...

    ⛶
  • Minimize HTML attack surface

    mastodon/mastodon
    Security Ruby
    2
    ⭐ 48691

    When allowing HTML attributes or rendering user-generated content, explicitly limit the attack surface by r...

    ⛶
  • markdown formatting consistency

    mastodon/mastodon
    Code Style Markdown
    2
    ⭐ 48691

    Establish and maintain consistent formatting standards for Markdown files to improve readability and mainta...

    ⛶
  • leverage build tool automation

    mastodon/mastodon
    Performance Optimization Other
    2
    ⭐ 48691

    Modern build tools like Vite automatically handle many performance optimizations that previously required m...

    ⛶
  • Framework-aware text composition

    mastodon/mastodon
    Documentation Yaml
    2
    ⭐ 48691

    When writing user-facing text (error messages, notifications, labels), understand how your framework automa...

    ⛶
  • Environment variable descriptive naming

    mastodon/mastodon
    Configurations Other
    2
    ⭐ 48691

    Environment variables should use descriptive, specific names that clearly indicate their purpose and scope ...

    ⛶
  • Documentation audience appropriateness

    mastodon/mastodon
    Documentation Markdown
    2
    ⭐ 48691

    Ensure documentation content matches its intended audience and location. High-level documentation like READ...

    ⛶
  • consistent route nesting

    mastodon/mastodon
    API Other
    2
    ⭐ 48691

    Maintain consistent URL patterns and nesting structures across similar API endpoints to ensure predictable ...

    ⛶
  • consistent dependency versioning

    mastodon/mastodon
    Configurations Json
    2
    ⭐ 48691

    Maintain consistent version constraint patterns across all dependencies in configuration files and avoid un...

    ⛶
  • Configuration value safety

    mastodon/mastodon
    Configurations Yaml
    2
    ⭐ 48691

    Ensure configuration values are properly encoded and dependencies use specific versions to prevent runtime ...

    ⛶
  • comprehensive authorization checks

    mastodon/mastodon
    Security JavaScript
    2
    ⭐ 48691

    Always implement thorough authorization checks at the earliest appropriate point in request processing, rat...

    ⛶
  • complete React ESLint setup

    mastodon/mastodon
    React Other
    2
    ⭐ 48691

    When configuring ESLint for React projects, ensure you include comprehensive React-specific configurations ...

    ⛶
  • avoid redundant computations

    mastodon/mastodon
    Performance Optimization JavaScript
    2
    ⭐ 48691

    Identify and eliminate computations that are performed repeatedly when they could be executed once. This in...

    ⛶
  • avoid deprecated SASS syntax

    mastodon/mastodon
    Code Style Css
    2
    ⭐ 48691

    Always use modern SASS and CSS syntax instead of deprecated functions to ensure future compatibility and av...

    ⛶
  • accessibility interaction security

    mastodon/mastodon
    Security TSX
    2
    ⭐ 48691

    Ensure that accessibility features do not create security vulnerabilities by allowing unintended interactio...

    ⛶
  • Validate configuration assumptions

    microsoft/markitdown
    Configurations Json
    2
    ⭐ 76602

    Before adding or modifying configuration settings, understand the underlying tool capabilities and test you...

    ⛶
  • validate before processing

    microsoft/markitdown
    Null Handling Python
    2
    ⭐ 76602

    Always validate input state and types before performing operations to prevent runtime errors and unexpected...

    ⛶
  • Handle async concurrency properly

    microsoft/markitdown
    Concurrency Python
    2
    ⭐ 76602

    When writing async endpoints, ensure that long-running CPU-bound operations don't block the event loop and ...

    ⛶
  • Follow configuration best practices

    microsoft/markitdown
    Configurations Other
    2
    ⭐ 76602

    Always adhere to official guidelines and proper validation when setting up configurations, whether for depe...

    ⛶
  • Variable evaluation context

    maplibre/maplibre-native
    Configurations Shell
    2
    ⭐ 1411

    Be mindful of when and where environment variables and configuration values are evaluated in shell scripts,...

    ⛶
  • Use specific test assertions

    maplibre/maplibre-native
    Testing C++
    2
    ⭐ 1411

    Always use the most specific test assertion method available for your test case rather than generic asserti...

    ⛶
  • Style-compliant example code

    maplibre/maplibre-native
    Code Style Markdown
    2
    ⭐ 1411

    Example code in documentation and tutorials should adhere to project style guidelines and demonstrate best ...

    ⛶
  • Standard configuration files

    maplibre/maplibre-native
    Configurations Yaml
    2
    ⭐ 1411

    Use standardized, tool-specific configuration files instead of embedding configurations in CI scripts or ot...

    ⛶
  • Optimize compilation flags

    maplibre/maplibre-native
    Performance Optimization Yaml
    2
    ⭐ 1411

    When optimizing application performance, carefully select compiler flags based on your optimization goals. ...

    ⛶
  • Numerical precision considerations

    maplibre/maplibre-native
    Algorithms C++
    2
    ⭐ 1411

    When implementing algorithms involving floating-point calculations, choose epsilon values based on the spec...

    ⛶
  • Lock responsibly, always

    maplibre/maplibre-native
    Concurrency Java
    2
    ⭐ 1411

    Ensure proper management of locks and concurrent resources throughout their lifecycle. When implementing co...

    ⛶
  • Document containerized builds

    maplibre/maplibre-native
    CI/CD Markdown
    2
    ⭐ 1411

    When using Docker for build environments, provide complete, tested instructions that users can copy-paste w...

    ⛶
  • Cross-platform test management

    maplibre/maplibre-native
    Testing Json
    2
    ⭐ 1411

    When working with tests that run across multiple platforms (iOS, Android, etc.), ensure proper configuratio...

    ⛶
  • Configuration over hardcoding

    maplibre/maplibre-native
    API C++
    2
    ⭐ 1411

    When designing APIs, prefer exposing behavior through configuration options rather than hardcoding logic, e...

    ⛶
  • Conditional observability instrumentation

    maplibre/maplibre-native
    Observability C++
    2
    ⭐ 1411

    Wrap all tracing, profiling, and debugging instrumentation in appropriate conditional compilation blocks (l...

    ⛶
  • Accurate documentation references

    maplibre/maplibre-native
    Documentation Kotlin
    2
    ⭐ 1411

    Ensure all code documentation includes appropriate reference links that are current and accurate. When port...

    ⛶
  • Strategic dependency versioning

    logseq/logseq
    Configurations Json
    2
    ⭐ 37695

    Use strategic versioning approaches for dependencies based on their impact and maintenance status. Pin exac...

    ⛶
  • Simplify naming conventions

    logseq/logseq
    Naming Conventions Markdown
    2
    ⭐ 37695

    Prioritize simple, enforceable naming conventions over complex guidelines that are difficult to follow cons...

    ⛶
  • Respect existing formatting

    logseq/logseq
    Code Style Markdown
    2
    ⭐ 37695

    When modifying existing files, maintain the formatting and style conventions already established in those f...

    ⛶
  • Prevent command injection vulnerabilities

    logseq/logseq
    Security Other
    2
    ⭐ 37695

    When implementing shell command execution or CLI features, prioritize security by avoiding direct shell exe...

    ⛶
  • Extract reusable hooks

    logseq/logseq
    React Other
    2
    ⭐ 37695

    When you identify React logic that handles complex state management or event handling patterns that could b...

    ⛶
  • CSS comment standards

    logseq/logseq
    Code Style Css
    2
    ⭐ 37695

    Always use proper CSS comment syntax (`/* */`) instead of inline comments (`//`) for better cross-browser c...

    ⛶
  • Check undefined before use

    logseq/logseq
    Null Handling TSX
    2
    ⭐ 37695

    Always verify that values are not undefined before accessing or using them, whether they are object propert...

    ⛶
  • Verify configuration documentation

    lobehub/lobe-chat
    Configurations Markdown
    2
    ⭐ 65138

    Ensure that all configuration documentation accurately reflects the actual implementation, especially for b...

    ⛶
  • Use semantic naming

    lobehub/lobe-chat
    Naming Conventions TSX
    2
    ⭐ 65138

    Choose names that reflect purpose and meaning rather than visual appearance, position, or implementation de...

    ⛶
  • Respect browser behavior

    lobehub/lobe-chat
    Networking TSX
    2
    ⭐ 65138

    Always consider and respect browser native behaviors when implementing web application features. Avoid conf...

    ⛶
  • Provide contextual guidance

    lobehub/lobe-chat
    Documentation Other
    2
    ⭐ 65138

    Documentation should provide clear contextual information that helps users understand when they need to tak...

    ⛶
  • Pin Docker base versions

    lobehub/lobe-chat
    Configurations Dockerfile
    2
    ⭐ 65138

    Always specify exact version numbers for Docker base images instead of using floating tags like `lts` or `l...

    ⛶
  • Next.js auth configuration

    lobehub/lobe-chat
    Next TypeScript
    2
    ⭐ 65138

    Follow auth.js standardized environment variable naming conventions and use explicit function declarations ...

    ⛶
  • Explicit type checking

    lobehub/lobe-chat
    Null Handling TypeScript
    2
    ⭐ 65138

    Use explicit type checks instead of just undefined checks to prevent null values from being passed to funct...

    ⛶
  • Environment-specific configuration handling

    lobehub/lobe-chat
    Configurations Shell
    2
    ⭐ 65138

    When writing configuration scripts, ensure they handle environment-specific differences properly by using p...

    ⛶
  • Contextual error handling

    lobehub/lobe-chat
    Error Handling TSX
    2
    ⭐ 65138

    Implement error handling that is both architecturally localized and contextually specific to provide better...

    ⛶
  • Choose hooks wisely

    lobehub/lobe-chat
    React TypeScript
    2
    ⭐ 65138

    Use React hooks only when you need reactivity and component re-rendering. For accessing instantaneous value...

    ⛶
  • Account for model variations

    lobehub/lobe-chat
    AI TSX
    2
    ⭐ 65138

    When implementing features that interact with AI models, consider the behavioral differences between variou...

    ⛶
  • Simplify configuration interfaces

    LMCache/LMCache
    Configurations Markdown
    2
    ⭐ 3800

    Design configuration interfaces that prioritize user experience by providing sensible defaults, using clear...

    ⛶
  • Remove redundant AI commands

    LMCache/LMCache
    AI Shell
    2
    ⭐ 3800

    Eliminate duplicate or redundant commands when setting up AI infrastructure, model serving, or ML library i...

    ⛶
  • network service identification

    LMCache/LMCache
    Networking Python
    2
    ⭐ 3800

    Use descriptive string identifiers instead of numeric ports or generic IDs when designing network services ...

    ⛶
  • Check before using values

    LMCache/LMCache
    Null Handling Python
    2
    ⭐ 3800

    Always validate that values are not null, undefined, or empty before using them in operations that depend o...

    ⛶
  • Avoid hardcoded configuration values

    LMCache/LMCache
    Configurations Shell
    2
    ⭐ 3800

    Configuration files and scripts should use placeholders, environment variables, or parameterized values ins...

    ⛶
  • Write accessible documentation

    llvm/llvm-project
    Documentation Markdown
    2
    ⭐ 33702

    Documentation should be written with clarity and completeness to serve readers who may not have deep domain...

    ⛶
  • structure contextual log messages

    llvm/llvm-project
    Logging Other
    2
    ⭐ 33702

    Log messages should include sufficient contextual information and structured formatting to enable effective...

    ⛶
  • specify network protocol endianness

    llvm/llvm-project
    Networking Markdown
    2
    ⭐ 33702

    Always explicitly specify byte order (endianness) in network protocol documentation and implementations. Ev...

    ⛶
  • protect shared data

    llvm/llvm-project
    Concurrency C++
    2
    ⭐ 33702

    Always protect shared data that can be accessed by multiple threads using appropriate synchronization mecha...

    ⛶
  • preserve known test issues

    llvm/llvm-project
    Testing C
    2
    ⭐ 33702

    When tests exhibit known false positives or false negatives, preserve these test cases with clear documenta...

    ⛶
  • Match function names to behavior

    llvm/llvm-project
    Naming Conventions TypeScript
    2
    ⭐ 33702

    Function names and their documentation must accurately reflect what the function actually does. When a func...

    ⛶
  • match API complexity appropriately

    llvm/llvm-project
    API Other
    2
    ⭐ 33702

    Design APIs with complexity that matches their actual use cases and adopt established patterns that improve...

    ⛶
  • improve code readability

    llvm/llvm-project
    Code Style Python
    2
    ⭐ 33702

    When code expressions become complex or difficult to understand at first glance, refactor them for better r...

    ⛶
  • explicit invalid value handling

    llvm/llvm-project
    Null Handling Other
    2
    ⭐ 33702

    When designing enums or working with type casting, explicitly define and handle invalid states rather than ...

    ⛶
  • Explicit configuration requirements

    llvm/llvm-project
    Configurations C
    2
    ⭐ 33702

    Always specify explicit configuration parameters rather than relying on default settings that may vary acro...

    ⛶
  • Ensure comprehensive documentation

    llvm/llvm-project
    Documentation Other
    2
    ⭐ 33702

    Documentation should be complete, properly formatted, and clearly explain purpose with adequate examples. W...

    ⛶
  • consistent error diagnostics

    llvm/llvm-project
    Error Handling Other
    2
    ⭐ 33702

    When implementing attributes, language features, or compiler diagnostics, always provide explicit error dia...

    ⛶
  • Choose appropriate string types

    llvm/llvm-project
    Performance Optimization Other
    2
    ⭐ 33702

    Select the most efficient string type based on ownership and lifetime requirements to optimize memory usage...

    ⛶
  • Use strongly typed configurations

    ggml-org/llama.cpp
    Configurations C++
    2
    ⭐ 83559

    Prefer strongly typed configuration values over primitive types to improve code safety and clarity. Use enu...

    ⛶
  • Use precise documentation details

    ggml-org/llama.cpp
    Documentation Markdown
    2
    ⭐ 83559

    Documentation should provide specific, actionable information rather than vague or generic references. This...

    ⛶
  • Use environment variables

    ggml-org/llama.cpp
    Configurations Txt
    2
    ⭐ 83559

    Prefer environment variables over hardcoded paths and configuration values in build scripts and configurati...

    ⛶
  • Specify naming formats explicitly

    ggml-org/llama.cpp
    Naming Conventions Markdown
    2
    ⭐ 83559

    When defining naming conventions in documentation, specifications, or APIs, explicitly specify the exact fo...

    ⛶
  • semantic configuration validation

    ggml-org/llama.cpp
    Configurations Other
    2
    ⭐ 83559

    When designing configuration systems, prefer semantic parameters over generic key-value approaches for comm...

    ⛶
  • prefer const variables

    ggml-org/llama.cpp
    Code Style CUDA
    2
    ⭐ 83559

    Add the `const` qualifier to variables that are not modified after initialization. This improves code clari...

    ⛶
  • optimize code placement

    ggml-org/llama.cpp
    Code Style Objective-C
    2
    ⭐ 83559

    Ensure code is placed in its most logical and efficient location to improve maintainability and performance...

    ⛶
  • Metal shared memory sizing

    ggml-org/llama.cpp
    Performance Optimization Objective-C
    2
    ⭐ 83559

    When allocating shared memory for Metal compute shaders, ensure proper sizing that accounts for both SIMD g...

    ⛶
  • implement or fail explicitly

    ggml-org/llama.cpp
    Algorithms Python
    2
    ⭐ 83559

    Algorithmic functions should either correctly implement their intended behavior or explicitly fail with an ...

    ⛶
  • explicit performance handling

    ggml-org/llama.cpp
    Performance Optimization Python
    2
    ⭐ 83559

    When writing performance benchmarking and measurement code, always be explicit about all possible cases and...

    ⛶
  • Enable callback chaining

    ggml-org/llama.cpp
    API Other
    2
    ⭐ 83559

    When designing APIs that accept callbacks or configuration functions, always return the previous callback/c...

    ⛶
  • consistent clear naming

    ggml-org/llama.cpp
    Naming Conventions CUDA
    2
    ⭐ 83559

    Ensure variable and identifier names are both consistent and unambiguous within their context. When multipl...

    ⛶
  • Prioritize naming clarity

    BerriAI/litellm
    Naming Conventions Markdown
    2
    ⭐ 28310

    Choose names that are immediately self-explanatory and unambiguous, even if they are more verbose. Names sh...

    ⛶
  • Incremental dependency updates

    BerriAI/litellm
    Configurations Txt
    2
    ⭐ 28310

    When updating dependencies in configuration files like requirements.txt, break large changes into smaller, ...

    ⛶
  • Follow documentation standards

    BerriAI/litellm
    Documentation Markdown
    2
    ⭐ 28310

    Ensure all documentation follows established patterns and standards for components, formatting, and code ex...

    ⛶
  • Document configuration purpose clearly

    BerriAI/litellm
    Configurations Markdown
    2
    ⭐ 28310

    When documenting configuration features, always provide clear explanations of their purpose, use cases, and...

    ⛶
  • configurable security settings

    BerriAI/litellm
    Security Python
    2
    ⭐ 28310

    Security configurations should be made configurable through environment variables or runtime settings rathe...

    ⛶
  • Use semantic identifiers

    torvalds/linux
    Naming Conventions C
    2
    ⭐ 197350

    Choose semantically appropriate identifiers and types that clearly represent their purpose. This includes u...

    ⛶
  • Prefer early returns

    torvalds/linux
    Code Style C
    2
    ⭐ 197350

    When a function can determine an early result based on input validation or special cases, return immediatel...

    ⛶
  • Proper configuration placement

    langfuse/langfuse
    Configurations Json
    2
    ⭐ 13574

    Place configuration files and settings at the appropriate level in your repository structure. In monorepos,...

    ⛶
  • Materialize database indexes

    langfuse/langfuse
    Database Sql
    2
    ⭐ 13574

    Always materialize database indexes after creation to ensure they are fully built and immediately available...

    ⛶
  • Consistent descriptive naming

    langfuse/langfuse
    Naming Conventions Prisma
    2
    ⭐ 13574

    Use naming conventions that are both consistent with existing patterns and descriptively clear about purpos...

    ⛶
  • Capitalize acronyms consistently

    langfuse/langfuse
    Naming Conventions Json
    2
    ⭐ 13574

    Use standard capitalization for acronyms in all identifiers, method names, variables, and other code elemen...

    ⛶
  • Validate migration conflicts

    langflow-ai/langflow
    Migrations Python
    2
    ⭐ 111046

    Before applying database migrations, systematically validate existing data and check for potential conflict...

    ⛶
  • validate API inputs comprehensively

    langflow-ai/langflow
    API Python
    2
    ⭐ 111046

    Ensure thorough validation of API inputs and outputs using robust validation techniques rather than simple ...

    ⛶
  • Standardize naming patterns consistently

    langflow-ai/langflow
    Naming Conventions Markdown
    2
    ⭐ 111046

    Establish and follow consistent naming conventions for similar types of elements throughout the codebase an...

    ⛶
  • sanitize trace metadata

    langflow-ai/langflow
    Observability Python
    2
    ⭐ 111046

    Always sanitize trace metadata and attributes before sending to observability platforms to ensure compatibi...

    ⛶
  • precise workflow conditions

    langflow-ai/langflow
    CI/CD Yaml
    2
    ⭐ 111046

    When implementing conditional logic in CI workflows, ensure boolean expressions are precise and comprehensi...

    ⛶
  • Implement concurrent safety patterns

    langflow-ai/langflow
    Concurrency Python
    2
    ⭐ 111046

    When designing concurrent systems, implement comprehensive safety patterns that handle resource lifecycle m...

    ⛶
  • Ensure comprehensive test coverage

    langflow-ai/langflow
    Testing Python
    2
    ⭐ 111046

    Always add test coverage for new functionality, especially when introducing integrations or services. Use m...

    ⛶
  • Document log level options

    langflow-ai/langflow
    Logging Other
    2
    ⭐ 111046

    When documenting logging configuration parameters, always provide the complete list of available log level ...

    ⛶
  • Document implementation reasoning

    langflow-ai/langflow
    Documentation Python
    2
    ⭐ 111046

    Add comments that explain WHY implementation decisions were made, not just WHAT the code does. This is espe...

    ⛶
  • Database session lifecycle

    langflow-ai/langflow
    Database Python
    2
    ⭐ 111046

    Ensure all database operations and access to database objects occur within the appropriate session scope. D...

    ⛶
  • Comprehensive coverage collection

    langflow-ai/langflow
    Testing JavaScript
    2
    ⭐ 111046

    Configure Jest to collect coverage data from all source files, not just those with existing tests, while av...

    ⛶
  • avoid internal object access

    langflow-ai/langflow
    Code Style Python
    2
    ⭐ 111046

    Avoid accessing internal object attributes like `__dict__` or using unpacking syntax when cleaner alternati...

    ⛶
  • Update documentation configuration

    langchain-ai/langchainjs
    Documentation Json
    2
    ⭐ 15004

    When adding new files or components to the project, ensure that documentation configuration is updated acco...

    ⛶
  • Simplify code organization

    langchain-ai/langchainjs
    Code Style JavaScript
    2
    ⭐ 15004

    Maintain clean code organization by eliminating unnecessary abstractions and preventing codebase fragmentat...

    ⛶
  • Platform-appropriate environment variables

    langchain-ai/langchainjs
    Configurations JavaScript
    2
    ⭐ 15004

    Always use the correct syntax for accessing environment variables based on the target platform. In JavaScri...

    ⛶
  • Match configuration documentation

    langchain-ai/langchainjs
    Configurations Markdown
    2
    ⭐ 15004

    Configuration documentation must accurately reflect implementation details and behavior. Ensure that: 1. C...

    ⛶
  • Follow standard naming

    langchain-ai/langchainjs
    Naming Conventions Markdown
    2
    ⭐ 15004

    Use established naming patterns and correct capitalization throughout the codebase and documentation. For...

    ⛶
  • Benchmark performance changes

    kubernetes/kubernetes
    Performance Optimization Yaml
    2
    ⭐ 116489

    Always measure and validate performance impact through benchmarking before making changes that could affect...

    ⛶
  • Validate model optimization

    kubeflow/kubeflow
    AI Markdown
    2
    ⭐ 15064

    When implementing AI model optimization techniques such as early stopping algorithms or hyperparameter tuni...

    ⛶
  • Validate inputs explicitly

    kubeflow/kubeflow
    Error Handling Python
    2
    ⭐ 15064

    Always validate input parameters and respond with appropriate HTTP status codes when invalid values are det...

    ⛶
  • Use enums for state

    kubeflow/kubeflow
    Null Handling TypeScript
    2
    ⭐ 15064

    When handling nullable or undefined states, use enumerations instead of primitive types like boolean or nul...

    ⛶
  • Use CSS classes properly

    kubeflow/kubeflow
    Code Style Html
    2
    ⭐ 15064

    Avoid inline styles and `!important` declarations in your HTML templates. Instead, define and use CSS class...

    ⛶
  • Unique workflow step names

    kubeflow/kubeflow
    CI/CD Python
    2
    ⭐ 15064

    When defining CI/CD workflows, always ensure task/step names are unique to prevent execution failures. Work...

    ⛶
  • Type-appropriate default values

    kubeflow/kubeflow
    Null Handling Python
    2
    ⭐ 15064

    Initialize variables with type-appropriate default values to prevent type errors and null reference excepti...

    ⛶
  • Structure for navigation

    kubeflow/kubeflow
    Documentation Yaml
    2
    ⭐ 15064

    Documentation should be structured to optimize user navigation and information discovery. When organizing d...

    ⛶
  • Standardize style scripts

    kubeflow/kubeflow
    Code Style Json
    2
    ⭐ 15064

    Maintain consistent code style enforcement scripts across all projects by standardizing linting and formatt...

    ⛶
  • Standardize metrics collection

    kubeflow/kubeflow
    Observability Go
    2
    ⭐ 15064

    Use the appropriate metric types for the data being collected and consider centralizing monitoring code to ...

    ⛶
  • Stable configuration management

    kubeflow/kubeflow
    Configurations TSX
    2
    ⭐ 15064

    Always ensure configuration values are managed consistently and sourced from stable locations. 1. Use def...

    ⛶
  • Safe URL operations

    kubeflow/kubeflow
    API TypeScript
    2
    ⭐ 15064

    When handling URLs for API interactions and navigation, use precise methods for both comparison and constru...

    ⛶
  • Reduce nesting depth

    kubeflow/kubeflow
    Code Style TypeScript
    2
    ⭐ 15064

    Improve code readability by reducing nesting depth with early returns and functional approaches. Use early ...

    ⛶
  • Private variable naming convention

    kubeflow/kubeflow
    Naming Conventions TypeScript
    2
    ⭐ 15064

    Use the 'prv' prefix for private class members and ensure they're explicitly declared with the 'private' ac...

    ⛶
  • Prefer external configuration

    kubeflow/kubeflow
    Configurations JavaScript
    2
    ⭐ 15064

    Design applications to use external configuration sources rather than hardcoding values directly in source ...

    ⛶
  • Optimize container build configurations

    kubeflow/kubeflow
    CI/CD Dockerfile
    2
    ⭐ 15064

    Configure containerized application builds to be efficient and flexible by avoiding hardcoded architecture ...

    ⛶
  • Match algorithms to purpose

    kubeflow/kubeflow
    Algorithms Python
    2
    ⭐ 15064

    Select algorithmic constructs and control structures that are appropriate for the specific task. Common iss...

    ⛶
  • Isolate test cases

    kubeflow/kubeflow
    Testing Python
    2
    ⭐ 15064

    Create separate test functions for distinct functionality to improve test clarity and make failure points m...

    ⛶
  • Enforce least privilege

    kubeflow/kubeflow
    Security Yaml
    2
    ⭐ 15064

    Configure all systems with the minimum permissions required to function. For Kubernetes deployments, use se...

    ⛶
  • Document networking annotations

    kubeflow/kubeflow
    Networking Yaml
    2
    ⭐ 15064

    When using Istio or other networking-related annotations in configuration files, always include detailed co...

    ⛶
  • Document migration paths

    kubeflow/kubeflow
    Migrations Markdown
    2
    ⭐ 15064

    When implementing version changes or migrations, provide comprehensive documentation and tools to support u...

    ⛶
  • Descriptive consistent naming

    kubeflow/kubeflow
    Naming Conventions Other
    2
    ⭐ 15064

    Use descriptive and consistent names throughout the codebase. Prefer full, meaningful names over acronyms o...

    ⛶
  • Consistent separator conventions

    kubeflow/kubeflow
    Naming Conventions Markdown
    2
    ⭐ 15064

    Use appropriate separators in compound identifiers to improve readability and ensure naming consistency acr...

    ⛶
  • Consistent descriptive naming

    kubeflow/kubeflow
    Naming Conventions Yaml
    2
    ⭐ 15064

    Maintain consistency in naming patterns across related resources while ensuring names accurately reflect th...

    ⛶
  • Component-agnostic styling principles

    kubeflow/kubeflow
    Code Style Css
    2
    ⭐ 15064

    Create reusable components with styles that don't make assumptions about parent contexts or affect their po...

    ⛶
  • Centralize dependency configurations

    kubeflow/kubeflow
    Configurations Txt
    2
    ⭐ 15064

    When adding or updating package dependencies, place them in centralized configuration files rather than dup...

    ⛶
  • Automate style enforcement

    kubeflow/kubeflow
    Code Style Yaml
    2
    ⭐ 15064

    Configure your development environment to automatically enforce code style standards rather than relying on...

    ⛶
  • API structure balance

    kubeflow/kubeflow
    API Python
    2
    ⭐ 15064

    Maintain a clear separation between resource-specific API handlers and common utilities. Resource-specific ...

    ⛶
  • Use modern test infrastructure

    JetBrains/kotlin
    Testing Other
    2
    ⭐ 50857

    Always add new tests to the current recommended test infrastructure rather than legacy systems that are bei...

    ⛶
  • Minimize not-null assertions

    JetBrains/kotlin
    Null Handling Java
    2
    ⭐ 50857

    Avoid using not-null assertions (`!!`) when safer alternatives exist. Instead: 1. Use safe calls (`?.`) whe...

    ⛶
  • Dependency verification configuration

    JetBrains/kotlin
    Configurations Xml
    2
    ⭐ 50857

    When adding new dependencies to build.gradle.kts files, always update the corresponding verification metada...

    ⛶
  • Copy external string inputs

    JetBrains/kotlin
    Null Handling C++
    2
    ⭐ 50857

    When storing string pointers from external sources (like command-line arguments), always validate the input...

    ⛶
  • prefer simple null-safe patterns

    kilo-org/kilocode
    Null Handling TypeScript
    2
    ⭐ 7302

    Use straightforward null-safe patterns instead of complex undefined/empty distinctions. Avoid `any` types t...

    ⛶
  • organize test setup

    kilo-org/kilocode
    Testing TypeScript
    2
    ⭐ 7302

    Reduce test code duplication by organizing common setup logic and grouping related tests appropriately. Mov...

    ⛶
  • Justify configuration overrides

    kilo-org/kilocode
    Configurations Json
    2
    ⭐ 7302

    Before adding manual configuration entries, verify that the tool doesn't already provide the desired behavi...

    ⛶
  • Follow consistent semantic naming

    kilo-org/kilocode
    Naming Conventions TSX
    2
    ⭐ 7302

    Ensure that names accurately reflect their purpose and maintain consistency with established patterns in th...

    ⛶
  • Ensure proper React keys

    kilo-org/kilocode
    React TSX
    2
    ⭐ 7302

    Always provide meaningful keys for React components and fragments to ensure proper rendering and re-renderi...

    ⛶
  • enhance poor error messages

    kilo-org/kilocode
    Error Handling TypeScript
    2
    ⭐ 7302

    When external APIs or dependencies provide cryptic or unhelpful error messages, wrap them with user-friendl...

    ⛶
  • Document performance tool lifecycle

    kilo-org/kilocode
    Performance Optimization Markdown
    2
    ⭐ 7302

    When creating performance optimization tools, especially temporary dev-only utilities, clearly document the...

    ⛶
  • Document configuration requirements

    kilo-org/kilocode
    Configurations Markdown
    2
    ⭐ 7302

    Always document configuration requirements, environment variables, and version specifications to ensure con...

    ⛶
  • Consider semantic context

    kilo-org/kilocode
    Naming Conventions Json
    2
    ⭐ 7302

    When choosing names for variables, methods, classes, or configuration sections, consider both the current p...

    ⛶
  • Consider async function contracts

    kilo-org/kilocode
    Concurrency TypeScript
    2
    ⭐ 7302

    Be intentional when marking functions as async, as it changes the function's contract and caller expectatio...

    ⛶
  • Configuration bounds validation

    kilo-org/kilocode
    Configurations TSX
    2
    ⭐ 7302

    Always validate configuration values against system limits and constraints, implementing automatic adjustme...

    ⛶
  • avoid expensive operations

    kilo-org/kilocode
    Performance Optimization TypeScript
    2
    ⭐ 7302

    Identify and mitigate costly operations that can significantly impact performance. This includes CPU-intens...

    ⛶
  • Document precise security requirements

    apache/kafka
    Security Html
    2
    ⭐ 30575

    Security documentation must specify exact permission requirements with clear scope and timing details. Vagu...

    ⛶
  • Document configuration constraints

    apache/kafka
    Configurations Html
    2
    ⭐ 30575

    Configuration documentation must explicitly specify when settings should or should not be used, including c...

    ⛶
  • condition-based network synchronization

    apache/kafka
    Networking Other
    2
    ⭐ 30575

    When waiting for network state propagation or distributed system synchronization, avoid using fixed sleep t...

    ⛶
  • comprehensive test assertions

    apache/kafka
    Testing Other
    2
    ⭐ 30575

    Write test assertions that are both comprehensive and maintainable. Ensure all relevant fields and behavior...

    ⛶
  • Centralize configuration values

    apache/kafka
    Configurations Dockerfile
    2
    ⭐ 30575

    Avoid duplicating configuration values across multiple files by maintaining a single source of truth for en...

    ⛶
  • avoid overly specific examples

    apache/kafka
    Configurations Markdown
    2
    ⭐ 30575

    When documenting configuration options, use generic examples that don't unnecessarily tie documentation to ...

    ⛶
  • API response completeness

    apache/kafka
    API Other
    2
    ⭐ 30575

    Ensure API responses contain all necessary data fields and provide mechanisms for clients to verify operati...

    ⛶
  • Verify test assertions

    jj-vcs/jj
    Testing Rust
    2
    ⭐ 21171

    Always use appropriate assertion methods in tests to ensure proper verification of command behavior. When y...

    ⛶
  • specify configuration scope

    jj-vcs/jj
    Configurations Markdown
    2
    ⭐ 21171

    Always explicitly specify the configuration scope using `--user` or `--repo` flags when setting configurati...

    ⛶
  • require explicit security consent

    jj-vcs/jj
    Security Rust
    2
    ⭐ 21171

    Always require explicit user consent and validation before executing potentially dangerous operations, espe...

    ⛶
  • precise algorithmic terminology

    jj-vcs/jj
    Algorithms Markdown
    2
    ⭐ 21171

    When documenting or describing algorithmic operations, use precise, unambiguous terminology that clearly di...

    ⛶
  • Pin actions to commits

    jj-vcs/jj
    CI/CD Yaml
    2
    ⭐ 21171

    Use specific commit hashes instead of version tags when referencing GitHub Actions in CI/CD workflows. Vers...

    ⛶
  • optimize remote fetch operations

    jj-vcs/jj
    Networking Rust
    2
    ⭐ 21171

    When implementing network operations that fetch data from remote sources, configure specific refspecs or pa...

    ⛶
  • Multiple remote configuration

    jj-vcs/jj
    Networking Markdown
    2
    ⭐ 21171

    When documenting or implementing features that involve multiple remote repositories, provide clear guidance...

    ⛶
  • GitHub Actions security review

    jj-vcs/jj
    Security Yaml
    2
    ⭐ 21171

    Always review GitHub Actions workflows for security implications before merging, particularly focusing on a...

    ⛶
  • ensure cross-platform compatibility

    jj-vcs/jj
    Configurations Toml
    2
    ⭐ 21171

    When creating configuration files and build tasks, prioritize cross-platform compatibility by avoiding shel...

    ⛶
  • document test configurations

    jj-vcs/jj
    Testing Toml
    2
    ⭐ 21171

    When modifying test configurations or tooling settings, provide clear explanations of what the changes actu...

    ⛶
  • Use platform-specific endpoints

    menloresearch/jan
    API Other
    2
    ⭐ 37620

    When configuring API integrations, always use the actual platform-specific endpoints and identifiers rather...

    ⛶
  • Use centralized model state

    menloresearch/jan
    AI TSX
    2
    ⭐ 37620

    Always access AI model information, parameters, and configuration through centralized state management rath...

    ⛶
  • Use centralized logging framework

    menloresearch/jan
    Logging TypeScript
    2
    ⭐ 37620

    Always use the established logging infrastructure instead of creating custom logging solutions or multiple ...

    ⛶
  • simplify error handling

    menloresearch/jan
    Error Handling TSX
    2
    ⭐ 37620

    Write concise and appropriate error handling code by avoiding unnecessary complexity and verbose constructi...

    ⛶
  • leverage existing solutions

    menloresearch/jan
    Code Style TSX
    2
    ⭐ 37620

    Avoid duplicating functionality by leveraging existing libraries and creating reusable components. Instead ...

    ⛶
  • externalize configuration values

    menloresearch/jan
    Configurations JavaScript
    2
    ⭐ 37620

    Configuration values, especially sensitive data like API keys and environment-specific settings, should be ...

    ⛶
  • Ensure proper event sequencing

    menloresearch/jan
    Concurrency TypeScript
    2
    ⭐ 37620

    When working with event-driven systems, ensure that events are emitted at the appropriate time and in the c...

    ⛶
  • consolidate build scripts

    menloresearch/jan
    CI/CD Json
    2
    ⭐ 37620

    When creating multiple build variants (debug, publish, etc.), avoid duplicating build commands by reusing t...

    ⛶
  • consistent localhost addressing

    menloresearch/jan
    Networking TypeScript
    2
    ⭐ 37620

    Use 127.0.0.1 instead of 'localhost' for network requests and implement broad localhost detection rather th...

    ⛶
  • API interface consistency

    menloresearch/jan
    API TypeScript
    2
    ⭐ 37620

    Ensure that API function signatures, return types, and interface implementations are consistent and properl...

    ⛶
  • verify logging configuration functionality

    istio/istio
    Logging Other
    2
    ⭐ 37192

    Ensure that logging configuration options actually perform the behavior their names suggest and provide rea...

    ⛶
  • validate access scope

    istio/istio
    Security Go
    2
    ⭐ 37192

    When implementing security features that involve access control, authentication, or authorization, carefull...

    ⛶
  • Security behavior clarity

    istio/istio
    Security Yaml
    2
    ⭐ 37192

    When documenting or describing security-related changes, especially bug fixes and behavioral modifications,...

    ⛶
  • optimize hot path performance

    istio/istio
    Performance Optimization C
    2
    ⭐ 37192

    Identify and eliminate expensive operations in frequently executed code paths, particularly in packet proce...

    ⛶
  • Flexible configuration defaults

    istio/istio
    Configurations Other
    2
    ⭐ 37192

    Configuration values should provide sensible defaults while remaining adaptable to different environments a...

    ⛶
  • Document observability clearly

    istio/istio
    Observability Markdown
    2
    ⭐ 37192

    Ensure observability documentation is clear, accessible, and grammatically correct. This includes defining ...

    ⛶
  • Verify package.json accuracy

    vadimdemedes/ink
    Configurations Markdown
    2
    ⭐ 31825

    Ensure that package.json configuration entries accurately reflect the actual project structure and include ...

    ⛶
  • useEffect for measurements

    vadimdemedes/ink
    React Markdown
    2
    ⭐ 31825

    When using functions that depend on rendered layout or DOM measurements, call them within useEffect hooks t...

    ⛶
  • Use React.FC consistently

    vadimdemedes/ink
    React TSX
    2
    ⭐ 31825

    Use React.FC (or React.FunctionComponent) for typing functional components instead of verbose function type...

    ⛶
  • Use descriptive parameter names

    vadimdemedes/ink
    Naming Conventions TypeScript
    2
    ⭐ 31825

    Choose parameter names that clearly communicate their purpose and avoid confusion with similar concepts. Av...

    ⛶
  • React interface clarity

    vadimdemedes/ink
    React TypeScript
    2
    ⭐ 31825

    Ensure React interfaces have descriptive names and accurate documentation that clearly communicate their pu...

    ⛶
  • optimize iteration patterns

    vadimdemedes/ink
    Algorithms TypeScript
    2
    ⭐ 31825

    When implementing loops and iteration logic, evaluate whether your current approach is the most efficient a...

    ⛶
  • Ensure documentation usability

    vadimdemedes/ink
    Documentation JavaScript
    2
    ⭐ 31825

    Documentation should be practical and serve its intended audience effectively. Examples must be runnable ou...

    ⛶
  • Documentation quality standards

    vadimdemedes/ink
    Documentation TypeScript
    2
    ⭐ 31825

    Ensure documentation follows proper formatting standards and provides complete, practical information for d...

    ⛶
  • Documentation code quality

    vadimdemedes/ink
    Code Style Markdown
    2
    ⭐ 31825

    Ensure documentation code blocks use appropriate syntax highlighting and provide comprehensive, functional ...

    ⛶
  • Clear API interfaces

    vadimdemedes/ink
    API TypeScript
    2
    ⭐ 31825

    Ensure API interfaces are clearly defined with proper formatting and comprehensive documentation. Type defi...

    ⛶
  • Document versioning strategies

    influxdata/influxdb
    Configurations Yaml
    2
    ⭐ 30268

    Establish and clearly document versioning strategies in configuration files, both for your application and ...

    ⛶
  • Document function signatures

    influxdata/influxdb
    Documentation Go
    2
    ⭐ 30268

    Always document function parameters and return values in the function header comment or interface definitio...

    ⛶
  • Centralize workspace configurations

    influxdata/influxdb
    Configurations Toml
    2
    ⭐ 30268

    Centralize configuration settings like dependency versions and feature flags at the workspace level rather ...

    ⛶
  • Semantic naming consistency

    elie222/inbox-zero
    Naming Conventions Prisma
    2
    ⭐ 8267

    Ensure all model and field names semantically reflect their actual purpose and maintain consistency with th...

    ⛶
  • Ensure schema-migration consistency

    elie222/inbox-zero
    Migrations Prisma
    2
    ⭐ 8267

    When modifying database schemas, ensure complete alignment between schema definitions and SQL migration scr...

    ⛶
  • Eliminate documentation redundancy

    elie222/inbox-zero
    Documentation Markdown
    2
    ⭐ 8267

    Documentation should be concise and avoid repeating the same information in multiple places. Redundant cont...

    ⛶
  • Consistent code organization

    elie222/inbox-zero
    Code Style Prisma
    2
    ⭐ 8267

    Maintain consistent patterns when organizing code elements within schema files. Place standard fields (like...

    ⛶
  • Collections use plural names

    elie222/inbox-zero
    Naming Conventions TSX
    2
    ⭐ 8267

    Always use plural names for properties representing collections (arrays/lists) in interfaces, types, and de...

    ⛶
  • weak pointer callback safety

    hyprwm/Hyprland
    Concurrency C++
    2
    ⭐ 28863

    When capturing objects in callbacks or lambdas that may execute asynchronously, use weak pointers instead o...

    ⛶
  • validate environment variables

    hyprwm/Hyprland
    Configurations Shell
    2
    ⭐ 28863

    Always validate that environment variables are properly defined and consistently named before using them in...

    ⛶
  • optimize workflow triggers

    hyprwm/Hyprland
    CI/CD Yaml
    2
    ⭐ 28863

    Design CI/CD workflows with intentional triggers and conditions to avoid unnecessary executions, rate limit...

    ⛶
  • Explain documentation rationale

    hyprwm/Hyprland
    Documentation Yaml
    2
    ⭐ 28863

    When writing user-facing documentation, always explain WHY a guideline or requirement exists, not just WHAT...

    ⛶
  • Avoid unintentional defaults

    hyprwm/Hyprland
    Configurations Yaml
    2
    ⭐ 28863

    When designing configuration interfaces, be intentional about default values and consider their impact on u...

    ⛶
  • API input/output validation

    hyprwm/Hyprland
    API C++
    2
    ⭐ 28863

    Ensure robust parsing of API inputs and proper formatting of outputs to prevent parsing errors and unexpect...

    ⛶
  • Use defensive SQL clauses

    juspay/hyperswitch
    Migrations Sql
    2
    ⭐ 34028

    Always use defensive SQL clauses like `IF NOT EXISTS` and `IF EXISTS` in migration scripts to make them ide...

    ⛶
  • Minimize API test data

    juspay/hyperswitch
    API JavaScript
    2
    ⭐ 34028

    Keep API test configurations lean by including only the fields necessary for the specific test scenario. Av...

    ⛶
  • explicit database constraints

    juspay/hyperswitch
    Database Sql
    2
    ⭐ 34028

    Be explicit about database constraints and avoid relying on database-level defaults. Always specify NOT NUL...

    ⛶
  • consistent configuration naming

    juspay/hyperswitch
    Naming Conventions Toml
    2
    ⭐ 34028

    Configuration variable names should follow consistent patterns and be descriptive enough to clearly convey ...

    ⛶
  • Centralize shared configurations

    juspay/hyperswitch
    Configurations JavaScript
    2
    ⭐ 34028

    Avoid duplicating configuration values across multiple files. Instead, define shared configurations in cent...

    ⛶
  • avoid hard-coded test data

    juspay/hyperswitch
    Testing JavaScript
    2
    ⭐ 34028

    Hard-coded test data creates maintenance burdens and unrealistic test scenarios. Instead of manually defini...

    ⛶
  • Target documentation to audience

    helix-editor/helix
    Documentation Other
    2
    ⭐ 39026

    Write documentation that matches both your audience's expertise level and the language's conventional forma...

    ⛶
  • omit redundant configuration

    helix-editor/helix
    Configurations Toml
    2
    ⭐ 39026

    Remove configuration keys that explicitly set values identical to their defaults. This reduces visual clutt...

    ⛶
  • API documentation accuracy

    helix-editor/helix
    API Markdown
    2
    ⭐ 39026

    Ensure API documentation accurately describes actual behavior and avoids subjective commentary that may bec...

    ⛶
  • Workflow permission boundaries

    grafana/grafana
    Security Yaml
    2
    ⭐ 68825

    Always define explicit and minimal permission boundaries in GitHub Actions workflows to adhere to the princ...

    ⛶
  • Use dynamic port allocation

    grafana/grafana
    Networking Go
    2
    ⭐ 68825

    When writing tests that require network services (HTTP, gRPC, or custom protocols), use port 0 to let the o...

    ⛶
  • Stable test assertions

    grafana/grafana
    Testing TypeScript
    2
    ⭐ 68825

    Write tests that focus on behavior rather than implementation details to create more stable and maintainabl...

    ⛶
  • Sort with clarity

    grafana/grafana
    Algorithms Go
    2
    ⭐ 68825

    Ensure sorting functions are named to accurately reflect their behavior and implement consistent sorting ap...

    ⛶
  • Opt-in configurable caching

    grafana/grafana
    Caching TypeScript
    2
    ⭐ 68825

    Implement caching mechanisms as opt-in features with explicit configuration options rather than as defaults...

    ⛶
  • Object parameters for readability

    grafana/grafana
    Code Style TSX
    2
    ⭐ 68825

    When a function has 3 or more parameters, use object destructuring instead of positional arguments. This im...

    ⛶
  • Document translatable UI text

    grafana/grafana
    Documentation TSX
    2
    ⭐ 68825

    All user-facing text in UI components should be properly documented for translation using the application's...

    ⛶
  • Defense in depth

    grafana/grafana
    Security TypeScript
    2
    ⭐ 68825

    Always implement multiple layers of security controls, even when they might seem redundant. This strategy e...

    ⛶
  • Contextual structured logging

    grafana/grafana
    Logging Go
    2
    ⭐ 68825

    Log messages should provide sufficient context to be meaningful and actionable while following structured l...

    ⛶
  • Check before calculating

    grafana/grafana
    Performance Optimization TypeScript
    2
    ⭐ 68825

    Implement preliminary validation checks before executing expensive operations to avoid unnecessary processi...

    ⛶
  • Balance flexibility with simplicity

    grafana/grafana
    API TSX
    2
    ⭐ 68825

    When designing component APIs, strive to find the optimal balance between providing flexible configuration ...

    ⛶
  • Assert with precision

    grafana/grafana
    Testing Go
    2
    ⭐ 68825

    Tests should verify actual behavior rather than just successful execution. When writing assertions, favor p...

    ⛶
  • Validate object availability

    block/goose
    Null Handling TSX
    2
    ⭐ 19037

    Always verify that objects and their properties exist before accessing them to prevent null reference error...

    ⛶
  • validate IPC inputs

    block/goose
    Security TypeScript
    2
    ⭐ 19037

    Always validate and sanitize inputs to IPC handlers to prevent unauthorized access to system resources. Imp...

    ⛶
  • Use self-documenting names

    block/goose
    Naming Conventions TSX
    2
    ⭐ 19037

    Choose variable, function, and constant names that clearly express their purpose and eliminate the need for...

    ⛶
  • Use established logging libraries

    block/goose
    Logging Rust
    2
    ⭐ 19037

    Avoid using print statements (println!, eprintln!) or custom logging implementations for application loggin...

    ⛶
  • Use configuration enums

    block/goose
    Configurations TSX
    2
    ⭐ 19037

    Replace hardcoded string matching and magic values with proper configuration enums or flags. This improves ...

    ⛶
  • Sanitize untrusted input

    block/goose
    Security TSX
    2
    ⭐ 19037

    Always sanitize or escape untrusted input before using it in security-sensitive contexts to prevent injecti...

    ⛶
  • Optimize algorithmic efficiency

    block/goose
    Algorithms TSX
    2
    ⭐ 19037

    Always consider the computational complexity of your algorithms and leverage efficient built-in methods whe...

    ⛶
  • leverage TypeScript nullability

    block/goose
    Null Handling TypeScript
    2
    ⭐ 19037

    When dealing with values that may be null or undefined, explicitly leverage TypeScript's nullable types to ...

    ⛶
  • Keep dependencies current

    block/goose
    Configurations Toml
    2
    ⭐ 19037

    Always use the latest stable versions of dependencies in configuration files like Cargo.toml, and avoid dep...

    ⛶
  • Incremental CI development

    block/goose
    CI/CD Yaml
    2
    ⭐ 19037

    Develop CI/CD workflows incrementally, starting with simpler versions and adding complexity gradually. This...

    ⛶
  • Extract duplicate constants

    block/goose
    Code Style JavaScript
    2
    ⭐ 19037

    Eliminate code duplication by extracting repeated values and components into well-organized constants. This...

    ⛶
  • Document API contracts

    block/goose
    API TSX
    2
    ⭐ 19037

    Ensure all API interfaces have clearly documented contracts specifying expected request/response formats, d...

    ⛶
  • dependency version precision

    block/goose
    Configurations Json
    2
    ⭐ 19037

    Choose appropriate version constraints in package.json based on stability requirements and risk tolerance. ...

    ⛶
  • Database migration isolation

    block/goose
    Database Markdown
    2
    ⭐ 19037

    When performing database migrations or schema changes, use containerized environments to ensure isolation a...

    ⛶
  • containerize sensitive workflows

    block/goose
    CI/CD Markdown
    2
    ⭐ 19037

    Use containerization to isolate operations that could access sensitive data, modify critical systems, or ex...

    ⛶
  • Conditional telemetry flushing

    block/goose
    Observability Rust
    2
    ⭐ 19037

    Avoid fixed delays for telemetry flushing. Instead, make flushing conditional on whether telemetry endpoint...

    ⛶
  • wrap errors properly

    golang/go
    Error Handling Go
    2
    ⭐ 129599

    When creating error messages that include information from underlying errors, use fmt.Errorf with the %w ve...

    ⛶
  • Use conventional descriptive names

    golang/go
    Naming Conventions Go
    2
    ⭐ 129599

    Variable names should follow established language conventions and clearly communicate their purpose and con...

    ⛶
  • maintain backward compatibility

    golang/go
    API Go
    2
    ⭐ 129599

    When modifying existing APIs, preserve original parameter types and return signatures to avoid breaking cli...

    ⛶
  • go:build directive syntax

    golang/go
    Configurations Go
    2
    ⭐ 129599

    Ensure go:build directives follow correct syntax with no space between "//" and "go", and use proper logica...

    ⛶
  • Documentation quality standards

    golang/go
    Documentation Go
    2
    ⭐ 129599

    Ensure all documentation comments follow proper formatting conventions and are placed where developers will...

    ⛶
  • Use standard HTTP constants

    gin-gonic/gin
    Networking Go
    2
    ⭐ 83022

    Always use the standard HTTP status constants from the `http` package instead of raw numeric values in your...

    ⛶
  • Select algorithms by complexity

    gin-gonic/gin
    Algorithms Go
    2
    ⭐ 83022

    Choose appropriate algorithms based on computational complexity requirements and context. When implementing...

    ⛶
  • Preserve security configurations

    gin-gonic/gin
    Security Go
    2
    ⭐ 83022

    Always respect explicitly set security attributes and properly sanitize user inputs to prevent security vul...

    ⛶
  • Pin dependency versions

    gin-gonic/gin
    CI/CD Yaml
    2
    ⭐ 83022

    Always specify exact versions of tools and dependencies in CI/CD workflows rather than using 'latest' or fl...

    ⛶
  • Minimize configuration complexity

    gin-gonic/gin
    Configurations Yaml
    2
    ⭐ 83022

    Keep configuration files clean and maintainable by regularly reviewing and removing unnecessary settings an...

    ⛶
  • Initialize before null-checking

    gin-gonic/gin
    Null Handling Go
    2
    ⭐ 83022

    When handling potentially nil values, ensure proper initialization order to prevent race conditions and nul...

    ⛶
  • Document API behavior

    gin-gonic/gin
    API Markdown
    2
    ⭐ 83022

    Thoroughly document how your API endpoints handle data binding and processing, especially non-obvious behav...

    ⛶
  • Declare .PHONY targets

    gin-gonic/gin
    CI/CD Other
    2
    ⭐ 83022

    Always explicitly declare all Makefile targets that don't create files as `.PHONY`. This prevents conflicts...

    ⛶
  • Close resource handles properly

    gin-gonic/gin
    Error Handling Markdown
    2
    ⭐ 83022

    Always close file resources and other system handles after use to prevent resource leaks. Resource leaks ca...

    ⛶
  • Prefer flat control flow

    ghostty-org/ghostty
    Code Style Swift
    2
    ⭐ 32864

    Minimize code nesting by using Swift features like `guard` statements and early returns instead of deeply n...

    ⛶
  • Pipeline-friendly script design

    ghostty-org/ghostty
    CI/CD Python
    2
    ⭐ 32864

    Design scripts to be easily integrated into build pipelines and CI/CD workflows by using standard I/O strea...

    ⛶
  • Generate dynamic configurations

    ghostty-org/ghostty
    Configurations Xml
    2
    ⭐ 32864

    Always generate configuration files programmatically when they contain dynamic content that changes frequen...

    ⛶
  • Format for readability

    ghostty-org/ghostty
    Documentation Markdown
    2
    ⭐ 32864

    Documentation should be formatted to optimize readability and information retention. Apply these principles...

    ⛶
  • Use appropriate logging levels

    google-gemini/gemini-cli
    Logging TypeScript
    2
    ⭐ 65062

    Use console.debug() for debug information instead of console.log() to prevent cluttering user-facing output...

    ⛶
  • Prefer lightweight composable APIs

    google-gemini/gemini-cli
    API Markdown
    2
    ⭐ 65062

    When designing APIs, favor lightweight, composable solutions that allow callers to maintain control over th...

    ⛶
  • optimize React hooks usage

    google-gemini/gemini-cli
    React TSX
    2
    ⭐ 65062

    Avoid useRef unless strictly necessary and ensure useEffect has proper dependencies to prevent unnecessary ...

    ⛶
  • minimize performance overhead

    google-gemini/gemini-cli
    Performance Optimization TSX
    2
    ⭐ 65062

    Reduce unnecessary overhead in performance-related code by creating reusable patterns and avoiding verbose ...

    ⛶
  • avoid non-null assertions

    google-gemini/gemini-cli
    Null Handling TypeScript
    2
    ⭐ 65062

    Avoid using the non-null assertion operator (`!`) and instead use union types or explicit null checks for b...

    ⛶
  • Validate security-critical inputs

    fatedier/frp
    Security Go
    2
    ⭐ 95938

    Always implement thorough validation for user-controllable inputs that could pose security risks. Particula...

    ⛶
  • Focus documentation content

    fatedier/frp
    Documentation Markdown
    2
    ⭐ 95938

    Maintain streamlined primary documentation (like README files) that focuses only on currently supported fun...

    ⛶
  • Document code decisions

    fatedier/frp
    Documentation Go
    2
    ⭐ 95938

    Always include clear documentation for important code decisions and metadata. This includes preserving copy...

    ⛶
  • Check context cancellation

    fatedier/frp
    Concurrency Go
    2
    ⭐ 95938

    Always implement proper cancellation mechanisms in concurrent code to prevent goroutine leaks and enable ti...

    ⛶
  • Precise testing dependency versioning

    laravel/framework
    Testing Json
    2
    ⭐ 33763

    When specifying testing library dependencies, always use explicit minimum patch versions rather than develo...

    ⛶
  • Mark sensitive parameters

    laravel/framework
    Security PHP
    2
    ⭐ 33763

    Always use the `#[\SensitiveParameter]` attribute for parameters containing sensitive information such as p...

    ⛶
  • Use named constants

    flutter/flutter
    Code Style Java
    2
    ⭐ 172252

    Replace hardcoded string literals and magic values with named constants to improve code maintainability and...

    ⛶
  • Manage state dependencies properly

    flutter/flutter
    React Other
    2
    ⭐ 172252

    Ensure components establish explicit dependencies when they need to react to external changes, and avoid st...

    ⛶
  • validate environment variables early

    firecrawl/firecrawl
    Configurations TypeScript
    2
    ⭐ 54535

    Environment variables should be validated at startup or module initialization rather than at runtime usage....

    ⛶
  • preserve raw network data

    firecrawl/firecrawl
    Networking TypeScript
    2
    ⭐ 54535

    Always preserve raw network response data early in the processing pipeline before applying any transformati...

    ⛶
  • preserve null semantics

    firecrawl/firecrawl
    Null Handling TypeScript
    2
    ⭐ 54535

    When null or undefined values represent meaningful absence of data, preserve them rather than converting to...

    ⛶
  • optimize frequent operations

    firecrawl/firecrawl
    Performance Optimization TypeScript
    2
    ⭐ 54535

    Identify code paths that execute frequently and ensure they use performant, non-blocking solutions. Frequen...

    ⛶
  • Minimize database roundtrips

    firecrawl/firecrawl
    Database TypeScript
    2
    ⭐ 54535

    Avoid making multiple database queries when a single query can retrieve the required data. Each database ro...

    ⛶
  • Avoid async race conditions

    firecrawl/firecrawl
    Concurrency TypeScript
    2
    ⭐ 54535

    Ensure proper async/await handling and consider concurrent execution patterns to prevent race conditions an...

    ⛶
  • API endpoint simplicity

    firecrawl/firecrawl
    API TypeScript
    2
    ⭐ 54535

    Design API endpoints with concise, direct naming that clearly communicates their purpose without unnecessar...

    ⛶
  • simplify logging integrations

    gofiber/fiber
    Logging Markdown
    2
    ⭐ 37560

    When implementing custom logging integrations, prioritize simplicity and completeness over complex abstract...

    ⛶
  • minimize unsafe reference lifetime

    gofiber/fiber
    Null Handling Markdown
    2
    ⭐ 37560

    When working with methods that return potentially unsafe references or data that could become invalid, pass...

    ⛶
  • justified nolint exceptions

    gofiber/fiber
    Code Style Yaml
    2
    ⭐ 37560

    When style linters cannot be applied universally across a codebase due to architectural constraints or legi...

    ⛶
  • Document error conditions clearly

    gofiber/fiber
    Error Handling Markdown
    2
    ⭐ 37560

    Always provide clear documentation for error conditions, unsafe usage patterns, and failure scenarios in AP...

    ⛶
  • Configurable logging controls

    gofiber/fiber
    Logging Go
    2
    ⭐ 37560

    Make logging behavior configurable rather than hardcoded, and avoid manipulating global state for logging p...

    ⛶
  • avoid `-count=1` flag

    gofiber/fiber
    Testing Yaml
    2
    ⭐ 37560

    Avoid using the `-count=1` flag in Go test commands unless specifically required to disable test caching. R...

    ⛶
  • API design clarity

    gofiber/fiber
    API Markdown
    2
    ⭐ 37560

    Maintain clear separation of concerns in API design by avoiding feature overlap and ensuring each method ha...

    ⛶
  • Verify types in tests

    fastify/fastify
    Testing TypeScript
    2
    ⭐ 34000

    Use explicit type assertions in TypeScript tests to verify that types behave as expected across various sce...

    ⛶
  • Use bot identity

    fastify/fastify
    CI/CD Yaml
    2
    ⭐ 34000

    When configuring Git operations in GitHub Actions workflows, especially for automated commits, use the GitH...

    ⛶
  • Support flexible logging

    fastify/fastify
    Logging JavaScript
    2
    ⭐ 34000

    When designing logging interfaces, create flexible APIs that accommodate both standard and custom logging n...

    ⛶
  • Secure Fastify Code Implementation

    fastify/fastify
    Fastify TypeScript
    2
    ⭐ 34000

    This review focuses on secure implementation patterns when using the Fastify web framework in TypeScript: p...

    ⛶
  • Proper IPv6 address formatting

    fastify/fastify
    Networking JavaScript
    2
    ⭐ 34000

    When constructing URLs with IP addresses, ensure IPv6 addresses are properly formatted according to RFC sta...

    ⛶
  • Ensure Proper Null Handling When Using Fastify Decorators

    fastify/fastify
    Fastify TypeScript
    2
    ⭐ 34000

    When working with Fastify decorators, always perform explicit null checks before accessing potentially unde...

    ⛶
  • Consistent Fastify Package Naming and References

    fastify/fastify
    Fastify TypeScript
    2
    ⭐ 34000

    When implementing code using the Fastify package in TypeScript, it is important to use consistent and accur...

    ⛶
  • Use universally understandable identifiers

    fastapi/fastapi
    Naming Conventions Python
    2
    ⭐ 86871

    When naming variables, functions, routes, and other code elements, use clear, neutral terminology that will...

    ⛶
  • Use streaming generators

    fastapi/fastapi
    Algorithms Markdown
    2
    ⭐ 86871

    When processing large files or datasets, implement generator functions that yield data incrementally rather...

    ⛶
  • Use appropriate documentation formats

    fastapi/fastapi
    Documentation Python
    2
    ⭐ 86871

    Choose the most suitable documentation format based on context to maximize readability and information valu...

    ⛶
  • Optimize IO with async

    fastapi/fastapi
    Performance Optimization Markdown
    2
    ⭐ 86871

    FastAPI's performance advantage comes from its asynchronous foundation built on Starlette and Uvicorn, usin...

    ⛶
  • Environment-specific database configuration

    fastapi/fastapi
    Database Markdown
    2
    ⭐ 86871

    Configure database connections differently based on the environment. Use lightweight file-based databases l...

    ⛶
  • Consistent dependency versioning

    fastapi/fastapi
    Configurations Txt
    2
    ⭐ 86871

    When updating dependency version constraints in requirements files, ensure consistency with versions pinned...

    ⛶
  • Clear informative errors

    fastapi/fastapi
    Error Handling Python
    2
    ⭐ 86871

    Error messages should be clear, specific, and provide enough context to understand the issue without exposi...

    ⛶
  • Avoid blocking in async

    fastapi/fastapi
    Concurrency Python
    2
    ⭐ 86871

    When working with asynchronous code, ensure that I/O operations (like file reads/writes) don't block the ev...

    ⛶
  • Modern TypeScript style

    expressjs/express
    Code Style TypeScript
    2
    ⭐ 67300

    Use modern TypeScript syntax and conventions throughout the codebase. This includes: - Using `const` instea...

    ⛶
  • Method chaining for clarity

    expressjs/express
    API Markdown
    2
    ⭐ 67300

    Design API methods that favor chaining over multiple parameters to improve readability and maintainability....

    ⛶
  • Maintain API types

    expressjs/express
    API TypeScript
    2
    ⭐ 67300

    Ensure API type definitions accurately reflect current implementations. When maintaining TypeScript definit...

    ⛶
  • Exclude sensitive configurations

    expressjs/express
    Configurations Other
    2
    ⭐ 67300

    Do not commit sensitive, time-limited, or environment-specific configuration files to version control. Inst...

    ⛶
  • Clear array operations

    expressjs/express
    Algorithms JavaScript
    2
    ⭐ 67300

    When working with arrays, prioritize clarity and explicitness over terse or clever constructs. For array me...

    ⛶
  • Accurate JSDoc documentation

    expressjs/express
    Documentation JavaScript
    2
    ⭐ 67300

    Always ensure JSDoc comments accurately reflect the actual code implementation. Parameter types, optionalit...

    ⛶
  • minimize test maintenance

    evanw/esbuild
    Testing Go
    2
    ⭐ 39161

    Avoid unnecessary test maintenance overhead by eliminating duplicate test coverage and implementing automat...

    ⛶
  • Follow configuration conventions

    evanw/esbuild
    Configurations TypeScript
    2
    ⭐ 39161

    When working with configurations, maintain consistency by following established conventions and proper cate...

    ⛶
  • cross-platform API consistency

    evanw/esbuild
    API TypeScript
    2
    ⭐ 39161

    Design APIs to provide consistent behavior and user experience across different runtime environments and mo...

    ⛶
  • Scope configuration impact

    electron/electron
    Configurations Yaml
    2
    ⭐ 117644

    When implementing configuration settings, carefully consider and limit their scope to prevent unintended br...

    ⛶
  • Protocol-specific network handling

    electron/electron
    Networking Other
    2
    ⭐ 117644

    When implementing custom network protocol behavior, ensure that modifications are properly scoped to only t...

    ⛶
  • extract reusable workflow components

    electron/electron
    CI/CD Yaml
    2
    ⭐ 117644

    Avoid duplicating workflow steps across multiple CI/CD pipelines by extracting common functionality into re...

    ⛶
  • consistent platform identifiers

    electron/electron
    Naming Conventions Yaml
    2
    ⭐ 117644

    When naming platform identifiers, choose one naming convention and use it consistently throughout the codeb...

    ⛶
  • avoid runtime credential resolution

    electron/electron
    Security Shell
    2
    ⭐ 117644

    Security credentials and access control mechanisms should be pre-configured at deployment or configuration ...

    ⛶
  • Use current configuration patterns

    elastic/elasticsearch
    Configurations Yaml
    2
    ⭐ 73104

    Always use the current recommended configuration patterns for your project, avoiding deprecated approaches....

    ⛶
  • Specify explicit REST formats

    elastic/elasticsearch
    API Yaml
    2
    ⭐ 73104

    Always specify explicit request formats in REST API tests rather than relying on default behaviors. This in...

    ⛶
  • Document security requirements explicitly

    elastic/elasticsearch
    Security Other
    2
    ⭐ 73104

    Always document security-related configurations, permissions, and behaviors explicitly and comprehensively....

    ⛶
  • Document performance tradeoffs

    elastic/elasticsearch
    Performance Optimization Other
    2
    ⭐ 73104

    Always explicitly document the performance implications of API parameters, limit changes, and features that...

    ⛶
  • Complete API parameter documentation

    elastic/elasticsearch
    API Other
    2
    ⭐ 73104

    API endpoints must include comprehensive documentation for all parameters. For each parameter, clearly spec...

    ⛶
  • Avoid flaky tests

    elastic/elasticsearch
    Testing Yaml
    2
    ⭐ 73104

    Design tests to be deterministic and reliable across different environments. Tests that occasionally fail d...

    ⛶
  • use robust test selectors

    dyad-sh/dyad
    Testing TypeScript
    2
    ⭐ 16903

    E2E tests should use stable, reliable selectors and waiting strategies to prevent flaky test failures. Pref...

    ⛶
  • Use parameter objects

    dyad-sh/dyad
    API TypeScript
    2
    ⭐ 16903

    Design API methods to accept parameter objects instead of individual parameters or complex optional fields....

    ⛶
  • separate model-specific configuration

    dyad-sh/dyad
    AI TypeScript
    2
    ⭐ 16903

    Avoid mixing model-specific features with provider-level configuration or hard-coding model-specific logic ...

    ⛶
  • Maintain naming consistency

    dyad-sh/dyad
    Naming Conventions TypeScript
    2
    ⭐ 16903

    Ensure naming follows consistent patterns within the codebase and adheres to official framework conventions...

    ⛶
  • Use specialized sensitive types

    duckdb/duckdb
    Security Other
    2
    ⭐ 32061

    When handling sensitive data like encryption keys, choose data types based on the data's lifecycle and secu...

    ⛶
  • secure sensitive data handling

    duckdb/duckdb
    Security C++
    2
    ⭐ 32061

    When handling sensitive data like encryption keys, passwords, or authentication tokens, avoid using standar...

    ⛶
  • Preserve API backward compatibility

    duckdb/duckdb
    API Python
    2
    ⭐ 32061

    When modifying existing APIs, ensure that current usage patterns continue to work unchanged. This applies t...

    ⛶
  • prefer environment variables

    duckdb/duckdb
    Configurations Yaml
    2
    ⭐ 32061

    When configuring behavior that needs to work across different execution contexts (CI workflows, manual runs...

    ⛶
  • maintain formatting consistency

    duckdb/duckdb
    Code Style Python
    2
    ⭐ 32061

    Ensure consistent formatting patterns and styles throughout the codebase, both when writing new code and re...

    ⛶
  • maintain API backwards compatibility

    duckdb/duckdb
    API Json
    2
    ⭐ 32061

    Never modify existing stable API versions in ways that could break backwards compatibility. When adding new...

    ⛶
  • ensure comprehensive test coverage

    duckdb/duckdb
    Testing Python
    2
    ⭐ 32061

    Tests should validate all relevant code paths and actually exercise the functionality they claim to test. W...

    ⛶
  • avoid redundant computations

    duckdb/duckdb
    Performance Optimization Python
    2
    ⭐ 32061

    Move loop-invariant conditions and computations outside of iteration blocks to improve performance and redu...

    ⛶
  • Use relative documentation links

    stanfordnlp/dspy
    Documentation Markdown
    2
    ⭐ 27813

    Always use relative links instead of absolute links in documentation files to enable proper broken link det...

    ⛶
  • synchronize configuration environments

    stanfordnlp/dspy
    Configurations Yaml
    2
    ⭐ 27813

    Ensure configuration values remain consistent between local development and CI/CD environments, and documen...

    ⛶
  • Dependency lock file management

    stanfordnlp/dspy
    Configurations Other
    2
    ⭐ 27813

    Always commit dependency lock files (poetry.lock, package-lock.json, etc.) to version control and maintain ...

    ⛶
  • AI signature consistency

    stanfordnlp/dspy
    AI Other
    2
    ⭐ 27813

    Ensure AI model signatures maintain consistency between field types and descriptions, and avoid redundant p...

    ⛶
  • Add comprehensive test coverage

    stanfordnlp/dspy
    Testing Markdown
    2
    ⭐ 27813

    When introducing new functionality, always include corresponding test coverage that extends existing test i...

    ⛶
  • track migration state immediately

    drizzle-team/drizzle-orm
    Migrations TypeScript
    2
    ⭐ 29461

    Ensure migration state is recorded in the database immediately after each migration file is successfully ap...

    ⛶
  • intuitive API method design

    drizzle-team/drizzle-orm
    API TypeScript
    2
    ⭐ 29461

    Design API methods with intuitive names and signatures that follow established conventions and provide good...

    ⛶
  • consistent naming patterns

    drizzle-team/drizzle-orm
    Naming Conventions TypeScript
    2
    ⭐ 29461

    Maintain consistent naming conventions across similar constructs in your codebase. This includes using cons...

    ⛶
  • avoid cosmetic formatting changes

    drizzle-team/drizzle-orm
    Code Style TypeScript
    2
    ⭐ 29461

    Avoid including purely cosmetic formatting changes in pull requests that serve a functional purpose. Automa...

    ⛶
  • Organize by functionality

    django/django
    Code Style JavaScript
    2
    ⭐ 84182

    Place code in files that match its functionality. When functionality applies to multiple components, use a ...

    ⛶
  • AI documentation targeting

    django/django
    AI Txt
    2
    ⭐ 84182

    When writing technical documentation, consider AI systems as a direct audience that may read and act upon y...

    ⛶
  • Domain-appropriate data structures

    wagoodman/dive
    Algorithms Go
    2
    ⭐ 51517

    Design data structures that accurately reflect the constraints and behavior of your problem domain. Choose ...

    ⛶
  • Use safe navigation operator

    discourse/discourse
    Null Handling Ruby
    2
    ⭐ 44898

    Prefer Ruby's safe navigation operator (`&.`) over explicit nil checks when calling methods on potentially ...

    ⛶
  • Self-documenting identifiers

    discourse/discourse
    Naming Conventions Yaml
    2
    ⭐ 44898

    Choose names that are immediately understandable without requiring additional context, documentation lookup...

    ⛶
  • Prevent async race conditions

    discourse/discourse
    Concurrency Other
    2
    ⭐ 44898

    When handling multiple concurrent async operations (like user input triggering API calls or messageBus upda...

    ⛶
  • prefer async/await patterns

    discourse/discourse
    Concurrency JavaScript
    2
    ⭐ 44898

    Convert promise chains to async/await syntax for better readability, error handling, and proper cleanup ope...

    ⛶
  • optimize data structure choices

    discourse/discourse
    Algorithms Ruby
    2
    ⭐ 44898

    Choose data structures that optimize for your access patterns and computational complexity requirements. Wh...

    ⛶
  • MessageBus subscription practices

    discourse/discourse
    Networking Other
    2
    ⭐ 44898

    When using MessageBus for network communication, follow these essential practices to ensure reliable messag...

    ⛶
  • Log errors for debugging

    discourse/discourse
    Error Handling Other
    2
    ⭐ 44898

    Always log errors in catch blocks and use named functions to improve debugging and error traceability. Empt...

    ⛶
  • Limit plugin outlet APIs

    discourse/discourse
    API Other
    2
    ⭐ 44898

    When creating plugin outlets or extension points, avoid exposing entire component instances, controllers, o...

    ⛶
  • Control event propagation

    discourse/discourse
    Networking JavaScript
    2
    ⭐ 44898

    Prevent unintended network requests and interface conflicts by properly controlling event propagation in in...

    ⛶
  • Consistent text formatting

    discourse/discourse
    Documentation Yaml
    2
    ⭐ 44898

    Ensure text formatting follows established guidelines and maintains consistency within the same context. Th...

    ⛶
  • avoid dynamic test generation

    discourse/discourse
    Testing Other
    2
    ⭐ 44898

    Avoid using loops (forEach, for, etc.) to dynamically generate tests from arrays or objects, as this patter...

    ⛶
  • Validate before accessing

    langgenius/dify
    Error Handling TSX
    2
    ⭐ 114231

    Always validate preconditions before performing operations that could throw runtime errors. This includes c...

    ⛶
  • Separate AI instructions

    langgenius/dify
    AI Python
    2
    ⭐ 114231

    Always separate AI model instructions from user input to prevent prompt injection vulnerabilities and maint...

    ⛶
  • Responsible AI management

    langgenius/dify
    AI Yaml
    2
    ⭐ 114231

    Ensure AI models are managed responsibly throughout their lifecycle and have appropriate boundaries on thei...

    ⛶
  • prefer nullish coalescing operator

    langgenius/dify
    Null Handling TSX
    2
    ⭐ 114231

    Use the nullish coalescing operator (`??`) instead of logical OR (`||`) when you want to provide default va...

    ⛶
  • Offload heavy operations

    langgenius/dify
    Celery Python
    2
    ⭐ 114231

    Move heavy operations, especially those involving large data processing or bulk deletions, from synchronous...

    ⛶
  • Manage side effects properly

    langgenius/dify
    React TSX
    2
    ⭐ 114231

    Avoid performing side effects directly in component render functions. Use useEffect for side effects like A...

    ⛶
  • Document for team readability

    langgenius/dify
    Documentation TSX
    2
    ⭐ 114231

    Ensure code includes appropriate documentation to improve readability and help team members understand and ...

    ⛶
  • Document configuration choices

    langgenius/dify
    Configurations Shell
    2
    ⭐ 114231

    Configuration scripts and files should clearly document non-obvious choices, especially numeric IDs, specia...

    ⛶
  • CI testing tool integration

    langgenius/dify
    Testing Yaml
    2
    ⭐ 114231

    When integrating new testing or analysis tools into CI pipelines, use graceful failure patterns during init...

    ⛶
  • API payload structure

    langgenius/dify
    API TypeScript
    2
    ⭐ 114231

    Design API request and response payloads to match their specific purpose rather than forcing them to confor...

    ⛶
  • Platform-specific configuration separation

    zen-browser/desktop
    Configurations Other
    2
    ⭐ 34711

    Configuration options should be separated between common/shared settings and platform-specific settings to ...

    ⛶
  • event delegation patterns

    zen-browser/desktop
    Networking Other
    2
    ⭐ 34711

    When handling events in web applications, especially those involving network-triggered UI updates or real-t...

    ⛶
  • consistent CSS spacing

    zen-browser/desktop
    Code Style Css
    2
    ⭐ 34711

    Ensure consistent spacing across UI components by using CSS custom properties for padding/margins and apply...

    ⛶
  • Verify algorithm correctness

    denoland/deno
    Algorithms JavaScript
    2
    ⭐ 103714

    Ensure algorithms produce expected results by validating data flow and checking that all execution paths re...

    ⛶
  • validate configuration schemas

    denoland/deno
    Configurations Json
    2
    ⭐ 103714

    Configuration schemas should be actively validated, well-documented, and kept up-to-date through automated ...

    ⛶
  • Use standard API interfaces

    denoland/deno
    API TypeScript
    2
    ⭐ 103714

    Always prefer established API interfaces and patterns over custom or alternative approaches. This ensures c...

    ⛶
  • remove unnecessary prefixes

    denoland/deno
    Code Style Css
    2
    ⭐ 103714

    Remove vendor prefixes from CSS properties that have achieved sufficient browser support across modern brow...

    ⛶
  • prevent prototype pollution

    denoland/deno
    Security JavaScript
    2
    ⭐ 103714

    When implementing security measures around JavaScript's `__proto__` property, disable the setter to prevent...

    ⛶
  • prefer efficient built-ins

    denoland/deno
    Algorithms TypeScript
    2
    ⭐ 103714

    When multiple built-in methods can accomplish the same algorithmic task, prefer the single comprehensive me...

    ⛶
  • null checks before operations

    denoland/deno
    Null Handling TypeScript
    2
    ⭐ 103714

    Always check for null or undefined values before performing operations on objects, accessing properties, or...

    ⛶
  • Mirror related API methods

    denoland/deno
    API JavaScript
    2
    ⭐ 103714

    When designing APIs with related method pairs (such as send/receive, input/output, or request/response), en...

    ⛶
  • Manage async operation lifecycle

    denoland/deno
    Concurrency TypeScript
    2
    ⭐ 103714

    When working with async operations, carefully manage execution context and resource references across await...

    ⛶
  • Extract complex inline logic

    denoland/deno
    Code Style TypeScript
    2
    ⭐ 103714

    When functions contain complex inline logic or duplicated code, extract this logic into separate functions ...

    ⛶
  • Enhance error message clarity

    denoland/deno
    Error Handling JavaScript
    2
    ⭐ 103714

    Error messages should be both specific about what went wrong and provide contextual information to help dev...

    ⛶
  • comprehensive test verification

    denoland/deno
    Testing Other
    2
    ⭐ 103714

    Write tests that comprehensively verify functionality by covering related scenarios and testing complete ou...

    ⛶
  • comprehensive test coverage

    denoland/deno
    Testing TypeScript
    2
    ⭐ 103714

    Ensure tests cover both happy path scenarios and edge cases, including error conditions and boundary behavi...

    ⛶
  • benchmark performance assumptions

    denoland/deno
    Performance Optimization JavaScript
    2
    ⭐ 103714

    Always validate performance assumptions with concrete benchmarks rather than making optimization decisions ...

    ⛶
  • avoid tooling workarounds

    denoland/deno
    Code Style JavaScript
    2
    ⭐ 103714

    Avoid code patterns that require workarounds for tooling limitations or create maintenance burdens. This in...

    ⛶
  • avoid redundant observability data

    denoland/deno
    Observability TypeScript
    2
    ⭐ 103714

    When implementing observability features like tracing and monitoring, avoid exposing redundant information ...

    ⛶
  • Type-safe numerical algorithms

    deeplearning4j/deeplearning4j
    Algorithms C++
    2
    ⭐ 14036

    When implementing numerical algorithms, always use appropriate data types to prevent overflow and preserve ...

    ⛶
  • Prevent memory leaks

    deeplearning4j/deeplearning4j
    Performance Optimization C++
    2
    ⭐ 14036

    Always ensure proper memory management when using dynamic allocation. Memory leaks are a critical performan...

    ⛶
  • Preserve API compatibility

    deeplearning4j/deeplearning4j
    API Kotlin
    2
    ⭐ 14036

    When evolving APIs, prioritize backward compatibility to protect existing client code. Make new parameters ...

    ⛶
  • Optimize validation checks

    deeplearning4j/deeplearning4j
    Performance Optimization CUDA
    2
    ⭐ 14036

    When implementing validation and requirement checks, balance thoroughness with performance considerations. ...

    ⛶
  • Optimize hardware acceleration

    deeplearning4j/deeplearning4j
    AI Xml
    2
    ⭐ 14036

    AI systems should use the most performant hardware acceleration libraries and carefully manage hardware-spe...

    ⛶
  • Modular adaptive configurations

    deeplearning4j/deeplearning4j
    Configurations Yaml
    2
    ⭐ 14036

    Structure configuration scripts with modularity and adaptability in mind. Extract repeated parameters into ...

    ⛶
  • Maintain proper capitalization

    deeplearning4j/deeplearning4j
    Naming Conventions Markdown
    2
    ⭐ 14036

    Always use correct and consistent capitalization for product names, class names, and method names throughou...

    ⛶
  • Ensure test determinism

    deeplearning4j/deeplearning4j
    Testing Java
    2
    ⭐ 14036

    Create reliable and reproducible tests by explicitly controlling test inputs and verifying function behavio...

    ⛶
  • Document in-code decisions

    deeplearning4j/deeplearning4j
    Documentation CUDA
    2
    ⭐ 14036

    Always include explanations for implementation decisions, non-obvious constructs, and specialized functions...

    ⛶
  • Document AI implementation references

    deeplearning4j/deeplearning4j
    AI C++
    2
    ⭐ 14036

    When implementing AI algorithms or neural network operations, document the sources of specific implementati...

    ⛶
  • Use descriptive testing names

    cypress-io/cypress
    Testing Json
    2
    ⭐ 48850

    Ensure all testing-related identifiers, scripts, and messages use clear, descriptive names rather than abbr...

    ⛶
  • Test version compatibility

    cypress-io/cypress
    Testing JSX
    2
    ⭐ 48850

    When testing across different versions of dependencies, proactively address version compatibility issues to...

    ⛶
  • Strengthen test assertions

    cypress-io/cypress
    Testing JavaScript
    2
    ⭐ 48850

    Write specific, regression-proof test assertions that validate exact expected values rather than allowing a...

    ⛶
  • standardize API patterns

    cypress-io/cypress
    API JavaScript
    2
    ⭐ 48850

    Establish consistent patterns for API design, particularly for request/response formats and parameter struc...

    ⛶
  • Safe null access patterns

    cypress-io/cypress
    Null Handling Other
    2
    ⭐ 48850

    Always provide fallbacks when accessing properties or methods on values that could be undefined or null to ...

    ⛶
  • Prioritize naming clarity

    cypress-io/cypress
    Naming Conventions Json
    2
    ⭐ 48850

    Choose names and aliases that clearly communicate their purpose and meaning rather than optimizing for brev...

    ⛶
  • Prioritize JSX readability

    cypress-io/cypress
    React TSX
    2
    ⭐ 48850

    Favor inline conditional rendering in JSX over extracting logic to variables before the return statement, a...

    ⛶
  • prioritize backward compatibility

    cypress-io/cypress
    API TSX
    2
    ⭐ 48850

    When evolving APIs, prioritize maintaining backward compatibility over enforcing strict design constraints....

    ⛶
  • Prefer standard terminology

    cypress-io/cypress
    Naming Conventions JSX
    2
    ⭐ 48850

    Use widely accepted industry-standard names and conventions rather than descriptive but non-standard altern...

    ⛶
  • optimize dynamic loading

    cypress-io/cypress
    Performance Optimization JavaScript
    2
    ⭐ 48850

    When using dynamic imports, implement timing controls and strategic naming to ensure reliable and efficient...

    ⛶
  • Network data encoding

    cypress-io/cypress
    Networking TypeScript
    2
    ⭐ 48850

    Ensure network-related data like URLs and IP addresses are properly encoded and typed to prevent validation...

    ⛶
  • Improve code expressiveness

    cypress-io/cypress
    Code Style JSX
    2
    ⭐ 48850

    Write code that clearly communicates its intent through expressive method names and simplified control flow...

    ⛶
  • ensure async synchronization

    cypress-io/cypress
    Concurrency Other
    2
    ⭐ 48850

    When dealing with async operations that depend on external systems (servers, backends, etc.), ensure proper...

    ⛶
  • Document non-obvious code

    cypress-io/cypress
    Documentation JavaScript
    2
    ⭐ 48850

    Add explanatory comments when code logic is unclear, implements workarounds, or has special reasoning that ...

    ⛶
  • Choose appropriate type comparisons

    cypress-io/cypress
    Algorithms Other
    2
    ⭐ 48850

    When implementing algorithms that compare or process different data types, carefully consider the level of ...

    ⛶
  • await promise-returning functions

    cypress-io/cypress
    Concurrency TypeScript
    2
    ⭐ 48850

    Always await functions that return promises to ensure proper asynchronous execution and avoid potential rac...

    ⛶
  • avoid redundant I/O operations

    cypress-io/cypress
    Performance Optimization TypeScript
    2
    ⭐ 48850

    Identify and eliminate repeated expensive operations, particularly file system access, by implementing cach...

    ⛶
  • Avoid brittle CSS patterns

    cypress-io/cypress
    Code Style Css
    2
    ⭐ 48850

    Write CSS that prioritizes maintainability and reduces the likelihood of conflicts or brittleness. This inc...

    ⛶
  • Functional code examples

    crewaiinc/crewai
    Documentation Other
    2
    ⭐ 33945

    Ensure all code examples in documentation are complete, accurate, and ready to run without modification. Si...

    ⛶
  • Fail securely by default

    crewaiinc/crewai
    Security Python
    2
    ⭐ 33945

    When designing systems that handle sensitive operations, always default to the most secure behavior rather ...

    ⛶
  • Consistent configuration declarations

    crewaiinc/crewai
    Configurations Markdown
    2
    ⭐ 33945

    Ensure configuration specifications (such as version requirements, environment settings, and tool declarati...

    ⛶
  • Review configuration constants regularly

    home-assistant/core
    Configurations Other
    2
    ⭐ 80450

    Configuration constants and mappings require regular maintenance to stay aligned with evolving platform cap...

    ⛶
  • Restrict administrative access

    home-assistant/core
    Security Python
    2
    ⭐ 80450

    Implement proper authorization controls for sensitive operations that can modify system configuration or cr...

    ⛶
  • Prefer safe DOM manipulations

    vuejs/core
    Security TypeScript
    2
    ⭐ 50769

    When manipulating DOM content, prefer safer alternatives to innerHTML when possible to prevent Cross-Site S...

    ⛶
  • Optimize build scripts

    vuejs/core
    CI/CD Json
    2
    ⭐ 50769

    Improve CI/CD pipeline efficiency by optimizing package.json scripts. Run compatible tasks in parallel usin...

    ⛶
  • Maintain inline documentation

    home-assistant/core
    Documentation Python
    2
    ⭐ 80450

    Ensure inline code comments are accurate, current, and provide meaningful explanations for complex or uncle...

    ⛶
  • comprehensive error handling

    adonisjs/core
    Error Handling TypeScript
    2
    ⭐ 18071

    Ensure error handling mechanisms are comprehensive and graceful rather than limited or forceful. Use persis...

    ⛶
  • API response transformation

    home-assistant/core
    API Other
    2
    ⭐ 80450

    When integrating external APIs, implement a translation layer that transforms responses into a standardized...

    ⛶
  • Align configurations with usage

    vuejs/core
    Configurations Json
    2
    ⭐ 50769

    Configuration files should accurately reflect the actual requirements and characteristics of your codebase....

    ⛶
  • User-friendly configuration retrieval

    continuedev/continue
    Configurations Python
    2
    ⭐ 27819

    When retrieving configuration values like API keys or environment variables, include helpful error messages...

    ⛶
  • Use async/await pattern

    continuedev/continue
    Concurrency TSX
    2
    ⭐ 27819

    Prefer async/await syntax over promise chains or callback patterns when working with asynchronous operation...

    ⛶
  • Mutually exclusive promises

    continuedev/continue
    Error Handling JavaScript
    2
    ⭐ 27819

    Ensure that promises are either resolved or rejected, but never both. When handling promise resolution in c...

    ⛶
  • Logging levels hierarchy

    continuedev/continue
    Logging TSX
    2
    ⭐ 27819

    Use appropriate logging levels to prevent debug noise from leaking into production environments. Reserve co...

    ⛶
  • Layer documentation by complexity

    continuedev/continue
    Documentation Other
    2
    ⭐ 27819

    Structure documentation to be approachable for beginners while remaining comprehensive for all users. Keep ...

    ⛶
  • Avoid duplicated code

    continuedev/continue
    Code Style Kotlin
    2
    ⭐ 27819

    Identify and extract shared functionality between classes into reusable components. Code duplication increa...

    ⛶
  • Use structured logging framework

    docker/compose
    Logging Go
    2
    ⭐ 35858

    Prefer structured logging frameworks like logrus over direct fmt output functions for consistency, proper l...

    ⛶
  • Pin git dependencies

    docker/compose
    Configurations Txt
    2
    ⭐ 35858

    When using git references for dependencies in configuration files like requirements.txt, always pin to spec...

    ⛶
  • optimize Docker layer caching

    docker/compose
    CI/CD Dockerfile
    2
    ⭐ 35858

    Order Dockerfile instructions from least frequently changing to most frequently changing to maximize Docker...

    ⛶
  • Isolate test dependencies

    docker/compose
    Testing Other
    2
    ⭐ 35858

    Keep test dependencies separate from production code dependencies to avoid polluting the main module. Use s...

    ⛶
  • evaluate dependency API compatibility

    docker/compose
    API Other
    2
    ⭐ 35858

    Before adding or updating dependencies, thoroughly evaluate API compatibility and understand the implicatio...

    ⛶
  • Document complex code

    docker/compose
    Documentation Python
    2
    ⭐ 35858

    When code elements become complex—whether functions performing multiple operations or data structures with ...

    ⛶
  • Document CI/CD workflows clearly

    docker/compose
    CI/CD Markdown
    2
    ⭐ 35858

    When documenting CI/CD processes, build pipelines, or deployment workflows, use clear and precise language ...

    ⛶
  • Avoid variable name conflicts

    docker/compose
    Naming Conventions Other
    2
    ⭐ 35858

    Choose variable names that prevent conflicts with system variables, external tools, and variables in overla...

    ⛶
  • Avoid hardcoded configuration values

    docker/compose
    Configurations Shell
    2
    ⭐ 35858

    Configuration values should be parameterized rather than hardcoded in scripts and tools. Hardcoded values m...

    ⛶
  • avoid external test dependencies

    docker/compose
    Testing Python
    2
    ⭐ 35858

    Tests should not depend on external resources like real URLs, remote servers, or external APIs as these dep...

    ⛶
  • Avoid confusing names

    docker/compose
    Naming Conventions Python
    2
    ⭐ 35858

    Choose clear, unambiguous names that don't shadow existing identifiers or create confusion about their purp...

    ⛶
  • Use optional chaining operators

    comfyanonymous/ComfyUI
    Null Handling JavaScript
    2
    ⭐ 83726

    Use optional chaining (`?.`) and nullish coalescing (`??`) operators instead of manual null checks to safel...

    ⛶
  • Structure documentation comprehensively

    comfyanonymous/ComfyUI
    Documentation Markdown
    2
    ⭐ 83726

    Documentation should provide complete, practical information while maintaining logical organization and inf...

    ⛶
  • Optimize tensor operation chains

    comfyanonymous/ComfyUI
    Pytorch Python
    2
    ⭐ 83726

    When working with PyTorch tensors, look for opportunities to optimize operation chains for better performan...

    ⛶
  • leverage native configuration features

    comfyanonymous/ComfyUI
    Configurations Yaml
    2
    ⭐ 83726

    When configuring applications in containerized environments, prefer using the application's built-in config...

    ⛶
  • Container security best practices

    comfyanonymous/ComfyUI
    Security Dockerfile
    2
    ⭐ 83726

    Implement comprehensive security measures in containerized applications to prevent privilege escalation, in...

    ⛶
  • centralize configuration constants

    comfyanonymous/ComfyUI
    Configurations JavaScript
    2
    ⭐ 83726

    Configuration values, constants, and default settings should be defined in a single location and referenced...

    ⛶
  • avoid hardcoded values

    comfyanonymous/ComfyUI
    Code Style JavaScript
    2
    ⭐ 83726

    Replace hardcoded styling values and configuration constants with flexible alternatives to improve maintain...

    ⛶
  • AI hardware platform support

    comfyanonymous/ComfyUI
    AI Markdown
    2
    ⭐ 83726

    AI applications must properly handle different GPU platforms (NVIDIA CUDA, AMD ROCm, Iluvatar Corex, etc.) ...

    ⛶
  • Workspace version configuration

    openai/codex
    Configurations Toml
    2
    ⭐ 31275

    Standardize version management across multi-crate Rust projects by using workspace versioning. This reduces...

    ⛶
  • Verify state before execution

    openai/codex
    Concurrency TypeScript
    2
    ⭐ 31275

    When scheduling asynchronous operations in concurrent environments, always verify the system state hasn't c...

    ⛶
  • Secure CI/CD pipelines

    openai/codex
    Security Yaml
    2
    ⭐ 31275

    Implement strict security controls in continuous integration and deployment workflows: 1. Pin external Git...

    ⛶
  • Provider-agnostic API design

    openai/codex
    API Rust
    2
    ⭐ 31275

    Design your API interfaces to be provider-agnostic rather than tightly coupled to specific service provider...

    ⛶
  • Provider-agnostic AI code

    openai/codex
    AI TypeScript
    2
    ⭐ 31275

    Design AI integration code to be provider-agnostic, avoiding assumptions that all models will come from a s...

    ⛶
  • Proper package.json structure

    openai/codex
    Configurations Json
    2
    ⭐ 31275

    Maintain clean and properly structured package.json files by following these principles: 1. Categorize dep...

    ⛶
  • Pin external action dependencies

    openai/codex
    CI/CD Yaml
    2
    ⭐ 31275

    Use full commit hashes instead of version tags when referencing third-party GitHub Actions in workflows to ...

    ⛶
  • Configure loggers consistently

    salesforce/cloudsplaining
    Logging Python
    2
    ⭐ 2100

    Always configure module-level loggers with a consistent pattern across the codebase. Use `logging.getLogger...

    ⛶
  • Use null meaningfully

    cline/cline
    Null Handling TSX
    2
    ⭐ 48299

    Choose between null and undefined based on semantic intent rather than convenience. Use null when operation...

    ⛶
  • Remove production console logs

    cline/cline
    Logging TypeScript
    2
    ⭐ 48299

    Console logs should not appear in production code, especially debug statements that can expose sensitive in...

    ⛶
  • organize environment configurations

    cline/cline
    Configurations Yaml
    2
    ⭐ 48299

    Environment variables in CI/CD workflows should be organized consistently using structured `env` sections r...

    ⛶
  • optimize workflow maintainability

    cline/cline
    CI/CD Yaml
    2
    ⭐ 48299

    Design CI/CD workflows for long-term maintainability by using consolidated commands and extracting reusable...

    ⛶
  • isolate mock configurations

    cline/cline
    Testing TSX
    2
    ⭐ 48299

    When using Vitest mocking, avoid multiple `vi.mock` calls for the same module within a single test file, as...

    ⛶
  • Handle async operations safely

    cline/cline
    Error Handling TSX
    2
    ⭐ 48299

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

    ⛶
  • Document configuration assumptions

    cline/cline
    Configurations Markdown
    2
    ⭐ 48299

    When documenting configuration settings, environment setup, or system requirements, explicitly state assump...

    ⛶
  • Configure formatting tools consistently

    cline/cline
    Code Style Other
    2
    ⭐ 48299

    Properly configure development tools to maintain consistent code formatting across the entire codebase and ...

    ⛶
  • avoid unnecessary custom hooks

    cline/cline
    React TypeScript
    2
    ⭐ 48299

    Before creating custom hooks, evaluate whether existing solutions or simpler patterns can address the need....

    ⛶
  • Avoid premature memoization

    cline/cline
    React TSX
    2
    ⭐ 48299

    Don't automatically reach for useMemo and useCallback for every computation or function. These hooks add co...

    ⛶
  • Analyze async operation dependencies

    cline/cline
    Concurrency TSX
    2
    ⭐ 48299

    Before choosing between sequential awaits and parallel execution (Promise.all), carefully analyze whether o...

    ⛶
  • AI provider consistency

    cline/cline
    AI TSX
    2
    ⭐ 48299

    Ensure consistent patterns and configurations across all AI model providers to maintain code maintainabilit...

    ⛶
  • AI capability documentation

    cline/cline
    AI Markdown
    2
    ⭐ 48299

    When documenting AI systems, models, or assistants, ensure technical terminology is precise and capabilitie...

    ⛶
  • Write focused, clear tests

    ClickHouse/ClickHouse
    Testing Sql
    2
    ⭐ 42425

    Tests should be simple, focused on a single concern, and easy to understand. When a test combines multiple ...

    ⛶
  • Recognize nullable type context

    ClickHouse/ClickHouse
    Null Handling Other
    2
    ⭐ 42425

    Before adding nullable casts or special null handling logic, verify whether the type or context already pro...

    ⛶
  • preserve existing environment variables

    ClickHouse/ClickHouse
    Configurations Python
    2
    ⭐ 42425

    When modifying environment variables in code, always preserve existing values by appending or merging rathe...

    ⛶
  • Document implementation rationale

    ClickHouse/ClickHouse
    Networking Other
    2
    ⭐ 42425

    When implementing networking or system-level functionality where multiple approaches exist, always document...

    ⛶
  • Document API parameters inline

    ClickHouse/ClickHouse
    API Other
    2
    ⭐ 42425

    When designing APIs, prioritize clarity and self-documentation by adding inline comments for non-obvious pa...

    ⛶
  • consistent mutex protection

    ClickHouse/ClickHouse
    Concurrency C++
    2
    ⭐ 42425

    Ensure consistent mutex usage across all access points to shared data structures and clearly document what ...

    ⛶
  • Comprehensive database testing

    ClickHouse/ClickHouse
    Database Sql
    2
    ⭐ 42425

    Database tests should verify both query execution and optimization behavior through comprehensive scenario ...

    ⛶
  • avoid redundant cache lookups

    ClickHouse/ClickHouse
    Caching C++
    2
    ⭐ 42425

    When implementing cache functionality, avoid performing the same cache lookup multiple times. Instead, stor...

    ⛶
  • verify downloaded file integrity

    snyk/cli
    Security Python
    2
    ⭐ 5178

    Always verify the integrity of downloaded files before using them, especially in security-sensitive applica...

    ⛶
  • Use file locks

    snyk/cli
    Concurrency Go
    2
    ⭐ 5178

    When multiple processes or goroutines need to access shared file system resources concurrently, use file lo...

    ⛶
  • Use descriptive parameter names

    snyk/cli
    Naming Conventions Yaml
    2
    ⭐ 5178

    Parameter names should clearly indicate their purpose and avoid ambiguity or conflicts with existing constr...

    ⛶
  • Use descriptive identifier names

    snyk/cli
    Naming Conventions Go
    2
    ⭐ 5178

    Choose specific, descriptive names for variables, functions, types, and parameters that clearly indicate th...

    ⛶
  • separate build from runtime

    snyk/cli
    CI/CD Shell
    2
    ⭐ 5178

    Dependencies and build requirements should be installed during Docker image creation or environment setup, ...

    ⛶
  • maintain CI/CD boundaries

    snyk/cli
    CI/CD Markdown
    2
    ⭐ 5178

    Ensure clear separation between different CI/CD concerns and maintain accurate documentation of automated p...

    ⛶
  • maintain build environment parity

    snyk/cli
    CI/CD Other
    2
    ⭐ 5178

    Ensure that local development and CI/CD environments use identical build commands and dependency management...

    ⛶
  • Explain complex logic

    snyk/cli
    Documentation Go
    2
    ⭐ 5178

    Add explanatory comments for non-obvious code sections, complex business logic, and public methods to clari...

    ⛶
  • API interface design

    snyk/cli
    API Go
    2
    ⭐ 5178

    Design interfaces that balance simplicity with extensibility. Consolidate related parameters into cohesive ...

    ⛶
  • Fail fast principle

    anthropics/claude-code
    Error Handling Shell
    2
    ⭐ 25432

    When writing security-sensitive shell scripts, use strict error handling to fail immediately on errors rath...

    ⛶
  • Maintain naming consistency

    anthropics/claude-agent-sdk-python
    Naming Conventions Python
    2
    ⭐ 2158

    Ensure field names, method names, and identifiers are consistent across different contexts including cross-...

    ⛶
  • Verify automated documentation

    chef/chef
    Documentation Markdown
    2
    ⭐ 7860

    When using automated tools to generate documentation, always verify the output for accuracy and document an...

    ⛶
  • Structure CI/CD scripts

    chef/chef
    CI/CD Shell
    2
    ⭐ 7860

    Improve CI/CD shell scripts' readability and maintainability by using appropriate shell script patterns. Us...

    ⛶
  • Standardize bash error-handling

    chef/chef
    Error Handling Shell
    2
    ⭐ 7860

    Always use `set -eou pipefail` at the beginning of bash scripts to ensure consistent and robust error handl...

    ⛶
  • Log message quality

    chef/chef
    Logging Markdown
    2
    ⭐ 7860

    Ensure all log messages are consistent in formatting and clear in purpose. Complete sentences in logs shoul...

    ⛶
  • Use correct encryption properties

    bridgecrewio/checkov
    Security Json
    2
    ⭐ 7668

    When configuring security features in Azure ARM templates, always use the correct property names as specifi...

    ⛶
  • Target core resources

    bridgecrewio/checkov
    Networking Yaml
    2
    ⭐ 7668

    When implementing network security checks for serverless functions like AWS Lambda, ensure you target the c...

    ⛶
  • Secure API endpoints

    bridgecrewio/checkov
    API Yaml
    2
    ⭐ 7667

    Always configure proper authorization for API endpoints to prevent unauthorized access to back-end resource...

    ⛶
  • Minimize workflow complexity

    bridgecrewio/checkov
    CI/CD Yaml
    2
    ⭐ 7668

    Keep GitHub Actions workflows efficient and maintainable by eliminating redundant configurations and ensuri...

    ⛶
  • Lambda CORS protection

    bridgecrewio/checkov
    Networking Yaml
    2
    ⭐ 7667

    When implementing network security checks for AWS Lambda functions, ensure that CORS (Cross-Origin Resource...

    ⛶
  • Implement pre-commit hooks

    bridgecrewio/checkov
    CI/CD Markdown
    2
    ⭐ 7668

    Automate quality and security checks by implementing pre-commit hooks in your Git repositories to catch iss...

    ⛶
  • Ensure dependency compatibility

    bridgecrewio/checkov
    Configurations Other
    2
    ⭐ 7668

    When adding or updating dependencies in configuration files (Pipfile, requirements.txt), ensure compatibili...

    ⛶
  • Configure security scanners completely

    bridgecrewio/checkov
    Security Yaml
    2
    ⭐ 7668

    Security scanning tools must be fully configured to maximize detection capabilities. When implementing tool...

    ⛶
  • Azure encryption property names

    bridgecrewio/checkov
    Security Json
    2
    ⭐ 7667

    When configuring encryption settings for Azure resources in ARM templates, always use the correct property ...

    ⛶
  • Optimize AI interactions

    ChatGPTBox-dev/chatGPTBox
    AI Other
    2
    ⭐ 10660

    When working with AI models and LLMs, optimize both prompts and input data to improve model performance and...

    ⛶
  • Context-aware null checking

    ChatGPTBox-dev/chatGPTBox
    Null Handling Other
    2
    ⭐ 10660

    Choose null checking patterns based on your function's purpose and intended behavior with empty values. For...

    ⛶
  • Use unstable_cache directly

    calcom/cal.com
    Caching TSX
    2
    ⭐ 37732

    When implementing server-side caching in Next.js applications, prefer using `unstable_cache` with direct re...

    ⛶
  • Specify stable dependency versions

    calcom/cal.com
    Configurations Json
    2
    ⭐ 37732

    Always use specific semantic versions or caret ranges for stable releases in package.json and other depende...

    ⛶
  • optimize component memoization

    calcom/cal.com
    Performance Optimization TSX
    2
    ⭐ 37732

    When implementing React.memo for performance optimization, ensure props are structured to enable effective ...

    ⛶
  • CI conditional job handling

    calcom/cal.com
    CI/CD Yaml
    2
    ⭐ 37732

    When implementing CI workflows with path-based filtering, ensure that conditional jobs don't inadvertently ...

    ⛶
  • Centralize workflow scheduling

    calcom/cal.com
    Temporal TypeScript
    2
    ⭐ 37732

    Avoid scattering workflow scheduling logic across multiple handlers. Instead, create dedicated service meth...

    ⛶
  • Validate workflow files

    oven-sh/bun
    CI/CD Yaml
    2
    ⭐ 79093

    Ensure all CI/CD workflow configuration files are validated for accuracy and consistency. Small errors in w...

    ⛶
  • Validate network inputs

    oven-sh/bun
    Networking C++
    2
    ⭐ 79093

    Network code must validate all inputs and handle error conditions properly to prevent security vulnerabilit...

    ⛶
  • Validate loop boundary conditions

    oven-sh/bun
    Algorithms Other
    2
    ⭐ 79093

    When implementing iterative algorithms, ensure comprehensive handling of edge cases and boundary conditions...

    ⛶
  • Use branch prediction

    oven-sh/bun
    Algorithms C++
    2
    ⭐ 79093

    Optimize performance-critical algorithms by using branch prediction hints to guide the CPU. Add `UNLIKELY` ...

    ⛶
  • Thread-safe state transitions

    oven-sh/bun
    Concurrency C++
    2
    ⭐ 79093

    When modifying shared state in multithreaded code, implement proper checks and state transitions to prevent...

    ⛶
  • Path comparison precision

    oven-sh/bun
    Algorithms TypeScript
    2
    ⭐ 79093

    When implementing file path matching or exclusion algorithms, use precise comparison techniques that respec...

    ⛶
  • Optimize database interactions

    oven-sh/bun
    Database C++
    2
    ⭐ 79093

    When working with database operations, prioritize efficiency by avoiding redundant query executions. Instea...

    ⛶
  • Match API conventions

    oven-sh/bun
    API Other
    2
    ⭐ 79093

    Ensure API implementations match established conventions and reference implementations to maintain compatib...

    ⛶
  • Judicious move semantics

    oven-sh/bun
    Code Style C++
    2
    ⭐ 79093

    Apply C++ move semantics and lambda modifiers only when necessary. The `mutable` keyword should only be use...

    ⛶
  • Initialize default values

    oven-sh/bun
    Null Handling Python
    2
    ⭐ 79093

    Always initialize class attributes with default values to prevent AttributeError exceptions when accessing ...

    ⛶
  • Hide implementation details

    oven-sh/bun
    API TypeScript
    2
    ⭐ 79093

    When designing APIs, carefully consider which elements of your implementation become part of the public int...

    ⛶
  • Function invocation syntax

    oven-sh/bun
    Code Style JavaScript
    2
    ⭐ 79093

    Use the appropriate invocation syntax for functions based on their intended usage. Regular functions should...

    ⛶
  • Follow standard API specifications

    oven-sh/bun
    API C++
    2
    ⭐ 79093

    Ensure API implementations strictly adhere to published specifications, even when adding features or optimi...

    ⛶
  • Document configuration variations

    oven-sh/bun
    Configurations Markdown
    2
    ⭐ 79093

    When documenting or implementing configuration options, always include variations needed for different envi...

    ⛶
  • Cache repeated accesses

    oven-sh/bun
    Performance Optimization C++
    2
    ⭐ 79093

    When accessing the same property or calling the same function multiple times, especially in loops or perfor...

    ⛶
  • validate connection timeouts

    browser-use/browser-use
    Networking Python
    2
    ⭐ 69139

    Always validate network connection states and implement explicit timeout handling to prevent zombie connect...

    ⛶
  • preserve exception context

    browser-use/browser-use
    Error Handling Python
    2
    ⭐ 69139

    When handling exceptions, always preserve the original error context to aid in debugging and error diagnosi...

    ⛶
  • organize tests by category

    browser-use/browser-use
    Testing Yaml
    2
    ⭐ 69139

    Structure test suites into clear, logical categories and run them as separate CI jobs for better paralleliz...

    ⛶
  • Model initialization formatting

    browser-use/browser-use
    AI Other
    2
    ⭐ 69139

    Maintain consistent formatting when initializing AI models and agents. Use proper spacing around assignment...

    ⛶
  • Maintain configuration consistency

    browser-use/browser-use
    Configurations Other
    2
    ⭐ 69139

    When modifying configuration settings, especially environment variables, ensure changes are consistent with...

    ⛶
  • Document configuration decisions

    browser-use/browser-use
    Configurations Toml
    2
    ⭐ 69139

    Configuration files should be self-explanatory and maintainable by including explicit version constraints a...

    ⛶
  • Configuration documentation completeness

    browser-use/browser-use
    Configurations Markdown
    2
    ⭐ 69139

    Configuration documentation should include all necessary constraints and limitations while avoiding redunda...

    ⛶
  • Avoid logging sensitive content

    browser-use/browser-use
    Logging Python
    2
    ⭐ 69139

    Be cautious about what data gets included in log messages to prevent security risks and performance issues....

    ⛶
  • Avoid hardcoded API assumptions

    browser-use/browser-use
    API Python
    2
    ⭐ 69139

    API interfaces should not contain hardcoded implementation details or assume specific underlying technologi...

    ⛶
  • Resolve naming conflicts clearly

    Homebrew/brew
    Naming Conventions Markdown
    2
    ⭐ 44168

    When naming components, packages, or files that conflict with existing names in your system or related ecos...

    ⛶
  • Prefer flags over conditionals

    Homebrew/brew
    Configurations Other
    2
    ⭐ 44168

    When implementing environment-specific or version-dependent behavior, use feature flags or configuration va...

    ⛶
  • Pin GitHub actions

    Homebrew/brew
    Security Yaml
    2
    ⭐ 44168

    Always pin GitHub Actions to specific commit hashes rather than version tags (like @v4). Using version tags...

    ⛶
  • Document configuration decisions

    Homebrew/brew
    Configurations Yaml
    2
    ⭐ 44168

    When making configuration changes, especially those that deviate from standard practices or involve depreca...

    ⛶
  • Decouple CI from code

    Homebrew/brew
    CI/CD Shell
    2
    ⭐ 44168

    Separate CI configuration from code that serves other purposes. When variables or settings affect both user...

    ⛶
  • Use appropriate comment syntax

    boto/boto3
    Documentation Html
    2
    ⭐ 9417

    Choose the correct comment syntax based on the file type and processing system to ensure documentation serv...

    ⛶
  • Keep CI configurations updated

    boto/boto3
    CI/CD Yaml
    2
    ⭐ 9417

    Regularly review and update CI configuration files to remove obsolete settings and use appropriate version ...

    ⛶
  • Function-focused code organization

    boto/boto3
    Code Style JavaScript
    2
    ⭐ 9417

    Files should contain only code related to their named purpose, with proper organization and formatting. Whe...

    ⛶
  • Follow flake8 style guidelines

    boto/boto3
    Code Style Other
    2
    ⭐ 9417

    Adhere to the project's established flake8 style guidelines as defined in setup.cfg. This includes: 1. Mai...

    ⛶
  • Avoid identifier name stuttering

    boto/boto3
    Naming Conventions Json
    2
    ⭐ 9417

    Do not repeat the resource name in identifier names. This form of stuttering makes code less readable and i...

    ⛶
  • Optimize database queries

    better-auth/better-auth
    Database TypeScript
    2
    ⭐ 19651

    Avoid inefficient database query patterns by using batch operations and appropriate query types. Instead of...

    ⛶
  • Intentional configuration management

    better-auth/better-auth
    Configurations Json
    2
    ⭐ 19651

    Configuration choices should be intentional, balancing production requirements with developer experience wh...

    ⛶
  • Improve documentation clarity

    better-auth/better-auth
    Documentation Other
    2
    ⭐ 19651

    Write clear, accessible, and consistent documentation by using descriptive link text and providing complete...

    ⛶
  • Document configuration requirements

    better-auth/better-auth
    Configurations Other
    2
    ⭐ 19651

    Ensure that configuration requirements, dependencies, and options are clearly documented and communicated t...

    ⛶
  • API endpoint correctness

    better-auth/better-auth
    API Markdown
    2
    ⭐ 19651

    API endpoints must behave according to their intended design, properly handling special values and executin...

    ⛶
  • Write specific test assertions

    bazelbuild/bazel
    Testing Shell
    2
    ⭐ 24489

    Make test assertions specific and verifiable rather than relying on generic metrics or counts. Use explicit...

    ⛶
  • Organize code for readability

    bazelbuild/bazel
    Code Style Python
    2
    ⭐ 24489

    Structure code to minimize complexity and improve readability through logical organization. This includes u...

    ⛶
  • Document network interface purposes

    bazelbuild/bazel
    Networking Java
    2
    ⭐ 24489

    When implementing multiple network-related interfaces or classes that handle similar operations (like downl...

    ⛶
  • Document algorithmic reasoning

    bazelbuild/bazel
    Algorithms Other
    2
    ⭐ 24489

    When implementing algorithms that involve data transformations, platform-specific behavior, or non-obvious ...

    ⛶
  • comprehensive edge case testing

    bazelbuild/bazel
    Testing Other
    2
    ⭐ 24489

    Write comprehensive tests that cover edge cases and platform-specific scenarios to uncover underlying imple...

    ⛶
  • avoid brittle algorithms

    bazelbuild/bazel
    Algorithms Python
    2
    ⭐ 24489

    Replace fragile algorithmic approaches with robust, well-tested alternatives. Brittle algorithms that rely ...

    ⛶
  • Automate sensitive CI artifacts

    bazelbuild/bazel
    CI/CD Other
    2
    ⭐ 24489

    Large files and security-sensitive artifacts should be automatically generated in CI/CD pipelines rather th...

    ⛶
  • Use higher-level telemetry

    Azure/azure-sdk-for-net
    Observability Markdown
    2
    ⭐ 5809

    When implementing observability for Azure services, prefer higher-level telemetry packages and configuratio...

    ⛶
  • Preserve protocol data integrity

    Azure/azure-sdk-for-net
    Networking Markdown
    2
    ⭐ 5809

    When working with network protocols (like AMQP, NFS, or SMB), maintain the integrity of the original protoc...

    ⛶
  • Match CI commands locally

    Azure/azure-sdk-for-net
    CI/CD Markdown
    2
    ⭐ 5809

    Always use the same build and test commands locally that are used in your CI pipeline to ensure consistency...

    ⛶
  • Handle external process errors

    Azure/azure-sdk-for-net
    Error Handling Other
    2
    ⭐ 5809

    When calling external processes (like dotnet, msbuild, etc.), always implement proper error handling and ou...

    ⛶
  • Eliminate repeated code

    Azure/azure-sdk-for-net
    Code Style Other
    2
    ⭐ 5809

    Reduce code duplication by extracting repeated patterns into variables, loops, or helper functions. When yo...

    ⛶
  • Document non-obvious code

    Azure/azure-sdk-for-net
    Documentation Yaml
    2
    ⭐ 5809

    Add clarifying comments to code elements whose purpose or behavior may not be immediately apparent to other...

    ⛶
  • Document maintenance decisions

    Azure/azure-sdk-for-net
    Documentation Other
    2
    ⭐ 5809

    Add clear documentation for any decisions that affect future code maintenance. This includes: 1. Providing...

    ⛶
  • Document AI changes thoroughly

    Azure/azure-sdk-for-net
    AI Markdown
    2
    ⭐ 5809

    When updating AI libraries and SDKs, ensure all changes are thoroughly documented in changelogs with clear ...

    ⛶
  • Complete pipeline configurations

    Azure/azure-sdk-for-net
    CI/CD Json
    2
    ⭐ 5809

    Ensure all CI/CD configuration files have their required fields properly populated with specific values rat...

    ⛶
  • Approve AI dependencies conditionally

    Azure/azure-sdk-for-net
    AI Other
    2
    ⭐ 5809

    All AI-related dependencies (Microsoft.Extensions.AI.*, etc.) require explicit approval before inclusion an...

    ⛶
  • Address not mask

    Azure/azure-sdk-for-net
    CI/CD Other
    2
    ⭐ 5809

    Always address the root cause of CI/CD pipeline issues rather than masking them with quick fixes. This appl...

    ⛶
  • Use Appropriate Concurrency Patterns with Axum

    tokio-rs/axum
    Axum TypeScript
    2
    ⭐ 22100

    When building asynchronous Axum applications that share mutable state, it's important to select the right c...

    ⛶
  • Implement Distributed Tracing in Axum Applications

    tokio-rs/axum
    Axum TypeScript
    2
    ⭐ 22100

    As an Axum code reviewer, I recommend implementing proper distributed tracing in your Axum-based web applic...

    ⛶
  • User-friendly error messages

    axios/axios
    Error Handling Html
    2
    ⭐ 107000

    Error messages should be concise and clearly communicate what went wrong without unnecessary verbosity. Whe...

    ⛶
  • Flexible configuration design

    axios/axios
    Configurations TypeScript
    2
    ⭐ 107000

    Design configuration interfaces to be flexible and extensible rather than overly specific. When creating co...

    ⛶
  • Consistent semicolon usage

    axios/axios
    Code Style TypeScript
    2
    ⭐ 107000

    Always terminate statements with explicit semicolons to maintain consistency with the existing codebase sty...

    ⛶
  • Consistent Axios Usage Patterns

    axios/axios
    Axios TypeScript
    2
    ⭐ 107000

    Maintain consistent usage of the Axios library throughout your TypeScript codebase. Pay special attention t...

    ⛶
  • Standardize API promise patterns

    aws/aws-sdk-js
    API JavaScript
    2
    ⭐ 7628

    When adding promise support to API methods, implement a consistent pattern that handles both callback-style...

    ⛶
  • Semantic type organization

    aws/aws-sdk-js
    Naming Conventions TypeScript
    2
    ⭐ 7628

    Organize types and interfaces in intuitive namespace hierarchies and use specific types instead of generic ...

    ⛶
  • Organize type declarations

    aws/aws-sdk-js
    Code Style TypeScript
    2
    ⭐ 7628

    Structure TypeScript declarations to improve maintainability and developer experience. Organize related typ...

    ⛶
  • Example documentation standards

    aws/aws-sdk-js
    Documentation Ruby
    2
    ⭐ 7628

    Organize API documentation examples for maximum clarity and usefulness. Place hand-written examples before ...

    ⛶
  • Document sdk version requirements

    aws/aws-sdk-js
    Configurations Markdown
    2
    ⭐ 7628

    Always explicitly document AWS SDK version requirements in your project, and include configuration instruct...

    ⛶
  • Complete configuration type definitions

    aws/aws-sdk-js
    Configurations TypeScript
    2
    ⭐ 7628

    Ensure configuration type definitions are complete and consistent between global and service-specific setti...

    ⛶
  • Accurate type signatures

    aws/aws-sdk-js
    API TypeScript
    2
    ⭐ 7628

    When defining API interfaces in TypeScript, ensure that method signatures accurately reflect the actual beh...

    ⛶
  • Verify URL security and validity

    avelino/awesome-go
    Networking Markdown
    2
    ⭐ 151435

    Always ensure external URLs use HTTPS when available and verify that links resolve correctly before includi...

    ⛶
  • Verify markdown sanitization

    avelino/awesome-go
    Security Go
    2
    ⭐ 151435

    When processing markdown content, always verify what sanitization your chosen markdown library provides to ...

    ⛶
  • Follow Go style guidelines

    avelino/awesome-go
    Code Style Markdown
    2
    ⭐ 151435

    Code should adhere to the recommended Go style guidelines as outlined in the official Go Code Review Commen...

    ⛶
  • exported functions documentation

    avelino/awesome-go
    Documentation Markdown
    2
    ⭐ 151435

    All exported functions, types, and methods must include Go-style documentation comments that clearly explai...

    ⛶
  • Environment variable defaults

    avelino/awesome-go
    Configurations Go
    2
    ⭐ 151435

    Configuration values should be externalized to environment variables with sensible defaults to avoid hard-c...

    ⛶
  • Categorize by primary purpose

    avelino/awesome-go
    Configurations Markdown
    2
    ⭐ 151435

    When organizing configuration tools, environment management utilities, and settings-related projects, class...

    ⛶
  • validate conceptual API types

    argoproj/argo-cd
    API TypeScript
    2
    ⭐ 20149

    When defining API types, enums, or interfaces, ensure they represent accurate conceptual distinctions withi...

    ⛶
  • Use clear, descriptive names

    argoproj/argo-cd
    Naming Conventions Other
    2
    ⭐ 20149

    Choose names that accurately describe their purpose and avoid unnecessary verbosity. Field names should sem...

    ⛶
  • structured condition evaluation

    argoproj/argo-cd
    Observability Other
    2
    ⭐ 20149

    When implementing health checks, use comprehensive condition evaluation patterns instead of simple field co...

    ⛶
  • standardize commit tracing metadata

    argoproj/argo-cd
    CI/CD Markdown
    2
    ⭐ 20149

    When CI/CD pipelines make automated commits (such as image bumps or manifest updates), use standardized git...

    ⛶
  • simplify nested conditionals

    argoproj/argo-cd
    Code Style Other
    2
    ⭐ 20149

    Combine multiple nested if statements using logical operators (and/or) to improve code readability and redu...

    ⛶
  • Remove unnecessary elements

    argoproj/argo-cd
    Code Style Markdown
    2
    ⭐ 20149

    Eliminate superfluous syntax and words that don't add value to improve code readability and maintain consis...

    ⛶
  • Prevent silent failures

    argoproj/argo-cd
    Error Handling TSX
    2
    ⭐ 20149

    Ensure that user actions and validations provide clear feedback rather than failing silently. When operatio...

    ⛶
  • prefer modern React patterns

    argoproj/argo-cd
    React TSX
    2
    ⭐ 20149

    Favor modern React patterns over legacy approaches to improve code maintainability and prepare for future R...

    ⛶
  • Organize CSS systematically

    argoproj/argo-cd
    Code Style Css
    2
    ⭐ 20149

    When working with CSS/SCSS, prioritize organization and avoid duplication by following these principles: 1...

    ⛶
  • null-check before method calls

    argoproj/argo-cd
    Null Handling TSX
    2
    ⭐ 20149

    Always verify that properties are not null or undefined before calling methods on them to prevent runtime e...

    ⛶
  • Follow established naming patterns

    argoproj/argo-cd
    Naming Conventions Markdown
    2
    ⭐ 20149

    When introducing new identifiers (variables, methods, flags, metrics, etc.), examine existing code to ident...

    ⛶
  • Environment variable validation

    argoproj/argo-cd
    Configurations Shell
    2
    ⭐ 20149

    Scripts that depend on environment variables should validate their presence and values early, providing cle...

    ⛶
  • Document observability prerequisites

    argoproj/argo-cd
    Observability Markdown
    2
    ⭐ 20149

    When documenting observability features such as metrics, debugging capabilities, or monitoring tools, alway...

    ⛶
  • Document configuration risks comprehensively

    argoproj/argo-cd
    Configurations Yaml
    2
    ⭐ 20149

    When documenting configuration options, provide comprehensive information including current default values,...

    ⛶
  • Configuration UI consistency

    argoproj/argo-cd
    Configurations TSX
    2
    ⭐ 20149

    Ensure that configuration user interfaces accurately reflect the underlying configuration behavior and data...

    ⛶
  • API parameter extensibility

    argoproj/argo-cd
    API TSX
    2
    ⭐ 20149

    Design APIs to support multiple parameters from the beginning rather than limiting them to single parameter...

    ⛶
  • Validate documentation links

    appwrite/appwrite
    Documentation Markdown
    2
    ⭐ 51959

    Always verify that URLs in documentation resolve correctly (return HTTP 200) before merging changes. Broken...

    ⛶
  • Prevent API documentation duplication

    appwrite/appwrite
    Documentation Json
    2
    ⭐ 51959

    When maintaining API specification files (like OpenAPI or Swagger), ensure consistency and avoid duplicatio...

    ⛶
  • Match defaults to types

    appwrite/appwrite
    Null Handling Json
    2
    ⭐ 51959

    When specifying default values in schemas or configurations, ensure they match the declared type to prevent...

    ⛶
  • Flexible network handling

    appwrite/appwrite
    Networking JavaScript
    2
    ⭐ 51959

    When working with network connections and HTTP requests, implement flexible configuration patterns and robu...

    ⛶
  • Context-appropriate API authentication

    appwrite/appwrite
    API Markdown
    2
    ⭐ 51959

    Always use the authentication method appropriate for your API client's execution context. Server-side SDKs ...

    ⛶
  • Consistent language in naming

    appwrite/appwrite
    Naming Conventions TypeScript
    2
    ⭐ 51959

    Use a single language (preferably English) consistently throughout your codebase for all identifiers includ...

    ⛶
  • Consistent database parameters

    appwrite/appwrite
    Database Other
    2
    ⭐ 51959

    Maintain consistency and clarity in database-related parameters and configuration variables. Follow these p...

    ⛶
  • Test network performance

    ant-design/ant-design
    Networking JavaScript
    2
    ⭐ 95882

    Always validate network performance and connectivity before suggesting alternative endpoints or making rout...

    ⛶
  • Pin CI dependencies securely

    ant-design/ant-design
    CI/CD Yaml
    2
    ⭐ 95882

    Always pin CI/CD dependencies (GitHub Actions, external tools) to specific commit hashes or exact versions ...

    ⛶
  • Enforce CI workflow gates

    ant-design/ant-design
    CI/CD TypeScript
    2
    ⭐ 95882

    Establish and enforce proper CI/CD workflow gates to maintain code quality and release safety. This include...

    ⛶
  • consistent dependency formatting

    ant-design/ant-design
    Code Style Json
    2
    ⭐ 95882

    Maintain consistent formatting and organization when managing dependencies in package.json files. Use semve...

    ⛶
  • Use design system colors

    angular/angular
    Code Style Css
    2
    ⭐ 98611

    Always use design system color variables instead of hardcoded color values in stylesheets. This ensures con...

    ⛶
  • Pin GitHub Actions SHA

    angular/angular
    CI/CD Yaml
    2
    ⭐ 98611

    GitHub Actions should be pinned to specific SHA commits rather than mutable tag references to ensure securi...

    ⛶
  • Optimize configuration specificity

    angular/angular
    Configurations Other
    2
    ⭐ 98611

    Ensure configuration files use precise patterns and avoid redundant dependencies. Configuration specificati...

    ⛶
  • Guard unsafe API calls

    angular/angular
    Error Handling Markdown
    2
    ⭐ 98611

    Always check the availability or state of data before accessing potentially unsafe API methods that can thr...

    ⛶
  • Consider accessibility in markup

    angular/angular
    Code Style Html
    2
    ⭐ 98611

    When writing HTML markup, consider the accessibility implications of your formatting and structural choices...

    ⛶
  • Centralize configuration management

    angular/angular
    Configurations Html
    2
    ⭐ 98611

    Extract configuration state, feature flags, and version-dependent settings into dedicated services rather t...

    ⛶
  • User-friendly network descriptions

    alacritty/alacritty
    Networking Markdown
    2
    ⭐ 59675

    When documenting network-related features like URL handling, hyperlinks, or web protocols, prioritize user-...

    ⛶
  • unsafe code practices

    alacritty/alacritty
    Security Rust
    2
    ⭐ 59675

    Ensure proper use and documentation of unsafe code to prevent security vulnerabilities. The `unsafe` keywor...

    ⛶
  • synchronize platform configurations

    alacritty/alacritty
    Configurations Yaml
    2
    ⭐ 59675

    When making configuration changes that affect multiple platform-specific files, ensure all related configur...

    ⛶
  • Keep documentation together

    alacritty/alacritty
    Documentation Other
    2
    ⭐ 59675

    Documentation should keep related information physically close together rather than separating it across di...

    ⛶
  • centralize workspace dependencies

    alacritty/alacritty
    Configurations Toml
    2
    ⭐ 59675

    Define shared dependencies at the workspace level in the root Cargo.toml to ensure version consistency and ...

    ⛶
  • Assess security trade-offs

    alacritty/alacritty
    Security Other
    2
    ⭐ 59675

    When introducing dependencies or features that have security implications, explicitly evaluate whether the ...

    ⛶
  • Validate configuration source changes

    apache/airflow
    Configurations TSX
    2
    ⭐ 40858

    When switching between different configuration sources (like APIs or configuration values), ensure data str...

    ⛶
  • Use proper access patterns

    apache/airflow
    Configurations Other
    2
    ⭐ 40858

    Access configurations through documented abstraction layers rather than bypassing them with direct database...

    ⛶
  • Use guards over assertions

    apache/airflow
    Null Handling TSX
    2
    ⭐ 40858

    Prefer explicit type guards and null checks over TypeScript's type assertions (`as`) when handling potentia...

    ⛶
  • Share documentation configs

    apache/airflow
    Documentation Txt
    2
    ⭐ 40858

    Documentation tooling and configuration files should leverage shared/centralized resources rather than main...

    ⛶
  • Quote shell variables

    apache/airflow
    Code Style Shell
    2
    ⭐ 40858

    Always quote shell script variable expansions using double quotes to prevent word splitting issues and ensu...

    ⛶
  • Optimize CI configurations

    apache/airflow
    CI/CD Yaml
    2
    ⭐ 40858

    When designing CI/CD workflows, prioritize both resource efficiency and clear documentation. Incorporate dy...

    ⛶
  • Natural language translations

    apache/airflow
    Documentation Json
    2
    ⭐ 40858

    When providing translations for user interface elements and documentation, prioritize natural and idiomatic...

    ⛶
  • Thread-safe message dispatching

    Aider-AI/aider
    Concurrency Python
    2
    ⭐ 35856

    When implementing communication between multiple threads, ensure that messages are correctly routed to thei...

    ⛶
  • Isolate test environments

    Aider-AI/aider
    Testing Python
    2
    ⭐ 35856

    Tests should be isolated from the production environment to prevent side effects and ensure reproducibility...

    ⛶
  • Compatible null annotations

    Aider-AI/aider
    Null Handling Python
    2
    ⭐ 35856

    When annotating optional or nullable types in Python, ensure compatibility across all supported Python vers...

    ⛶
  • Versioning for migrations

    vercel/ai
    Migrations Markdown
    2
    ⭐ 15590

    Use appropriate version bumps to signal migration requirements and maintain clear upgrade paths. Flag break...

    ⛶
  • Optimize CI type checking

    vercel/ai
    CI/CD Json
    2
    ⭐ 15590

    Configure separate TypeScript type-checking strategies for CI environments and local development. CI pipeli...

    ⛶
  • Format for rendering compatibility

    vercel/ai
    Documentation Markdown
    2
    ⭐ 15590

    Documentation should be formatted appropriately for its intended rendering context and ensure discoverabili...

    ⛶
  • Flexible API inputs

    vercel/ai
    API Markdown
    2
    ⭐ 15590

    Design APIs to accept flexible input formats and schema structures, ensuring a better developer experience ...

    ⛶
  • Consistent camelCase naming

    vercel/ai
    Naming Conventions Other
    2
    ⭐ 15590

    Use camelCase consistently for all property names, method names, and configuration options, even when inter...

    ⛶
  • Consistent AI interfaces

    vercel/ai
    AI Markdown
    2
    ⭐ 15590

    Maintain consistent naming patterns and parameter structures across AI provider implementations. This makes...

    ⛶
  • Validate environment bindings

    cloudflare/agents
    Configurations TypeScript
    2
    ⭐ 2312

    Always validate that environment bindings exist and are of the expected type before using them, and ensure ...

    ⛶
  • validate connection protocols

    cloudflare/agents
    Networking TypeScript
    2
    ⭐ 2312

    Always validate network connection types, required parameters, and protocol-specific headers before process...

    ⛶
  • Test security boundaries

    cloudflare/agents
    Security TypeScript
    2
    ⭐ 2312

    Security mechanisms should be tested for both success and failure scenarios to ensure they properly enforce...

    ⛶
  • Warn against sudo

    zed-industries/zed
    Security Shell
    1
    ⭐ 62119

    Applications that may need elevated privileges should explicitly warn against running the entire applicatio...

    ⛶
  • avoid eval() function

    facebook/yoga
    Security TypeScript
    1
    ⭐ 18255

    The eval() function executes arbitrary JavaScript code from strings, creating significant security vulnerab...

    ⛶
  • Privacy documentation clarity

    cloudflare/workers-sdk
    Security Markdown
    1
    ⭐ 3379

    When documenting data collection practices, telemetry, or analytics features, explicitly enumerate what sen...

    ⛶
  • prefer standard crypto functions

    cloudflare/workers-sdk
    Security TypeScript
    1
    ⭐ 3379

    Use Node.js built-in crypto module functions instead of third-party cryptographic libraries when possible. ...

    ⛶
  • audit third-party dependencies

    cloudflare/workers-sdk
    Security Yaml
    1
    ⭐ 3379

    Before using third-party actions, libraries, or dependencies that require access to sensitive data (tokens,...

    ⛶
  • Configure secret scanning exceptions

    cloudflare/workerd
    Security JavaScript
    1
    ⭐ 6989

    When embedding test certificates or cryptographic keys in code for testing purposes, configure secret scann...

    ⛶
  • Update security patches regularly

    microsoft/vscode
    Security Other
    1
    ⭐ 174887

    Always keep dependencies, runtime environments, and libraries updated with the latest security patches to m...

    ⛶
  • Shell-specific input escaping

    microsoft/vscode
    Security TypeScript
    1
    ⭐ 174887

    When processing user input that will be used in shell commands, implement shell-specific escaping mechanism...

    ⛶
  • Document security implications

    volcano-sh/volcano
    Security Markdown
    1
    ⭐ 4899

    When writing documentation that involves handling sensitive data or security-related operations, always inc...

    ⛶
  • avoid unnecessary privilege tools

    volcano-sh/volcano
    Security Dockerfile
    1
    ⭐ 4899

    Do not install privilege escalation tools like sudo, su, or doas in containers unless they are explicitly r...

    ⛶
  • Verify dependency integrity

    vitessio/vitess
    Security Yaml
    1
    ⭐ 19815

    Always verify the integrity of external dependencies, especially those downloaded from non-official or pers...

    ⛶
  • Permission hierarchy awareness

    vitejs/vite
    Security Yaml
    1
    ⭐ 74031

    When implementing permission checks, understand the hierarchical nature of permissions and avoid redundant ...

    ⛶
  • Escape HTML content properly

    vitejs/vite
    Security TypeScript
    1
    ⭐ 74031

    Always use specialized HTML escaping functions when outputting dynamic content to prevent Cross-Site Script...

    ⛶
  • explicit cryptographic parameters

    vlang/v
    Security Markdown
    1
    ⭐ 36582

    Always explicitly specify security-critical parameters in cryptographic operations rather than relying on d...

    ⛶
  • Document cryptographic requirements

    vlang/v
    Security Other
    1
    ⭐ 36582

    Security-critical functions, especially those involving cryptographic operations, must include clear and ac...

    ⛶
  • Mask sensitive tokens

    astral-sh/uv
    Security Yaml
    1
    ⭐ 60322

    Always mask sensitive tokens, credentials, and secrets in CI/CD workflows to prevent accidental exposure in...

    ⛶
  • Document credential formats

    Unstructured-IO/unstructured
    Security Other
    1
    ⭐ 12117

    When documenting security-sensitive parameters such as private keys, certificates, API tokens, or other aut...

    ⛶
  • validate input constraints

    unionlabs/union
    Security TypeScript
    1
    ⭐ 74800

    Always validate user inputs against expected formats, constraints, and business rules before processing the...

    ⛶
  • Validate input before submission

    unionlabs/union
    Security Other
    1
    ⭐ 74800

    Always validate user input before enabling form submission to prevent processing of invalid or malicious da...

    ⛶
  • Add interactive element roles

    shadcn-ui/ui
    Security TSX
    1
    ⭐ 90568

    When adding event handlers like `onClick` to non-interactive elements such as `div`, always include appropr...

    ⛶
  • Accessible security indicators

    shadcn-ui/ui
    Security Css
    1
    ⭐ 90568

    Ensure all security-related UI elements such as warnings, error messages, and destructive action buttons me...

    ⛶
  • Precise documentation links

    vercel/turborepo
    Security Rust
    1
    ⭐ 28115

    When creating error messages related to security, permissions, or access controls, always provide specific ...

    ⛶
  • validate file paths

    traefik/traefik
    Security Go
    1
    ⭐ 55772

    Always validate and sanitize file paths when processing external input to prevent directory traversal attac...

    ⛶
  • Avoid unsafe code

    huggingface/tokenizers
    Security Rust
    1
    ⭐ 9868

    Prioritize memory safety and security over performance optimizations by avoiding unsafe code blocks, especi...

    ⛶
  • Sanitize command inputs

    hashicorp/terraform
    Security Go
    1
    ⭐ 45532

    When constructing commands that will be executed, always sanitize input values to prevent command injection...

    ⛶
  • Least privilege for tokens

    hashicorp/terraform
    Security Yaml
    1
    ⭐ 45532

    Always apply the principle of least privilege when configuring access tokens for CI/CD workflows and other ...

    ⛶
  • Unicode homoglyph validation

    microsoft/terminal
    Security Txt
    1
    ⭐ 99242

    Validate Unicode characters and detect potential homoglyph attacks where visually similar characters from d...

    ⛶
  • Maintain package verification

    tensorflow/tensorflow
    Security Other
    1
    ⭐ 190625

    Always keep signature verification enabled in package managers, even in development environments, Docker co...

    ⛶
  • Minimize credential data exposure

    temporalio/temporal
    Security Go
    1
    ⭐ 14953

    When handling security credentials (particularly TLS certificates) in data structures intended for transmis...

    ⛶
  • Minimize authentication complexity

    gravitational/teleport
    Security Yaml
    1
    ⭐ 19109

    Avoid implementing redundant authentication steps when secure, direct methods are already available. Multip...

    ⛶
  • defer authentication prompts

    gravitational/teleport
    Security TSX
    1
    ⭐ 19109

    Defer mounting components that trigger authentication prompts (MFA, per-session authentication) until they ...

    ⛶
  • Validate security-sensitive inputs

    spring-projects/spring-framework
    Security Java
    1
    ⭐ 58382

    Always use appropriate validation mechanisms for security-sensitive inputs to prevent vulnerabilities. When...

    ⛶
  • Inherit organization security policies

    spring-projects/spring-boot
    Security Markdown
    1
    ⭐ 77637

    Before implementing custom security documentation or procedures, check if your organization already provide...

    ⛶
  • Use secure credential storage

    SigNoz/signoz
    Security TypeScript
    1
    ⭐ 23369

    Avoid storing sensitive credentials like usernames and passwords in environment variables. Instead, use ded...

    ⛶
  • validate external system inputs

    servo/servo
    Security Yaml
    1
    ⭐ 32962

    When integrating with external systems that receive repository or organizational information, always implem...

    ⛶
  • maintain IAM role isolation

    serverless/serverless
    Security JavaScript
    1
    ⭐ 46810

    Each resource should use the IAM role assigned to its associated function rather than sharing roles across ...

    ⛶
  • Safe URL navigation

    getsentry/sentry
    Security TSX
    1
    ⭐ 41297

    Always use sanitized navigation utilities instead of directly manipulating `window.location` with potential...

    ⛶
  • Secure dependency constraints

    getsentry/sentry-php
    Security Json
    1
    ⭐ 1873

    When specifying dependency version constraints, always include lower version bounds that exclude versions w...

    ⛶
  • Comprehensive authentication notifications

    getsentry/sentry
    Security Html
    1
    ⭐ 41297

    Authentication notifications must include specific context about the triggering action, clear instructions ...

    ⛶
  • configurable security controls

    strands-agents/sdk-python
    Security Python
    1
    ⭐ 4044

    Design security mechanisms with configurable behavior to handle different threat scenarios and use cases. A...

    ⛶
  • Constant-time cryptographic validation

    dotnet/runtime
    Security C#
    1
    ⭐ 16578

    Always use constant-time comparison methods when validating cryptographic values to prevent timing side-cha...

    ⛶
  • Use explicit permission notations

    astral-sh/ruff
    Security Rust
    1
    ⭐ 40619

    When setting file permissions through system calls like `chmod`, always use explicit octal notation (with t...

    ⛶
  • validate client inputs

    TanStack/router
    Security Markdown
    1
    ⭐ 11590

    Always validate and sanitize client-provided data on the server side before processing. Client-side data, i...

    ⛶
  • Serialize dynamic code inputs

    TanStack/router
    Security TypeScript
    1
    ⭐ 11590

    Always serialize or sanitize user-controlled data before embedding it in dynamically generated code to prev...

    ⛶
  • Escape XML content securely

    RooCodeInc/Roo-Code
    Security Xml
    1
    ⭐ 17288

    Always use proper XML entity escaping instead of CDATA blocks when embedding XML-like content within XML do...

    ⛶
  • API authorization validation

    smallcloudai/refact
    Security Python
    1
    ⭐ 3114

    All API endpoints must implement proper authorization checks before processing requests, especially when au...

    ⛶
  • minimize public API exposure

    facebook/react-native
    Security Other
    1
    ⭐ 123178

    Keep internal implementation details private to reduce security attack surface. Public properties in header...

    ⛶
  • Prefer modern security

    quarkusio/quarkus
    Security Xml
    1
    ⭐ 14667

    When implementing security features (such as artifact signing), use current best practices and prefer pure-...

    ⛶
  • Test authentication dependencies

    prowler-cloud/prowler
    Security Toml
    1
    ⭐ 11834

    When updating authentication-related dependencies or adding new authentication capabilities (like SAML, OAu...

    ⛶
  • Precise CSP configuration

    prowler-cloud/prowler
    Security JavaScript
    1
    ⭐ 11834

    When integrating third-party services into your web application, carefully configure Content Security Polic...

    ⛶
  • Fix dependency vulnerabilities

    prowler-cloud/prowler
    Security Yaml
    1
    ⭐ 11834

    Security vulnerabilities in dependencies must be addressed immediately rather than bypassed with flags like...

    ⛶
  • Avoid localStorage for credentials

    prowler-cloud/prowler
    Security TypeScript
    1
    ⭐ 11834

    Do not store user profiles, authentication tokens, or other sensitive user information in client-side stora...

    ⛶
  • HTTP security headers

    prometheus/prometheus
    Security Markdown
    1
    ⭐ 59616

    Ensure that HTTP security headers are properly implemented and documented to prevent web vulnerabilities su...

    ⛶
  • Force re-sign Darwin binaries

    prometheus/prometheus
    Security Other
    1
    ⭐ 59616

    When building binaries for macOS (Darwin), always force re-sign them to prevent compatibility issues caused...

    ⛶
  • explicit authentication logic

    prometheus/prometheus
    Security Go
    1
    ⭐ 59616

    Make authentication and security-related boolean conditions explicit and direct rather than using intermedi...

    ⛶
  • avoid GitHub template injection

    prometheus/prometheus
    Security Yaml
    1
    ⭐ 59616

    Avoid using GitHub workflow template expressions `${{ }}` directly in shell commands within `run:` steps, a...

    ⛶
  • vet third-party actions

    prisma/prisma
    Security Yaml
    1
    ⭐ 42967

    Before using third-party GitHub Actions or similar external dependencies, thoroughly review their security ...

    ⛶
  • Verify HTML escaping

    PostHog/posthog
    Security Html
    1
    ⭐ 28460

    Always verify that user-controlled content in templates is properly HTML-escaped to prevent XSS attacks. Do...

    ⛶
  • Use proper authorization attributes

    PostHog/posthog
    Security TSX
    1
    ⭐ 28460

    Avoid using Django framework attributes like `is_staff` and `is_impersonated` for application role checking...

    ⛶
  • Use allowlists over blocklists

    PostHog/posthog
    Security TypeScript
    1
    ⭐ 28460

    When filtering data for security purposes, prefer allowlists (explicitly defining what is permitted) over b...

    ⛶
  • Redact sensitive credentials

    pola-rs/polars
    Security Rust
    1
    ⭐ 34296

    When implementing authentication or handling credentials, always redact sensitive information (keys, tokens...

    ⛶
  • Secure encryption key backups

    opentofu/opentofu
    Security Other
    1
    ⭐ 25901

    Always implement proper encryption key management procedures, including secure backups of encryption keys b...

    ⛶
  • Preserve sensitive data marks

    opentofu/opentofu
    Security Go
    1
    ⭐ 25901

    Carefully handle data marked as sensitive throughout the codebase to maintain security properties. Ensure t...

    ⛶
  • Validate CI/CD timing checks

    nuxt/nuxt
    Security Yaml
    1
    ⭐ 57769

    When implementing timing-based security checks in CI/CD workflows, ensure that timestamp comparisons use ta...

    ⛶
  • Enforce permission-based UI controls

    novuhq/novu
    Security TSX
    1
    ⭐ 37700

    Always implement proper authorization checks in UI components that expose sensitive functionality. Wrap but...

    ⛶
  • Scope security settings

    nodejs/node
    Security Markdown
    1
    ⭐ 112178

    Avoid modifying global security state in favor of connection-specific or context-bound security settings. G...

    ⛶
  • Document security attributes

    vercel/next.js
    Security TSX
    1
    ⭐ 133000

    When handling security-related attributes (like nonces, integrity hashes, or CSP directives), always docume...

    ⛶
  • Decode before validation

    vercel/next.js
    Security TypeScript
    1
    ⭐ 133000

    Always decode URL paths before performing security validations to prevent bypass attacks using URL encoding...

    ⛶
  • Secure proxy endpoints

    ChatGPTNextWeb/NextChat
    Security Other
    1
    ⭐ 85721

    Proxy endpoints that forward requests to external services can be exploited by malicious actors if left uns...

    ⛶
  • Use secure hash algorithms

    nestjs/nest
    Security TypeScript
    1
    ⭐ 71767

    Always use strong, modern cryptographic hash algorithms for security-sensitive operations. Avoid deprecated...

    ⛶
  • Secure hash algorithms

    nestjs/nest
    Security TypeScript
    1
    ⭐ 71766

    Always use cryptographically secure hash algorithms for sensitive operations instead of weak or broken ones...

    ⛶
  • Proactive dependency security

    nestjs/nest
    Security Json
    1
    ⭐ 71767

    Always maintain dependencies at their latest secure versions, even when automated vulnerability scanning to...

    ⛶
  • Comprehensive dependency security checks

    nestjs/nest
    Security Json
    1
    ⭐ 71766

    Regularly check dependencies for security vulnerabilities using multiple sources, not just npm audit. As sh...

    ⛶
  • Security warnings need guidance

    neovim/neovim
    Security Other
    1
    ⭐ 91433

    Security-related warnings and error messages should provide clear, actionable guidance on how users can saf...

    ⛶
  • Prefer opt-in security

    neondatabase/neon
    Security Dockerfile
    1
    ⭐ 19015

    When implementing security features that modify data presentation or alter normal data access patterns (lik...

    ⛶
  • Harden CI/CD runners

    neondatabase/neon
    Security Yaml
    1
    ⭐ 19015

    All CI/CD workflow jobs must implement security controls for network traffic, particularly using the step-s...

    ⛶
  • Escape SQL parameters

    neondatabase/neon
    Security Sql
    1
    ⭐ 19015

    Always escape parameters in database connection strings to prevent SQL injection attacks. Direct string con...

    ⛶
  • Secure credential management

    n8n-io/n8n
    Security Txt
    1
    ⭐ 122978

    Never hardcode sensitive information like passwords, API keys, or access tokens directly in code or configu...

    ⛶
  • Restrict database access

    n8n-io/n8n
    Security Terraform
    1
    ⭐ 122978

    Never allow unrestricted public access (0.0.0.0/0) to database instances. Restrict database network access ...

    ⛶
  • Avoid hardcoded credentials

    n8n-io/n8n
    Security Dockerfile
    1
    ⭐ 122978

    Never hardcode sensitive information such as passwords, API keys, or authentication tokens in source code, ...

    ⛶
  • Avoid eval function

    apache/mxnet
    Security Python
    1
    ⭐ 20801

    Never use the `eval()` function in Python code as it creates serious security vulnerabilities by executing ...

    ⛶
  • Use 404 over 403

    mastodon/mastodon
    Security Other
    1
    ⭐ 48691

    When blocking access to security-sensitive endpoints or directories, return HTTP 404 (Not Found) instead of...

    ⛶
  • referrer header privacy

    mastodon/mastodon
    Security Yaml
    1
    ⭐ 48691

    When implementing features that link to external sites, carefully consider referrer policies to prevent uni...

    ⛶
  • Default to minimum permissions

    maplibre/maplibre-native
    Security Swift
    1
    ⭐ 1411

    Always default to the least invasive privacy settings and explicitly request elevated permissions only when...

    ⛶
  • Buffer bounds validation

    maplibre/maplibre-native
    Security C++
    1
    ⭐ 1411

    Always validate buffer boundaries before performing memory operations to prevent buffer overflow vulnerabil...

    ⛶
  • Prevent credential exposure

    lobehub/lobe-chat
    Security TSX
    1
    ⭐ 65138

    Ensure that sensitive authentication data such as API keys, tokens, passwords, and other credentials are ne...

    ⛶
  • Design extensible permission systems

    BerriAI/litellm
    Security Prisma
    1
    ⭐ 28310

    When implementing authorization features, design permission systems that can accommodate future security re...

    ⛶
  • avoid hardcoded credentials

    BerriAI/litellm
    Security Yaml
    1
    ⭐ 28310

    Never embed sensitive credentials, passwords, API keys, or other secrets directly in source code. Hardcoded...

    ⛶
  • Encrypt sensitive credentials

    langfuse/langfuse
    Security Sql
    1
    ⭐ 13574

    Sensitive credentials such as API keys, passwords, access tokens, and secret keys should never be stored in...

    ⛶
  • Avoid automatic package execution

    langfuse/langfuse
    Security Shell
    1
    ⭐ 13574

    Using `npx --yes` bypasses security prompts and automatically installs packages without verification, which...

    ⛶
  • Use fake sample data

    langflow-ai/langflow
    Security Txt
    1
    ⭐ 111046

    Always use completely fictional personal information in sample files, documentation, test data, and code ex...

    ⛶
  • minimize security dependencies

    kubernetes/kubernetes
    Security Other
    1
    ⭐ 116489

    For security-sensitive operations like shell argument parsing, input validation, or cryptographic functions...

    ⛶
  • minimize RBAC permissions

    kubernetes/kubernetes
    Security Yaml
    1
    ⭐ 116489

    When defining RBAC rules and authorization policies, grant only the minimum necessary permissions required ...

    ⛶
  • Private vulnerability reporting

    kubeflow/kubeflow
    Security Markdown
    1
    ⭐ 15064

    Never expose security vulnerabilities in public issue trackers. Security issues require confidential handli...

    ⛶
  • Prevent XSS vulnerabilities

    kubeflow/kubeflow
    Security JavaScript
    1
    ⭐ 15064

    Never directly concatenate untrusted data (like user inputs or API responses) into HTML strings, as this cr...

    ⛶
  • Harden container security

    kubeflow/kubeflow
    Security Dockerfile
    1
    ⭐ 15064

    When building container images, ensure they're compatible with restricted Kubernetes security contexts. Use...

    ⛶
  • Enforce HTTPS protocol

    kubeflow/kubeflow
    Security TypeScript
    1
    ⭐ 15064

    Always validate that URLs use the HTTPS protocol in both implementation code and validation error messages....

    ⛶
  • Control header modification

    kubeflow/kubeflow
    Security Go
    1
    ⭐ 15064

    When allowing user-configurable HTTP headers in your application, implement strict validation to prevent se...

    ⛶
  • Configurable security with defaults

    kubeflow/kubeflow
    Security Python
    1
    ⭐ 15064

    Make security features configurable through environment variables or configuration files, but always implem...

    ⛶
  • Document security implementations

    JetBrains/kotlin
    Security Kotlin
    1
    ⭐ 50857

    Always document non-obvious security implementations, especially authentication mechanisms, with explanator...

    ⛶
  • Evaluate CI secret exposure

    kilo-org/kilocode
    Security Yaml
    1
    ⭐ 7302

    Before using secrets in CI/CD workflows that can be triggered by external contributors (forks, dependabot),...

    ⛶
  • verify authorization permissions

    apache/kafka
    Security Other
    1
    ⭐ 30575

    Ensure that authorization checks use the appropriate permission level for the specific operation being perf...

    ⛶
  • Secure GPG verification

    apache/kafka
    Security Dockerfile
    1
    ⭐ 30575

    When downloading and verifying packages using GPG signatures, follow secure practices to ensure authenticit...

    ⛶
  • avoid password conversions

    apache/kafka
    Security Java
    1
    ⭐ 30575

    When handling sensitive data like passwords, avoid unnecessary type conversions that create additional copi...

    ⛶
  • Avoid external URLs

    menloresearch/jan
    Security Markdown
    1
    ⭐ 37620

    Links to external repositories or domains in documentation and code can create security vulnerabilities thr...

    ⛶
  • Document security behavior references

    istio/istio
    Security Other
    1
    ⭐ 37192

    When implementing security-related functionality such as certificate parsing, cryptographic validation, or ...

    ⛶
  • audit license dependencies

    istio/istio
    Security C
    1
    ⭐ 37192

    Always verify the licensing compatibility of all dependencies, especially in security-critical networking c...

    ⛶
  • Vet security-critical dependencies

    influxdata/influxdb
    Security Toml
    1
    ⭐ 30268

    When introducing new dependencies, especially those handling sensitive operations like language interpreter...

    ⛶
  • Secure dependency management

    elie222/inbox-zero
    Security Json
    1
    ⭐ 8267

    Always maintain secure dependencies by following these two critical security practices: 1. **Keep dependen...

    ⛶
  • Quote shell substitutions

    elie222/inbox-zero
    Security Yaml
    1
    ⭐ 8267

    Always enclose command substitutions in double quotes when assigning to variables or using in shell scripts...

    ⛶
  • Enforce user scoping

    elie222/inbox-zero
    Security Other
    1
    ⭐ 8267

    All database queries must include appropriate user scoping to prevent unauthorized data access and Insecure...

    ⛶
  • prefer specific cryptographic libraries

    juspay/hyperswitch
    Security Toml
    1
    ⭐ 34028

    When adding cryptographic dependencies, critically evaluate whether broad libraries like OpenSSL are necess...

    ⛶
  • Use appropriate permission checks

    grafana/grafana
    Security TSX
    1
    ⭐ 68825

    When implementing role-based access control (RBAC), ensure you use the correct permission verification meth...

    ⛶
  • Update vulnerable dependencies

    grafana/grafana
    Security Other
    1
    ⭐ 68825

    Always update dependencies with known security vulnerabilities to their patched versions. Dependencies with...

    ⛶
  • Avoid plaintext credentials

    grafana/grafana
    Security Markdown
    1
    ⭐ 68825

    Never include plaintext passwords or credentials in connection strings, configuration files, or documentati...

    ⛶
  • inline external dependencies

    block/goose
    Security Html
    1
    ⭐ 19037

    For security-critical applications, prefer inlining external dependencies (JavaScript libraries, CSS framew...

    ⛶
  • Secure temporary files

    ghostty-org/ghostty
    Security Other
    1
    ⭐ 32864

    Always use `mktemp` instead of manually constructing temporary file paths with random values. Manually cons...

    ⛶
  • Sanitize debug output

    ghostty-org/ghostty
    Security Python
    1
    ⭐ 32864

    Never print or log sensitive information such as tokens, passwords, or secrets that might be present in env...

    ⛶
  • test security end-to-end

    google-gemini/gemini-cli
    Security JavaScript
    1
    ⭐ 65062

    Security features must be tested using the actual executable or CLI rather than just module-level unit test...

    ⛶
  • secure authentication flows

    google-gemini/gemini-cli
    Security TSX
    1
    ⭐ 65062

    Authentication flows should be designed to provide a seamless user experience while maintaining security st...

    ⛶
  • Generic security configuration naming

    google-gemini/gemini-cli
    Security Markdown
    1
    ⭐ 65062

    When implementing security-related configuration options, use generic, implementation-agnostic naming conve...

    ⛶
  • Non-root container users

    fatedier/frp
    Security Dockerfile
    1
    ⭐ 95938

    Always run containers with a non-root user to reduce the security attack surface. Modern Docker allows non-...

    ⛶
  • secure XML parsing

    firecrawl/firecrawl
    Security Rust
    1
    ⭐ 54535

    When configuring XML parsing options, carefully evaluate security implications of each setting, especially ...

    ⛶
  • remove unnecessary authentication

    firecrawl/firecrawl
    Security TypeScript
    1
    ⭐ 54535

    Avoid initializing authentication mechanisms, credentials, or identity objects when they are not actually u...

    ⛶
  • Secure Content-Type validation

    fastify/fastify
    Security JavaScript
    1
    ⭐ 34000

    When implementing Content-Type validation, ensure regular expressions start with '^' or include ';?' to pro...

    ⛶
  • Use unique password salts

    expressjs/express
    Security JavaScript
    1
    ⭐ 67300

    When implementing password hashing, always use unique, randomly generated salts for each user. Using consta...

    ⛶
  • Pin action commit hashes

    expressjs/express
    Security Yaml
    1
    ⭐ 67300

    Always pin third-party GitHub Actions to specific commit hashes rather than semantic version tags (like `@v...

    ⛶
  • strip event parameters

    electron/electron
    Security JavaScript
    1
    ⭐ 117644

    When exposing IPC event handlers through contextBridge in Electron applications, always strip the event par...

    ⛶
  • Remove internal APIs

    electron/electron
    Security TypeScript
    1
    ⭐ 117644

    Delete internal system properties and APIs after use to prevent application code from accessing protected f...

    ⛶
  • Enforce least privilege

    elastic/elasticsearch
    Security Java
    1
    ⭐ 73104

    Always assign the minimum permissions necessary for functionality when implementing role-based access contr...

    ⛶
  • Limit postMessage data exposure

    dyad-sh/dyad
    Security JavaScript
    1
    ⭐ 16903

    When using postMessage for inter-window communication, avoid sending raw event data or generic message type...

    ⛶
  • Escape untrusted input

    django/django
    Security Txt
    1
    ⭐ 84182

    Always use appropriate escaping mechanisms when handling input from untrusted sources to prevent injection ...

    ⛶
  • use Guardian authorization classes

    discourse/discourse
    Security Markdown
    1
    ⭐ 44898

    Always implement authorization checks using Guardian classes rather than ad-hoc permission logic. Guardian ...

    ⛶
  • enforce consistent SSO flows

    discourse/discourse
    Security JavaScript
    1
    ⭐ 44898

    When single sign-on (SSO) is enabled as the primary authentication mechanism, ensure all authentication ent...

    ⛶
  • disable sensitive data defaults

    zen-browser/desktop
    Security JavaScript
    1
    ⭐ 34711

    Features that handle sensitive data such as credit card information, passwords, or personal details should ...

    ⛶
  • Document security policy trade-offs

    cypress-io/cypress
    Security Html
    1
    ⭐ 48850

    When implementing security policies like Content Security Policy (CSP), always include clear documentation ...

    ⛶
  • Clear security error messages

    cypress-io/cypress
    Security Other
    1
    ⭐ 48850

    When implementing security restrictions or policies, ensure error messages clearly explain what the securit...

    ⛶
  • trust server-side validation

    home-assistant/core
    Security Json
    1
    ⭐ 80450

    When integrating with external APIs or services that implement their own input validation, avoid duplicatin...

    ⛶
  • classify data sensitivity

    home-assistant/core
    Security Other
    1
    ⭐ 80450

    Properly evaluate whether data contains sensitive information before applying security measures like redact...

    ⛶
  • Prevent injection vulnerabilities

    continuedev/continue
    Security TypeScript
    1
    ⭐ 27819

    When constructing templates or dynamic content that will be parsed, always implement robust escaping mechan...

    ⛶
  • Accessible security controls

    continuedev/continue
    Security TSX
    1
    ⭐ 27819

    Security controls and interactive elements must be accessible to all users to prevent unequal security acce...

    ⛶
  • Use organizational secrets

    docker/compose
    Security Yaml
    1
    ⭐ 35858

    When working with GitHub Actions workflows that require shared credentials or tokens, leverage organization...

    ⛶
  • precise security pattern matching

    docker/compose
    Security Shell
    1
    ⭐ 35858

    When checking for security features or configurations in shell scripts, use precise pattern matching to avo...

    ⛶
  • minimize credential access scope

    docker/compose
    Security Other
    1
    ⭐ 35858

    Apply the principle of least privilege when managing credentials in CI/CD pipelines and application code. U...

    ⛶
  • Restrict command whitelist

    openai/codex
    Security Markdown
    1
    ⭐ 31275

    When configuring command whitelists for auto-approval, include only commands with limited capabilities that...

    ⛶
  • Prevent command injection

    openai/codex
    Security TSX
    1
    ⭐ 31275

    Always use child_process.spawn() with array arguments instead of exec() with string concatenation when exec...

    ⛶
  • Explicit security bypass

    openai/codex
    Security Rust
    1
    ⭐ 31275

    When implementing functionality to bypass security controls (like sandboxing), ensure the bypass is complet...

    ⛶
  • validate SVG security context

    cline/cline
    Security Other
    1
    ⭐ 48299

    SVG files can execute code when loaded, making them a potential security vulnerability. Before using SVGs, ...

    ⛶
  • Restrict external dependencies

    cline/cline
    Security Json
    1
    ⭐ 48299

    Dependencies from packages outside your organization's trusted domain pose security risks and should be avo...

    ⛶
  • avoid interactive authentication automation

    cline/cline
    Security JavaScript
    1
    ⭐ 48299

    When building scripts or applications that require user authentication, avoid automating interactive authen...

    ⛶
  • Document authentication precedence

    ClickHouse/ClickHouse
    Security Markdown
    1
    ⭐ 42425

    When implementing systems that support multiple authentication methods, always clearly document which authe...

    ⛶
  • Use secure hash functions

    snyk/cli
    Security Go
    1
    ⭐ 5178

    When hashing sensitive data such as authentication tokens, always use cryptographically secure hash functio...

    ⛶
  • Pin dependency versions

    anthropics/claude-code
    Security Yaml
    1
    ⭐ 25432

    Always pin external dependencies to specific commit hashes rather than mutable references like tags or bran...

    ⛶
  • Least privilege networking

    anthropics/claude-code
    Security Shell
    1
    ⭐ 25432

    Restrict network access to only what's necessary for your application to function, using explicit allowlist...

    ⛶
  • Avoid privileged installations

    anthropics/claude-code
    Security Markdown
    1
    ⭐ 25432

    Always recommend user-level package installations rather than using administrative/root privileges. Install...

    ⛶
  • Update security-critical dependencies

    chef/chef
    Security Markdown
    1
    ⭐ 7860

    Regularly audit and update third-party libraries and dependencies to address known security vulnerabilities...

    ⛶
  • Expand IAM wildcards

    bridgecrewio/checkov
    Security Markdown
    1
    ⭐ 7668

    Always expand IAM wildcard permissions (`*`) to specific actions for thorough security analysis. Wildcard p...

    ⛶
  • Avoid wildcard permissions

    bridgecrewio/checkov
    Security Markdown
    1
    ⭐ 7667

    Implement the principle of least privilege by avoiding wildcard permissions (e.g., '*') in access control p...

    ⛶
  • Avoid hardcoded secrets

    bridgecrewio/checkov
    Security Terraform
    1
    ⭐ 7668

    Never include hardcoded secrets or credentials in your infrastructure as code files. Secrets in configurati...

    ⛶
  • Verify cryptographic function behavior

    oven-sh/bun
    Security C++
    1
    ⭐ 79093

    When implementing cryptographic algorithms, always verify the exact behavior and return values of security-...

    ⛶
  • Validate buffer boundaries

    oven-sh/bun
    Security Other
    1
    ⭐ 79093

    When calling functions that process buffers, especially external C functions, always provide explicit buffe...

    ⛶
  • Secure credentials handling

    oven-sh/bun
    Security TypeScript
    1
    ⭐ 79093

    When handling credentials or secrets in code, avoid passing them directly through command substitution or t...

    ⛶
  • prefer authentication tokens

    browser-use/browser-use
    Security Yaml
    1
    ⭐ 69139

    When configuring authentication in CI/CD workflows, prefer using tokens over passwords for enhanced securit...

    ⛶
  • Evaluate security control effectiveness

    Homebrew/brew
    Security Markdown
    1
    ⭐ 44168

    Security measures should be evaluated against realistic threat models to avoid creating a false sense of se...

    ⛶
  • Use standard example credentials

    boto/boto3
    Security Other
    1
    ⭐ 9417

    When including API keys, access tokens, or other credentials in documentation, examples, or test code, alwa...

    ⛶
  • prefer authentication wrappers

    better-auth/better-auth
    Security Markdown
    1
    ⭐ 19651

    Use authentication wrapper functions or higher-order functions that automatically handle unauthenticated ca...

    ⛶
  • temporary security workarounds

    bazelbuild/bazel
    Security Java
    1
    ⭐ 24489

    When implementing workarounds for OS-level security restrictions, ensure they are explicitly temporary and ...

    ⛶
  • Redact sensitive information

    Azure/azure-sdk-for-net
    Security Other
    1
    ⭐ 5809

    Always sanitize configuration data or any potentially sensitive information before logging or displaying it...

    ⛶
  • Externalize sensitive credentials

    Azure/azure-sdk-for-net
    Security Yaml
    1
    ⭐ 5809

    Never hardcode sensitive values such as client identifiers, API keys, connection strings, or passwords dire...

    ⛶
  • Complete authentication testing

    Azure/azure-sdk-for-net
    Security C#
    1
    ⭐ 5809

    Always verify both positive and negative authentication scenarios in your security tests. For each authenti...

    ⛶
  • Secure cookie configuration

    tokio-rs/axum
    Security Rust
    1
    ⭐ 22100

    Always set appropriate security flags on cookies, especially those used for authentication or session manag...

    ⛶
  • Isolate sensitive buffer data

    aws/aws-sdk-js
    Security JavaScript
    1
    ⭐ 7628

    When handling sensitive data in Node.js, protect against data leakage by isolating sensitive content in ded...

    ⛶
  • Vet dependency supply chains

    avelino/awesome-go
    Security Markdown
    1
    ⭐ 151435

    When adding new dependencies, especially security-related ones, thoroughly evaluate them for supply chain a...

    ⛶
  • validate external URLs

    argoproj/argo-cd
    Security TSX
    1
    ⭐ 20149

    Always validate and sanitize external URLs before opening them or using them in navigation operations to pr...

    ⛶
  • consolidate RBAC permissions

    argoproj/argo-cd
    Security Yaml
    1
    ⭐ 20149

    Avoid duplicating RBAC permissions across different deployment configurations or installation modes. When t...

    ⛶
  • Verify authentication logic

    appwrite/appwrite
    Security JavaScript
    1
    ⭐ 51959

    Ensure authentication validation logic follows expected semantics and intuitive implementation. Authenticat...

    ⛶
  • Use proper authentication

    appwrite/appwrite
    Security Markdown
    1
    ⭐ 51959

    Always implement the correct authentication method for API clients as specified in the SDK documentation. I...

    ⛶
  • Secure file uploads

    appwrite/appwrite
    Security Yaml
    1
    ⭐ 51959

    Always implement and maintain robust scanning mechanisms for user-uploaded files to prevent malware distrib...

    ⛶
  • Secure credentials management

    appwrite/appwrite
    Security Other
    1
    ⭐ 51959

    Never store sensitive credentials (passwords, API keys, tokens, etc.) in plain text within code repositorie...

    ⛶
  • validate disabled state accessibility

    ant-design/ant-design
    Security Markdown
    1
    ⭐ 95882

    When UI components with interactive elements (like buttons with href attributes) are disabled, ensure they ...

    ⛶
  • Prioritize secure token storage

    apache/airflow
    Security TypeScript
    1
    ⭐ 40858

    When implementing authentication token handling, prioritize more secure storage mechanisms over less secure...

    ⛶
  • Document security exceptions

    apache/airflow
    Security TSX
    1
    ⭐ 40858

    When disabling security-related linter rules or bypassing security best practices, always include comments ...

    ⛶

Add Repository

Enter the URL of a public GitHub repository

Private Repository

Get private Reviewers with Baz