documentation clarity standards

remix-run/react-router
30
55270

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

React Markdown

Use runServerless utility

serverless/serverless
25
46810

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

Testing JavaScript

Complete locale translations

RooCodeInc/Roo-Code
25
17288

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

Documentation Json

Use environment variables

hashicorp/terraform
21
45532

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

Configurations Other

reduce complexity for readability

servo/servo
20
32962

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

Code Style Rust

Prevent sensitive data exposure

bridgecrewio/checkov
20
7667

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

Security Python

Use descriptive names

strands-agents/sdk-python
19
4044

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

Naming Conventions Python

API authentication requirements

langflow-ai/langflow
19
111046

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

API Markdown

configuration value consistency

traefik/traefik
18
55772

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

Configurations Markdown

Complete network configurations

traefik/traefik
17
55772

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

Networking Markdown

Optimize allocation hotspots

netty/netty
17
34227

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

Performance Optimization Java

Configuration documentation clarity

langflow-ai/langflow
17
111046

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

Configurations Markdown

no braces short ifs

hyprwm/Hyprland
17
28863

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

Code Style C++

Use meaningful names

juspay/hyperswitch
17
34028

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

Naming Conventions Rust

optimize database operations

apache/spark
16
41554

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

Database Other

Use descriptive semantic names

serverless/serverless
16
46810

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

Naming Conventions JavaScript

Validate boundary conditions

rust-lang/rust
16
105254

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

Algorithms Rust

documentation formatting consistency

nuxt/nuxt
16
57769

Ensure consistent formatting throughout documentation by applying these standards: wrap code terms, variable names, a...

Next Markdown

Comprehensive test coverage

kubernetes/kubernetes
16
116489

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

Testing Go

Extract for clarity

elastic/elasticsearch
16
73104

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

Code Style Java

Protect sensitive data

bridgecrewio/checkov
16
7668

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

Security Python

Comprehensive documentation standards

tokio-rs/axum
16
22100

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

Documentation Rust

Use descriptive names

vlang/v
15
36582

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

Naming Conventions Other

realistic documentation examples

sveltejs/svelte
15
83580

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

Documentation Markdown

Avoid code duplication

BerriAI/litellm
15
28310

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

Code Style Python

Organize code structure

juspay/hyperswitch
15
34028

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

Code Style Rust

Explain non-obvious code

flutter/flutter
15
172252

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

Documentation Other

Use specific assertion methods

fastify/fastify
15
34000

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

Testing JavaScript

Database type consistency

drizzle-team/drizzle-orm
15
29461

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

Database TypeScript

Use descriptive, unambiguous names

bazelbuild/bazel
15
24489

Choose names that clearly communicate their purpose and avoid ambiguity or misinterpretation. Names should be self-do...

Naming Conventions Java

Simplify complex code

bazelbuild/bazel
15
24489

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

Code Style Java

Consistent terminology propagation

appwrite/appwrite
15
51959

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

Naming Conventions PHP

eliminate unnecessary code

Unstructured-IO/unstructured
14
12116

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

Code Style Python

Optimize regex patterns

getsentry/sentry-php
14
1873

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

Algorithms PHP

Internationalize all text

RooCodeInc/Roo-Code
14
17288

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

Documentation TSX

Consistent naming patterns

octokit/octokit.net
14
2793

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

Naming Conventions C#

Guard against null

n8n-io/n8n
14
122978

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

Null Handling TypeScript

Handle async operation errors

elie222/inbox-zero
14
8267

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

Error Handling TSX

Keep CI configurations minimal

laravel/framework
14
33763

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

CI/CD Yaml

SQLAlchemy 2.0 patterns

langgenius/dify
14
114231

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

Database Python

Consistent naming standards

home-assistant/core
14
80450

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

Naming Conventions Json

Configuration validation messages

cloudflare/workers-sdk
13
3379

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

Configurations TypeScript

avoid expensive repeated operations

vlang/v
13
36582

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

Performance Optimization Other

Add comprehensive test coverage

vlang/v
13
36582

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

Testing Other

Enforce scope boundaries

gravitational/teleport
13
19109

When implementing hierarchical permission systems with scopes, ensure that permissions granted at a specific scope ca...

Security Markdown
13
58382

Follow Spring Framework's code style guidelines to ensure consistency across the codebase. Key rules include: 1. **I...

Code Style Java

Use semantically accurate names

servo/servo
13
32962

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

Naming Conventions Rust

Consistent descriptive naming

prometheus/prometheus
13
59616

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

Naming Conventions Go

Code for readability

opencv/opencv
13
82865

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

Code Style C++

Descriptive consistent naming

ghostty-org/ghostty
13
32864

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

Naming Conventions Other

Use descriptive names

flutter/flutter
13
172252

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

Naming Conventions Other

API parameter consistency

electron/electron
13
117644

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

API Other
13
14036

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

Code Style Java

Use descriptive contextual names

alacritty/alacritty
13
59675

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

Naming Conventions Rust

Design interfaces, not implementations

zed-industries/zed
12
62119

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

API Rust

Use testify assertion libraries

vitessio/vitess
12
19815

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

Testing Go

Use semantically clear names

Unstructured-IO/unstructured
12
12117

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

Naming Conventions Python

simplify control flow patterns

twentyhq/twenty
12
35477

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

Code Style TypeScript

Simplify complex expressions

tree-sitter/tree-sitter
12
21799

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

Code Style Rust

Configuration validation consistency

traefik/traefik
12
55772

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

Configurations Go

Use semantic naming

microsoft/terminal
12
99242

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

Naming Conventions Other

Guide structure consistency

gravitational/teleport
12
19109

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

Documentation Other

consistent descriptive naming

SigNoz/signoz
12
23369

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

Naming Conventions Go

eliminate code duplication

sgl-project/sglang
12
17245

Actively identify and eliminate code duplication by extracting common patterns into reusable components. When you not...

Code Style Python

API consistency patterns

remix-run/react-router
12
55270

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

API TypeScript

Parameterize similar tests

python-poetry/poetry
12
33496

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

Testing Python

Component naming consistency

n8n-io/n8n
12
122978

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

Vue TypeScript

Clean and consistent code

n8n-io/n8n
12
122978

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

Code Style Other

Eliminate redundant constructs

apache/mxnet
12
20801

Remove unnecessary coding patterns that add complexity without providing value. Focus on clarity and simplicity by: ...

Code Style Python

Model specification accuracy

lobehub/lobe-chat
12
65138

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

AI TypeScript

prefer OpenAI compatibility

BerriAI/litellm
12
28310

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

AI Python

Mock tests in tests/litellm

BerriAI/litellm
12
28310

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

Testing Python

Use descriptive names

istio/istio
12
37192

Names should accurately reflect their actual functionality and behavior. Avoid misleading or vague identifiers that d...

Naming Conventions Go

consistent highlighting patterns

helix-editor/helix
12
39026

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

Code Style Other

Use extensible parameter objects

electron/electron
12
117644

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

API Markdown

Provide contextual explanations

electron/electron
12
117644

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

Documentation Markdown

Use descriptive identifiers

discourse/discourse
12
44898

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

Naming Conventions Ruby

Follow existing naming patterns

docker/compose
12
35858

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

Naming Conventions Go

consistent readable patterns

snyk/cli
12
5178

Maintain consistent coding patterns and prioritize readability to make code easier to understand and maintain. This i...

Code Style TypeScript

Limit token permissions

chef/chef
12
7860

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

Security Yaml

Maintain consistent style

oven-sh/bun
12
79093

Maintain consistent style patterns throughout the codebase to improve readability, reduce maintenance overhead, and p...

Code Style Other

Follow support tiers

Homebrew/brew
12
44168

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

Configurations Markdown

maintain consistent style

angular/angular
12
98611

Ensure consistent application of coding style conventions throughout the codebase, including naming patterns, type us...

Code Style TypeScript

Use descriptive naming

volcano-sh/volcano
11
4899

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

Naming Conventions Go

Optimize algorithmic efficiency

volcano-sh/volcano
11
4899

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

Algorithms Go

Eliminate code redundancy

vllm-project/vllm
11
51730

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

Code Style Python

PEP 257 docstring compliance

Unstructured-IO/unstructured
11
12116

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

Documentation Python

explicit None handling

Unstructured-IO/unstructured
11
12116

Always handle potential None values explicitly through defensive programming patterns, proper type annotations, and e...

Null Handling Python

Minimize allocation hotspots

spring-projects/spring-framework
11
58382

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

Performance Optimization Java

Improve code organization

sgl-project/sglang
11
17245

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

AI Python

optimize algorithmic complexity

servo/servo
11
32962

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

Algorithms Rust

comprehensive API documentation

servo/servo
11
32962

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

Documentation Rust

Split for better readability

getsentry/sentry-php
11
1873

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

Code Style PHP

require module documentation

semgrep/semgrep
11
12598

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

Documentation Other

Optimize for readability

dotnet/runtime
11
16578

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

Code Style C#

Device-agnostic acceleration code

pytorch/pytorch
11
91345

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

AI Python

maintain code consistency

emcie-co/parlant
11
12205

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

Code Style Python

Craft actionable errors

opentofu/opentofu
11
25901

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

Error Handling Go

precise language usage

nuxt/nuxt
11
57769

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

Documentation Markdown

Idempotent error-safe disposers

nodejs/node
11
112178

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

Error Handling Markdown

Follow modern C++ guidelines

maplibre/maplibre-native
11
1411

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

Code Style Other

consolidate algorithmic patterns

ggml-org/llama.cpp
11
83559

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

Algorithms CUDA

AI model data validation

BerriAI/litellm
11
28310

All AI model configuration parameters must be verified against official provider documentation before merging. This i...

AI Json

Organize documentation content

langflow-ai/langflow
11
111046

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

Documentation Markdown

Use semantically clear names

kubernetes/kubernetes
11
116489

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

Naming Conventions Go

Feature gate field preservation

kubernetes/kubernetes
11
116489

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

Configurations Go

Names express clear intent

JetBrains/kotlin
11
50857

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

Naming Conventions Kotlin

comprehensive test coverage

apache/kafka
11
30575

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

Testing Java

consistent command flag design

jj-vcs/jj
11
21171

Design command-line interfaces with consistent flag semantics and leverage framework features for validation. Avoid a...

API Rust

Sanitize all inputs

elie222/inbox-zero
11
8267

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

Security TypeScript

explicit error handling

juspay/hyperswitch
11
34028

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

Error Handling Rust

Use descriptive naming

duckdb/duckdb
11
32061

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

Naming Conventions C++

Use descriptive names

duckdb/duckdb
11
32061

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

Naming Conventions Other

Use descriptive names

stanfordnlp/dspy
11
27813

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

Naming Conventions Python

Mock external dependencies only

home-assistant/core
11
80450

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

Testing Python

Use descriptive semantic names

ClickHouse/ClickHouse
11
42425

Names should accurately reflect their purpose, behavior, and semantic meaning to avoid confusion and improve code rea...

Naming Conventions C++

Avoid unnecessary allocations

ClickHouse/ClickHouse
11
42425

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

Performance Optimization C++

Add explanatory comments

bazelbuild/bazel
11
24489

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

Documentation Java

Standardize platform-agnostic configuration

zed-industries/zed
10
62119

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

Configurations Rust

prioritize code clarity

cloudflare/workerd
10
6989

Write code that prioritizes readability and clarity over minor optimizations or clever shortcuts. When faced with cho...

Code Style Other

Validate nullability with types

microsoft/vscode
10
174887

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

Null Handling TypeScript

Document code thoroughly

vllm-project/vllm
10
51730

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

Documentation Python

Improve code clarity

vlang/v
10
36582

Write code that clearly expresses intent through explicit patterns, simplified logic, and readable structure. Avoid u...

Code Style Other

prioritize code clarity

unionlabs/union
10
74800

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

Code Style Rust

Configuration documentation clarity

astral-sh/ty
10
11919

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

Configurations Markdown

Use proper types

tensorflow/tensorflow
10
190625

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

Code Style Other

Organize code by functionality

gravitational/teleport
10
19109

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

Code Style Go

Complete API documentation

spring-projects/spring-framework
10
58382

Documentation should be complete, accurate, and follow Spring Framework conventions. Ensure your Javadocs include: 1...

Documentation Java

Purposeful documentation standards

getsentry/sentry-php
10
1873

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

Documentation PHP

Thread-safe shared state

facebook/react-native
10
123178

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

Concurrency Java

Standardize configuration paths

quarkusio/quarkus
10
14667

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

Configurations Other

Next.js directory structure

prowler-cloud/prowler
10
11834

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

Code Style TypeScript

simplify complex algorithms

prometheus/prometheus
10
59616

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

Algorithms Go

Safe null handling

pola-rs/polars
10
34296

Always implement robust null handling patterns to prevent unexpected behavior and crashes. Consider all edge cases wh...

Null Handling Rust

Extract duplicated code

pola-rs/polars
10
34296

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

Code Style Rust

prefer simple readable code

python-poetry/poetry
10
33496

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

Code Style Python

Use descriptive identifier names

microsoft/playwright
10
76113

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

Naming Conventions TypeScript

Consistent descriptive naming

opencv/opencv
10
82865

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

Naming Conventions Other

configuration resolution patterns

nuxt/nuxt
10
57769

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

Configurations TypeScript

type-safe database operations

rocicorp/mono
10
2091

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

Database TypeScript

Avoid unnecessary auto

llvm/llvm-project
10
33702

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

Code Style C++

TypeScript naming standards

langchain-ai/langchainjs
10
15004

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

Naming Conventions TypeScript

simplify code structure

kubernetes/kubernetes
10
116489

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

Code Style Go

Define technical terms clearly

jj-vcs/jj
10
21171

Always define technical terms and concepts explicitly in documentation rather than assuming reader knowledge. Avoid a...

Documentation Markdown

Handle errors with care

elie222/inbox-zero
10
8267

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

Error Handling TypeScript

Minimize allocations and syscalls

helix-editor/helix
10
39026

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

Performance Optimization Rust

AI model integration patterns

google-gemini/gemini-cli
10
65062

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

AI TypeScript

Optimize for code readability

laravel/framework
10
33763

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

Code Style PHP

optimize algorithmic efficiency

electron/electron
10
117644

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

Algorithms Other

Use descriptive names

langgenius/dify
10
114231

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

Naming Conventions Python

Safe null handling

langgenius/dify
10
114231

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

Null Handling Python

organize code structure

denoland/deno
10
103714

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

Code Style Rust

Centralize dependency management

deeplearning4j/deeplearning4j
10
14036

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

Configurations Xml

Graceful error handling

snyk/cli
10
5178

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

Error Handling TypeScript

Restrict public access

bridgecrewio/checkov
10
7667

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

Networking Python

Extract focused functions

bridgecrewio/checkov
10
7667

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

Code Style Python

Consistent naming conventions

bridgecrewio/checkov
10
7668

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

Naming Conventions Python

Prefer explicit nil handling

Homebrew/brew
10
44168

Handle nil values explicitly and consistently to improve code clarity and type safety. Follow these guidelines: 1. U...

Null Handling Ruby

consistent configuration handling

better-auth/better-auth
10
19651

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

API TypeScript

Type-safe flexible APIs

tokio-rs/axum
10
22100

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

API Rust

Validate environment variables

appwrite/appwrite
10
51959

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

Configurations PHP

Handle errors gracefully always

appwrite/appwrite
10
51959

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

Error Handling PHP

Enforce API endpoint consistency

appwrite/appwrite
10
51959

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

API PHP

optimize algorithmic efficiency

alacritty/alacritty
10
59675

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

Algorithms Rust

Consistent semantic naming

vercel/ai
10
15590

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

Naming Conventions TypeScript

Prefer idiomatic Option handling

zed-industries/zed
9
62119

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

Null Handling Rust

Eliminate unnecessary code patterns

microsoft/vscode
9
174887

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

Code Style TypeScript

Extract reusable functions

volcano-sh/volcano
9
4899

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

Code Style Go

Avoid magic numbers

vllm-project/vllm
9
51730

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

AI Python

Write clear test cases

Unstructured-IO/unstructured
9
12116

Structure test cases for maximum readability and maintainability by following these principles: 1. Organize each tes...

Testing Python

validate configuration defaults

Unstructured-IO/unstructured
9
12116

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

Configurations Python

Use descriptive specific names

twentyhq/twenty
9
35477

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

Naming Conventions TypeScript

Propagate errors with context

vercel/turborepo
9
28115

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

Error Handling Rust

Release locks before waking

tokio-rs/tokio
9
28989

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

Concurrency Rust

Use consistent error handling

tensorflow/tensorflow
9
190625

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

Error Handling Other

Use descriptive names

gravitational/teleport
9
19109

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

Naming Conventions Go

thoughtful configuration design

gravitational/teleport
9
19109

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

Configurations Markdown

use modern null-safe operators

sveltejs/svelte
9
83580

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

Null Handling JavaScript

prefer simple code patterns

sveltejs/svelte
9
83580

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

Code Style JavaScript

Configurable model selection

browserbase/stagehand
9
16443

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

AI TypeScript

Preserve API compatibility

spring-projects/spring-boot
9
77637

When evolving APIs, maintain backward compatibility to avoid breaking client code. Consider these guidelines: 1. **A...

API Java

avoid unwrap and panic

servo/servo
9
32962

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

Error Handling Rust

API design patterns

servo/servo
9
32962

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

API Rust

consistent async/await usage

serverless/serverless
9
46810

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

Concurrency JavaScript

Descriptive identifier naming

getsentry/sentry-php
9
1873

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

Naming Conventions PHP

Use descriptive names

semgrep/semgrep
9
12598

Names should clearly and accurately describe their purpose, avoiding abbreviations, acronyms, and misleading terms. T...

Naming Conventions Other

prefer simple readable code

semgrep/semgrep
9
12598

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

Code Style Other

avoid failwith patterns

semgrep/semgrep
9
12598

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

Error Handling Other

Keep documentation purposefully minimal

rust-lang/rust
9
105254

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

Documentation Rust

Specific exceptions with context

dotnet/runtime
9
16578

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

Error Handling C#

Optimize memory access

dotnet/runtime
9
16578

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

Algorithms C#

Follow naming patterns

dotnet/runtime
9
16578

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

Naming Conventions C#

Protect shared state access

RooCodeInc/Roo-Code
9
17288

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

Concurrency TypeScript

prefer Kotlin idioms

facebook/react-native
9
123178

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

Code Style Kotlin

Self-documenting identifier names

rails/rails
9
57027

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

Naming Conventions Ruby

Layer security defenses

rails/rails
9
57027

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

Security Markdown

Verify token security level

quarkusio/quarkus
9
14667

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

Security Other

minimize memory allocations

prometheus/prometheus
9
59616

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

Performance Optimization Go

refactor complex conditions

prettier/prettier
9
50772

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

Code Style JavaScript

Use descriptive names

PostHog/posthog
9
28460

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

Naming Conventions Python

Appropriate error handling

pola-rs/polars
9
34296

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

Error Handling Rust

explicit configuration specification

python-poetry/poetry
9
33496

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

Configurations Markdown

Use semantically accurate names

commaai/openpilot
9
58214

Variable, method, and class names should accurately reflect their actual behavior and purpose. Misleading or vague na...

Naming Conventions Python

Prefer explicit readable code

commaai/openpilot
9
58214

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

Code Style Python

Semantic over generic names

netty/netty
9
34227

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

Naming Conventions Java

Document public APIs

netty/netty
9
34227

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

Documentation Java

Explicit default configurations

nestjs/nest
9
71767

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

Configurations TypeScript

Choose meaningful identifier names

nestjs/nest
9
71767

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

Naming Conventions TypeScript

Vue component test requirement

n8n-io/n8n
9
122978

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

Testing Other

Use descriptive specific names

mastodon/mastodon
9
48691

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

Naming Conventions Ruby

Ensure semantic naming accuracy

logseq/logseq
9
37695

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

Naming Conventions Other

Use descriptive consistent names

LMCache/LMCache
9
3800

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

Naming Conventions Python

Safe access patterns

BerriAI/litellm
9
28310

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

Null Handling Python

AI provider documentation completeness

BerriAI/litellm
9
28310

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

AI Markdown

Sync documentation with code

langfuse/langfuse
9
13574

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

Documentation TypeScript

API documentation completeness

langflow-ai/langflow
9
111046

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

API Other

Use semantically accurate names

apache/kafka
9
30575

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

Naming Conventions Java

eliminate redundant code

jj-vcs/jj
9
21171

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

Code Style Rust

Simplify code structure

istio/istio
9
37192

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

Code Style Go

Add explanatory comments

istio/istio
9
37192

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

Documentation Go

Use transactions for consistency

elie222/inbox-zero
9
8267

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

Database TypeScript

Remove commented code

elie222/inbox-zero
9
8267

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

Code Style TSX

Extract repeated code

grafana/grafana
9
68825

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

Code Style Go

eliminate code duplication

block/goose
9
19037

Actively identify and eliminate code duplication by extracting repeated logic into reusable functions, using loops in...

Code Style Rust

Code structure clarity

ghostty-org/ghostty
9
32864

Write code with clear structural organization that enhances readability and maintainability. Extract duplicated or co...

Code Style Other

organize code by responsibility

google-gemini/gemini-cli
9
65062

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

Code Style TSX

Explicit null handling

laravel/framework
9
33763

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

Null Handling PHP

minimize memory allocations

gofiber/fiber
9
37560

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

Performance Optimization Go

Ensure comprehensive test coverage

gofiber/fiber
9
37560

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

Testing Go

Documentation translation guidelines

fastapi/fastapi
9
86871

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

Documentation Markdown

conditional feature initialization

electron/electron
9
117644

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

Configurations Other

Name reflects meaning

elastic/elasticsearch
9
73104

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

Naming Conventions Java

Eliminate code duplication

duckdb/duckdb
9
32061

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

Code Style C++

avoid silent failures

stanfordnlp/dspy
9
27813

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

Error Handling Python

Use modern null handling

discourse/discourse
9
44898

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

Null Handling Other

minimize memory allocations

denoland/deno
9
103714

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

Performance Optimization Rust

Remove debugging artifacts

deeplearning4j/deeplearning4j
9
14036

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

Code Style C++

Extract repeated logic

comfyanonymous/ComfyUI
9
83726

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

Code Style Python

Use descriptive names

snyk/cli
9
5178

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

Naming Conventions TypeScript

Fail gracefully always

chef/chef
9
7860

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

Error Handling Ruby

Safe dictionary navigation

bridgecrewio/checkov
9
7668

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

Null Handling Python

Centralize environment variables

bridgecrewio/checkov
9
7668

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

Configurations Python

Authorization hierarchy verification

calcom/cal.com
9
37732

Always implement comprehensive authorization checks that verify user permissions at the appropriate hierarchy level (...

Security TypeScript

Ensure comprehensive test coverage

bazelbuild/bazel
9
24489

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

Testing Java

Documentation quality standards

Azure/azure-sdk-for-net
9
5809

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

Documentation Markdown

Axum Code Review: Interaction Patterns

tokio-rs/axum
9
22100

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

Axum TypeScript

Ensure database transactional integrity

appwrite/appwrite
9
51959

When performing multiple related database operations, use transactions and proper error handling to maintain data con...

Database PHP

comprehensive test coverage

angular/angular
9
98611

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

Testing TypeScript

Use descriptive names

cloudflare/workers-sdk
8
3379

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

Naming Conventions TypeScript

Informative error messages

cloudflare/workers-sdk
8
3379

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

Error Handling TypeScript

dependency version constraints

cloudflare/workers-sdk
8
3379

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

Configurations Json

Use appropriate exception types

cloudflare/workerd
8
6989

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

Error Handling Other

Prioritize descriptive naming

cloudflare/workerd
8
6989

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

Naming Conventions Other

isolate lock safety

cloudflare/workerd
8
6989

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

Concurrency Other

Vectorize over Python loops

vllm-project/vllm
8
51730

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

Performance Optimization Python

Catch specific exception types

vllm-project/vllm
8
51730

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

Error Handling Python

Prevent concurrent access races

vitessio/vitess
8
19815

When sharing data across goroutines, always use proper synchronization mechanisms to prevent race conditions. Race co...

Concurrency Go

Meaningful consistent naming

vitessio/vitess
8
19815

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

Naming Conventions Go

Names should be descriptive

astral-sh/uv
8
60322

Use clear, descriptive names while avoiding redundant qualifiers. Choose full words over abbreviations unless the abb...

Naming Conventions Rust

Clear precise documentation

astral-sh/uv
8
60322

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

Documentation Rust

Use descriptive semantic names

unionlabs/union
8
74800

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

Naming Conventions Rust

Optimize critical loops

microsoft/typescript
8
105378

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

Algorithms TypeScript

simplify code structure

twentyhq/twenty
8
35477

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

Code Style TSX

Validate configurations comprehensively

vercel/turborepo
8
28115

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

Configurations Rust

Descriptive, unambiguous identifiers

vercel/turborepo
8
28115

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

Naming Conventions Rust

ensure documentation completeness

traefik/traefik
8
55772

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

Documentation Markdown

Write focused single-purpose tests

tokio-rs/tokio
8
28981

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

Testing Rust

Optimize algorithmic complexity

tokio-rs/tokio
8
28989

Always consider the time and space complexity implications of your code. Choose data structures and algorithms that m...

Algorithms Rust

Return results not panics

huggingface/tokenizers
8
9868

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

Error Handling Rust

Use descriptive identifiers

microsoft/terminal
8
99242

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

Naming Conventions C++

optimize algorithmic choices

microsoft/terminal
8
99242

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

Algorithms C++

Cache expensive computations

microsoft/terminal
8
99242

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

Performance Optimization C++

Names reflect precise behavior

temporalio/temporal
8
14953

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

Naming Conventions Go

Descriptive specific names

spring-projects/spring-framework
8
58382

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

Naming Conventions Java

Optimize test case design

spring-projects/spring-boot
8
77637

Write focused, efficient tests that validate core functionality without unnecessary complexity. Key principles: 1. T...

Testing Java

Follow consistent style conventions

spring-projects/spring-boot
8
77637

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

Code Style Java

Explicit security configurations

spring-projects/spring-boot
8
77637

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

Security Java

Eliminate redundant operations

sgl-project/sglang
8
17245

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

Performance Optimization Python

avoid unsafe unwrapping

servo/servo
8
32962

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

Null Handling Rust

avoid unnecessary work

servo/servo
8
32962

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

Performance Optimization Rust

prefer simple readable patterns

serverless/serverless
8
46810

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

Code Style JavaScript

maintain backwards compatibility

strands-agents/sdk-python
8
4044

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

API Python

Precise type narrowing

astral-sh/ruff
8
40619

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

Algorithms Markdown

Use descriptive, conflict-free names

TanStack/router
8
11590

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

Naming Conventions TypeScript

Dependency version specification

TanStack/router
8
11590

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

Configurations Json

Extract reusable patterns

RooCodeInc/Roo-Code
8
17288

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

Code Style TSX

Organize tests for clarity

rails/rails
8
57027

Structure tests to maximize clarity and maintainability by: 1. Placing related tests together in appropriate test fil...

Testing Ruby

Optimize numerical precision

pytorch/pytorch
8
91345

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

AI C++

Use configurable default values

prowler-cloud/prowler
8
11834

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

Configurations Python

Specific exception handling

prowler-cloud/prowler
8
11834

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

Error Handling Python

Write meaningful documentation

prometheus/prometheus
8
59616

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

Documentation Go

metrics registration lifecycle

prometheus/prometheus
8
59616

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

Observability Go

Configuration mutual exclusivity validation

prometheus/prometheus
8
59616

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

Configurations Go

explicit null handling

prisma/prisma
8
42967

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

Null Handling TypeScript

dependency classification standards

prisma/prisma
8
42967

Ensure proper classification and versioning of package dependencies in package.json files. Dependencies should be cla...

Configurations Json

Use descriptive variable names

prettier/prettier
8
50772

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

Naming Conventions JavaScript

Documentation example consistency

prettier/prettier
8
50772

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

Code Style Markdown

Explicit null handling

python-poetry/poetry
8
33496

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

Null Handling Python

API consistency standards

emcie-co/parlant
8
12205

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

API Python

Separate configuration lifecycles

opentofu/opentofu
8
25901

Maintain clear separation between different stages of configuration processing by creating dedicated structures for e...

Configurations Go

Log effectively for debugging

opentofu/opentofu
8
25901

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

Logging Go

Document intent and limitations

opentofu/opentofu
8
25901

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

Documentation Go

Follow GoDoc conventions

ollama/ollama
8
145704

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

Documentation Go

Descriptive balanced naming

ollama/ollama
8
145704

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

Naming Conventions Go

Use specific assertions

octokit/octokit.net
8
2793

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

Testing C#

Document public API elements

octokit/octokit.net
8
2793

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

Documentation C#

explicit null safety

novuhq/novu
8
37700

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

Null Handling TypeScript

Complete OpenAPI annotations

novuhq/novu
8
37700

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

API TypeScript

Informative error messages

nodejs/node
8
112178

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

Error Handling JavaScript

Evolve return values

nodejs/node
8
112178

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

API Markdown

Technical documentation precision

vercel/next.js
8
133000

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

Documentation Mdx

Secure Data Handling in Next.js Applications

vercel/next.js
8
133000

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

Next.js JavaScript

Effective Cache Management in Next.js Applications

vercel/next.js
8
133000

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

Next.js JavaScript

reduce test verbosity

neovim/neovim
8
91433

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

Testing Other

consistent naming conventions

neovim/neovim
8
91433

Maintain consistent naming patterns and terminology across the codebase to reduce cognitive load and improve code cla...

Naming Conventions Other

Design domain-specific error types

neondatabase/neon
8
19015

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

Error Handling Rust

Use structured logging

n8n-io/n8n
8
122978

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

Logging TypeScript

Prevent null reference exceptions

n8n-io/n8n
8
122978

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

Null Handling Other

Technical precision matters

apache/mxnet
8
20801

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

AI Markdown

Validate noexcept guarantees

maplibre/maplibre-native
8
1411

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

Error Handling Other

Environment variable access

lobehub/lobe-chat
8
65138

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

Configurations TypeScript

Use descriptive names

llvm/llvm-project
8
33702

Choose names that clearly describe the purpose, behavior, and content of functions, variables, and constants. Names s...

Naming Conventions C++

maintain naming consistency

ggml-org/llama.cpp
8
83559

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

Naming Conventions C++

Extract repeated code

langfuse/langfuse
8
13574

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

Code Style TypeScript

API field documentation

kubernetes/kubernetes
8
116489

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

API Go

Effective API samples

JetBrains/kotlin
8
50857

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

Documentation Kotlin

Conditional configuration management

kilo-org/kilocode
8
7302

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

Configurations TypeScript

prefer modern collection APIs

apache/kafka
8
30575

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

Code Style Java

Use descriptive names

influxdata/influxdb
8
30268

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

Naming Conventions Go

Promote code clarity

influxdata/influxdb
8
30268

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

Code Style Rust

Minimize critical path allocations

influxdata/influxdb
8
30268

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

Performance Optimization Rust

Lock with defer unlock

influxdata/influxdb
8
30268

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

Concurrency Go

Choose appropriate lock primitives

influxdata/influxdb
8
30268

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

Concurrency Rust

Maintain clean code structure

hyprwm/Hyprland
8
28863

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

Code Style Other

Protect sensitive data

juspay/hyperswitch
8
34028

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

Security Rust

Documentation clarity and formatting

ghostty-org/ghostty
8
32864

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

Documentation Yaml

Prevent concurrent state races

google-gemini/gemini-cli
8
65062

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

Concurrency TypeScript

Use semantic exceptions

laravel/framework
8
33763

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

Error Handling PHP

Precise type annotations

laravel/framework
8
33763

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

Documentation PHP

Follow naming patterns

gofiber/fiber
8
37560

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

Naming Conventions Go

Write clear documentation

fastify/fastify
8
34000

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

Documentation Markdown

Isolate configuration concerns

fastapi/fastapi
8
86871

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

Configurations Markdown

Document all responses

fastapi/fastapi
8
86871

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

API Markdown

Single source documentation

expressjs/express
8
67300

Maintain documentation with a single source of truth to prevent inconsistencies and reduce maintenance burden. When i...

Documentation Markdown

Enforce null safety patterns

expressjs/express
8
67300

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

Null Handling JavaScript

use optional types safely

electron/electron
8
117644

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

Null Handling Other

Optimize before implementing

elastic/elasticsearch
8
73104

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

Algorithms Java

Handle optional dependencies gracefully

stanfordnlp/dspy
8
27813

When integrating with external AI libraries, models, or services, handle optional dependencies gracefully to avoid af...

AI Python

verify authorization explicitly

discourse/discourse
8
44898

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

Security Ruby

Avoid ambiguous naming

denoland/deno
8
103714

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

Naming Conventions Rust

Document API completely

deeplearning4j/deeplearning4j
8
14036

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

Documentation Java

Semantic naming patterns

crewaiinc/crewai
8
33945

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

Naming Conventions Python

Prefer pythonic simplicity

crewaiinc/crewai
8
33945

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

Code Style Python

Clear variable naming

home-assistant/core
8
80450

Use descriptive, unambiguous variable and function names that clearly convey their purpose and avoid conflicts with P...

Naming Conventions Python

avoid code duplication

home-assistant/core
8
80450

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

Code Style Python

Environment variable validation

docker/compose
8
35858

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

Configurations Go

break down large files

cline/cline
8
48299

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

Code Style TypeScript

validate before executing operations

ClickHouse/ClickHouse
8
42425

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

Database C++

Use centralized loggers

snyk/cli
8
5178

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

Logging Go

Extract and organize methods

chef/chef
8
7860

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

Code Style Ruby

Write pythonic code

bridgecrewio/checkov
8
7668

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

Code Style Python

Safe dictionary access

bridgecrewio/checkov
8
7667

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

Null Handling Python

Restrict public network

bridgecrewio/checkov
8
7668

Always configure cloud resources to restrict or disable public network access unless explicitly required for the appl...

Networking Python

Choose optimal algorithms

bridgecrewio/checkov
8
7667

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

Algorithms Python

Write self-documenting tests

boto/boto3
8
9417

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

Testing Python

Wrap errors with context

argoproj/argo-cd
8
20149

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

Error Handling Go

Comprehensive migration planning

appwrite/appwrite
8
51959

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

Migrations PHP

consistent null handling patterns

angular/angular
8
98611

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

Null Handling TypeScript

Explain code intent

alacritty/alacritty
8
59675

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

Documentation Rust

Use descriptive action names

apache/airflow
8
40858

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

Naming Conventions Python

Test through public APIs

zed-industries/zed
7
62119

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

Testing Rust

Document compatibility flags comprehensively

cloudflare/workerd
7
6989

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

Configurations Other

comprehensive assertion testing

cloudflare/workerd
7
6989

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

Testing JavaScript

Avoid redundant operations

volcano-sh/volcano
7
4899

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

Performance Optimization Go

Add explicit nil checks

volcano-sh/volcano
7
4899

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

Null Handling Go

Follow logging best practices

vllm-project/vllm
7
51730

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

Logging Python

Check before access

vllm-project/vllm
7
51730

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

Null Handling Python

Dynamic configuration needs validation

vitessio/vitess
7
19815

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

Configurations Go

Descriptive consistent naming

vitejs/vite
7
74031

Choose variable, function, and class names that accurately reflect their purpose while maintaining consistency with e...

Naming Conventions TypeScript

informative error messages

vlang/v
7
36582

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

Error Handling Other

function documentation standards

vlang/v
7
36582

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

Documentation Other

Clear technical writing

vlang/v
7
36582

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

Naming Conventions Markdown

Choose efficient data structures

vlang/v
7
36582

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

Algorithms Other

Structure for readability

astral-sh/uv
7
60322

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

Code Style Rust

Redact URL credentials

astral-sh/uv
7
60322

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

Security Rust

Choose efficient data structures

unionlabs/union
7
74800

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

Algorithms Rust

Organize tailwind classes

shadcn-ui/ui
7
90568

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

Code Style TSX

Names reveal semantic purpose

microsoft/typescript
7
105378

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

Naming Conventions TypeScript

Document function behavior completely

microsoft/typescript
7
105378

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

Documentation TypeScript

prefer compile-time configuration

tree-sitter/tree-sitter
7
21799

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

Configurations Rust

avoid unnecessary Option operations

tree-sitter/tree-sitter
7
21799

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

Null Handling Rust

Use descriptive names

traefik/traefik
7
55772

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

Naming Conventions Go

Structure conditional compilation

tokio-rs/tokio
7
28981

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

Configurations Rust

Follow naming conventions

tokio-rs/tokio
7
28981

Choose names that follow established API conventions and guidelines to create a consistent, intuitive codebase: 1. F...

Naming Conventions Rust

Meaningful consistent names

tensorflow/tensorflow
7
190625

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

Naming Conventions Other

Measure performance impact

sveltejs/svelte
7
83580

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

Performance Optimization JavaScript

Document structure consistency

supabase/supabase
7
86070

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

Documentation Other
7
58382

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

Testing Java

Maintain consistent naming patterns

spring-projects/spring-boot
7
77637

Follow established naming patterns and conventions throughout the codebase to ensure consistency and clarity. This in...

Naming Conventions Java

Consistent observability data

spring-projects/spring-boot
7
77637

When implementing observability features, always ensure consistency in your data model, especially with tags and attr...

Observability Java

Simplify conditional structures

apache/spark
7
41554

Organize complex conditional logic using clear, sequential patterns rather than nested structures or multiple early r...

Code Style Other

validate memory bounds

bytedance/sonic
7
8532

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

Null Handling C

Package organization standards

SigNoz/signoz
7
23369

Maintain proper package organization by following established structural patterns and separation of concerns. Code sh...

Code Style Go

Promise error handling patterns

serverless/serverless
7
46810

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

Error Handling JavaScript

Eliminate redundant operations

serverless/serverless
7
46810

Identify and eliminate repeated expensive operations to improve performance. Look for opportunities to cache results,...

Performance Optimization JavaScript

API schema validation accuracy

serverless/serverless
7
46810

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

API JavaScript

Language-agnostic configuration design

oraios/serena
7
14465

Design configuration parameters to be language-agnostic when possible, use established configuration objects, and mai...

Configurations Python

Use data providers effectively

getsentry/sentry-php
7
1873

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

Testing PHP

Evolve API safely

getsentry/sentry-php
7
1873

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

API PHP

Minimize mocks verify behavior

getsentry/sentry
7
41297

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

Testing Python

eliminate code duplication

strands-agents/sdk-python
7
4044

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

Code Style Python

Choose appropriate synchronization

strands-agents/sdk-python
7
4044

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

Concurrency Python

Standardize configuration value handling

rust-lang/rust
7
105254

Implement robust and type-safe configuration handling to avoid fragile hardcoding and improve maintainability. Key gu...

Configurations Rust

Ensure complete test coverage

rust-lang/rust
7
105254

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

Testing Rust

Simplify code expressions

dotnet/runtime
7
16578

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

Code Style C++

Choose error strategies deliberately

astral-sh/ruff
7
40619

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

Error Handling Rust

SSR documentation completeness

TanStack/router
7
11590

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

Next Markdown

Validate nullable values explicitly

RooCodeInc/Roo-Code
7
17288

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

Null Handling TypeScript

Preserve error context chain

RooCodeInc/Roo-Code
7
17288

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

Error Handling TypeScript

Maintain consistent terminology patterns

RooCodeInc/Roo-Code
7
17288

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

Naming Conventions Json

Document i18n string usage

RooCodeInc/Roo-Code
7
17288

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

Documentation TypeScript

Consistent localization formatting

RooCodeInc/Roo-Code
7
17288

Ensure all localization strings maintain consistent formatting patterns within each locale file. This includes: 1. *...

Code Style Json

Configure with care

RooCodeInc/Roo-Code
7
17288

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

Configurations TypeScript

simplify redundant logic

facebook/react-native
7
123178

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

Code Style Other

extract complex logic

facebook/react-native
7
123178

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

Code Style JavaScript

Configuration validation and defaults

facebook/react-native
7
123178

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

Configurations JavaScript

avoid !! operator

facebook/react-native
7
123178

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

Null Handling Kotlin

Database-specific query optimization

rails/rails
7
57027

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

Database Ruby

Configure at proper scope

rails/rails
7
57027

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

Configurations Ruby

Meaningful error communication

quarkusio/quarkus
7
14667

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

Error Handling Java

Document configuration comprehensively

quarkusio/quarkus
7
14667

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

Configurations Java

API evolution strategy

quarkusio/quarkus
7
14667

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

API Java

Document code rationale

pydantic/pydantic
7
24377

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

Documentation Python

Consistent term capitalization

pydantic/pydantic
7
24377

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

Naming Conventions Markdown

Meaningful consistent naming

prowler-cloud/prowler
7
11834

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

Naming Conventions Python

Extract duplicate code

prisma/prisma
7
42967

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

Code Style TypeScript

Database provider compatibility

prisma/prisma
7
42967

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

Database TypeScript

consistent error object usage

prisma/prisma
7
42967

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

Error Handling TypeScript

Consistent clear naming

prisma/prisma
7
42967

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

Naming Conventions TypeScript

Use descriptive names

python-poetry/poetry
7
33496

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

Naming Conventions Python

optimize algorithmic efficiency

python-poetry/poetry
7
33496

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

Algorithms Python

dependency constraint consistency

python-poetry/poetry
7
33496

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

Configurations Toml

validate inputs early

microsoft/playwright
7
76113

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

Error Handling TypeScript

Specify configuration behaviors

opentofu/opentofu
7
25901

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

Configurations Markdown

Optimize code location scope

open-telemetry/opentelemetry-python
7
2061

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

Code Style Python
7
2061

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

API Python

Use proper assertions

opencv/opencv
7
82865

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

Testing C++

Use optimized functions

opencv/opencv
7
82865

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

Algorithms C++

Maintain consistent style

octokit/octokit.net
7
2793

Follow established patterns consistently throughout the codebase to improve readability and maintainability: 1. **Us...

Code Style C#

User-centric documentation practices

nrwl/nx
7
27518

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

Documentation Markdown

Avoid code duplication

nrwl/nx
7
27518

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

Code Style TypeScript

Use consistent terminology

nuxt/nuxt
7
57769

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

Naming Conventions Markdown

Version APIs with care

nodejs/node
7
112178

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

API Other

Public over internal APIs

nodejs/node
7
112178

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

API JavaScript

Benchmark before optimizing code

nodejs/node
7
112178

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

Performance Optimization JavaScript

Simplify control flow

netty/netty
7
34227

Streamline code by simplifying control flow structures to improve readability. Eliminate unnecessary nesting and verb...

Code Style Java

Proper asynchronous error handling

nestjs/nest
7
71767

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

Error Handling TypeScript

Descriptive identifier names

nestjs/nest
7
71766

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

Naming Conventions TypeScript

Complete function documentation

neovim/neovim
7
91433

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

Documentation Other

API consistency patterns

neovim/neovim
7
91433

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

API Other

Structure endpoints for REST

neondatabase/neon
7
19015

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

API Rust

Clear consistent identifier names

neondatabase/neon
7
19015

Choose clear, consistent, and non-redundant names for identifiers across the codebase. Follow these guidelines: 1. U...

Naming Conventions Rust

Maintain test state isolation

n8n-io/n8n
7
122978

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

Testing TypeScript

Simplify for readability

apache/mxnet
7
20801

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

Code Style Other

Consistent naming patterns

apache/mxnet
7
20801

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

Naming Conventions Python

remove unnecessary code

rocicorp/mono
7
2091

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

Code Style TypeScript

prioritize code readability

rocicorp/mono
7
2091

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

Code Style TSX

centralize configuration management

mastodon/mastodon
7
48691

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

Configurations Ruby

Modern C++ style practices

maplibre/maplibre-native
7
1411

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

Code Style C++

Simplify code readability

logseq/logseq
7
37695

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

Code Style Other

Extract reusable components

lobehub/lobe-chat
7
65138

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

Code Style TypeScript

Add unit tests

lobehub/lobe-chat
7
65138

All new functionality must include corresponding unit tests. This is especially critical for utility functions, core ...

Testing TypeScript

Simplify for readability

LMCache/LMCache
7
3800

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

Code Style Python

Ensure operation completion safety

LMCache/LMCache
7
3800

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

Concurrency Python

comprehensive test coverage

llvm/llvm-project
7
33702

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

Testing C++

avoid unnecessary allocations

llvm/llvm-project
7
33702

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

Performance Optimization C++

leverage existing framework functionality

ggml-org/llama.cpp
7
83559

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

AI Python

eliminate code duplication

ggml-org/llama.cpp
7
83559

Avoid duplicating code blocks by extracting common functionality into reusable functions, using templates for type-ge...

Code Style C++

Follow consistent naming patterns

BerriAI/litellm
7
28310

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

Naming Conventions Python

Surface errors to users

langfuse/langfuse
7
13574

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

Error Handling TSX

Falsy vs null checks

langfuse/langfuse
7
13574

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

Null Handling TSX

Cache expensive operations

langfuse/langfuse
7
13574

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

Performance Optimization TypeScript

Use comprehensive JSDoc

langchain-ai/langchainjs
7
15004

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

Documentation TypeScript

Preserve API backward compatibility

langchain-ai/langchainjs
7
15004

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

API TypeScript

implement proper observability

kubernetes/kubernetes
7
116489

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

Observability Go

Clear field documentation

kubernetes/kubernetes
7
116489

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

Documentation Go

Avoid unnecessary work

kubernetes/kubernetes
7
116489

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

Performance Optimization Go

Simplify code structure

kubeflow/kubeflow
7
15064

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

Code Style Go

Precise workflow triggers

kubeflow/kubeflow
7
15064

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

CI/CD Yaml

Go export naming conventions

kubeflow/kubeflow
7
15064

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

Naming Conventions Go

Use configuration property providers

JetBrains/kotlin
7
50857

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

Configurations Kotlin

Test edge cases

JetBrains/kotlin
7
50857

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

Testing Kotlin

Minimize unnecessary work

JetBrains/kotlin
7
50857

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

Performance Optimization Kotlin

Keep code clearly organized

JetBrains/kotlin
7
50857

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

Code Style Kotlin

Design extensible stable APIs

JetBrains/kotlin
7
50857

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

API Kotlin

prioritize documentation clarity

jj-vcs/jj
7
21171

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

Documentation Rust

Use testify assertions

influxdata/influxdb
7
30268

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

Testing Go

Validate environment variables strictly

elie222/inbox-zero
7
8267

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

Configurations TypeScript

prevent null dereferences

hyprwm/Hyprland
7
28863

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

Null Handling C++

avoid expensive hot paths

hyprwm/Hyprland
7
28863

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

Performance Optimization C++

API type consistency

juspay/hyperswitch
7
34028

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

API Rust

use descriptive names

helix-editor/helix
7
39026

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

Naming Conventions Rust

Safe concurrent programming

grafana/grafana
7
68825

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

Concurrency Go

Follow documentation conventions

grafana/grafana
7
68825

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

Documentation Markdown

Test behavioral differences

google-gemini/gemini-cli
7
65062

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

Testing TSX

reduce nesting complexity

google-gemini/gemini-cli
7
65062

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

Code Style TypeScript

Use modern PHPUnit attributes

laravel/framework
7
33763

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

Testing PHP

check all error returns

gofiber/fiber
7
37560

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

Error Handling Go

Technical term consistency

fastapi/fastapi
7
86871

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

Naming Conventions Markdown

Sync versus async tests

fastapi/fastapi
7
86871

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

Testing Markdown

Standardize dependency version notation

expressjs/express
7
67300

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

Configurations Json

Follow StandardJS when modifying

expressjs/express
7
67300

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

Code Style JavaScript

Clear intention in names

expressjs/express
7
67300

Choose names that clearly communicate intention and follow established conventions. This applies to variables, functi...

Naming Conventions JavaScript

prefer const correctness

electron/electron
7
117644

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

Code Style Other

comprehensive test coverage

duckdb/duckdb
7
32061

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

Testing Other

avoid repeated expensive operations

duckdb/duckdb
7
32061

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

Performance Optimization C++

Complete parameter documentation

stanfordnlp/dspy
7
27813

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

Documentation Python

Use descriptive identifier names

django/django
7
84182

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

Naming Conventions Python

Follow established naming conventions

discourse/discourse
7
44898

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

Naming Conventions Other

Clean code formatting rules

continuedev/continue
7
27819

Maintain consistent and clean code formatting to improve readability and maintainability. Follow these guidelines: 1...

Code Style TSX

CI script reliability practices

continuedev/continue
7
27819

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

CI/CD Yaml

explicit configuration management

docker/compose
7
35858

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

Configurations Other

semantic naming accuracy

ClickHouse/ClickHouse
7
42425

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

Naming Conventions Other

Explicit error handling

ClickHouse/ClickHouse
7
42425

Always handle error conditions explicitly rather than silently ignoring them or using generic error responses. Use sp...

Error Handling C++

Document non-obvious code

ClickHouse/ClickHouse
7
42425

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

Documentation Other

prevent silent test failures

snyk/cli
7
5178

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

Testing TypeScript

Handle all errors explicitly

snyk/cli
7
5178

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

Error Handling Go

Document intent and reasoning

snyk/cli
7
5178

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

Documentation TypeScript

API response consistency

snyk/cli
7
5178

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

API TypeScript

Document with examples

chef/chef
7
7860

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

Documentation Ruby

Consistent descriptive naming patterns

chef/chef
7
7860

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

Naming Conventions Ruby

Meaningful identifier names

bridgecrewio/checkov
7
7667

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

Naming Conventions Python

Validate nullability explicitly

oven-sh/bun
7
79093

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

Null Handling Other

Assert before cast

oven-sh/bun
7
79093

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

Null Handling C++

Standardize API integration patterns

Homebrew/brew
7
44168

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

API Ruby

Optimize collection operations

Homebrew/brew
7
44168

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

Algorithms Ruby

Prevent algorithmic pitfalls

boto/boto3
7
9417

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

Algorithms Python

Follow naming conventions

boto/boto3
7
9417

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

Naming Conventions Python

Defensive null value handling

boto/boto3
7
9417

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

Null Handling Python

prefer simple readable code

bazelbuild/bazel
7
24489

Favor simple, readable implementations over complex or overly abstracted solutions. This includes eliminating code du...

Code Style Other

prefer simple API designs

bazelbuild/bazel
7
24489

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

API Java

optimize algorithm choices

bazelbuild/bazel
7
24489

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

Algorithms Java

Executor service lifecycle

bazelbuild/bazel
7
24489

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

Concurrency Java

Configuration clarity standards

bazelbuild/bazel
7
24489

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

Configurations Java

Design stable APIs

Azure/azure-sdk-for-net
7
5809

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

API Markdown

Check before dereferencing

Azure/azure-sdk-for-net
7
5809

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

Null Handling C#

Defensive null checking

aws/aws-sdk-js
7
7628

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

Null Handling JavaScript

Stable dependency version management

appwrite/appwrite
7
51959

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

Configurations Json

Keep documentation paths current

appwrite/appwrite
7
51959

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

Documentation PHP

Consistent placeholder conventions

appwrite/appwrite
7
51959

Ensure all placeholders in localization files follow consistent naming conventions to prevent runtime errors and text...

Naming Conventions Json

Use semantic descriptive names

ant-design/ant-design
7
95882

Choose variable, function, and type names that clearly communicate their purpose, source, and context. Names should b...

Naming Conventions TSX

Prevent component re-mounting

ant-design/ant-design
7
95882

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

React TSX

API evolution strategy

ant-design/ant-design
7
95882

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

API Markdown

Use descriptive names

angular/angular
7
98611

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

Naming Conventions TypeScript

Document configuration specifics

alacritty/alacritty
7
59675

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

Configurations Markdown

Prefer Rust structural patterns

zed-industries/zed
6
62119

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

Code Style Rust

Consider algorithmic complexity

zed-industries/zed
6
62119

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

Algorithms Rust

prefer higher-level APIs

cloudflare/workerd
6
6989

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

API Other

Node.js API compatibility

cloudflare/workerd
6
6989

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

API TypeScript

minimize memory operations

cloudflare/workerd
6
6989

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

Performance Optimization Other

maintain consistent patterns

cloudflare/workerd
6
6989

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

Code Style TypeScript

Use specific semantic names

microsoft/vscode
6
174887

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

Naming Conventions TypeScript

Keep APIs simple JavaScript-like

microsoft/vscode
6
174887

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

API TypeScript

Handle errors with specificity

microsoft/vscode
6
174887

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

Error Handling TypeScript

Algorithm explanation clarity

volcano-sh/volcano
6
4899

When documenting algorithms, provide detailed explanations of the underlying logic with concrete examples and clear p...

Algorithms Markdown

Use self-documenting names

vllm-project/vllm
6
51730

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

Naming Conventions Python

Process configurations consistently

vllm-project/vllm
6
51730

Ensure that configuration data is processed consistently and correctly throughout the codebase. This includes: 1. **...

Configurations Python

Optimize data structures

vitessio/vitess
6
19815

Choose and implement data structures with careful consideration of algorithmic complexity, memory usage, and Go's spe...

Algorithms Go

Extract shared code patterns

vitessio/vitess
6
19815

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

Code Style Go

Ensure documentation accuracy

vitejs/vite
6
74031

Documentation must precisely reflect the current codebase implementation. When documenting features, options, or APIs...

Documentation Markdown

Make errors user actionable

astral-sh/uv
6
60322

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

Error Handling Rust

Validate production configurations

unionlabs/union
6
74800

Always validate configuration values and ensure production safety by avoiding hardcoded values, implementing proper d...

Configurations Other

Module resolution hierarchy

microsoft/typescript
6
105378

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

Configurations TypeScript

Specify algorithmic scope precisely

astral-sh/ty
6
11919

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

Algorithms Markdown

Use semantically accurate names

twentyhq/twenty
6
35477

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

Naming Conventions TSX

Use domain-specific exceptions

twentyhq/twenty
6
35477

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

Error Handling TypeScript

simplify API interfaces

twentyhq/twenty
6
35477

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

API TypeScript

Know your implicit configurations

vercel/turborepo
6
28115

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

Configurations Other

Eliminate code duplication

vercel/turborepo
6
28115

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

Code Style Rust

Optimize frequent operations

tree-sitter/tree-sitter
6
21799

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

Performance Optimization Rust

Algorithm and data optimization

tree-sitter/tree-sitter
6
21799

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

Algorithms Rust

complete observability router options

traefik/traefik
6
55772

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

Observability Markdown

Use Option methods idiomatically

tokio-rs/tokio
6
28989

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

Null Handling Rust

Structural configuration approaches

tokio-rs/tokio
6
28989

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

Configurations Rust

Prefer explicit over concise

tokio-rs/tokio
6
28989

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

Naming Conventions Rust

Organize code logically

tokio-rs/tokio
6
28989

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

Code Style Rust

Optimize memory allocation

tokio-rs/tokio
6
28981

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

Performance Optimization Rust

Network API design consistency

tokio-rs/tokio
6
28989

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

Networking Rust

Follow import style

tokio-rs/tokio
6
28981

Tokio projects follow specific import conventions for consistency and readability. Adhere to these guidelines: 1. Us...

Code Style Rust

Flexible consistent API patterns

tokio-rs/tokio
6
28989

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

API Rust

Design error handling carefully

tokio-rs/tokio
6
28989

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

Error Handling Rust

Simplify for readability

huggingface/tokenizers
6
9868

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

Code Style Rust

Descriptive purpose-driven naming

hashicorp/terraform
6
45532

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

Naming Conventions Go

Contextual null checks

hashicorp/terraform
6
45532

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

Null Handling Go

Use established configuration patterns

microsoft/terminal
6
99242

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

Configurations Other

manage object lifetimes carefully

microsoft/terminal
6
99242

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

Concurrency C++

Choose efficient data structures

microsoft/terminal
6
99242

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

Algorithms Other

Choose efficient implementations

tensorflow/tensorflow
6
190625

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

Algorithms Other

Specific assertion methods

temporalio/temporal
6
14953

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

Testing Go

Precompute and cache

temporalio/temporal
6
14953

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

Performance Optimization Go

Comprehensive function documentation

gravitational/teleport
6
19109

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

Documentation Go

document configuration hierarchies

sveltejs/svelte
6
83580

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

Configurations Markdown

Document complex APIs

sveltejs/svelte
6
83580

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

Documentation JavaScript

Choose descriptive names

sveltejs/svelte
6
83580

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

Naming Conventions JavaScript

Prevent hardcoded secrets

supabase/supabase
6
86070

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

Security TypeScript

Use appropriate collections

spring-projects/spring-framework
6
58382

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

Algorithms Java

Meaningful exception design

spring-projects/spring-boot
6
77637

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

Error Handling Java

Documentation clarity principles

spring-projects/spring-boot
6
77637

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

Documentation Other

Document configuration properties completely

spring-projects/spring-boot
6
77637

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

Configurations Java

Concrete bean return types

spring-projects/spring-boot
6
77637

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

Spring Java

Alphabetical ordering requirement

spring-projects/spring-boot
6
77637

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

Code Style Other

optimize data structures

apache/spark
6
41554

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

Algorithms Other

use loose equality checks

serverless/serverless
6
46810

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

Null Handling JavaScript

configuration examples accuracy

serverless/serverless
6
46810

Ensure configuration examples and documentation use current, supported syntax and accurately reflect the actual behav...

Configurations Markdown

avoid local imports

oraios/serena
6
14465

Place all import statements at the top of the file as global imports rather than importing modules within functions o...

Code Style Python

Use descriptive identifiers

getsentry/sentry
6
41297

Choose variable, parameter, field, and class names that clearly communicate their purpose and context. Favor specific...

Naming Conventions Python

Structure logs with context

getsentry/sentry
6
41297

Use structured logging with appropriate context and log levels to maximize the value of log messages. Include relevan...

Logging Python

Explicit null handling

getsentry/sentry-php
6
1873

Always be explicit and consistent when handling null values to improve code clarity and prevent subtle bugs. This app...

Null Handling PHP

Feature flag rollouts

getsentry/sentry
6
41297

Use feature flags to gate new functionality for controlled rollouts. This allows for quick enabling/disabling without...

Configurations Python

Structure validation algorithms

rust-lang/rust
6
105254

When implementing or modifying parsing and validation algorithms, carefully consider both the correctness and user ex...

Algorithms Other

Clear helpful error messages

rust-lang/rust
6
105254

Create user-friendly error messages that guide developers toward solutions. Error messages should: 1. Include the pro...

Error Handling Rust

Optimize common paths

dotnet/runtime
6
16578

Design algorithms that optimize for the most common execution paths by prioritizing frequent scenarios in conditional...

Algorithms Other

Model actual hardware costs

dotnet/runtime
6
16578

Base optimization decisions on accurate hardware cost models rather than outdated assumptions. Modern architectures h...

Performance Optimization C++

Document configuration intent

dotnet/runtime
6
16578

Configuration settings should be self-documenting with clear intent. When adding temporary workarounds, conditional f...

Configurations Other

Handle nulls with Option

astral-sh/ruff
6
40619

Use Rust's Option type and its methods effectively to handle nullable values. This improves code clarity and safety b...

Null Handling Rust

Enhance code clarity

TanStack/router
6
11590

Ensure all code examples and documentation are as clear and complete as possible for developers. This includes adding...

React Markdown

API parameter design

TanStack/router
6
11590

Design API parameters thoughtfully by making them optional when appropriate, avoiding unnecessary required parameters...

API TypeScript

Maintain consistent naming patterns

RooCodeInc/Roo-Code
6
17288

Use consistent naming patterns throughout the codebase. When adding new identifiers, follow existing patterns in simi...

Naming Conventions TypeScript

Enforce resource usage limits

RooCodeInc/Roo-Code
6
17288

Implement explicit resource limits and monitoring to prevent performance degradation and memory issues. This includes...

Performance Optimization TypeScript

Enforce API format consistency

RooCodeInc/Roo-Code
6
17288

Maintain consistent data formats, parameter units, and interface patterns across API implementations. This includes: ...

API TypeScript

Use descriptive semantic names

remix-run/react-router
6
55270

Choose variable, function, and type names that clearly communicate their purpose and context. Prioritize readability ...

Naming Conventions TypeScript

precise null type checking

remix-run/react-router
6
55270

Use precise null and undefined type checking that matches the actual usage context. Distinguish between checking if a...

Null Handling TypeScript

Hook dependencies stability

remix-run/react-router
6
55270

Ensure hook dependencies are minimal, stable, and follow React's rules to prevent unnecessary re-renders and maintain...

React TSX

configuration consistency standards

remix-run/react-router
6
55270

Ensure configuration options, flags, and environment settings are handled consistently across all commands and module...

Configurations TypeScript

configuration compatibility validation

remix-run/react-router
6
55270

Ensure that code examples and documentation accurately reflect the constraints and requirements of different renderin...

Next Markdown

Prefer simpler expressions

rails/rails
6
57027

Always choose the simplest, most readable way to express your code logic. Unnecessary complexity makes code harder to...

Code Style Ruby

Minimize unnecessary object allocations

rails/rails
6
57027

Avoid creating unnecessary objects, especially in frequently executed code paths. This includes being mindful of impl...

Performance Optimization Ruby

Minimize public API surface

rails/rails
6
57027

Design APIs with a minimal public surface area by carefully controlling which methods and properties are exposed. Sta...

API Ruby

Follow documentation conventions

rails/rails
6
57027

Maintain consistent formatting and style in all documentation to improve readability and professionalism: 1. **Use p...

Documentation Markdown

Document APIs clearly

rails/rails
6
57027

When designing and documenting APIs, prioritize clarity and completeness through concrete examples and accurate param...

API Markdown

Thread-safe state management

quarkusio/quarkus
6
14667

When managing state accessed by multiple threads, ensure thread safety through appropriate synchronization mechanisms...

Concurrency Java

Graceful API evolution

pytorch/pytorch
6
91345

When modifying, deprecating, or replacing APIs, ensure a smooth transition experience for developers by following the...

API Python

Standardize dependency management

pydantic/pydantic
6
24377

Maintain consistent dependency management practices across CI workflows to ensure reliable builds and tests. Use the ...

CI/CD Yaml

Maintain code consistency

pydantic/pydantic
6
24377

Ensure code follows consistent patterns throughout the codebase, even when duplicating code is necessary. When simila...

Code Style Python

Least privilege principle

prowler-cloud/prowler
6
11834

Always follow the principle of least privilege by granting the minimum permissions necessary for functionality. This ...

Security Python

improve code readability

prometheus/prometheus
6
59616

Structure code to maximize readability and reduce cognitive load through proper formatting and control flow patterns....

Code Style Go

avoid subjective language

prometheus/prometheus
6
59616

Avoid subjective terms, unexplained jargon, and assumptions about user knowledge in documentation. Replace subjective...

Documentation Markdown

Manage output streams carefully

prisma/prisma
6
42967

Always consider the destination and lifecycle of output streams to prevent protocol interference, data loss, and unex...

Logging TypeScript

Verify optional chaining necessity

prettier/prettier
6
50772

Analyze whether optional chaining (`?.`) is actually needed based on the surrounding context and prior validations. R...

Null Handling JavaScript

prefer efficient algorithms

prettier/prettier
6
50772

Choose more efficient algorithmic approaches by leveraging built-in methods and APIs instead of implementing manual s...

Algorithms JavaScript

Documentation clarity standards

prettier/prettier
6
50772

Ensure documentation is clear, precise, and technically accurate to prevent confusion and build errors. This includes...

Documentation Markdown

consistent spacing patterns

prettier/prettier
6
50772

Maintain consistent spacing patterns around operators, keywords, and interpolation syntax throughout the codebase. Th...

Code Style Other

Cache invalidation consistency

PostHog/posthog
6
28460

Ensure comprehensive and consistent cache invalidation patterns across all models that affect cached data. Every mode...

Caching Python

Optimize memory allocation patterns

pola-rs/polars
6
34296

Minimize memory allocations and optimize allocation patterns to improve performance. Key practices: 1. Pre-allocate ...

Performance Optimization Rust

Names reveal clear intent

pola-rs/polars
6
34296

Choose names that clearly communicate intent and context, avoiding ambiguity or confusion. Variable and function name...

Naming Conventions Rust

Explicit null handling

pola-rs/polars
6
34296

Always be explicit and consistent about how null values are handled in operations and documentation. This clarity pre...

Null Handling Python

Clear actionable error messages

python-poetry/poetry
6
33496

Error messages should be user-friendly, readable, and provide actionable guidance for resolution. Avoid exposing tech...

Error Handling Python

proxy configuration precedence

microsoft/playwright
6
76113

Ensure proxy configuration follows proper precedence hierarchy and handles different proxy types correctly. User-spec...

Networking TypeScript

Extract repeated logic

microsoft/playwright
6
76113

When you find yourself writing similar code patterns multiple times, extract them into reusable methods, constants, o...

Code Style TypeScript

comprehensive test coverage

emcie-co/parlant
6
12205

Ensure tests are comprehensive and explicit to prevent regressions and gaps in coverage. Tests should cover all scena...

Testing Python

Structure tests thoroughly

opentofu/opentofu
6
25901

Create well-structured tests with thorough coverage of both expected success and error conditions. Name test cases de...

Testing Go

Safe lock patterns

opentofu/opentofu
6
25901

When implementing concurrent operations, ensure locks are acquired and released properly in all execution paths. Alwa...

Concurrency Go

Reduce code nesting

opentofu/opentofu
6
25901

Minimize nesting levels and complexity in your code to improve readability and maintainability. Use early returns ins...

Code Style Go

Write purposeful comments

open-telemetry/opentelemetry-python
6
2061

Comments should explain "why" and "how" rather than restating what is already obvious from the code. Focus on providi...

Documentation Python

Sanitize observability data exports

open-telemetry/opentelemetry-python
6
2061

When exporting observability data (metrics, traces, logs) to external systems, properly sanitize all data fields to e...

Observability Python

Use OpenCV error mechanisms

opencv/opencv
6
82865

Always use OpenCV's built-in error handling mechanisms instead of C++ exceptions or custom error handling. This ensur...

Error Handling C++

Prevent null vulnerabilities

opencv/opencv
6
82865

Use container classes and smart pointers instead of manual memory allocation to prevent null pointer dereferences and...

Null Handling C++

Cross-platform API design rules

opencv/opencv
6
82865

Design public APIs to work seamlessly across different programming languages and platforms. Follow these key principl...

API Other

Clear API contracts

opencv/opencv
6
82865

Design APIs with clear contracts that behave exactly as their names and signatures suggest. Functions should do preci...

API C++

Optimize with standard library

ollama/ollama
6
145704

When implementing algorithms, prefer using Go's standard library over custom implementations or external dependencies...

Algorithms Go

Use nullable for optionals

octokit/octokit.net
6
2793

When a property or parameter represents an optional value that might be absent in requests or responses, use nullable...

Null Handling C#

validate configuration values

nrwl/nx
6
27518

Always validate configuration values at runtime and provide clear, actionable error messages when invalid combination...

Configurations TypeScript

Use explicit, consistent names

nrwl/nx
6
27518

Variable and parameter names should be explicit about their purpose and consistent with established naming patterns i...

Naming Conventions TypeScript

scope CI access tokens

nrwl/nx
6
27518

Configure CI pipelines to use appropriately scoped access tokens based on branch protection status. Use read-write to...

CI/CD Markdown

Document CI configuration clearly

nrwl/nx
6
27518

Always include file path comments in CI configuration code blocks and use officially recommended setup actions for CI...

CI/CD Other

Use descriptive names

nuxt/nuxt
6
57769

Choose variable, function, and file names that clearly describe their purpose, behavior, and content. Names should be...

Naming Conventions TypeScript

explicit API design

nuxt/nuxt
6
57769

Design APIs with explicit parameters, consistent return types, and clear interfaces to improve usability and maintain...

API TypeScript

Configuration method selection

nuxt/nuxt
6
57769

Choose the appropriate configuration method based on when values are needed and whether they can change at runtime. U...

Configurations Markdown

Use semantic naming patterns

novuhq/novu
6
37700

Establish consistent naming conventions that preserve semantic meaning and follow established patterns. Use descripti...

Naming Conventions TypeScript

Extract reusable components

novuhq/novu
6
37700

Eliminate code duplication by extracting common functionality into shared utilities, constants, and base classes. Whe...

Code Style TypeScript

Prefer clarity over cleverness

nodejs/node
6
112178

Write code that prioritizes readability and maintainability over cleverness or excessive optimization. Avoid overly c...

Code Style JavaScript

Handling Dynamic Content in Next.js Components

vercel/next.js
6
133000

When implementing Next.js components that rely on dynamic content (e.g. random values, current time), it is crucial t...

Next.js JavaScript

Provider-specific AI handling

ChatGPTNextWeb/NextChat
6
85721

Implement provider-specific logic when integrating different AI services, as each provider has unique requirements fo...

AI TypeScript

Use null validation utilities

netty/netty
6
34227

Consistently use utility methods like `ObjectUtil.checkNotNull()` or `Objects.requireNonNull()` to validate that para...

Null Handling Java

Memory ordering needs barriers

netty/netty
6
34227

Ensure proper memory ordering in concurrent code by using appropriate memory barriers and atomic operations based on ...

Concurrency Java

Structure behavior-driven tests properly

nestjs/nest
6
71766

Organize tests using behavior-driven development (BDD) patterns to improve clarity and maintainability. Group related...

Testing TypeScript

Follow protocol standards

nestjs/nest
6
71767

When implementing networking features, strictly adhere to protocol specifications and standards to ensure proper inte...

Networking TypeScript

prioritize code readability

neovim/neovim
6
91433

Write code that prioritizes readability and clarity over brevity. Use proper formatting, clear expressions, and consi...

Code Style Other

Follow established API patterns

neovim/neovim
6
91433

APIs should follow documented conventions and established patterns within the codebase to ensure consistency and pred...

API Txt

Documentation accuracy standards

neovim/neovim
6
91433

Ensure all function documentation accurately reflects the actual code behavior and includes complete, properly format...

Documentation C

Optimize cargo dependencies

neondatabase/neon
6
19015

Maintain clean and efficient dependency configurations in Cargo.toml files by following these practices: 1. **Use wo...

Configurations Toml

Minimize unnecessary allocations

neondatabase/neon
6
19015

Avoid allocations and cloning when they don't provide sufficient benefit relative to their performance cost. Balance ...

Performance Optimization Rust

Log level appropriately

neondatabase/neon
6
19015

Select the appropriate log level based on operational significance and ensure messages are clear, accurate, and forma...

Logging Rust

Keep files focused small

neondatabase/neon
6
19015

Maintain code organization by keeping files focused on a single responsibility and splitting large files into smaller...

Code Style Rust

Standardize LLM interface parameters

n8n-io/n8n
6
122978

Maintain consistent parameter names and interface patterns across LLM implementations to improve maintainability and ...

AI TypeScript

Sanitize all dynamic content

n8n-io/n8n
6
122978

Always sanitize dynamic content before rendering to prevent XSS and injection attacks. This includes HTML content, CS...

Security Other

Never swallow errors silently

n8n-io/n8n
6
122978

Always handle errors explicitly and preserve their context. Never silently catch and discard errors as this hides bug...

Error Handling TypeScript

Optimize iteration patterns

apache/mxnet
6
20801

When iterating through collections, choose the most efficient iteration pattern based on what information you actuall...

Algorithms Python

Use descriptive names

rocicorp/mono
6
2091

Choose names that clearly communicate intent and purpose, avoiding vague or misleading terms. Names should be self-do...

Naming Conventions TypeScript

explicit null handling

rocicorp/mono
6
2091

Use explicit null and undefined checks with assertions to validate assumptions and maintain type safety. Prefer `!= n...

Null Handling TypeScript

Environment variable patterns

rocicorp/mono
6
2091

Use consistent patterns for environment variable handling and configuration validation. Access environment variables ...

Configurations TypeScript

Use theme utilities consistently

mui/material-ui
6
96063

Always use theme utilities for consistent styling across the application instead of hard-coded values. Replace direct...

Code Style JavaScript

Meaningful and consistent names

mui/material-ui
6
96063

Use descriptive, accurate identifiers that follow established conventions and maintain consistency throughout your co...

Naming Conventions TypeScript

Extract complex logic

mastodon/mastodon
6
48691

Break down complex methods into smaller, well-named private methods to improve readability and maintainability. When ...

Code Style Ruby

Handle errors by severity

maplibre/maplibre-native
6
1411

Choose error handling mechanisms based on error severity and recoverability: 1. Use throws for unrecoverable errors ...

Error Handling C++

Consistent API practices

maplibre/maplibre-native
6
1411

Maintain consistency in API design, documentation, and implementation across all supported platforms to improve devel...

API Markdown

Add explanatory documentation

logseq/logseq
6
37695

Add docstrings to functions and comments to explain complex logic, especially when the purpose or reasoning isn't imm...

Documentation Other

consistent naming patterns

lobehub/lobe-chat
6
65138

Maintain consistent naming conventions within related groups of identifiers. When naming related variables, functions...

Naming Conventions TypeScript

Provide contextual code documentation

llvm/llvm-project
6
33702

Code should include documentation that explains the purpose, rationale, and context behind implementation decisions, ...

Documentation C++

Follow naming conventions

ggml-org/llama.cpp
6
83559

Maintain consistency with established naming patterns and conventions throughout the codebase. This includes matching...

Naming Conventions Other

explicit control flow logic

ggml-org/llama.cpp
6
83559

Use explicit control flow structures like switch statements instead of complex boolean logic or implicit reasoning wh...

Algorithms C++

Use proper logging mechanisms

BerriAI/litellm
6
28310

Always use the logging library instead of print statements and maintain consistent logging patterns throughout the co...

Logging Python

Preserve error handling context

langfuse/langfuse
6
13574

Always preserve error context by using specific error types, safe error handling patterns, and meaningful error messa...

Error Handling TypeScript

Maintain naming consistency

langfuse/langfuse
6
13574

Use consistent and descriptive names for variables, components, and functions throughout the codebase. When the same ...

Naming Conventions TSX

Hook and state correctness

langfuse/langfuse
6
13574

Ensure React hooks and state updates follow best practices to prevent subtle bugs: 1. **Call hooks unconditionally**...

React TSX

Environment variable documentation

langflow-ai/langflow
6
111046

Ensure comprehensive and accurate documentation of environment variables, including cross-references, auto-detection ...

Configurations Other

Prefer nullish coalescing

langchain-ai/langchainjs
6
15004

When handling null or undefined values, use modern JavaScript patterns to write more robust and maintainable code: 1...

Null Handling TypeScript

Prefer descriptive errors

JetBrains/kotlin
6
50857

When handling errors in your code, always provide detailed context in error messages to aid debugging. Use Kotlin's s...

Error Handling Kotlin

Use descriptive names

kilo-org/kilocode
6
7302

Choose names that clearly communicate purpose, type, and intent rather than generic or ambiguous identifiers. Names s...

Naming Conventions TypeScript

extract reusable utilities

kilo-org/kilocode
6
7302

When you notice repeated logic or functions that could be shared across multiple files, extract them into dedicated u...

Code Style TypeScript

Synchronization safety patterns

apache/kafka
6
30575

Ensure proper synchronization mechanisms to prevent deadlocks and race conditions in concurrent code. When designing ...

Concurrency Java

avoid unnecessary object creation

apache/kafka
6
30575

Minimize object allocation in performance-critical code paths by reusing existing objects, caching expensive operatio...

Performance Optimization Java

Choose efficient data structures

jj-vcs/jj
6
21171

Select data structures and algorithms based on their performance characteristics and expected usage patterns. Conside...

Algorithms Rust

Return errors explicitly

istio/istio
6
37192

Functions should return errors explicitly to callers rather than terminating the program, hiding errors in boolean re...

Error Handling Go

prevent race conditions

istio/istio
6
37192

Always protect shared state access and ensure proper synchronization in concurrent operations to prevent race conditi...

Concurrency Go

Feature flag lifecycle management

istio/istio
6
37192

Establish clear guidelines for feature flag creation, default values, and removal strategy based on risk assessment a...

Configurations Go

Avoid expensive operations

istio/istio
6
37192

Identify and eliminate computationally expensive operations in frequently executed code paths. Common expensive opera...

Performance Optimization Go

Wrap errors with context

influxdata/influxdb
6
30268

Always wrap errors with meaningful context using fmt.Errorf and %w verb. Include relevant identifiers (filenames, IDs...

Error Handling Go

Follow API conventions

influxdata/influxdb
6
30268

Design APIs following modern conventions and best practices to improve usability, maintainability, and consistency ac...

API Rust

Choose optimal data structures

influxdata/influxdb
6
30268

Select data structures based on specific access patterns and performance requirements. When both fast lookup and pred...

Algorithms Rust

Minimize redundant operations

elie222/inbox-zero
6
8267

Optimize application performance by preventing unnecessary renders, calculations, and network operations. Implement p...

Performance Optimization TSX

Handle nulls with types

elie222/inbox-zero
6
8267

Enforce type safety by properly handling null and undefined values through TypeScript types and explicit checks. Avoi...

Null Handling TSX

Enforce atomic database operations

elie222/inbox-zero
6
8267

Replace check-then-act patterns with atomic database operations to prevent race conditions in concurrent environments...

Concurrency TypeScript

Dynamic configuration handling

hyprwm/Hyprland
6
28863

When implementing configuration changes that need to be applied at runtime, follow these practices: 1. **Use reload ...

Configurations C++

consistent naming conventions

hyprwm/Hyprland
6
28863

Follow the project's established naming conventions consistently across all code. Use camelCase for variables, functi...

Naming Conventions Other

Synchronize environment configurations

juspay/hyperswitch
6
34028

When making configuration changes, ensure all relevant environment files are updated consistently to prevent environm...

Configurations Toml

Avoid hardcoded configuration values

juspay/hyperswitch
6
34028

Configuration values should not be hardcoded in the source code. Instead, they should be externalized to configuratio...

Configurations Rust

prefer let-else patterns

helix-editor/helix
6
39026

When handling Option types that require early returns on None values, prefer the let-else pattern over verbose match ...

Null Handling Rust

Consistent descriptive naming conventions

helix-editor/helix
6
39026

Use consistent and descriptive naming conventions across the codebase: 1. Use kebab-case for configuration options a...

Naming Conventions Markdown

Explicit null validation

grafana/grafana
6
68825

Always validate objects for null/nil before accessing their properties, and establish consistent patterns for handlin...

Null Handling Go

Descriptive semantic names

grafana/grafana
6
68825

Always use descriptive variable, parameter, function, and constant names that clearly convey their purpose and behavi...

Naming Conventions TSX

Use descriptive identifiers

block/goose
6
19037

Replace generic, ambiguous, or magic identifiers with descriptive, specific names that clearly communicate intent and...

Naming Conventions Rust

avoid panics and expects

block/goose
6
19037

Replace panic-inducing operations like `.expect()` and `.unwrap()` with proper error handling that allows graceful re...

Error Handling Rust

avoid environment variable proliferation

block/goose
6
19037

Prefer the consolidated config system over adding new environment variables. Environment variables should only be use...

Configurations Rust

AI model configuration consistency

block/goose
6
19037

Maintain consistent AI model metadata and configuration across all providers to prevent breaking changes and ensure r...

AI Rust

Use proper network constants

golang/go
6
129599

When writing network-related code, always use named constants from system packages instead of magic numbers, and ensu...

Networking Go

Document code behavior

gin-gonic/gin
6
83022

Document the "why" and "how" of your code, not just what it does. Add clear comments to explain: 1. Non-obvious beha...

Documentation Go

Robust SSH integration

ghostty-org/ghostty
6
32864

When implementing SSH integration in your application, follow these practices to ensure reliability across different ...

Networking Other

Document configs comprehensively

ghostty-org/ghostty
6
32864

Configuration options must be documented comprehensively with: 1. Clear, descriptive name using appropriate platform...

Configurations Other

Use semantic naming

google-gemini/gemini-cli
6
65062

Choose names that clearly communicate the purpose, behavior, and intent of variables, methods, classes, and interface...

Naming Conventions TypeScript

Secure input validation

google-gemini/gemini-cli
6
65062

Always validate and sanitize user inputs, especially when constructing commands or file paths. Use established securi...

Security TypeScript

Ensure comprehensive user documentation

google-gemini/gemini-cli
6
65062

All user-facing features, APIs, and tools must have clear, comprehensive documentation that explains their purpose, l...

Documentation TypeScript

Organize code logically

fatedier/frp
6
95938

Maintain a clean and logical code structure by properly organizing code according to its functionality and purpose: ...

Code Style Go

Name indicates clear purpose

laravel/framework
6
33763

Names should clearly indicate their purpose, type, and behavior. This applies to methods, variables, and parameters. ...

Naming Conventions PHP

Cache expensive operations

laravel/framework
6
33763

Identify and cache results of expensive operations that may be called repeatedly during a request lifecycle, especial...

Performance Optimization PHP

Extract methods for clarity

flutter/flutter
6
172252

Break down large methods and extract repeated code patterns into smaller, focused methods or getters to improve reada...

Code Style Other

explicit null validation

flutter/flutter
6
172252

Always validate null values explicitly rather than using silent fallbacks or implicit handling. When null values are ...

Null Handling Other

Algorithm precision handling

flutter/flutter
6
172252

Choose algorithms that handle edge cases and mathematical precision correctly to avoid subtle bugs and unexpected beh...

Algorithms Other

prefer existing APIs

gofiber/fiber
6
37560

When adding new functionality, prioritize reusing existing methods and interfaces rather than creating new ones. This...

API Go

Extract duplicate logic

gofiber/fiber
6
37560

When code blocks become large or contain repetitive patterns, extract them into separate functions to improve readabi...

Code Style Go

Consistent test code style

fastify/fastify
6
34000

Maintain consistent and clear testing patterns by following these guidelines: use strict equality assertions, prefer ...

Code Style JavaScript

Concurrent operations completion management

fastify/fastify
6
34000

When running concurrent operations in tests, ensure all operations complete before concluding the test. Race conditio...

Concurrency JavaScript

Ensure comprehensive test coverage

electron/electron
6
117644

Always verify that tests cover all relevant scenarios, edge cases, and conditions rather than just the happy path. Wh...

Testing TypeScript

avoid redundant operations

electron/electron
6
117644

Identify and eliminate unnecessary duplicate operations, redundant function calls, and repeated computations that can...

Performance Optimization Other

Use configuration access methods

elastic/elasticsearch
6
73104

When accessing configuration settings, always use the appropriate type-safe accessor methods provided by the configur...

Configurations Java

Robust test assertions

elastic/elasticsearch
6
73104

Use precise, informative assertions in tests to provide clear feedback when tests fail and verify the correct behavio...

Testing Java

Prefer callbacks over blocking

elastic/elasticsearch
6
73104

Always structure concurrent code to use asynchronous callbacks instead of blocking operations. Blocking calls like Co...

Concurrency Java

Measure before optimizing performance

elastic/elasticsearch
6
73104

Before implementing performance optimizations, measure and validate the impact through benchmarks. This applies espec...

Performance Optimization Java

maintain codebase consistency

duckdb/duckdb
6
32061

Ensure new code follows established patterns, conventions, and standards already present in the codebase. This includ...

Code Style Other

explicit null state management

duckdb/duckdb
6
32061

Make null state checks explicit and comprehensive rather than using implicit return values or redundant fields. Use d...

Null Handling Other

Explicit CI configurations

duckdb/duckdb
6
32061

CI/CD workflows should use explicit, named configurations rather than wildcards, globs, or implicit behaviors to impr...

CI/CD Yaml

Optional configuration parameters

stanfordnlp/dspy
6
27813

Make configuration parameters optional with sensible defaults instead of requiring mandatory values, and only enable ...

Configurations Python

Null safety patterns

stanfordnlp/dspy
6
27813

Implement proper null safety patterns to prevent runtime errors and unexpected behavior. This includes several key pr...

Null Handling Python

implement algorithms correctly

stanfordnlp/dspy
6
27813

Ensure algorithmic implementations use correct patterns, handle edge cases gracefully, and avoid silent failures. Thi...

Algorithms Python

API backward compatibility

stanfordnlp/dspy
6
27813

Maintain backward compatibility when evolving API interfaces by preserving existing method signatures and parameter p...

API Python

AI configuration documentation

stanfordnlp/dspy
6
27813

Ensure AI model configurations and related documentation use precise terminology and provide clear, complete setup in...

AI Markdown

Write focused efficient tests

django/django
6
84182

Tests should be focused, efficient and meaningful. Follow these guidelines: 1. Avoid testing implementation details ...

Testing Python

Use connection by alias

django/django
6
84182

When working with database operations in Django projects that might use multiple database backends, always access dat...

Database Python

Use appropriate log levels

langgenius/dify
6
114231

Choose the correct logging level based on the importance and purpose of the message. Use DEBUG for debugging informat...

Logging Python

Prefer exceptions over silent failures

langgenius/dify
6
114231

Raise exceptions instead of returning None, logging warnings, or silently modifying values when encountering error co...

Error Handling Python

Concurrent resource management

langgenius/dify
6
114231

When implementing concurrent operations, properly manage shared resources to prevent race conditions and ensure syste...

Concurrency Python

organize code properly

zen-browser/desktop
6
34711

Maintain clean code organization by separating concerns into appropriate classes and files. Extract large functions i...

Code Style Other

Validate and document nulls

deeplearning4j/deeplearning4j
6
14036

Always handle null values explicitly and consistently throughout your codebase to prevent null pointer exceptions. Fo...

Null Handling Java

Use descriptive names

cypress-io/cypress
6
48850

Choose names that clearly reveal the purpose and behavior of variables, functions, and methods. Names should be self-...

Naming Conventions TypeScript

function decomposition clarity

cypress-io/cypress
6
48850

Functions should be focused, concise, and easy to understand. Break down large functions (>100 lines) into smaller, w...

Code Style TypeScript

Consistent formatting preferences

cypress-io/cypress
6
48850

Follow consistent formatting and syntax patterns to improve code readability and maintainability. This includes using...

Code Style JavaScript

Structure errors with intent

crewaiinc/crewai
6
33945

Implement error handling with clear intent and proper propagation. Follow these principles: 1. Use structured try/ca...

Error Handling Python

Write comprehensive test cases

vuejs/core
6
50769

Tests should thoroughly cover all code paths and edge cases. Each test case should: 1. Test distinct scenarios in sep...

Testing TypeScript

Use shared string keys

home-assistant/core
6
80450

Replace hardcoded strings in configuration files with shared string key references to maintain consistency and enable...

Configurations Json

Use appropriate logging levels

home-assistant/core
6
80450

Choose the correct logging level based on the nature and expected frequency of the event being logged. Follow these g...

Logging Python

Strict props event handling

vuejs/core
6
50769

Enforce strict typing and consistent handling of component props and events to ensure type safety, runtime validation...

Vue TypeScript

Evolve APIs gracefully

vuejs/core
6
50769

When modifying or extending APIs, prioritize backward compatibility while providing clear migration paths for future ...

API TypeScript

ESLint configuration alignment

adonisjs/core
6
18071

Ensure your ESLint configuration matches the JavaScript language features used in your codebase to prevent false warn...

Code Style JavaScript

Choose semantic descriptive names

vuejs/core
6
50769

Names should be clear, descriptive and follow consistent patterns. Choose names that accurately reflect the purpose a...

Naming Conventions TypeScript

Avoid redundant computations

vuejs/core
6
50769

Identify and eliminate redundant operations that cause performance bottlenecks by caching expensive function results,...

Performance Optimization TypeScript

Semantically consistent naming

continuedev/continue
6
27819

Names should accurately reflect their purpose and be used consistently throughout the codebase. This applies to props...

Naming Conventions TSX

Handle unsafe operations safely

continuedev/continue
6
27819

Always wrap potentially unsafe operations (like JSON parsing, Buffer operations, or API calls) in try-catch blocks wi...

Error Handling TypeScript

Extract into helper functions

continuedev/continue
6
27819

Break down complex or deeply nested code into smaller, well-named helper functions to improve readability and maintai...

Code Style TypeScript

Add logging without duplication

docker/compose
6
35858

When adding logging functionality to existing code, encapsulate the logging logic within methods or use parameters to...

Logging Python

Use descriptive names

comfyanonymous/ComfyUI
6
83726

Choose descriptive, self-documenting names for constants, functions, parameters, and types that clearly communicate t...

Naming Conventions Python

Hardware compatibility patterns

comfyanonymous/ComfyUI
6
83726

Implement proper hardware compatibility patterns when working with different GPU backends and AI frameworks. Many AI ...

AI Python

gRPC interface consistency

cline/cline
6
48299

Ensure gRPC/RPC interfaces follow consistent patterns for return types, error handling, and method design. Avoid crea...

API TypeScript

Check before property access

cline/cline
6
48299

Always verify that parent objects and properties exist before accessing nested properties or calling methods on them....

Null Handling TypeScript

Pin dependency versions

snyk/cli
6
5178

Always pin dependencies to exact versions in package.json instead of using semantic version ranges (^, ~) to ensure r...

Configurations Json

Never commit secrets

chef/chef
6
7860

Private cryptographic keys, certificates with private keys, and other secrets must never be committed to source code ...

Security Other

Memoize expensive operations

chef/chef
6
7860

Cache results of expensive operations, especially shell commands and external queries, to avoid redundant executions....

Performance Optimization Ruby

Keep actions versions current

chef/chef
6
7860

Always use the latest stable versions of GitHub Actions components in CI/CD workflows to avoid deprecated features, s...

CI/CD Yaml

Externalize configuration values

chef/chef
6
7860

Avoid hardcoding configuration values directly in scripts, especially for values that might change between environmen...

Configurations Shell

Choose semantic algorithms

chef/chef
6
7860

Select algorithms and data operations that match the semantic intent of your code rather than using convenient but po...

Algorithms Ruby

Document configuration consistently

bridgecrewio/checkov
6
7667

Ensure all configuration options are clearly documented and follow consistent naming and syntax conventions. This inc...

Configurations Markdown

Select specific database fields

calcom/cal.com
6
37732

Always explicitly select only the database fields you actually need instead of using broad includes or fetching entir...

Database TypeScript

Check exceptions consistently

oven-sh/bun
6
79093

Always check for exceptions immediately after operations that might throw them, especially before using the results i...

Error Handling C++

Minimize unnecessary operations

Homebrew/brew
6
44168

Optimize performance by eliminating redundant operations and arranging code to avoid unnecessary computations, especi...

Performance Optimization Ruby

Follow established naming patterns

Homebrew/brew
6
44168

Names should be descriptive and consistent with existing patterns in the codebase. This applies to methods, variables...

Naming Conventions Ruby

Clear error recovery paths

Homebrew/brew
6
44168

Implement error handling that provides both clear recovery paths for users and graceful degradation for the system. T...

Error Handling Ruby

Clear code examples

Homebrew/brew
6
44168

Documentation should include clear, actionable code examples that users can reliably follow. Avoid using ambiguous pl...

Documentation Markdown

Comprehensive API documentation

boto/boto3
6
9417

Always provide comprehensive API documentation that includes accurate examples, complete parameter descriptions, and ...

Documentation Python

Use consistent error types

better-auth/better-auth
6
19651

Always use the appropriate error classes and throwing mechanisms for consistent error handling across the codebase. P...

Error Handling TypeScript

Explicit null handling

bazelbuild/bazel
6
24489

Always make null handling explicit through proper annotations, defensive checks, and clear documentation. Use @Nullab...

Null Handling Java

Avoid unnecessary computations

bazelbuild/bazel
6
24489

Before performing expensive operations, check if the work is actually needed or if more efficient alternatives exist....

Performance Optimization Java

Use domain-specific type names

Azure/azure-sdk-for-net
6
5809

Types should be named with clear domain context rather than generic terms. Avoid single-word or overly generic names ...

Naming Conventions C#

Minimize memory allocations

Azure/azure-sdk-for-net
6
5809

Reduce garbage collection pressure and improve application performance by avoiding unnecessary memory allocations. Th...

Performance Optimization C#

Document code reasoning

Azure/azure-sdk-for-net
6
5809

Add clear, concise comments that explain the "why" behind complex logic, non-obvious decisions, and implicit behavior...

Documentation C#

Prefer simpler code constructs

tokio-rs/axum
6
22100

Always opt for simpler, more idiomatic code constructs over complex or verbose alternatives. This includes using buil...

Code Style Rust

Semantic naming conventions

aws/aws-sdk-js
6
7628

Use descriptive, semantic names for all code elements that clearly indicate their purpose and behavior. Follow consis...

Naming Conventions JavaScript

Early return after errors

aws/aws-sdk-js
6
7628

When handling errors in asynchronous functions, always return immediately after invoking a callback with an error to ...

Error Handling JavaScript

Document APIs thoroughly

aws/aws-sdk-js
6
7628

All public API elements must be thoroughly documented with JSDoc annotations that clearly explain their purpose, para...

Documentation JavaScript

Prefer early returns

argoproj/argo-cd
6
20149

Use early returns and guard clauses to reduce nesting levels and improve code readability. Instead of deeply nested i...

Code Style Go

Complete configuration examples

argoproj/argo-cd
6
20149

Configuration examples in documentation must be complete and reference authoritative sources to prevent deployment is...

Configurations Markdown

Use language-specific syntax

appwrite/appwrite
6
51959

Code snippets must use the correct language-specific syntax and include all necessary imports to compile properly. Wh...

Code Style Markdown

Synchronize configuration values

appwrite/appwrite
6
51959

Ensure all configuration values, particularly version numbers and environment variables, are consistent across relate...

Configurations Other

Secure authorization skip handling

appwrite/appwrite
6
51959

When using authorization bypass mechanisms like `Authorization::skip()`, ensure proper security validation is maintai...

Security PHP

Markdown formatting consistency

ant-design/ant-design
6
95882

Ensure consistent markdown formatting in documentation by wrapping all technical terms, API names, property names, an...

Code Style Markdown

JSDoc deprecation formatting

ant-design/ant-design
6
95882

Ensure consistent formatting in JSDoc deprecation comments to improve API documentation clarity and developer experie...

API TSX

Dependency versioning consistency

ant-design/ant-design
6
95882

Establish and maintain consistent dependency versioning strategies in package.json configuration. Choose between care...

Configurations Json

Use reactive signal patterns

angular/angular
6
98611

Prefer Angular's reactive signal patterns over manual subscription management and imperative approaches. Use signals ...

Angular Markdown

leverage existing Angular patterns

angular/angular
6
98611

Before implementing new functionality, check if Angular already provides a suitable utility, service, or pattern that...

Angular TypeScript

Validate user-controlled paths

apache/airflow
6
40858

Always validate and sanitize user-provided inputs used in file path operations to prevent path traversal attacks. Pat...

Security Python

Standardize API parameter handling

apache/airflow
6
40858

Use consistent parameter handling patterns across API endpoints to ensure maintainability and predictable behavior. F...

API Python

Avoid code duplication

apache/airflow
6
40858

Extract repeated code patterns into reusable functions, variables, or constants to improve maintainability and reduce...

Code Style Python

Verify AI model capabilities

vercel/ai
6
15590

Always verify and accurately document AI model capabilities, supported formats, and limitations before implementation...

AI Other

Type-safe null handling

vercel/ai
6
15590

Use TypeScript's type system and modern JavaScript features to prevent null reference errors. **TypeScript type saf...

Null Handling TypeScript

Keep tests simple

vercel/ai
6
15590

Tests should be straightforward, explicit, and free from complex logic or indirection. Avoid "magic" in tests that ma...

Testing TypeScript

Test actual functionality

cloudflare/agents
6
2312

Ensure tests verify real operations and integration scenarios rather than just basic concepts or type definitions. Ma...

Testing TypeScript

Use structured model metadata

zed-industries/zed
5
62119

Represent AI model information using structured data rather than hardcoded enumerations or conditionals. Store capabi...

AI Rust

Scope dependencies appropriately

zed-industries/zed
5
62119

Configure dependencies with their minimum necessary scope to maintain clean architecture and improve build times. Key...

Configurations Toml

Document configuration constraints clearly

zed-industries/zed
5
62119

When defining configuration options, always clearly document parameter constraints, valid ranges, and behaviors. For ...

Configurations Markdown

Choose domain-specific semantic names

zed-industries/zed
5
62119

Names should clearly reflect their domain-specific meaning and purpose, avoiding generic or ambiguous terms. This app...

Naming Conventions Rust

Strict null checks

facebook/yoga
5
18255

Use explicit strict equality checks when testing for null or undefined values. Prefer `x === undefined` over `typeof ...

Null Handling JavaScript

Explicit undefined state handling

facebook/yoga
5
18255

Always use explicit, well-defined representations for undefined, uninitialized, or invalid states instead of magic va...

Null Handling C

JSDoc documentation standards

cloudflare/workers-sdk
5
3379

All public functions and complex code should have proper JSDoc documentation. Functions must include clear descriptio...

Documentation TypeScript

Configuration file consistency

cloudflare/workers-sdk
5
3379

Ensure consistent patterns for configuration files, proper exclusion of development artifacts, and clear environment-...

Configurations Markdown

proper span lifecycle management

cloudflare/workerd
5
6989

Ensure spans are properly created, attached to async operations, and reported at appropriate times to maintain accura...

Observability Other

Network resource state validation

cloudflare/workerd
5
6989

Always validate the state of network resources (sockets, streams, connections) before performing operations to preven...

Networking Other

compatibility flag consistency

cloudflare/workerd
5
6989

Ensure compatibility flags follow consistent naming conventions, use explicit typing, and maintain proper usage patte...

Configurations TypeScript

avoid unnecessary allocations

cloudflare/workerd
5
6989

Minimize object creation and memory copying operations to improve performance. Cache and reuse objects when possible,...

Performance Optimization TypeScript

Use structured logging

volcano-sh/volcano
5
4899

Always use structured logging methods like klog.InfoS and klog.ErrorS instead of unstructured methods like klog.Infol...

Logging Go

Use descriptive consistent naming

volcano-sh/volcano
5
4899

Choose names that are self-explanatory, descriptive, and consistent across the codebase. Avoid abbreviated or informa...

Naming Conventions Markdown

Validate algorithmic operations carefully

vllm-project/vllm
5
51730

Mathematical and logical operations require careful validation to ensure correctness. Common issues include: 1. Oper...

Algorithms Python

Remove unnecessary code elements

vllm-project/vllm
5
51730

Keep code clean and maintainable by removing unnecessary elements that add complexity without value: 1. Remove unuse...

Code Style CUDA

Preserve API compatibility

vllm-project/vllm
5
51730

When modifying API interfaces, parameters, or argument behavior, ensure backward compatibility is maintained to preve...

API Python

Optimize memory allocation

vitessio/vitess
5
19815

Always allocate data structures with appropriate initial capacity and use memory-efficient data types to reduce memor...

Performance Optimization Go

Runtime-agnostic API design

vitejs/vite
5
74031

When designing APIs for systems that support multiple JavaScript runtimes, prioritize decoupling server state from us...

API Markdown

Propagate errors with context

vitejs/vite
5
74031

Always propagate errors with proper context and recovery strategy. Use try-catch blocks for both synchronous and asyn...

Error Handling TypeScript

Environment variable management

vitejs/vite
5
74031

When working with environment variables in Vite applications, be explicit about variable loading behavior and precede...

Configurations Markdown

Runtime configurable defaults

vlang/v
5
36582

Prefer runtime-configurable values over hardcoded constants to allow users to customize behavior without recompilatio...

Configurations Other

Secure configuration defaults

astral-sh/uv
5
60322

Establish secure default configurations in project metadata files to prevent accidental publishing and ensure proper ...

Configurations Markdown

Optimize CI/CD commands

astral-sh/uv
5
60322

Design CI/CD workflows to be efficient, consistent, and purposeful across all environments. When writing or modifying...

CI/CD Yaml

Environment variable best practices

astral-sh/uv
5
60322

When implementing environment variable configuration: 1. Follow standard environment variable conventions: - Use upp...

Configurations Rust

Raise exceptions properly

Unstructured-IO/unstructured
5
12116

Always ensure exceptions are properly raised and propagated rather than being logged and swallowed. Avoid patterns wh...

Error Handling Python

extensible parameter design

Unstructured-IO/unstructured
5
12116

Design API parameters to support future extension without breaking changes. Use string enums instead of boolean flags...

API Python

Environment variable patterns

Unstructured-IO/unstructured
5
12117

Use consistent patterns for environment variable handling in shell scripts. Always provide sensible defaults using th...

Configurations Shell

Meaningful consistent identifiers

shadcn-ui/ui
5
90568

Choose descriptive, semantically accurate names for variables, types, and components that clearly communicate their p...

Naming Conventions TSX

Guard against undefined

microsoft/typescript
5
105378

Always protect against potential null or undefined values before attempting property access or method calls to preven...

Null Handling TypeScript

Extract complex logical expressions

microsoft/typescript
5
105378

Complex logical expressions should be extracted into well-named variables or functions to improve code readability an...

Code Style TypeScript

prefer type guards

twentyhq/twenty
5
35477

Use semantic type guards like `isDefined()` instead of basic type checks (`typeof`, simple null checks) or unsafe typ...

Null Handling TypeScript

Minimize hook re-renders

twentyhq/twenty
5
35477

Design React hooks to minimize unnecessary re-renders by avoiding common anti-patterns that cause performance issues....

React TypeScript

Add tests for functionality

twentyhq/twenty
5
35477

New functionality should include corresponding tests to ensure code quality and maintainability. When introducing new...

Testing TypeScript

Validate performance impact first

vercel/turborepo
5
28115

Always validate performance changes through profiling or benchmarking before implementation, and favor memory-efficie...

Performance Optimization Rust

Design ergonomic APIs

vercel/turborepo
5
28115

Create APIs that are both easy to use correctly and hard to use incorrectly. Focus on: 1. **Use pattern matching for...

API Rust

Use meaningful identifiers

tree-sitter/tree-sitter
5
21799

Choose identifiers that accurately represent their purpose, semantics, and relationship to the codebase. Names should...

Naming Conventions C

Use descriptive identifiers

tree-sitter/tree-sitter
5
21799

Choose identifiers that clearly communicate their purpose, content, or role rather than using generic or abbreviated ...

Naming Conventions Rust

Ensure documentation clarity

tree-sitter/tree-sitter
5
21799

Documentation should be clear, accurate, and provide meaningful information to users. Avoid misleading descriptions, ...

Documentation Rust

consistent formatting preferences

tree-sitter/tree-sitter
5
21799

Maintain consistent formatting and use concise, standard syntax throughout the codebase. This includes several specif...

Code Style Other

complete API documentation

traefik/traefik
5
55772

Ensure all API configuration options are fully documented with accurate default values, required field indicators, an...

API Markdown

Structure feature flags strategically

tokio-rs/tokio
5
28989

Design feature flags to minimize dependency bloat while maximizing flexibility for users. Each optional dependency sh...

Configurations Toml

Structure API doc blocks

tokio-rs/tokio
5
28989

Each public API documentation block should follow a consistent structure: 1. Start with a single-line summary that c...

Documentation Rust

Socket configuration guidance

tokio-rs/tokio
5
28981

When implementing networking APIs, always clearly document socket modes, configuration options, and platform-specific...

Networking Rust

Optimize hot paths

tokio-rs/tokio
5
28989

Identify and optimize frequently executed code paths to improve performance. Hot paths have a significant impact on o...

Performance Optimization Rust

Graceful error handling

tokio-rs/tokio
5
28981

Prioritize graceful error handling over panicking by providing fallbacks and propagating rich context. When operation...

Error Handling Rust

Fast deterministic tests

tokio-rs/tokio
5
28989

Avoid using real sleeps or delays in tests as they significantly slow down the test suite and can introduce flakiness...

Testing Rust

Design flexible APIs

tokio-rs/tokio
5
28981

When designing APIs, prioritize flexibility, ergonomics, and intuitiveness to create better user experiences. APIs sh...

API Rust

Minimize memory allocations

huggingface/tokenizers
5
9868

Avoid unnecessary memory allocations to improve performance. Each allocation has both CPU and memory overhead that ca...

Performance Optimization Rust

Handle nullable types idiomatically

huggingface/tokenizers
5
9868

Use Rust's idiomatic patterns when working with Option and Result types to prevent panics and improve code clarity. ...

Null Handling Rust

Use precise semantic names

hashicorp/terraform
5
45532

Choose names that accurately reflect the purpose and semantics of the entity being named. Avoid overloaded or ambiguo...

Naming Conventions Other

Prefer modern authentication

hashicorp/terraform
5
45532

Always use modern identity-based authentication methods instead of static credentials when accessing external systems...

Security Other

Include descriptive documentation

hashicorp/terraform
5
45532

Provide complete, clear descriptions for all configuration elements in documentation. Every output, variable, argumen...

Documentation Other

Document function behavior completely

hashicorp/terraform
5
45532

Function and method documentation should accurately describe behavior, parameters, and any non-obvious aspects of the...

Documentation Go

prefer const declarations

microsoft/terminal
5
99242

Use `const` for variables that are not modified after initialization, and avoid creating unnecessary temporary variab...

Code Style C++

Validate quantization parameters carefully

tensorflow/tensorflow
5
190625

When implementing quantized operations in ML models, thoroughly validate quantization parameters to ensure correctnes...

AI Other

Validate before dereference

tensorflow/tensorflow
5
190625

Always check that pointers, optional values, and results of type casts are valid before dereferencing or using them. ...

Null Handling Other

Optimize loop operations

tensorflow/tensorflow
5
190625

Minimize expensive operations within inner loops to improve performance. Key practices include: 1. Extract loop-inva...

Performance Optimization Other

Informative error messages

tensorflow/tensorflow
5
190625

Error messages should be informative, actionable, and concise to help users quickly understand and fix issues. Follow...

Error Handling Python

Handle dynamic shapes

tensorflow/tensorflow
5
190625

When implementing tensor-based algorithms, avoid assumptions about fixed tensor shapes by not relying on direct shape...

Algorithms Python

Optimize metrics label cardinality

temporalio/temporal
5
14953

Carefully manage metric label cardinality to prevent excessive memory usage and maintain system performance. Follow t...

Observability Go

Domain-specific error boundaries

temporalio/temporal
5
14953

Define and use domain-specific error types within bounded contexts rather than relying on generic service errors. Eac...

Error Handling Go

Design stable APIs

temporalio/temporal
5
14953

When designing APIs, prioritize long-term stability and compatibility to avoid breaking changes. Use request/response...

API Go

Use appropriate testify assertions

gravitational/teleport
5
19109

Choose the most specific and appropriate testify assertion methods for your test scenarios to improve test clarity, e...

Testing Go

minimize unnecessary allocations

gravitational/teleport
5
19109

Avoid unnecessary memory allocations in performance-critical code paths, especially in frequently executed functions ...

Performance Optimization Go

Configuration requirements clarity

gravitational/teleport
5
19109

Configuration requirements and dependencies should be made explicit and prominent in documentation, not buried in not...

Configurations Other

API consistency patterns

gravitational/teleport
5
19109

Maintain consistent API patterns and structures across different resource types and access methods within the same sy...

API Markdown

Teach by example

tensorflow/swift
5
6136

Present concepts through clear, focused examples that demonstrate features positively rather than through comparisons...

Documentation Other

Explicit configuration validation

SWE-agent/SWE-agent
5
16839

Avoid using configuration values as implicit feature flags or logic triggers. Instead, validate configuration explici...

Configurations Python

prefer testing libraries

sveltejs/svelte
5
83580

When testing components, use established testing libraries like @testing-library/svelte instead of low-level DOM mani...

Testing Markdown

defensive error handling

sveltejs/svelte
5
83580

Add defensive checks and proper error handling to prevent crashes and handle edge cases gracefully. This includes usi...

Error Handling JavaScript

avoid expensive operations

sveltejs/svelte
5
83580

Identify and eliminate computationally expensive operations through early termination, better data structures, and al...

Algorithms JavaScript

Structure components with clarity

supabase/supabase
5
86070

Maintain clean and logical component organization by following these guidelines: 1. Keep related files together - pl...

Code Style TSX

Clear, descriptive identifiers

supabase/supabase
5
86070

Choose variable, component, and parameter names that clearly describe their purpose and avoid ambiguity. Names should...

Naming Conventions TSX

Use structured logging consistently

browserbase/stagehand
5
16443

Always use the established logging framework instead of console.log or ad-hoc logging approaches. This ensures consis...

Logging TypeScript

Use descriptive names

browserbase/stagehand
5
16443

Choose descriptive, domain-specific names that clearly communicate intent and prevent confusion. Avoid generic names ...

Naming Conventions TypeScript

Provide contextual error messages

browserbase/stagehand
5
16443

Error messages should include specific context about what went wrong and provide actionable guidance for resolution. ...

Error Handling TypeScript

Leverage TypeScript null safety

browserbase/stagehand
5
16443

Use TypeScript's type system proactively to prevent null and undefined issues at compile time rather than handling th...

Null Handling TypeScript

Respect annotation processing order

spring-projects/spring-framework
5
58382

When designing Spring components, pay careful attention to the order in which annotations are processed, especially f...

Spring Java

Design for API extension

spring-projects/spring-framework
5
58382

When designing APIs, prioritize extensibility by providing clear extension points and avoiding direct exposure of imp...

API Java

Cleanup error handling

spring-projects/spring-framework
5
58382

When handling resources that require cleanup (like streams, connections, or transactions), ensure that errors during ...

Error Handling Java

API boundary null handling

spring-projects/spring-framework
5
58382

Establish consistent null handling patterns at API boundaries to prevent null pointer exceptions and improve code cla...

Null Handling Java

Property description conventions

spring-projects/spring-boot
5
77637

When documenting configuration properties in Spring Boot applications, follow these conventions for clarity and consi...

Documentation Java

prefer simple APIs

apache/spark
5
41554

Design APIs with simplicity in mind by avoiding unnecessary method overloads, reducing configuration options, and pre...

API Other

Include contextual information

apache/spark
5
41554

Log messages should include comprehensive contextual information to support debugging and system monitoring. This inc...

Logging Other

avoid unnecessary computations

apache/spark
5
41554

Prevent performance degradation by avoiding unnecessary expensive operations such as premature execution, redundant i...

Performance Optimization Other

Use appropriate error types

SigNoz/signoz
5
23369

Always use semantically correct error types and codes that match the actual failure scenario. This ensures proper err...

Error Handling Go

Centralize configuration management

SigNoz/signoz
5
23369

Consolidate configuration parameters into centralized config structures instead of using scattered options structs or...

Configurations Go

Use descriptive names

sgl-project/sglang
5
17245

Choose variable, function, and parameter names that accurately reflect their content, type, and purpose. Avoid mislea...

Naming Conventions Python

conditional CI execution

servo/servo
5
32962

Use appropriate conditional statements in CI workflows to ensure steps execute under the right circumstances and hand...

CI/CD Yaml

Structure configs for clarity

serverless/serverless
5
46810

Organize configuration objects to maximize clarity and maintainability while ensuring robust validation. Follow these...

Configurations JavaScript

API clarity and consistency

serverless/serverless
5
46810

Ensure API configurations, documentation, and terminology are clear, consistent, and properly organized. Group relate...

API Markdown

exact assertion testing

oraios/serena
5
14465

Tests should verify exact expected results rather than generic existence checks. Avoid assertions like `isinstance()`...

Testing Python

Secure sensitive data

getsentry/sentry
5
41297

Always protect sensitive data through proper encryption, secure cookies, and careful exception handling to prevent in...

Security Python

Remove unnecessary code elements

getsentry/sentry
5
41297

Keep code clean and maintainable by removing unnecessary elements. This includes: 1. Omit type annotations when Type...

Code Style TSX

Prevent N+1 database queries

getsentry/sentry
5
41297

Avoid N+1 database queries by using appropriate Django ORM features like select_related(), prefetch_related(), and bu...

Database Python

Propagate errors with context

getsentry/sentry-php
5
1873

Always propagate errors appropriately by rethrowing caught exceptions and maintaining error context. Catch exceptions...

Error Handling PHP

Document API changes

getsentry/sentry-php
5
1873

When documenting API changes, particularly breaking changes, follow these practices to ensure clarity and ease of mig...

API Markdown

Defensive null checking

getsentry/sentry
5
41297

Implement defensive null checking to prevent NoneType errors, KeyError, and IndexError exceptions. When accessing dic...

Null Handling Python

Choose efficient algorithms

semgrep/semgrep
5
12598

When implementing algorithms, prioritize computational efficiency by selecting appropriate data structures and avoidi...

Algorithms Other

Fail fast explicitly

strands-agents/sdk-python
5
4044

Always throw exceptions for error conditions rather than silently failing, logging warnings, or attempting fallback b...

Error Handling Python

explicit null checks

strands-agents/sdk-python
5
4044

Use explicit existence checks rather than value-based null checks, and be intentional about failing fast versus provi...

Null Handling Python

comprehensive test assertions

strands-agents/sdk-python
5
4044

Write robust test assertions that verify complete objects and behaviors rather than individual properties. Use pytest...

Testing Python

Complete docstring documentation

strands-agents/sdk-python
5
4044

Ensure all classes, methods, and properties have comprehensive docstrings that clearly explain their purpose, behavio...

Documentation Python

AI provider normalization

strands-agents/sdk-python
5
4044

When integrating multiple AI model providers, implement proper abstraction layers to normalize differences in APIs, d...

AI Python

Name for semantic meaning

rust-lang/rust
5
105254

Choose names that clearly convey the semantic meaning and purpose of the identifier, rather than using clever or ambi...

Naming Conventions Rust

Document lock behavior

rust-lang/rust
5
105254

When implementing or documenting synchronization primitives, always clearly specify how locks behave under exceptiona...

Concurrency Rust

Benchmark before optimizing code

rust-lang/rust
5
105254

Always validate performance optimizations with benchmarks before implementation. Ensure measurements account for: 1. ...

Performance Optimization Rust

Prevent null references

dotnet/runtime
5
16578

Use defensive coding practices to prevent null reference exceptions by properly handling potentially null values thro...

Null Handling C#

Maintainable test structure

dotnet/runtime
5
16578

Write tests that are maintainable, self-documenting, and that promote good testing practices: 1. **Use proper assert...

Testing C#

Document code meaningfully

dotnet/runtime
5
16578

Provide meaningful documentation that enhances code maintainability and understanding. Follow these practices: 1. **...

Documentation C#

Cache expensive computations

dotnet/runtime
5
16578

Avoid recomputing expensive operations by caching results when they will be used multiple times. This applies to meth...

Performance Optimization C#

Avoid busy waiting

dotnet/runtime
5
16578

When implementing concurrent code that waits for conditions to be met, avoid busy-wait loops that continuously consum...

Concurrency C#

Abstract traversal patterns

dotnet/runtime
5
16578

When implementing algorithms that operate on complex data structures (trees, graphs, dominator structures), abstract ...

Algorithms C++

Use descriptive identifiers

astral-sh/ruff
5
40619

Avoid abbreviations in variable, parameter, and method names to improve code readability and maintainability. Use des...

Naming Conventions Rust

Profile allocations before optimization

astral-sh/ruff
5
40619

Before implementing data structures or algorithms, analyze allocation patterns and optimize for common cases. Key str...

Performance Optimization Rust

Document component behavior comprehensively

astral-sh/ruff
5
40619

Documentation should clearly explain the purpose, behavior, and relationships between code components using accessibl...

Documentation Rust

Consider algorithmic complexity tradeoffs

astral-sh/ruff
5
40619

When implementing algorithms or data structures, carefully evaluate the tradeoffs between computational complexity, m...

Algorithms Rust

validate configuration schemas

TanStack/router
5
11590

Always validate configuration objects using proper schema validation (like Zod) before type casting or using the conf...

Configurations TypeScript

validate before accessing

TanStack/router
5
11590

Always validate that values exist and have expected properties before accessing them, especially when removing non-nu...

Null Handling TypeScript

Use parameterized testing

TanStack/router
5
11590

When testing multiple scenarios with similar logic, use your testing framework's built-in parameterized testing featu...

Testing TypeScript

Maintain comprehensive documentation

TanStack/router
5
11590

When making code changes, ensure all relevant documentation is updated comprehensively across different formats and l...

Documentation TypeScript

explicit error type handling

TanStack/router
5
11590

Handle errors with explicit type checking and intentional decisions rather than generic catch-all approaches. This im...

Error Handling TypeScript

Configuration option consistency

TanStack/router
5
11590

Ensure configuration options follow consistent naming conventions and are documented accurately. Use "default" prefix...

Configurations Markdown

Write resilient test assertions

RooCodeInc/Roo-Code
5
17288

Write test assertions that are resilient to implementation changes by focusing on behavior rather than implementation...

Testing TypeScript

Use structured logging

RooCodeInc/Roo-Code
5
17288

Replace direct `console.log`, `console.warn`, and `console.error` calls with a centralized logging abstraction. This ...

Logging TypeScript

Prevent duplicate keys

RooCodeInc/Roo-Code
5
17288

Always ensure configuration files, especially JSON files, have unique keys. Duplicate keys can cause unpredictable be...

Configurations Json

Extract shared code patterns

RooCodeInc/Roo-Code
5
17288

Identify and extract duplicate code patterns into shared utility functions to improve maintainability and reduce redu...

Code Style TypeScript

maintain naming consistency

remix-run/react-router
5
55270

Ensure consistent naming conventions across the entire codebase, including terminology, file names, directory structu...

Naming Conventions Markdown

dependency version ranges

remix-run/react-router
5
55270

When configuring dependencies in package.json, use version ranges that maintain backwards compatibility and follow se...

Configurations Json

Configure rendering modes clearly

remix-run/react-router
5
55270

Ensure clear distinction and proper handling between different rendering modes (SSR, SSG, SPA) with appropriate condi...

Next TypeScript

API naming consistency

remix-run/react-router
5
55270

Ensure related APIs use consistent naming patterns, parameter structures, and calling conventions across the codebase...

API Markdown

validate before accessing

facebook/react-native
5
123178

Always validate parameters for both null values and correct types before accessing their properties or methods. Provi...

Null Handling Other

Prefer micro-optimizations

facebook/react-native
5
123178

Apply small performance improvements that accumulate to significant gains. Focus on efficient memory usage, API choic...

Performance Optimization Other

Early returns prevent waste

facebook/react-native
5
123178

Add early return statements and duplicate checks to avoid unnecessary computations, memory allocations, and API calls...

Performance Optimization JavaScript

Document configuration logic

facebook/react-native
5
123178

Always add clear, explanatory comments for conditional configuration logic, architectural decisions, and platform-spe...

Configurations Other

avoid Hungarian notation

facebook/react-native
5
123178

Do not use Hungarian notation prefixes (like `m`, `s`) in variable and field names. Use descriptive, semantic names t...

Naming Conventions Kotlin

Write complete API examples

rails/rails
5
57027

Always provide complete, context-rich code examples in API documentation. Examples should show the full usage context...

Documentation Ruby

Place configurations appropriately

rails/rails
5
57027

Choose the right location and scope for your Rails configuration options to improve maintainability and clarity: 1. ...

Configurations Markdown

Initialize nil-prone variables

rails/rails
5
57027

Always initialize variables that might be nil to appropriate default values to prevent unexpected behavior. For boole...

Null Handling Ruby

Prefer Optional over nulls

quarkusio/quarkus
5
14667

Use Java's Optional API instead of null checks to improve code readability, safety, and maintainability. When dealing...

Null Handling Java

Optimize algorithmic operations

quarkusio/quarkus
5
14667

Before implementing or modifying algorithms, carefully evaluate data structure properties and operation costs. Always...

Algorithms Java

Name for meaning first

quarkusio/quarkus
5
14667

Choose names that prioritize domain meaning and clarity over implementation details. This applies to methods, variabl...

Naming Conventions Java

Document public APIs

quarkusio/quarkus
5
14667

All public APIs, interfaces, and methods should include comprehensive JavaDoc that clearly explains their purpose, pa...

Documentation Java

Clear database configuration examples

quarkusio/quarkus
5
14667

Database configuration examples in documentation should be correct, minimal, and include proper context. Provide only...

Database Other

Use higher-level iterations

pytorch/pytorch
5
91345

When working with multiple sequences that need to be combined, prefer higher-level iteration abstractions over nested...

Algorithms Python

Prevent null pollution

pytorch/pytorch
5
91345

Design your code to minimize the unexpected introduction of None values into data structures and APIs. Use immutable ...

Null Handling Python

Handle errors specifically

pytorch/pytorch
5
91345

Always be explicit and specific when handling errors rather than using catch-all approaches or implicit conventions. ...

Error Handling Python

Robust error messaging

pydantic/pydantic
5
24377

Create clear, specific, and actionable error messages that help users understand and resolve issues, while implementi...

Error Handling Python

Eliminate redundant computation

pydantic/pydantic
5
24377

Identify and eliminate redundant or duplicate computation paths in your code, especially for expensive operations lik...

Algorithms Python

Cache expensive computations

pydantic/pydantic
5
24377

Implement strategic caching and memoization for expensive or frequently repeated computations to avoid redundant work...

Performance Optimization Python

Secure authentication flows

prowler-cloud/prowler
5
11834

Implement authentication flows that protect sensitive information and follow secure credential management practices: ...

Security Markdown

Safe attribute access patterns

prowler-cloud/prowler
5
11834

Implement consistent patterns for safely accessing potentially null or undefined attributes and dictionary values. Th...

Null Handling Python

Prioritize code readability

prowler-cloud/prowler
5
11834

Write code that optimizes for human readability and understanding. Complex expressions, while technically correct, ca...

Code Style Python

Consistent naming patterns

prowler-cloud/prowler
5
11834

Follow systematic naming conventions for types, interfaces, and functions to enhance code readability and navigabilit...

Naming Conventions TypeScript

simplify test structure

prometheus/prometheus
5
59616

Write tests that are direct, focused, and free of unnecessary complexity. Remove redundant test fields, use direct as...

Testing Go

explicit test assertions

prometheus/prometheus
5
59616

Tests should explicitly assert both positive and negative expectations to make test intentions clear and prevent regr...

Testing Other

avoid panics gracefully

prometheus/prometheus
5
59616

Never use panic() for error handling in production code paths, especially in core engine components. Instead, handle ...

Error Handling Go

Avoid unnecessary allocations

prisma/prisma
5
42967

Minimize memory allocations by avoiding intermediate objects, sharing underlying buffers, and eliminating unnecessary...

Performance Optimization TypeScript

validate configuration values

prettier/prettier
5
50772

Always validate configuration values and provide clear, actionable error messages when validation fails. Handle inval...

Configurations JavaScript

Modern configuration formats

prettier/prettier
5
50772

Prefer ES module configuration files with TypeScript annotations over JSON formats for better developer experience an...

Configurations Markdown

Add explanatory comments

prettier/prettier
5
50772

Add explanatory comments for complex logic, special cases, or non-obvious code behavior. Comments should explain the ...

Documentation JavaScript

Maintain naming consistency

PostHog/posthog
5
28460

Ensure consistent naming conventions, terminology, and identifiers across the entire codebase. Names should be unifor...

Naming Conventions TSX

eliminate code duplication

PostHog/posthog
5
28460

Actively identify and eliminate code duplication in all its forms to improve maintainability and reduce bugs. This in...

Code Style TSX

Cache expensive operations

PostHog/posthog
5
28460

Identify and eliminate redundant expensive operations by implementing caching, memoization, or conditional execution....

Performance Optimization Python

break down large functions

PostHog/posthog
5
28460

Large functions that handle multiple responsibilities should be decomposed into smaller, focused functions to improve...

Code Style Python

Hide implementation details

pola-rs/polars
5
34296

Design public APIs to hide implementation details and focus on the user's mental model of the system. Avoid exposing ...

API Python

Explicit configuration precedence

pola-rs/polars
5
34296

Implement a clear configuration resolution chain that follows a consistent precedence pattern: explicit parameters fi...

Configurations Python

Evaluate algorithmic complexity tradeoffs

pola-rs/polars
5
34296

When implementing algorithms, carefully evaluate tradeoffs between performance optimizations and code maintainability...

Algorithms Rust

Documentation clarity standards

python-poetry/poetry
5
33496

Ensure documentation is grammatically correct, clearly structured, and uses precise terminology. Avoid verbose or rep...

Documentation Markdown

Configure HTTP requests properly

python-poetry/poetry
5
33496

When making HTTP requests, use standard library enums for status codes, set appropriate timeouts, and handle redirect...

Networking Python

Synchronous event handlers

microsoft/playwright
5
76113

Keep event handlers synchronous to prevent race conditions and timing issues. Async operations within event handlers ...

Concurrency TypeScript

comprehensive test coverage

microsoft/playwright
5
76113

Tests should be comprehensive and cover edge cases, complete scenarios, and use specific assertions rather than gener...

Testing TypeScript

API parameter clarity

microsoft/playwright
5
76113

Design API parameters to be self-documenting and minimize cognitive overhead. Avoid boolean parameters in favor of de...

API TypeScript

preserve exception context

emcie-co/parlant
5
12205

When handling exceptions, preserve the original exception context and provide clear, actionable error information. Av...

Error Handling Python

Names reflect exact purpose

emcie-co/parlant
5
12205

Choose names that precisely reflect the component's purpose and behavior, avoiding ambiguous terms or shortcuts. Name...

Naming Conventions Python

LLM provider abstraction

emcie-co/parlant
5
12205

When integrating with different LLM providers, create proper base class abstractions that filter and validate paramet...

AI Python

Document with examples

opentofu/opentofu
5
25901

Always include clear, contextual examples when documenting APIs, interfaces, or command-line functionality. Examples ...

API Markdown

Defensive null handling

opentofu/opentofu
5
25901

Always initialize data structures before use, particularly before accessing them in loops or conditional blocks. Chec...

Null Handling Go

Clear concise documentation

opentofu/opentofu
5
25901

Write documentation that is direct, consistent, and appropriately detailed. Follow these principles: 1. **Use direct...

Documentation Other

Optimize configuration structure

open-telemetry/opentelemetry-python
5
2061

Structure configuration files like tox.ini to maximize maintainability and efficiency. Use factor prefixes (e.g., "te...

Configurations Other

Handle exceptions appropriately

open-telemetry/opentelemetry-python
5
2061

When implementing error handling logic, be deliberate about which exception types you catch and where you handle them...

Error Handling Python

Follow Python naming conventions

open-telemetry/opentelemetry-python
5
2061

Use consistent Python naming conventions to improve code readability and maintainability: 1. Use snake_case for func...

Naming Conventions Python

Configuration source precedence

open-telemetry/opentelemetry-python
5
2061

Define and document a clear precedence order when configurations come from multiple sources (code parameters, environ...

Configurations Python

Use environment variables

commaai/openpilot
5
58214

Make configuration values configurable through environment variables with sensible defaults instead of hard-coding th...

Configurations Python

use context managers concurrency

commaai/openpilot
5
58214

When working with concurrent operations involving shared resources or processes, use context managers and explicit sy...

Concurrency Python

eliminate unnecessary code

commaai/openpilot
5
58214

Remove redundant code constructs and prefer concise, direct patterns that improve readability and maintainability. Th...

Code Style Other

Context-aware algorithm selection

opengrep/opengrep
5
1546

Choose algorithms and data structures based on operational requirements and usage context rather than defaulting to f...

Algorithms Other

Optimize memory allocation patterns

opencv/opencv
5
82865

Prefer efficient memory allocation patterns to improve performance. Key practices: 1. Use RAII containers (like Mat)...

Performance Optimization C++

Optimize container access

opencv/opencv
5
82865

Choose efficient container types and optimize access patterns in performance-critical code. Avoid operations that cau...

Performance Optimization Other

Maintain code consistency

opencv/opencv
5
82865

Keep code clean and consistent with established project conventions. This includes: 1. Follow existing formatting st...

Code Style Other

Guard optional dependencies

opencv/opencv
5
82865

Configuration management requires careful handling of optional dependencies in both build scripts and source code. Al...

Configurations Other

Use idiomatic Go flow

ollama/ollama
5
145704

Follow Go's idiomatic control flow patterns to improve code readability and maintainability. Key practices include: ...

Code Style Go

Use environment variables

ollama/ollama
5
145704

Use environment variables instead of hardcoding configuration values such as file paths, port numbers, or system-spec...

Configurations Go

Guard against nil

ollama/ollama
5
145704

Always check for nil values and successful type assertions before accessing or dereferencing objects, especially when...

Null Handling Go

Document synchronization intent

ollama/ollama
5
145704

Always clearly document the purpose and scope of synchronization primitives (mutexes, read-write locks) by: 1. Placi...

Concurrency Go

Comprehensive test coverage

ollama/ollama
5
145704

Test functions should provide comprehensive coverage of both expected and edge cases. Include tests for: 1. **Bounda...

Testing Go

Clear recoverable error messages

ollama/ollama
5
145704

Error messages should be clear, actionable, and indicate whether recovery is possible. When designing error handling:...

Error Handling Go

Abstract model operations cleanly

ollama/ollama
5
145704

When implementing AI model operations, create clean abstractions through interfaces that separate core mathematical o...

AI Go

Design intuitive API methods

octokit/octokit.net
5
2793

When designing API methods, prioritize intuitive usage patterns and backwards compatibility. Follow these guidelines:...

API C#

Verify configuration paths

nrwl/nx
5
27518

Ensure configuration property paths are accurate and complete, especially for nested configurations and context-speci...

Configurations Markdown

Use nullish coalescing operators

nrwl/nx
5
27518

Prefer modern JavaScript nullish coalescing (`??`) and optional chaining (`?.`) operators over verbose conditional lo...

Null Handling TypeScript

minimize resource usage

nrwl/nx
5
27518

Optimize performance by being selective about resource consumption - process only necessary data, avoid redundant ope...

Performance Optimization TypeScript

Follow Vue API patterns

nuxt/nuxt
5
57769

Always prefer Vue's native APIs and follow official Vue patterns instead of creating custom implementations. This ens...

Vue TypeScript

explicit response types

nuxt/nuxt
5
57769

Always specify explicit response types when making API calls, especially for prerendered routes or external APIs. In ...

API Markdown

Extract repeated patterns

novuhq/novu
5
37700

Extract repeated code patterns, CSS classes, and constants to improve maintainability and reduce duplication. When th...

Code Style TSX

Environment variable fallbacks

novuhq/novu
5
37700

Always implement proper fallback chains for environment variables and handle missing configuration gracefully. When i...

Configurations TypeScript

contextual API parameters

novuhq/novu
5
37700

Design APIs to provide contextual information and adapt behavior based on current usage context. Pass context objects...

API TSX

Use modern C++ features

nodejs/node
5
112178

Embrace modern C++20 features throughout the codebase to improve code readability, maintainability, and performance. ...

Code Style Other

Thread-safe resource management patterns

nodejs/node
5
112178

Ensure thread-safe access to shared resources while following proper resource management patterns. When implementing ...

Concurrency Other

Standardize null pointer checks

nodejs/node
5
112178

Always use standard null-checking patterns like CHECK_NOT_NULL for pointer validation instead of manual null checks. ...

Null Handling Other

Propagate errors with context

nodejs/node
5
112178

Always propagate errors with their original context instead of swallowing them or throwing new errors that hide the o...

Error Handling Other

Minimize configuration dependencies

nodejs/node
5
112178

Keep configuration dependencies minimal and platform-aware. Avoid including unnecessary configuration files or extern...

Configurations Other

Follow consistent naming patterns

nodejs/node
5
112178

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

Naming Conventions Markdown

Document with precise accuracy

nodejs/node
5
112178

Maintain precise and accurate documentation through both JSDoc annotations and explanatory comments. Ensure all techn...

Documentation JavaScript

Behavior-focused test design

nodejs/node
5
112178

Tests should focus on verifying behavior rather than implementation details to ensure they remain robust during refac...

Testing JavaScript

Write robust assertions

vercel/next.js
5
133000

When writing tests, ensure assertions can handle non-deterministic content while providing clear failure context: use...

Testing TypeScript

Optimize Next.js Resource Utilization

vercel/next.js
5
133000

As a code reviewer, I recommend the following practices to optimize resource utilization when implementing Next.js ap...

Next.js JavaScript

Release resources consistently

netty/netty
5
34227

Always ensure resources are properly released, especially in exception paths. Use try-finally blocks to guarantee cle...

Error Handling Java

Use consistent curly braces

nestjs/nest
5
71767

Always use curly braces for conditional statements and loops, even for single-line bodies. This maintains consistency...

Code Style TypeScript

Strategic dependency configuration

nestjs/nest
5
71766

Configure dependencies in package.json strategically based on how they're used in your project: 1. **Direct dependen...

Configurations Json

Standardize null safety patterns

nestjs/nest
5
71766

Use modern JavaScript features and utility functions consistently for null/undefined checks. Prefer optional chaining...

Null Handling TypeScript

Preserve public API stability

nestjs/nest
5
71767

When modifying or extending public interfaces, ensure changes maintain backward compatibility and follow proper versi...

API TypeScript

Preserve API interface stability

nestjs/nest
5
71766

When modifying or extending public API interfaces, ensure backward compatibility and proper versioning. Follow these ...

API TypeScript

Modern null safety patterns

nestjs/nest
5
71767

Leverage modern JavaScript features and utility functions for safer null/undefined handling. This reduces code verbos...

Null Handling TypeScript

Avoid testing anti-patterns

nestjs/nest
5
71767

Ensure your tests actually validate functionality by avoiding common testing anti-patterns: 1. **Don't mock what you...

Testing TypeScript

validate early, fail fast

neovim/neovim
5
91433

Perform comprehensive input validation and precondition checks at the beginning of functions, before executing any op...

Error Handling C

Provide helpful documentation context

neovim/neovim
5
91433

Documentation should include sufficient context, practical examples, and helpful hints to make it truly useful for de...

Documentation Txt

prefer concise expressions

neovim/neovim
5
91433

Write concise, readable code by choosing the most direct expression for simple operations. Use ternary operators for ...

Code Style C

Use descriptive identifiers

neondatabase/neon
5
19015

Choose clear, meaningful names for variables, parameters, and constants that convey their purpose without requiring a...

Naming Conventions Python

Stage configuration changes gradually

neondatabase/neon
5
19015

When introducing configuration changes that affect multiple system components, implement them in stages to ensure smo...

Configurations Rust

Hierarchical semantic naming

neondatabase/neon
5
19015

Use hierarchical prefixes and clear descriptive names to indicate the domain, source, and purpose of code elements. T...

Naming Conventions Other

Flexible documented configurations

neondatabase/neon
5
19015

Create configuration interfaces that are flexible, well-documented, and future-proof. When designing configuration pa...

Configurations Other

Document concurrency design decisions

neondatabase/neon
5
19015

Always document key concurrency design decisions in code, including: 1. Locking protocols and ordering between multip...

Concurrency Rust

Design metrics for insights

neondatabase/neon
5
19015

Design metrics that provide actionable insights while maintaining system efficiency. Follow these key principles: 1....

Observability Rust

Comprehensive code documentation

neondatabase/neon
5
19015

Properly document code with clear, accurate, and useful comments using the correct syntax based on context: 1. Use `...

Documentation Rust

Validate API data contracts

n8n-io/n8n
5
122978

Always validate API request and response data using schema validation to ensure type safety and prevent runtime error...

API TypeScript

Optimize loop operations

n8n-io/n8n
5
122978

Avoid repeated computations and object creation in loops or high-frequency operations. Move invariant calculations ou...

Performance Optimization TypeScript

Manage database connections

n8n-io/n8n
5
122978

Always properly manage database connections to prevent resource leaks and improve application stability. Implement th...

Database TypeScript

Use intent-revealing names

apache/mxnet
5
20801

Choose names that clearly reveal the purpose, behavior, or type of the code elements they represent. A good name shou...

Naming Conventions Other

Hybridization compatible operations

apache/mxnet
5
20801

When implementing neural network models that will be hybridized for performance optimization, use operations that are...

AI Python

Explain optimization mechanisms

apache/mxnet
5
20801

When implementing or documenting performance optimizations, clearly explain the mechanism and expected performance be...

Performance Optimization Markdown

Document all parameters

apache/mxnet
5
20801

Always provide complete and accurate documentation for all function parameters, especially when adding new ones. Each...

Documentation Other

preserve error context

rocicorp/mono
5
2091

When propagating errors through promise rejections, catch blocks, or error transformations, always preserve the origi...

Error Handling TypeScript

minimize hot path allocations

rocicorp/mono
5
2091

Reduce memory allocations and garbage collection pressure in frequently executed code paths. Object creation through ...

Performance Optimization TypeScript

avoid unnecessary computations

rocicorp/mono
5
2091

Optimize algorithms by eliminating redundant work and intermediate data structures. Look for opportunities to use laz...

Algorithms TypeScript

API consistency patterns

rocicorp/mono
5
2091

Maintain consistent patterns across similar APIs to improve developer experience and reduce cognitive overhead. When ...

API TypeScript

Add missing test coverage

rocicorp/mono
5
2091

Identify and address gaps in test coverage by requesting specific tests for untested functionality. When reviewing co...

Testing TypeScript

Configure CSS layers

mui/material-ui
5
96063

When integrating Material UI with other styling solutions like Tailwind CSS v4, proper configuration of CSS layers is...

Configurations Markdown

Use semantic naming

mastodon/mastodon
5
48691

Choose names that clearly communicate purpose and align with established domain terminology. Prioritize semantic clar...

Naming Conventions Other

Use contextually descriptive names

mastodon/mastodon
5
48691

Names should clearly indicate their purpose and context to avoid confusion, especially when similar concepts exist in...

Naming Conventions TSX

Optimize database queries

mastodon/mastodon
5
48691

Write efficient database queries by leveraging proper indexes, using performance-optimized ActiveRecord methods, and ...

Database Ruby

early nil validation

mastodon/mastodon
5
48691

Check for nil values early in methods and handle them gracefully before they can cause runtime errors or trigger expe...

Null Handling Ruby

batch similar operations

mastodon/mastodon
5
48691

When performing multiple similar operations (database queries, Redis calls, job enqueues, or data lookups), batch the...

Performance Optimization Ruby

API parameter design

mastodon/mastodon
5
48691

Design API parameters with clear intent, proper validation, and thoughtful default behaviors. Parameter names should ...

API Ruby

Structure documentation effectively

maplibre/maplibre-native
5
1411

Documentation should prioritize clear organization with a logical flow to help developers find information quickly. A...

Documentation Markdown

Self-documenting code naming

maplibre/maplibre-native
5
1411

Method, parameter, and variable names should clearly describe their purpose and behavior, making code self-documentin...

Naming Conventions Other

Prefer safe null handling

maplibre/maplibre-native
5
1411

Use explicit, safe practices when dealing with potentially null resources to prevent memory leaks and undefined behav...

Null Handling C++

Document public API completely

maplibre/maplibre-native
5
1411

All public APIs (files in `include/`) must have comprehensive documentation using either Doxygen-style or triple-slas...

Documentation Other

optimize algorithm performance

logseq/logseq
5
37695

When implementing algorithms, prioritize performance optimization through careful algorithm selection, query structur...

Algorithms Other

Defer expensive operations

logseq/logseq
5
37695

Avoid performing expensive computations until they are actually needed, and eliminate redundant work in hot code path...

Performance Optimization Other

Configuration option lifecycle

logseq/logseq
5
37695

When adding new configuration options, follow a systematic approach to ensure consistency and maintainability across ...

Configurations Other

API parameter consolidation

lobehub/lobe-chat
5
65138

When designing API functions with multiple parameters, consolidate optional or related parameters into a single optio...

API TypeScript

Eliminate redundant operations

LMCache/LMCache
5
3800

Avoid unnecessary function calls, I/O operations, and redundant checks that can significantly impact performance. Loo...

Performance Optimization Python

Cache state consistency

LMCache/LMCache
5
3800

Ensure cache operations maintain consistent state and handle shared resources properly throughout the cache lifecycle...

Caching Python

AI model architecture flexibility

LMCache/LMCache
5
3800

Avoid hardcoding AI model-specific assumptions and instead design systems to be configurable across different model a...

AI Python

Use descriptive semantic names

llvm/llvm-project
5
33702

Choose specific, meaningful names that clearly convey purpose and follow established codebase patterns. Avoid generic...

Naming Conventions Other

proper error propagation

llvm/llvm-project
5
33702

Ensure errors are properly propagated to callers rather than handled locally with exits or fatal errors. Library func...

Error Handling C++

minimize header dependencies

llvm/llvm-project
5
33702

Organize code to minimize header dependencies and improve compilation times. Use forward declarations instead of incl...

Code Style Other

Eliminate redundant null checks

llvm/llvm-project
5
33702

Avoid unnecessary null checks when the called function already handles null cases, and use references instead of poin...

Null Handling C++

Design thoughtful API interfaces

llvm/llvm-project
5
33702

When designing APIs, prioritize clarity, appropriate abstraction levels, and user experience. Avoid magic numbers or ...

API C++

cost-based algorithmic decisions

llvm/llvm-project
5
33702

When implementing algorithmic transformations and optimizations, use cost analysis and profitability heuristics to gu...

Algorithms Other

use model metadata

ggml-org/llama.cpp
5
83559

Leverage model metadata from GGUF format instead of hardcoded configuration values or filename-based logic. Model met...

AI C++

optimize memory access patterns

ggml-org/llama.cpp
5
83559

Ensure CUDA kernels use optimal memory access patterns to maximize performance. This involves several key practices: ...

Performance Optimization CUDA

measure before optimizing

ggml-org/llama.cpp
5
83559

Always profile and measure performance impact before implementing optimizations, especially micro-optimizations. Many...

Performance Optimization C++

AI parameter organization

ggml-org/llama.cpp
5
83559

Ensure proper organization and placement of AI model parameters, hyperparameters, and configuration options. Avoid pa...

AI Other

Use configuration helper utilities

BerriAI/litellm
5
28310

Always use centralized helper functions for configuration management instead of direct environment variable access or...

Configurations Python

Prefer generic API patterns

BerriAI/litellm
5
28310

Avoid creating provider-specific API implementations when generic, reusable solutions exist or can be developed. This...

API Python

background task coordination

BerriAI/litellm
5
28310

When working with background tasks in async applications, ensure proper task lifecycle management and coordination to...

Concurrency Python

avoid expensive operations

BerriAI/litellm
5
28310

Identify and optimize resource-intensive operations in frequently executed code paths. This includes avoiding memory-...

Performance Optimization Python

API parameter consistency

BerriAI/litellm
5
28310

Ensure consistent parameter naming, format, and usage across all API interfaces, documentation, and code examples. Th...

API Markdown

Validate all inputs

langfuse/langfuse
5
13574

All user-controlled inputs must be validated and sanitized before use to prevent injection attacks, unauthorized acce...

Security TypeScript

Use structured logging framework

langfuse/langfuse
5
13574

Replace all console.* calls with an appropriate structured logging framework using proper log levels. This ensures co...

Logging TypeScript

Memoize computed values

langfuse/langfuse
5
13574

Cache the results of expensive operations and component renders to avoid redundant calculations during re-renders. Th...

Performance Optimization TSX

Ensure deterministic query results

langfuse/langfuse
5
13574

Always ensure database queries produce deterministic results by including explicit ORDER BY clauses when using LIMIT ...

Database TypeScript

Avoid array mutations

langfuse/langfuse
5
13574

Always clone arrays before performing operations that would mutate the original array, especially when working with c...

Code Style TSX

intentional error handling

langflow-ai/langflow
5
111046

Make deliberate, context-appropriate decisions about error handling strategy rather than applying generic patterns. C...

Error Handling Python

Validate untrusted input

langchain-ai/langchainjs
5
15004

Always validate and sanitize user-provided inputs before using them in sensitive contexts like SQL queries, file path...

Security TypeScript

Throw meaningful errors

langchain-ai/langchainjs
5
15004

Always throw specific, actionable errors instead of returning unexpected values or simply logging issues. Error messa...

Error Handling TypeScript

Optimize model token usage

langchain-ai/langchainjs
5
15004

Implement token-efficient patterns when working with AI models to optimize costs and performance. Key practices inclu...

AI TypeScript

Follow documentation standards

langchain-ai/langchainjs
5
15004

Ensure all documentation follows established templates and includes required sections. When referencing components, a...

Documentation Other

Prefer early null returns

kubernetes/kubernetes
5
116489

Use early return patterns with null checks to reduce nesting and improve code readability. Avoid unnecessary null che...

Null Handling Go

Optimize search algorithms

kubernetes/kubernetes
5
116489

Implement efficient search strategies that minimize computational overhead through proper ordering, early termination...

Algorithms Go

Use modern JavaScript idioms

kubeflow/kubeflow
5
15064

Favor modern JavaScript syntax and clean code practices to improve readability and maintainability. This includes: 1...

Code Style JavaScript

Structured documentation with examples

kubeflow/kubeflow
5
15064

Create comprehensive documentation with clear structure and practical examples. Documentation should include: 1. **S...

Documentation Markdown

Standardize makefile patterns

kubeflow/kubeflow
5
15064

Maintain consistent Makefile patterns across all components to improve build reliability and developer experience in ...

CI/CD Other

Environment variable management

kubeflow/kubeflow
5
15064

Manage environment variables in Docker configurations with appropriate scope, placement, and documentation: 1. **Set...

Configurations Dockerfile

Centralize configuration values

kubeflow/kubeflow
5
15064

Store all configuration values in dedicated configuration files rather than hardcoding them throughout the applicatio...

Configurations TypeScript

Consider operation time complexity

JetBrains/kotlin
5
50857

When implementing operations that manipulate collections or perform repeated actions, carefully consider the time com...

Algorithms Kotlin

optimize algorithmic complexity

apache/kafka
5
30575

Replace inefficient algorithms with more optimal data structures and approaches to improve computational complexity. ...

Algorithms Java

Defensive null validation

apache/kafka
5
30575

Always validate null parameters and dependencies early with proper ordering to prevent NullPointerExceptions and prov...

Null Handling Java

API completeness validation

apache/kafka
5
30575

Ensure APIs are complete by validating that all necessary cases are handled, all required arguments are properly vali...

API Java

Use type-specific variable names

jj-vcs/jj
5
21171

Use distinct variable names that reflect their types to avoid confusion and make code intent clearer. Avoid reusing t...

Naming Conventions Rust

Consistent naming conventions

jj-vcs/jj
5
21171

Maintain consistent naming and terminology throughout code and documentation. This includes proper capitalization of ...

Naming Conventions Markdown

eliminate code redundancy

menloresearch/jan
5
37620

Remove duplicate imports, unused legacy code, and repetitive patterns to maintain clean, organized codebases. Extract...

Code Style TypeScript

network configuration consistency

istio/istio
5
37192

Ensure network-related configurations remain consistent across different components and avoid unintended overwrites t...

Networking Go

Conservative networking defaults

istio/istio
5
37192

When configuring networking components, prefer stable and permissive defaults over restrictive or experimental config...

Networking Yaml

API compatibility preservation

istio/istio
5
37192

When evolving APIs, prioritize backward compatibility and avoid changing the semantics of existing fields. Instead of...

API Go

Structured logging best practices

influxdata/influxdb
5
30268

Use structured logging with appropriate field types and context to make logs more useful for troubleshooting. Choose ...

Logging Go

Stable schema identifiers

influxdata/influxdb
5
30268

Use persistent identifiers for schema elements rather than relying on positional information or enumeration, which ca...

Database Rust

Prefer explicit nullability

influxdata/influxdb
5
30268

Always make nullable states explicit in your code by leveraging Rust's type system. Use `Option` rather than senti...

Null Handling Rust

Manage complete cache lifecycle

influxdata/influxdb
5
30268

Implement comprehensive cache lifecycle management focusing on three key aspects: 1. Idempotent Creation: Make cache...

Caching Rust

Maintain code readability

influxdata/influxdb
5
30268

Ensure code remains readable and maintainable by following these practices: 1. **Combine case statements with identi...

Code Style Go

Handle errors by criticality

influxdata/influxdb
5
30268

Choose error handling strategies based on operation criticality: 1. For critical operations that could corrupt data ...

Error Handling Rust

Descriptive semantic naming

influxdata/influxdb
5
30268

Create identifiers that clearly convey meaning through descriptive names and appropriate types. Two key practices imp...

Naming Conventions Rust

Clear configuration parameters

influxdata/influxdb
5
30268

Configuration parameters should be descriptively named, well documented, and have sensible defaults that are visible ...

Configurations Rust

Transactional verified migrations

elie222/inbox-zero
5
8267

Enhance database migration reliability by wrapping changes in transactions with pre-check and post-verification steps...

Migrations Sql

Time precision matters

elie222/inbox-zero
5
8267

When implementing algorithms involving date and time calculations, maintain precise control over time components to a...

Algorithms TypeScript

Prevent async race conditions

elie222/inbox-zero
5
8267

Always guard against race conditions when working with asynchronous code. Implement these patterns to avoid unpredict...

Concurrency TSX

Names reflect semantic purpose

elie222/inbox-zero
5
8267

Choose names that reflect the semantic purpose rather than implementation details or temporal characteristics. Names ...

Naming Conventions TypeScript

optimize computational efficiency

hyprwm/Hyprland
5
28863

Prioritize algorithmic efficiency and avoid unnecessary computational overhead in performance-critical code paths. Lo...

Algorithms C++

reduce nesting complexity

helix-editor/helix
5
39026

Prefer code structures that minimize nesting levels and improve readability through early returns, pattern matching, ...

Code Style Rust

Follow established conventions

helix-editor/helix
5
39026

Configuration settings should align with official language documentation and established community standards rather t...

Code Style Toml

Standardize observability semantic conventions

grafana/grafana
5
68825

When implementing observability features (logs, metrics, traces), use consistent semantic conventions to ensure data ...

Observability Go

Proper shell quoting

grafana/grafana
5
68825

Always use proper quoting in shell scripts (especially GitHub Actions workflows) to prevent word splitting, globbing,...

Code Style Yaml

Function design principles

grafana/grafana
5
68825

Design functions for maximum reusability, clarity, and maintainability. Follow these principles: 1. **Pass complete ...

Code Style TypeScript

Close resources with errors

grafana/grafana
5
68825

Always close resources (files, streams, connections) and properly handle their Close() errors. For read operations, C...

Error Handling Go

Verify configuration documentation

block/goose
5
19037

Ensure all configuration documentation accurately reflects actual system behavior, available options, and correct com...

Configurations Markdown

Use if-unwrap with optionals

ghostty-org/ghostty
5
32864

Always use Zig's if-unwrap pattern (`if (optional) |value| {...}`) when working with optional values instead of force...

Null Handling Other

Use specific configuration patterns

google-gemini/gemini-cli
5
65062

When defining exclusion patterns, file filters, or other configuration rules, use specific, targeted patterns rather ...

Configurations Json

Never ignore errors silently

google-gemini/gemini-cli
5
65062

All errors must be explicitly handled through catching, logging, or user feedback. Silent error suppression makes deb...

Error Handling TSX

Maintain naming consistency

google-gemini/gemini-cli
5
65062

Ensure consistent naming patterns and approaches across similar functionality in the codebase. This includes using na...

Naming Conventions TSX

implement resource constraints

google-gemini/gemini-cli
5
65062

Implement multiple types of resource constraints with appropriate thresholds to prevent performance degradation and r...

Performance Optimization TypeScript

document current functionality

google-gemini/gemini-cli
5
65062

Documentation should focus exclusively on current, active functionality rather than including historical context, dep...

Documentation Markdown

classify errors appropriately

google-gemini/gemini-cli
5
65062

Different types of errors require different handling strategies. Classify errors into categories and apply appropriat...

Error Handling TypeScript

Choose efficient data structures

google-gemini/gemini-cli
5
65062

Select data structures and algorithms that match your performance requirements rather than defaulting to simple but i...

Algorithms TypeScript

API consistency patterns

google-gemini/gemini-cli
5
65062

Maintain consistent interface patterns across APIs and avoid loose coupling through magic strings or unstable propert...

API TypeScript

add tests for changes

google-gemini/gemini-cli
5
65062

Every code change, whether it's a new feature, bug fix, or refactoring, must include corresponding tests. This ensure...

Testing TypeScript

Handle errors completely

fatedier/frp
5
95938

Always handle errors comprehensively by checking return values, implementing proper error propagation, and ensuring r...

Error Handling Go

Connection lifecycle management

fatedier/frp
5
95938

Implement comprehensive lifecycle management for network connections. Ensure proper initialization, authentication, m...

Networking Go

Manage dependencies wisely

laravel/framework
5
33763

When configuring dependencies in composer.json files, follow these guidelines to ensure maintainable and reliable con...

Configurations Json

Escape column names properly

laravel/framework
5
33763

Always use the appropriate wrapping/escaping mechanism when generating SQL to prevent syntax errors and SQL injection...

Database PHP

Design flexible APIs

laravel/framework
5
33763

When designing APIs, prioritize flexibility and developer experience by: 1. **Accept broader parameter types** - Use...

API PHP

Eliminate redundant operations

flutter/flutter
5
172252

Identify and remove unnecessary operations that impact performance, including redundant checks, duplicate calculation...

Performance Optimization Other

Avoid breaking changes

flutter/flutter
5
172252

When modifying existing APIs, prioritize backward compatibility to prevent breaking changes that would force develope...

API Other

Use structured error logging

firecrawl/firecrawl
5
54535

Always use the proper logger instance instead of console methods, and format error logs with structured data objects ...

Logging TypeScript

Validate security configurations

gofiber/fiber
5
37560

Always verify that security middleware configurations use correct constant values, proper parameter specifications, a...

Security Markdown

Evaluate nil check necessity

gofiber/fiber
5
37560

Before adding nil checks, evaluate whether they are actually necessary or if they represent false positives from stat...

Null Handling Go

Type-safe API designs

fastify/fastify
5
34000

Design APIs with strong type safety to improve developer experience and catch errors at compile time. Avoid using any...

API TypeScript

Properly Handle Errors in Fastify Applications

fastify/fastify
5
34000

When implementing error handling in Fastify applications, it is important to always throw instances of the Error clas...

Fastify TypeScript

Preserve error context

fastify/fastify
5
34000

When handling errors, always ensure the original error context is preserved and properly surfaced. Error information ...

Error Handling JavaScript

Null safe patterns

fastify/fastify
5
34000

Use concise null checking patterns to prevent runtime errors and improve code readability when handling potentially u...

Null Handling JavaScript

Explicit Configuration Usage in Fastify

fastify/fastify
5
34000

When using the Fastify framework in TypeScript, ensure that all configuration options are explicitly declared and pro...

Fastify TypeScript

Consistent JSDoc standards

fastify/fastify
5
34000

Document all public APIs and significant internal functions with comprehensive JSDoc comments that include accurate d...

Documentation JavaScript

Adhere to Fastify Coding Conventions

fastify/fastify
5
34000

When implementing code that uses the Fastify package in TypeScript, ensure the following conventions are followed: av...

Fastify TypeScript

Protocol-specific error handling

fastapi/fastapi
5
86871

Handle errors and responses appropriately based on the network protocol being used. Different protocols have differen...

Networking Markdown

Consistent code examples

fastapi/fastapi
5
86871

Maintain consistent formatting and styling in code examples throughout your NestJS application documentation. This en...

NestJS Markdown

REST principles first

expressjs/express
5
67300

When designing APIs with Express, prioritize proper REST principles and HTTP semantics over convenience. This ensures...

API JavaScript

Propagate errors properly

expressjs/express
5
67300

Always forward errors to the framework's error handling pipeline instead of swallowing them or handling them inconsis...

Error Handling JavaScript

Handle streams properly

expressjs/express
5
67300

When transferring data over HTTP, properly implement streaming mechanisms to prevent memory exhaustion and potential ...

Networking JavaScript

Ensure test completion

expressjs/express
5
67300

Tests must properly terminate by following appropriate asynchronous patterns. For asynchronous tests, always invoke t...

Testing JavaScript

maintain API compatibility

evanw/esbuild
5
39161

When implementing or extending APIs, preserve compatibility with existing standards and expected behaviors. APIs shou...

API Go

Use descriptive consistent names

electron/electron
5
117644

Choose names that are both semantically accurate and consistent with established patterns. Names should clearly conve...

Naming Conventions Other

Descriptive error messages

electron/electron
5
117644

Error messages should be descriptive, contextual, and self-identifying to aid debugging and user understanding. Inclu...

Error Handling Other

Prevent redundant operations

elastic/elasticsearch
5
73104

In distributed database systems, prevent redundant operations that can overload cluster resources. When implementing ...

Database Java

validate inputs early

duckdb/duckdb
5
32061

Validate function inputs, preconditions, and assumptions as early as possible in the execution flow, preferably durin...

Error Handling C++

validate inputs comprehensively

duckdb/duckdb
5
32061

Ensure thorough input validation and comprehensive edge case handling in database operations. This includes checking ...

Database C++

Optimize algorithm complexity

duckdb/duckdb
5
32061

Choose efficient algorithms and data structures to avoid unnecessary computational complexity. Replace manual loops w...

Algorithms Other

consistent null validation

duckdb/duckdb
5
32061

Ensure null checks and input validation are applied consistently across similar functions and code paths. When one fu...

Null Handling C++

Test structure and clarity

stanfordnlp/dspy
5
27813

Organize tests for maximum clarity and maintainability by leveraging pytest features and proper test structure. Split...

Testing Python

reduce nesting levels

stanfordnlp/dspy
5
27813

Minimize nested conditional statements and complex control flow by using early returns, guard clauses, and default va...

Code Style Python

prefer nullish coalescing operator

drizzle-team/drizzle-orm
5
29461

Use the nullish coalescing operator (`??`) instead of the logical OR operator (`||`) when you specifically want to pr...

Null Handling TypeScript

Version annotation in docs

django/django
5
84182

Always include appropriate version annotations when documenting new features or changes in behavior. Use `.. versiona...

Documentation Txt

Use semantic HTML elements

django/django
5
84182

Structure HTML templates using semantically appropriate elements rather than generic containers. Replace non-semantic...

Code Style Html

Structure logs effectively

django/django
5
84182

When implementing logging in your application, structure your log messages and parameters consistently to improve rea...

Logging Python

Preserve error handling context

django/django
5
84182

When handling exceptions, preserve the original error context and provide clear, actionable error messages. This help...

Error Handling Python

Graceful API evolution

django/django
5
84182

When evolving APIs, prioritize backward compatibility and provide clear migration paths. For any significant change: ...

API Python

Comments versus docstrings usage

django/django
5
84182

Choose between comments and docstrings based on the documentation's purpose and scope. Use docstrings for API-level d...

Documentation Python

validate migration data comprehensively

discourse/discourse
5
44898

Migration scripts must thoroughly validate data conditions and handle edge cases to ensure reliable data transformati...

Migrations Ruby

Use modern syntax

discourse/discourse
5
44898

Adopt modern JavaScript and Ember syntax patterns instead of legacy approaches to improve code readability and mainta...

Code Style Other

optimize test fixtures

discourse/discourse
5
44898

Use the `fab!` shorthand syntax for creating test fixtures and reuse fabricated objects across tests to improve perfo...

Testing Ruby

Improve code readability

discourse/discourse
5
44898

Structure code to match logical flow and extract intermediate variables to improve readability. When dealing with mul...

Code Style JavaScript

Extract duplicate code

discourse/discourse
5
44898

When you notice repeated code patterns, logic blocks, or similar implementations across methods or classes, extract t...

Code Style Ruby

simplify complex logic

langgenius/dify
5
114231

Improve code readability by reducing complexity and nesting through early returns, extracting complex logic into dedi...

Code Style Python

HTTP standards compliance

langgenius/dify
5
114231

Ensure API endpoints follow HTTP standards for status codes and method selection. Delete operations should return 204...

API Python

Configuration value types

langgenius/dify
5
114231

Ensure configuration values use appropriate types, avoid unnecessary Optional annotations, and maintain consistency i...

Configurations Python

Use appropriate synchronization mechanisms

denoland/deno
5
103714

Select and implement synchronization primitives that match your concurrency requirements and avoid unsafe patterns. C...

Concurrency Rust

avoid panics gracefully

denoland/deno
5
103714

Replace panic-prone operations like `unwrap()` and `expect()` with graceful error handling that provides meaningful f...

Error Handling Rust

avoid implementation detail leakage

denoland/deno
5
103714

APIs should provide clean abstraction boundaries without exposing internal implementation details or creating unwante...

API Rust

User-friendly documentation examples

deeplearning4j/deeplearning4j
5
14036

Documentation should guide users toward best practices through clear examples. Begin with positive patterns before co...

Documentation Markdown

Use logging best practices

deeplearning4j/deeplearning4j
5
14036

Adopt these logging best practices to ensure consistent, efficient, and meaningful logs: 1. **Use Lombok's `@Slf4j` ...

Logging Java

Numerical stability practices

deeplearning4j/deeplearning4j
5
14036

When implementing machine learning algorithms, ensure numerical correctness and stability by following these practice...

AI Java

Descriptive error context

deeplearning4j/deeplearning4j
5
14036

Error messages should be specific, descriptive, and include context to help with debugging. Avoid generic messages li...

Error Handling C++

Thoughtful error handling

cypress-io/cypress
5
48850

Implement error handling that considers recoverability, appropriate logging levels, and prevents redundant operations...

Error Handling JavaScript

Simplify complex expressions

cypress-io/cypress
5
48850

Break down complex conditional logic, nested structures, and verbose syntax into smaller, well-named functions or mor...

Code Style Other

prefer modern composition patterns

cypress-io/cypress
5
48850

Use Vue 3 Composition API patterns that provide better performance, type safety, and maintainability. Prefer `compute...

Vue Other

Explain non-obvious code

cypress-io/cypress
5
48850

Add explanatory comments for complex logic, workarounds, and non-obvious code patterns to help future maintainers und...

Documentation TypeScript

Environment variable validation

cypress-io/cypress
5
48850

Always validate environment variables with proper type checking, fallback values, and defensive handling to prevent r...

Configurations TypeScript

consistent descriptive naming

cypress-io/cypress
5
48850

Maintain consistent naming patterns across similar functionality while ensuring names accurately describe their curre...

Naming Conventions JavaScript

Configuration documentation clarity

cypress-io/cypress
5
48850

Ensure configuration documentation, setup instructions, and changelogs use precise, clear language with proper techni...

Configurations Markdown

Model-agnostic AI code

crewaiinc/crewai
5
33945

When building applications that interact with AI models, avoid hardcoding model-specific behavior and instead design ...

AI Python

prefer None over placeholders

home-assistant/core
5
80450

When data is unavailable, unknown, or invalid, return `None` instead of placeholder strings like "Unknown", "Unspecif...

Null Handling Python

Minimize try block scope

home-assistant/core
5
80450

Only include code that can actually raise exceptions within try blocks. Move variable assignments, logging statements...

Error Handling Python

Maintain consistent code style

vuejs/core
5
50769

Follow project-wide code style conventions to ensure consistency and readability. Key practices include: 1. Use cons...

Code Style TypeScript

Explicit nullish checks

vuejs/core
5
50769

When checking for the absence of values, use explicit nullish checks rather than relying on JavaScript's falsy behavi...

Null Handling TypeScript

Validate before data access

continuedev/continue
5
27819

Always validate data existence and type before accessing properties or methods to prevent runtime errors from null/un...

Null Handling TypeScript

Standardize AI model interfaces

continuedev/continue
5
27819

When implementing AI model integrations, maintain consistent interfaces and proper type definitions across different ...

AI TypeScript

Robust comparison algorithms

continuedev/continue
5
27819

Ensure your comparison algorithms handle edge cases properly and avoid common pitfalls: 1. **Normalize values before...

Algorithms TypeScript

Document why not what

continuedev/continue
5
27819

Documentation should explain rationale and be technically precise. Focus on: 1. Including all required parameters wi...

Documentation TypeScript

Decouple tests from implementation

continuedev/continue
5
27819

Tests tightly coupled to implementation details break easily when the implementation changes, creating maintenance bu...

Testing TypeScript

Choose clear semantic names

continuedev/continue
5
27819

Names should clearly and accurately convey their purpose, behavior, and content. Follow these guidelines: 1. Use pos...

Naming Conventions TypeScript

Scope concurrency control precisely

docker/compose
5
35858

Apply concurrency control mechanisms with precise scope to prevent both race conditions and unnecessary blocking. Use...

Concurrency Go

prefer dynamic configuration sources

comfyanonymous/ComfyUI
5
83726

Use runtime-determined configuration sources instead of hardcoded values or static file parsing when more reliable al...

Configurations Python

optimize CI resource usage

comfyanonymous/ComfyUI
5
83726

Design CI/CD workflows to minimize unnecessary resource consumption and provide faster feedback. Avoid triggering bui...

CI/CD Yaml

Explicit error propagation

comfyanonymous/ComfyUI
5
83726

Functions should raise exceptions with meaningful messages instead of returning False, None, or silently catching all...

Error Handling Python

avoid expensive operations

comfyanonymous/ComfyUI
5
83726

Identify and eliminate unnecessary expensive operations that can significantly impact performance. Common patterns to...

Performance Optimization Python

API backward compatibility

comfyanonymous/ComfyUI
5
83726

Ensure API changes maintain backward compatibility to avoid breaking existing clients and workflows. When adding new ...

API Python

Write comprehensive test assertions

openai/codex
5
31275

Instead of making multiple small assertions that check individual fields or conditions, write single comprehensive as...

Testing Rust

Structure configurations properly

openai/codex
5
31275

Define a clear, hierarchical structure for application configurations with descriptive naming and proper organization...

Configurations TypeScript

Document non-obvious aspects

openai/codex
5
31275

Documentation should explain what isn't obvious from the code itself. Focus on providing context about "why" certain ...

Documentation Rust

Contextualize, don't swallow

openai/codex
5
31275

Always propagate errors with appropriate context rather than silently ignoring them. This makes debugging easier and ...

Error Handling Rust

Centralize configuration management

openai/codex
5
31275

Prefer centralized configuration objects over environment variables for application settings. Environment variables c...

Configurations Rust

use semantic naming

cline/cline
5
48299

Choose variable, function, and type names that clearly communicate their purpose and meaning without requiring additi...

Naming Conventions TypeScript

reuse common message types

cline/cline
5
48299

Prefer reusable message types over single-purpose request/response pairs to reduce API bloat and improve maintainabil...

API Other

centralize configuration management

cline/cline
5
48299

Consolidate related configuration settings into dedicated config objects or files rather than scattering hardcoded va...

Configurations TypeScript

Add missing error handling

cline/cline
5
48299

Wrap operations that can fail in try/catch blocks to prevent unhandled exceptions from crashing the application or le...

Error Handling TypeScript

optimize algorithmic complexity

ClickHouse/ClickHouse
5
42425

Always consider the algorithmic complexity and performance implications of data structure choices, memory allocation ...

Algorithms C++

optimize algorithm selection

ClickHouse/ClickHouse
5
42425

Choose algorithms and data structures based on actual performance characteristics rather than defaulting to standard ...

Algorithms Other

Extract common patterns

ClickHouse/ClickHouse
5
42425

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

Code Style C++

Database schema consistency

ClickHouse/ClickHouse
5
42425

Ensure database operations maintain consistent behavior and ordering, especially in distributed systems. When working...

Database Other

Use optional chaining

snyk/cli
5
5178

Always use optional chaining (`?.`) and null checks when accessing properties or methods on objects that might be nul...

Null Handling TypeScript

comprehensive test coverage

snyk/cli
5
5178

Ensure thorough test coverage by extracting complex logic into small, testable functions and using appropriate testin...

Testing Go

Secure credential management

chef/chef
5
7860

When handling passwords, certificates, or keys in your code, implement secure encryption and storage mechanisms to pr...

Security Ruby

Prefer guard clauses

chef/chef
5
7860

Use guard clauses with early returns for null checking instead of wrapping code in conditional blocks. This improves ...

Null Handling Ruby

Explicit configuration over implicit

chef/chef
5
7860

Always define explicit configuration defaults rather than relying on implicit behavior or autovivification. Configura...

Configurations Ruby

Use appropriate logging levels

bridgecrewio/checkov
5
7668

Select the correct logging level based on the importance and visibility requirements of the information. Choose WARNI...

Logging Python

Thorough test assertions

bridgecrewio/checkov
5
7667

Ensure tests thoroughly validate functionality through comprehensive assertions. When writing tests: 1. Assert all r...

Testing Python

Strategic exception management

bridgecrewio/checkov
5
7668

Choose the appropriate error handling strategy based on the context and severity of potential failures. Use exception...

Error Handling Python

Strategic error handling

bridgecrewio/checkov
5
7667

Choose appropriate error handling strategies based on the nature of the error and recovery potential: 1. **Raise exc...

Error Handling Python

Document configuration options

bridgecrewio/checkov
5
7668

Always provide comprehensive documentation for all configuration options, including environment variables, feature fl...

Configurations Markdown

Choose optimal data structures

bridgecrewio/checkov
5
7668

Select the most appropriate data structure based on the specific operations your algorithm needs to perform. This cho...

Algorithms Python

Use descriptive identifiers

calcom/cal.com
5
37732

Choose specific, descriptive names for variables, functions, and parameters that clearly communicate their purpose an...

Naming Conventions TypeScript

Explicit null checks

calcom/cal.com
5
37732

Always use explicit null and undefined checks instead of relying solely on optional chaining, especially when you nee...

Null Handling TSX

ensure test reliability

calcom/cal.com
5
37732

Write tests that are stable, independent, and non-flaky by following proper isolation and waiting practices. Tests sh...

Testing TypeScript

Design contextual API interfaces

calcom/cal.com
5
37732

API interfaces should expose only relevant data and functionality based on context, configuration, and user requireme...

API TSX

Use memory pools

oven-sh/bun
5
79093

Reuse memory with buffer pools for temporary allocations instead of creating new buffers each time. This reduces memo...

Performance Optimization Other

Network API compatibility

oven-sh/bun
5
79093

When implementing networking APIs that mirror Node.js functionality, ensure both behavior and error patterns match No...

Networking TypeScript

Match filenames to contents

oven-sh/bun
5
79093

Files should be named to clearly reflect their primary contents: 1. When a file contains a single primary type: -...

Naming Conventions Other

Descriptive identifier names

oven-sh/bun
5
79093

Choose clear, consistent, and accurate identifiers that precisely reflect behavior and follow established patterns. T...

Naming Conventions C++

Clean all error paths

oven-sh/bun
5
79093

Ensure all error paths properly clean up resources and handle errors appropriately. This includes: 1. Using errdefer...

Error Handling Other

Environment variable configuration

browser-use/browser-use
5
69139

Prefer environment variables over hardcoded configuration values to improve flexibility and avoid forcing configurati...

Configurations Python

Simplify complex code blocks

Homebrew/brew
5
44168

Break down complex code blocks and expressions into simpler, more readable components. Complex boolean logic, nested ...

Code Style Ruby

Actions workflow best practices

Homebrew/brew
5
44168

Use GitHub Actions native features and follow best practices to create maintainable, secure, and reliable CI workflow...

CI/CD Yaml

Write clear examples

boto/boto3
5
9417

Create comprehensive code examples in documentation that demonstrate common operations and use proper formatting. Use...

Documentation Other

Consistent method interfaces

boto/boto3
5
9417

Design APIs with consistent method interfaces across related resources to improve usability and reduce learning curve...

API Python

Configure proxies with schemes

boto/boto3
5
9417

When configuring proxies in AWS SDK clients, always include the complete URL scheme in proxy definitions. Match the s...

Networking Other

Validate before usage

better-auth/better-auth
5
19651

Always explicitly check for null or undefined values before using them in operations. Don't assume values exist - val...

Null Handling TypeScript

Prefer simple solutions

better-auth/better-auth
5
19651

Choose existing utilities, simpler patterns, and cleaner implementations over manual or complex approaches. This impr...

Code Style TypeScript

Use semantically clear names

bazelbuild/bazel
5
24489

Choose names that clearly express their purpose and avoid patterns that can lead to confusion or bugs. Names should b...

Naming Conventions Other

Specific exceptions for clarity

Azure/azure-sdk-for-net
5
5809

Use specific exception types with meaningful error messages rather than generic exceptions to improve error handling,...

Error Handling C#

Preserve API compatibility

Azure/azure-sdk-for-net
5
5809

When evolving APIs, maintain backward compatibility to prevent breaking changes for existing consumers. Key approac...

API C#

Maintain clean code structure

Azure/azure-sdk-for-net
5
5809

Keep code clean and well-organized by: 1. Removing unnecessary elements: - Delete commented-out code that is no lo...

Code Style C#

Centralize configuration values

Azure/azure-sdk-for-net
5
5809

Configuration values should be defined once and referenced throughout your project to ensure consistency and simplify...

Configurations Other

Prefer descriptive over brief

tokio-rs/axum
5
22100

Choose clear, descriptive names over abbreviated or shortened versions. Names should be self-documenting and follow R...

Naming Conventions Rust

Documentation consistency standards

tokio-rs/axum
5
22100

Maintain consistent documentation formatting standards across all project files, especially in changelogs, code examp...

Documentation Markdown

Consistent axum Usage in TypeScript

tokio-rs/axum
5
22100

When implementing TypeScript code that uses the axum package, maintain consistent and idiomatic usage: always use low...

Axum TypeScript

Type-safe API interfaces design

axios/axios
5
107000

Design API interfaces with strong type safety while maintaining excellent developer experience. Prefer explicit types...

API TypeScript

Standardize null value checks

axios/axios
5
107000

Always use consistent patterns and utility functions for handling null and undefined values. This improves code relia...

Null Handling JavaScript

Specific test assertions

axios/axios
5
107000

When writing tests, explicitly assert specific conditions and expected values rather than relying on general success/...

Testing JavaScript

Proxy protocol handling

axios/axios
5
107000

When implementing HTTP clients with proxy support, ensure the connection to the proxy uses the protocol specified in ...

Networking JavaScript

Documentation reflects reality

axios/axios
5
107000

Always ensure documentation accurately represents the actual code behavior and implementation details. Include import...

Documentation Markdown

Consistent method behaviors

axios/axios
5
107000

Design API methods with predictable behavior patterns that follow common conventions. Methods that modify objects dir...

API JavaScript

Complete error handling chain

axios/axios
5
107000

Implement comprehensive error handling throughout the codebase by ensuring all error scenarios are properly caught, t...

Error Handling JavaScript

Structured test resource management

aws/aws-sdk-js
5
7628

Organize tests with proper resource lifecycle management to ensure reliability and maintainability. Create test resou...

Testing JavaScript

Content integrity verification

aws/aws-sdk-js
5
7628

When handling HTTP responses, especially with streaming data, properly verify content integrity and length to prevent...

Networking JavaScript

Use descriptive constants

argoproj/argo-cd
5
20149

Replace hardcoded strings, numbers, and magic values with well-named constants that clearly describe their purpose an...

Naming Conventions TSX

Use configuration constants

argoproj/argo-cd
5
20149

Replace hardcoded values with named constants from common packages or make values configurable through environment va...

Configurations Go

structured logging practices

argoproj/argo-cd
5
20149

Use structured logging with proper context and consolidate related log messages. Instead of multiple separate log sta...

Logging Go

Provide comprehensive explanations

argoproj/argo-cd
5
20149

Documentation should provide thorough technical explanations that define key concepts, explain behaviors, and include...

Documentation Markdown

Follow Go naming conventions

argoproj/argo-cd
5
20149

Adhere to Go naming conventions and maintain consistency with established codebase terminology. This includes proper ...

Naming Conventions Go

Choose appropriate synchronization primitives

argoproj/argo-cd
5
20149

Select the right synchronization mechanism based on your specific use case to avoid performance regressions and ensur...

Concurrency Go

Check nil before access

argoproj/argo-cd
5
20149

Always verify that pointers and nested struct fields are not nil before accessing their members to prevent runtime pa...

Null Handling Go

Assert response fully always

appwrite/appwrite
5
51959

Always validate all relevant aspects of API responses in tests, including status codes, headers, and body content. Do...

Testing PHP

Simplify complex expressions

ant-design/ant-design
5
95882

Extract repeated expressions and complex conditional logic into clear, readable variables to improve code maintainabi...

Code Style TSX

Semantic naming consistency

ant-design/ant-design
5
95882

Choose semantically clear and consistent names across related elements in your codebase. Names should convey their pu...

Naming Conventions Markdown

React component API clarity

ant-design/ant-design
5
95882

Ensure React component APIs are well-designed with accurate TypeScript interfaces, clear documentation, and intuitive...

React Markdown

Extract common patterns

ant-design/ant-design
5
95882

When you encounter repeated code patterns, conditional logic within loops, or similar implementations across componen...

Code Style TypeScript

Consistent null safety patterns

ant-design/ant-design
5
95882

Maintain consistent approaches to null and undefined handling throughout the codebase. Use optional chaining (`?.`) f...

Null Handling TSX

Configuration documentation standards

ant-design/ant-design
5
95882

Ensure configuration properties and settings are documented with consistent formatting and precise specifications. Co...

Configurations Markdown

avoid redundant operations

angular/angular
5
98611

Identify and eliminate redundant computations, function calls, and expensive operations that can be cached, memoized,...

Performance Optimization TypeScript

API consistency patterns

angular/angular
5
98611

Ensure that similar APIs follow consistent patterns and conventions across the codebase. When designing or modifying ...

API TypeScript

AI documentation clarity

angular/angular
5
98611

Ensure AI-related documentation, comments, and explanations are clear, accurate, and well-structured. This includes f...

AI Markdown

Add explanatory comments

angular/angular
5
98611

Code should include explanatory comments when the purpose, behavior, or context is not immediately clear from reading...

Documentation TypeScript

Write audience-appropriate documentation

alacritty/alacritty
5
59675

Documentation should be written from the perspective of its intended audience, using language and detail levels appro...

Documentation Markdown

prefer early returns

alacritty/alacritty
5
59675

Use early returns and guard clauses to reduce nesting levels and improve code readability. When you have multiple con...

Code Style Rust

Configuration validation feedback

alacritty/alacritty
5
59675

Always validate configuration options and provide clear feedback to users about potential issues. This includes warni...

Configurations Rust

Configuration documentation accuracy

alacritty/alacritty
5
59675

Ensure configuration documentation is accurate, consistent, and clearly indicates optional versus required values. Us...

Configurations Other

Avoid unwrap on nullables

alacritty/alacritty
5
59675

Never use `unwrap()` on nullable values that could reasonably be None, as this can cause crashes that are harder for ...

Null Handling Rust

avoid unnecessary operations

alacritty/alacritty
5
59675

Eliminate redundant work by implementing early returns, avoiding unnecessary clones/references, and skipping computat...

Performance Optimization Rust

Validate nulls explicitly

apache/airflow
5
40858

Always check for null values before using them, and use Python's idiomatic patterns to make these checks concise and ...

Null Handling Python

Use system configuration defaults

apache/airflow
5
40858

Always use the configuration system's default values instead of hardcoding defaults in the code. This ensures consist...

Configurations Python

Maintain code consistency

apache/airflow
5
40858

Ensure consistency throughout the codebase by following established patterns for both UI components and code structur...

Code Style TSX

Internationalize ui text

apache/airflow
5
40858

All user interface text must be internationalized using the appropriate i18n module instead of hardcoded strings. Thi...

Documentation TSX

Handle exceptions with specificity

apache/airflow
5
40858

Use specific exception types and avoid masking errors through overly broad exception handling or default values. This...

Error Handling Python

Documentation best practices

apache/airflow
5
40858

Documentation should follow established best practices to ensure clarity, consistency, and usefulness: 1. **Use prop...

Documentation Other

Verify properties before logging

vercel/ai
5
15590

When logging object properties, always verify that the property names exactly match the actual structure of the objec...

Logging TypeScript

Maintain API naming consistency

vercel/ai
5
15590

When working with AI model interfaces and result objects, ensure consistent property naming across related components...

AI TypeScript

Document API schemas

vercel/ai
5
15590

Add comprehensive JSDoc comments to all API interfaces, types, and schema definitions. This documentation should: 1....

Documentation TypeScript

Consistent provider options

vercel/ai
5
15590

When designing APIs that support multiple providers or service integrations, implement consistent patterns for handli...

API TypeScript

Protect render loop performance

zed-industries/zed
4
62119

Ensure render loop operations stay within frame time budget (typically 16.67ms for 60fps). Avoid expensive computatio...

Performance Optimization Rust

Contextualize don't panic

zed-industries/zed
4
62119

Always provide meaningful context for errors and avoid code that can panic in production. Use `.context()` or `.with_...

Error Handling Rust

Background process blocking operations

zed-industries/zed
4
62119

Always move potentially blocking operations to background threads to maintain UI responsiveness. Use appropriate spaw...

Concurrency Rust

standardize build configurations

facebook/yoga
4
18255

Ensure build configurations are consistently propagated through all build steps and output directories follow standar...

CI/CD Other

optimize memory layout

facebook/yoga
4
18255

Prioritize memory-efficient data structures and algorithms by favoring stack allocation over heap allocation, utilizi...

Algorithms Other

Improve code readability

facebook/yoga
4
18255

Enhance code clarity and maintainability by applying several readability techniques: extract repeated expressions int...

Code Style C++

explicit code declarations

facebook/yoga
4
18255

Always make code declarations explicit and consistent to improve readability and maintainability. This includes speci...

Code Style Other

Evaluate synchronization necessity

facebook/yoga
4
18255

Before implementing thread safety mechanisms like atomic operations or mutexes for global variables, critically asses...

Concurrency C++

Simplify conditional logic

cloudflare/workers-sdk
4
3379

Prefer concise conditional expressions over verbose nested conditions and unnecessary boolean variables. This improve...

Code Style TypeScript

ensure test isolation

cloudflare/workers-sdk
4
3379

Tests must be isolated and not leak state between runs. This includes properly cleaning up mocks, spies, and any glob...

Testing TypeScript

changeset validation standards

cloudflare/workers-sdk
4
3379

Establish comprehensive validation for changesets to ensure reliable release automation. Changesets are required for ...

CI/CD Markdown

HTTP protocol compliance

cloudflare/workerd
4
6989

Ensure HTTP protocol implementations strictly follow RFC standards and handle edge cases correctly. This includes pro...

Networking TypeScript

Connection reuse safety

cloudflare/workerd
4
6989

When implementing network connection reuse, prioritize safety over performance by enforcing sequential request patter...

Networking JavaScript

Add explanatory comments

cloudflare/workerd
4
6989

When code behavior, limitations, or implementation decisions are not immediately obvious from reading the code itself...

Documentation TypeScript

Validate before expensive operations

microsoft/vscode
4
174887

Perform lightweight validation checks before executing expensive operations to avoid unnecessary resource consumption...

Performance Optimization TypeScript

Optimize algorithmic complexity first

microsoft/vscode
4
174887

When implementing algorithms, prioritize reducing computational complexity before adding special cases or optimizing ...

Algorithms TypeScript

Handle configuration value changes

microsoft/vscode
4
174887

Configuration values should be properly initialized and stay updated throughout their lifecycle. Follow these guideli...

Configurations TypeScript

Comprehensive test structure

volcano-sh/volcano
4
4899

Tests should focus on comprehensive coverage of main logic flows rather than trivial functions, use established testi...

Testing Go

Always check errors

volcano-sh/volcano
4
4899

Always check and handle errors returned from function calls, especially API operations, before proceeding with subseq...

Error Handling Go

Document AI model capabilities

vllm-project/vllm
4
51730

Provide clear, comprehensive documentation for AI model capabilities, especially for multimodal features and deployme...

AI Markdown

Use parameterized queries

vitessio/vitess
4
19815

Always use parameterized queries with bind variables instead of string concatenation or formatting when constructing ...

Database Go

Standardize error wrapping patterns

vitessio/vitess
4
19815

Use consistent error wrapping patterns to preserve error context and ensure proper error code propagation. Always: 1....

Error Handling Go

Metric design best practices

vitessio/vitess
4
19815

Design metrics to be reliable and maintainable by following these key principles: 1. Initialize metrics with zero va...

Observability Go

Log levels and clarity

vitessio/vitess
4
19815

Choose appropriate log levels and write clear, meaningful log messages that provide necessary context without creatin...

Logging Go

Explicit nil handling

vitessio/vitess
4
19815

Always handle nil values explicitly in your code to improve clarity and prevent subtle bugs. When a function needs to...

Null Handling Go

Environment-portable configuration management

vitessio/vitess
4
19815

Ensure all configurations are environment-portable and follow current best practices for the target platforms. This i...

Configurations Other

Use optional patterns

vitejs/vite
4
74031

Choose the most appropriate pattern for handling potentially undefined or null values. When designing types, prefer o...

Null Handling TypeScript

Optimize glob operations

vitejs/vite
4
74031

When using glob patterns for file system operations, ensure optimal performance and consistent behavior by configurin...

Algorithms TypeScript

Minimize memory allocations

vitejs/vite
4
74031

Choose methods and patterns that reduce unnecessary memory allocations and object creation to improve performance. Wh...

Performance Optimization TypeScript

Manage configuration inheritance carefully

vitejs/vite
4
74031

When designing configuration systems, establish clear default values and inheritance patterns. Follow these principle...

Configurations TypeScript

Leverage native tooling

vitejs/vite
4
74031

Prioritize native or Rust-based implementations of build tools over their JavaScript counterparts to significantly im...

Performance Optimization Markdown

Evolve APIs with compatibility

vitejs/vite
4
74031

When evolving APIs, maintain backwards compatibility while introducing new features by following a staged deprecation...

API TypeScript

Document code purposefully

vitejs/vite
4
74031

High-quality code documentation improves maintainability and helps other developers understand your intentions. Follo...

Documentation TypeScript

Clean configuration organization

vitejs/vite
4
74031

Organize configuration settings logically and avoid redundancy in project configuration files. Group related options ...

Configurations Json

Break down complex functions

vitejs/vite
4
74031

Improve code readability and maintainability by decomposing large, complex functions into smaller, focused ones. When...

Code Style TypeScript

explicit null checks

vlang/v
4
36582

Always verify that pointers and function return values are not null before dereferencing or using them. This prevents...

Null Handling Other

Document algorithm behavior

vlang/v
4
36582

When implementing or documenting algorithms, clearly specify their behavior, expected outputs, and usage patterns. Th...

Algorithms Markdown

Configure socket blocking behavior

vlang/v
4
36582

Always explicitly configure socket blocking behavior when creating TCP connections, and provide compile-time flags fo...

Networking Other

Use direct documentation style

astral-sh/uv
4
60322

Write documentation using direct, clear language that addresses the reader directly. Follow these style guidelines: ...

Documentation Markdown

Respect connectivity state

astral-sh/uv
4
60322

Applications should gracefully handle different network connectivity states and provide appropriate feedback to users...

Networking Rust

Consistent authentication patterns

astral-sh/uv
4
60322

Design API authentication mechanisms with consistent patterns, clear documentation, and helpful error messages. When ...

API Markdown

Balance test performance considerations

astral-sh/uv
4
60322

When writing tests, consider both thoroughness and execution time. For operations with significant overhead (like Pyt...

Testing Rust

optimize algorithmic complexity

Unstructured-IO/unstructured
4
12116

When implementing algorithms, prioritize performance by avoiding unnecessary computations and choosing efficient appr...

Algorithms Python

Document configuration reasoning

Unstructured-IO/unstructured
4
12117

Always document the reasoning behind configuration decisions, especially for temporary settings like dependency pins,...

Configurations Other

Database schema compliance

Unstructured-IO/unstructured
4
12117

Ensure database integrations use correct field names, data types, and schema conventions specific to each database sy...

Database Python

workspace dependency consistency

unionlabs/union
4
74800

All internal project dependencies should use workspace configuration instead of direct path or git references to ensu...

Configurations Toml

Validate before type conversions

unionlabs/union
4
74800

Always validate input constraints and use safe conversion methods before performing type conversions that could fail ...

Null Handling Rust

Use structured logging fields

unionlabs/union
4
74800

Prefer structured logging fields over string formatting in tracing logs to improve searchability, parsing, and consis...

Logging Rust

Effect-based API clients

unionlabs/union
4
74800

Use Effect-based HTTP clients with specific error types instead of throwing generic exceptions or relying on third-pa...

API TypeScript

Configuration file completeness

unionlabs/union
4
74800

Ensure all configuration files contain required fields, maintain proper structure, and follow consistent formatting s...

Configurations Json

API interface design

unionlabs/union
4
74800

Design APIs with clean abstractions, logical data organization, and proper layer separation. Structure interfaces to ...

API Other

React rendering safeguards

shadcn-ui/ui
4
90568

This standard ensures your React components render correctly and efficiently, preventing common pitfalls that cause e...

React TSX

Provide actionable errors

microsoft/typescript
4
105378

Error messages should not only identify problems but also guide developers toward solutions. Include specific steps, ...

Error Handling TypeScript

Preserve API compatibility first

microsoft/typescript
4
105378

When modifying existing APIs, maintain backwards compatibility by adding new overloads rather than directly changing ...

API TypeScript

Consistent type algorithms

microsoft/typescript
4
105378

Implement consistent algorithms for type compatibility and comparison across different data structures. When developi...

Algorithms Txt

Cache expensive computed values

microsoft/typescript
4
105378

Cache frequently accessed or computed values to avoid redundant calculations and property lookups. This applies to: 1...

Performance Optimization TypeScript

API documentation clarity

astral-sh/ty
4
11919

Ensure API documentation, including changelogs and feature descriptions, prioritizes user understanding over implemen...

API Markdown

Validate configuration consistency

twentyhq/twenty
4
35477

Ensure configuration values have consistent defaults across all systems and validate configuration structures using s...

Configurations TypeScript

Avoid expensive repeated operations

twentyhq/twenty
4
35477

Identify and eliminate expensive operations that are performed repeatedly, such as object creation in loops, redundan...

Performance Optimization TypeScript

Keep build tooling updated

vercel/turborepo
4
28115

Maintain up-to-date build and CI/CD tooling to leverage the latest features, performance improvements, and security p...

CI/CD Json

Define API boundaries

vercel/turborepo
4
28115

Clearly specify what constitutes your public API contract to manage versioning expectations and documentation require...

API Other

Configuration precision matters

vercel/turborepo
4
28115

Ensure configuration files are precise and stable to prevent unexpected build failures and runtime issues. This inclu...

Configurations Json

Choose logging levels wisely

vercel/turborepo
4
28115

Select appropriate logging levels based on the frequency and importance of the logged operation. Use `trace` for high...

Logging Rust

Boundary case handling

vercel/turborepo
4
28115

Always handle boundary conditions explicitly in algorithms to prevent unexpected behavior. When implementing algorith...

Algorithms Rust

validate algorithm boundaries

tree-sitter/tree-sitter
4
21799

Always validate boundary conditions and termination criteria in algorithms to prevent infinite loops, out-of-bounds a...

Algorithms C

Use meaningful prefixed names

tree-sitter/tree-sitter
4
21799

Names should be semantically meaningful and properly prefixed to prevent namespace conflicts. In C, enum variants and...

Naming Conventions Other

Simplify conditional logic

tree-sitter/tree-sitter
4
21799

Improve code readability by simplifying complex conditional expressions and control flow structures. Factor out repea...

Code Style C

Respect environment overrides

tree-sitter/tree-sitter
4
21799

Build systems and configuration scripts must respect standard environment variables and provide proper override mecha...

Configurations Other

Provide clear error context

tree-sitter/tree-sitter
4
21799

Always provide meaningful, specific error messages that help users understand what went wrong and why. Use descriptiv...

Error Handling Rust

parameter type clarity

tree-sitter/tree-sitter
4
21799

Design API parameters using specific, intention-revealing types rather than generic or ambiguous ones. This improves ...

API Rust

Optimize CI workflow syntax

tree-sitter/tree-sitter
4
21799

Write cleaner and more maintainable CI/CD workflows by following established syntax patterns and best practices. Use ...

CI/CD Yaml

Conditional compilation guards

tree-sitter/tree-sitter
4
21799

Always use appropriate preprocessor directives to guard platform-specific, version-dependent, or feature-specific cod...

Configurations C

validate input sanitization

traefik/traefik
4
55772

Always maintain input sanitization and validation mechanisms to prevent security vulnerabilities. Disabling built-in ...

Security Markdown

Network information extraction

traefik/traefik
4
55772

When extracting network information from connections (such as remote addresses, proxy IPs, or forwarded headers), imp...

Networking Go

API interface simplification

traefik/traefik
4
55772

Design APIs with clean, minimal interfaces that encapsulate internal logic and avoid exposing unnecessary complexity ...

API Go

Secure unsafe code

tokio-rs/tokio
4
28989

When working with unsafe code, follow these practices to minimize security vulnerabilities: 1. **Minimize scope**: L...

Security Rust

Optimize algorithmic efficiency

tokio-rs/tokio
4
28981

Pay careful attention to operations inside loops and recursive functions to avoid unexpected algorithmic complexity. ...

Algorithms Rust

Memory ordering needs justification

tokio-rs/tokio
4
28981

When using atomic operations, explicitly justify the choice of memory ordering. Each use of a memory ordering should ...

Concurrency Rust

Granular feature flags

tokio-rs/tokio
4
28981

Feature flags should be designed with granularity to ensure dependencies are only required when absolutely necessary....

Configurations Toml

Document null safety assumptions

tokio-rs/tokio
4
28981

When writing code that handles potentially null, undefined, or uninitialized values, always document safety assumptio...

Null Handling Rust

Code block formatting standards

tokio-rs/tokio
4
28981

When documenting code examples and shell commands in project documentation, follow these formatting standards to ensu...

Documentation Markdown

Prefer explicit API design

huggingface/tokenizers
4
9868

When designing APIs, favor simple and explicit interfaces over flexible but complex ones. This reduces cognitive load...

API Rust

Choose semantically clear identifiers

huggingface/tokenizers
4
9868

Select parameter and method names that accurately describe their purpose and behavior, avoiding ambiguous terms that ...

Naming Conventions Rust

Choose optimal data structures

huggingface/tokenizers
4
9868

Select data structures based on their algorithmic complexity and usage patterns. Consider the tradeoffs between diffe...

Algorithms Rust

Resource cleanup on errors

hashicorp/terraform
4
45532

Always ensure proper resource cleanup in error paths to prevent leaks. Use defer functions with explicit error checki...

Error Handling Go

Guard shared state

hashicorp/terraform
4
45532

Consistently protect shared state with appropriate synchronization mechanisms and ensure proper cleanup to prevent ra...

Concurrency Go

Explicit protocol interfaces

hashicorp/terraform
4
45532

Design protocol interfaces with explicit behavior definitions rather than relying on implicit conventions. Clearly sp...

API Other

Ensure test isolation

hashicorp/terraform
4
45532

Tests should be completely isolated from each other and clean up after themselves to prevent interference. 1. **Use...

Testing Go

Consistent documentation formatting

hashicorp/terraform
4
45532

Maintain consistent style in documentation files to improve readability and professionalism. Specifically: 1. **Comm...

Code Style Other

Configuration override precedence

hashicorp/terraform
4
45532

When designing systems with configurations that can be specified at multiple levels (global vs local, environment vs ...

Configurations Go

Clarify test documentation

hashicorp/terraform
4
45532

Ensure all testing-related documentation is clear, accurate, and user-focused. Use precise terminology when describin...

Testing Other

Choose appropriate API types

hashicorp/terraform
4
45532

Select the simplest data types that satisfy requirements when designing API signatures. Avoid using complex types (li...

API Go

Validate before configuration generation

microsoft/terminal
4
99242

Always validate system capabilities and existing configuration state before generating new configuration entries or p...

Configurations C++

Safe optional handling

microsoft/terminal
4
99242

Always use safe patterns when working with optional, nullable, or potentially empty types. Avoid direct comparisons w...

Null Handling C++

Safe null handling patterns

microsoft/terminal
4
99242

Always use consistent and safe patterns when dealing with potentially null or undefined values. This includes using s...

Null Handling Other

Reuse defined resources consistently

microsoft/terminal
4
99242

Always reuse existing defined constants, resources, and reusable components instead of duplicating values or creating...

Code Style Other

Minimize reference counting overhead

microsoft/terminal
4
99242

Avoid unnecessary reference counting operations that can impact performance, especially in frequently called code pat...

Performance Optimization Other

Implement defensive validation

microsoft/terminal
4
99242

Always validate inputs, check boundaries, and avoid relying on undocumented API behavior or assumptions about how fun...

Error Handling C++

API parameter explicitness

microsoft/terminal
4
99242

Always use correct and explicit parameters when calling APIs, rather than relying on defaults or passing incorrect va...

API C++

Tensor-aware control flow

tensorflow/tensorflow
4
190625

When working with TensorFlow tensors, avoid using Python comparison operators (`<`, `>=`, `==`) or conditional checks...

AI Python

Complete docstring structure

tensorflow/tensorflow
4
190625

Function documentation should follow a consistent structure that includes all necessary components to be complete and...

Documentation Python

Centralize configuration settings

tensorflow/tensorflow
4
190625

Place configuration settings in centralized, appropriate locations rather than duplicating them across multiple files...

Configurations Other

Trust GetX accessors

temporalio/temporal
4
14953

When working with protocol buffer messages or similar objects that provide GetX() accessor methods, avoid redundant n...

Null Handling Go

Safe lock usage patterns

temporalio/temporal
4
14953

Follow these critical patterns when using locks to prevent deadlocks, resource leaks, and performance issues: 1. Use...

Concurrency Go

Ensure deterministic execution

temporalio/temporal
4
14953

When working with Temporal workflows, maintaining deterministic behavior is critical for reliable replay and executio...

Temporal Go

Dynamic config usage principles

temporalio/temporal
4
14953

Use dynamic configuration selectively and effectively by following these principles: 1. Only use dynamic config for ...

Configurations Go

Consistent naming patterns

temporalio/temporal
4
14953

Maintain consistent naming patterns across related components and services. When implementing equivalent functionalit...

Naming Conventions Other

Synchronization primitive selection

gravitational/teleport
4
19109

Choose appropriate synchronization primitives and ensure proper protection of shared state to avoid race conditions a...

Concurrency Go

prefer simpler patterns

gravitational/teleport
4
19109

Choose simpler, more readable code patterns over complex alternatives to improve maintainability and reduce cognitive...

Code Style TSX

Optimize computational complexity

gravitational/teleport
4
19109

Always analyze the computational complexity of algorithms and choose efficient implementations to avoid performance b...

Algorithms Go

Authenticated health checks

gravitational/teleport
4
19109

When implementing health checks for external services, verify the complete communication stack rather than just basic...

Networking Markdown

Add contextual logging

gravitational/teleport
4
19109

Add informative log messages with sufficient context to help operators diagnose issues, understand system state, and ...

Logging Go

Mathematical precision matters

tensorflow/swift
4
6136

When implementing mathematical algorithms, ensure precise terminology and correct implementation of mathematical conc...

Algorithms Markdown

Document environment variables

tensorflow/swift
4
6136

When using configurable components, clearly document all relevant environment variables and their effects. Include ex...

Configurations Other

state boundary management

sveltejs/svelte
4
83580

Ensure proper state management when passing reactive values across component and function boundaries. State reactivit...

React Markdown

Simplify and deduplicate code

sveltejs/svelte
4
83580

Write concise, non-redundant code by eliminating unnecessary duplication and using simpler syntax where possible. Thi...

Code Style TypeScript

Documentation clarity standards

sveltejs/svelte
4
83580

Ensure technical documentation clearly distinguishes between similar but different concepts, uses precise language, a...

Vue Markdown

Complete code examples

sveltejs/svelte
4
83580

Ensure all code examples are complete, functional, and accurately demonstrate the intended concepts. Code examples sh...

Code Style Markdown

API flexibility balance

sveltejs/svelte
4
83580

When designing APIs, carefully balance simplicity for common use cases with flexibility for advanced scenarios. Consi...

API JavaScript

Secure authentication flows

supabase/supabase
4
86070

Design APIs with secure authentication flows by following proper error handling and documentation practices. Avoid no...

API Other

Protect sensitive API keys

supabase/supabase
4
86070

Never expose keys with elevated privileges (such as `service_role` or secret keys) in client-side code. These keys ca...

Security Other

Pin dependency versions

supabase/supabase
4
86070

Always specify exact versions for dependencies in your configuration files and import statements to ensure consistent...

Configurations Other

Maintain network controls

supabase/supabase
4
86070

Create maintainable and clearly documented network access controls. Instead of hardcoding network restrictions, use d...

Networking Other

Maintain code consistency

supabase/supabase
4
86070

Ensure consistent code organization, naming conventions, and structure throughout the codebase: 1. Use identical par...

Code Style Other

Handle external operations safely

supabase/supabase
4
86070

Always implement explicit error handling for external operations such as network requests, database queries, and API ...

Error Handling TypeScript

Follow hooks rules

supabase/supabase
4
86070

Adhere strictly to React hooks rules and best practices to ensure your components behave correctly and predictably. C...

React TSX

Document intent clearly

supabase/supabase
4
86070

Add clear documentation that explains not just what code does, but why certain approaches were chosen. This applies t...

Documentation TSX

organize code properly

browserbase/stagehand
4
16443

Maintain clear code organization by placing code in appropriate files, directories, and modules. Respect module bound...

Code Style TypeScript

API parameter design

browserbase/stagehand
4
16443

Design API methods with structured object parameters instead of ordered parameters or loose typing. Use proper TypeSc...

API TypeScript

Use environment-independent defaults

spring-projects/spring-framework
4
58382

When designing configuration options, avoid relying on environment-specific defaults such as system character encodin...

Configurations Java

Spring annotation best practices

spring-projects/spring-framework
4
58382

When working with Spring annotations, follow these guidelines to avoid common issues: 1. **Use interface types for d...

Spring Other

Minimize lock contention

spring-projects/spring-framework
4
58382

When implementing thread-safe code, minimize the scope and duration of locks to reduce contention and improve perform...

Concurrency Java

Consistent style conventions

spring-projects/spring-framework
4
58382

Apply consistent formatting and organization conventions throughout the codebase to enhance readability and maintaina...

Code Style Other

Explicit security documentation

spring-projects/spring-boot
4
77637

Always provide explicit and accurate documentation for security-related configurations, including: 1. Use proper con...

Security Other

Session-specific configuration access

apache/spark
4
41554

Always access configuration through the appropriate session context rather than using global configuration access. Th...

Configurations Other

self-documenting code practices

apache/spark
4
41554

Write code that explains itself through clear structure and meaningful names, while adding targeted comments only whe...

Documentation Other

Resource cleanup responsibility

apache/spark
4
41554

Ensure proper resource management by clearly defining cleanup responsibilities and implementing robust cleanup patter...

Error Handling Other

Externalize configuration values

apache/spark
4
41554

Avoid hardcoding configuration values directly in code. Instead, make them externally configurable through appropriat...

Configurations Python

avoid null in Scala

apache/spark
4
41554

Avoid using null values in Scala code and prefer Option types for representing optional values. Null usage can lead t...

Null Handling Other

Use existing API utilities

SigNoz/signoz
4
23369

Always leverage existing utility hooks, constants, and navigation methods instead of implementing manual solutions. T...

API TSX

REST API conventions

SigNoz/signoz
4
23369

Follow standard REST API conventions for HTTP methods, status codes, endpoint structure, and response completeness. U...

API Go

ensure migration idempotency

SigNoz/signoz
4
23369

Database migrations must be designed to run safely multiple times without causing errors or data corruption. This inv...

Migrations Go

Avoid inline styles

SigNoz/signoz
4
23369

Move all inline styles to dedicated CSS/SCSS files to improve maintainability, consistency, and separation of concern...

Code Style TSX

Verify algorithmic correctness

sgl-project/sglang
4
17245

Ensure algorithmic implementations are correct before applying optimizations or complex conditional logic. This is es...

Algorithms Python

Use Optional types safely

sgl-project/sglang
4
17245

Always use proper nullable type annotations and safe access patterns to prevent runtime errors from null/undefined va...

Null Handling Python

Prevent race conditions

sgl-project/sglang
4
17245

Ensure atomic operations and proper synchronization when multiple threads or processes access shared state. Race cond...

Concurrency Python

Optimize cache performance

sgl-project/sglang
4
17245

Prioritize cache performance by leveraging proven optimization techniques and avoiding performance anti-patterns. Use...

Caching Python

standardize log output methods

serverless/serverless
4
46810

Use `process.stdout.write` instead of `console.log` for controlled logging output to avoid linter issues and ensure c...

Logging JavaScript

Use semantically meaningful names

oraios/serena
4
14465

Choose names that clearly convey purpose and intent rather than generic or ambiguous terms. Prefer specific, descript...

Naming Conventions Python

Use proper logging practices

oraios/serena
4
14465

Always use logging instead of print statements, and choose appropriate log levels to avoid log spam. Print statements...

Logging Python

explicit None handling

oraios/serena
4
14465

When operations cannot complete successfully or return meaningful results, explicitly return None rather than raising...

Null Handling Python

Exception chaining practices

oraios/serena
4
14465

Always use exception chaining with `raise ... from e` when re-raising or wrapping exceptions to preserve the original...

Error Handling Python

Ensure complete documentation quality

oraios/serena
4
14465

Documentation should be comprehensive, clear, and provide all necessary context for understanding and using the code ...

Documentation Python

Thread management best practices

getsentry/sentry
4
41297

When working with threads or thread pools in concurrent code, follow these practices to improve reliability and debug...

Concurrency Python

Raise contextual error types

getsentry/sentry
4
41297

Always raise specific, contextual exception types instead of generic exceptions. Include relevant error details that ...

Error Handling Python

Precise dependency versioning

getsentry/sentry-php
4
1873

When specifying dependency version constraints in configuration files, be deliberate about minimum versions based on ...

Configurations Json

Include practical examples

getsentry/sentry-php
4
1873

Enhance technical documentation with clear, practical code examples that demonstrate usage. This applies to: 1. Chan...

Documentation Markdown

Flexible configuration formats

getsentry/sentry-php
4
1873

Support multiple configuration formats where appropriate (string, callable, object) to accommodate different framewor...

Configurations PHP

Balance CI test coverage

getsentry/sentry-php
4
1873

Configure CI workflows to optimize both comprehensive testing and resource usage. For resource-intensive tests that m...

CI/CD Yaml

Optimize React hook patterns

getsentry/sentry
4
41297

Design React hooks with performance and maintainability in mind by following these key principles: 1. Minimize useEf...

React TSX

Explicit optional type declarations

getsentry/sentry
4
41297

Always explicitly declare optional types in interfaces and function parameters rather than relying on runtime checks ...

Null Handling TSX

validate environment variable usage

semgrep/semgrep
4
12598

Always validate environment variables with proper fallback logic and avoid unnecessary usage in tests or when default...

Configurations Python

Use appropriate log levels

semgrep/semgrep
4
12598

Choose log levels based on the intended audience to prevent user-visible noise. Most logging should use `Logs.debug` ...

Logging Other

Simplify complex logic

semgrep/semgrep
4
12598

Break down complex code structures into simpler, more readable forms. Long indented blocks, verbose conditionals, and...

Code Style Python

Document configuration choices

semgrep/semgrep
4
12598

Add explanatory comments for non-obvious configuration settings, especially when they deviate from defaults or serve ...

Configurations Other

Document code purpose

semgrep/semgrep
4
12598

Ensure that code elements have clear documentation explaining their purpose, behavior, and context. This includes fun...

Documentation Python

Design consistent tracing interfaces

semgrep/semgrep
4
12598

When implementing observability features like tracing, prioritize consistent and extensible API design. Use structure...

Observability Other

CI workflow optimization

semgrep/semgrep
4
12598

Optimize CI/CD workflows by prioritizing reliability over convenience and leveraging built-in platform features. When...

CI/CD Yaml

Benchmark performance assumptions

semgrep/semgrep
4
12598

Always validate performance concerns with actual measurements before making optimization decisions. Avoid making assu...

Performance Optimization Other

Add CI safety checks

semgrep/semgrep
4
12598

Implement defensive checks and error handling in CI/CD workflows to prevent failures and ensure robust operations. Th...

CI/CD Other

Ensure deterministic resume behavior

strands-agents/sdk-python
4
4044

When implementing persistence and resume functionality in durable execution systems, ensure that state is persisted a...

Temporal Python

Extract complex logic helpers

rust-lang/rust
4
105254

Complex or duplicated logic should be extracted into well-named helper functions to improve code readability and main...

Code Style Rust

Contextual error messages

rust-lang/rust
4
105254

Error messages should provide specific context about the error and guide users toward solutions. When reporting synta...

Error Handling Other

Structure configuration options

dotnet/runtime
4
16578

Design and document configuration options (feature flags, environment variables, conditional compilation) to be clear...

Configurations C++

Maintain consistent formatting

dotnet/runtime
4
16578

Ensure consistent formatting and organization throughout the codebase to improve readability and maintainability. Thi...

Code Style Other

Decompose complex algorithms

dotnet/runtime
4
16578

When implementing algorithms, break down complex methods that handle multiple concerns into smaller, more focused met...

Algorithms C

Choose appropriate error mechanisms

dotnet/runtime
4
16578

Use the right error handling mechanism for each scenario: exceptions for recoverable situations, assertions only for ...

Error Handling C++

Support configuration extension patterns

astral-sh/ruff
4
40619

When designing configuration systems, provide both replacement and extension options for list-based settings to give ...

Configurations Rust

Maintain focused module structure

astral-sh/ruff
4
40619

Keep modules focused and well-organized by grouping related functionality together and splitting large files into log...

Code Style Rust

Leverage existing API utilities

astral-sh/ruff
4
40619

When implementing or consuming APIs, always prefer using existing utility methods and abstractions over manual implem...

API Rust

test real user interactions

TanStack/router
4
11590

Write tests that simulate actual user behavior and verify real rendering outcomes rather than testing implementation ...

Testing TSX

Maintain backward compatibility

TanStack/router
4
11590

When evolving APIs, always maintain backward compatibility to avoid breaking existing user code. Support both old and...

API TSX

Ensure documentation clarity

TanStack/router
4
11590

Documentation should be clear, accurate, and consistently structured to provide maximum value to developers. Avoid ov...

Documentation Markdown

API backward compatibility

TanStack/router
4
11590

When updating existing APIs, maintain backward compatibility by deprecating old options rather than introducing break...

API Markdown

Robust error handling

RooCodeInc/Roo-Code
4
17288

Implement comprehensive error handling to prevent crashes and aid debugging. This includes: 1. **Use try/catch block...

Error Handling TSX

Prevent unnecessary processing

RooCodeInc/Roo-Code
4
17288

Optimize React component performance by minimizing unnecessary operations that can slow down your application: 1. **...

Performance Optimization TSX

Optimize React components

RooCodeInc/Roo-Code
4
17288

Apply these React optimization techniques to improve component performance and maintainability: 1. **Use stable, uni...

React TSX

Optimize algorithm implementations

RooCodeInc/Roo-Code
4
17288

When implementing algorithms, ensure they are both efficient and correct across all input cases. Key considerations: ...

Algorithms TypeScript

Names reflect semantic purpose

RooCodeInc/Roo-Code
4
17288

Identifiers (variables, properties, keys, IDs) should accurately reflect their semantic purpose and context. Names sh...

Naming Conventions TSX

Consistent output path specification

RooCodeInc/Roo-Code
4
17288

Configuration files defining operations that generate data outputs must always include a `` element specifyi...

Configurations Xml

Configuration consistency check

RooCodeInc/Roo-Code
4
17288

Ensure that configuration files and settings are consistent with their intended functionality and maintain portabilit...

Configurations Other

Conditional debug logging

RooCodeInc/Roo-Code
4
17288

Remove or conditionally disable console.log and console.debug statements before committing code to production. These ...

Logging TSX

model-appropriate configuration

smallcloudai/refact
4
3114

Ensure AI models use configuration settings that match their specific architecture and requirements. Different model ...

AI Python

Simplify configuration setup

remix-run/react-router
4
55270

Avoid redundant configuration parameters and prefer automated solutions over manual maintenance. Remove configuration...

Configurations JavaScript

Provide explicit error handling

remix-run/react-router
4
55270

Create custom, descriptive errors instead of allowing external dependencies or systems to fail with generic messages....

Error Handling TypeScript

prefer built-in React types

remix-run/react-router
4
55270

Favor React's built-in types over custom interfaces when possible, and consolidate to standard library types for bett...

React TypeScript

API backward compatibility

remix-run/react-router
4
55270

When evolving APIs, maintain backward compatibility by preserving existing public interfaces while adding new functio...

API TSX

Optimize hot paths

facebook/react
4
237000

In performance-critical code paths that execute frequently, optimize to reduce unnecessary operations that can impact...

Performance Optimization JavaScript

proper synchronization practices

facebook/react-native
4
123178

Ensure thread safety by using appropriate synchronization mechanisms and understanding thread context. When working w...

Concurrency Kotlin

preserve component patterns

facebook/react-native
4
123178

When refactoring React components, maintain essential component patterns including type annotations, ref forwarding c...

React JavaScript

organize tests clearly

facebook/react-native
4
123178

Structure tests with clear organization, focused scope, and minimal duplication to improve maintainability and debugg...

Testing JavaScript

optimize algorithmic efficiency

facebook/react-native
4
123178

When implementing algorithms, especially in performance-critical paths like scroll handlers or layout methods, priori...

Algorithms Java

minimize public API surface

facebook/react-native
4
123178

Carefully evaluate whether functionality needs to be exposed as public API. Keep implementations private when they're...

API Other

Eliminate unnecessary computations

facebook/react-native
4
123178

Identify and remove redundant operations, unnecessary copies, and repeated computations that add algorithmic overhead...

Algorithms Other

descriptive specific naming

facebook/react-native
4
123178

Use descriptive and specific names that clearly communicate purpose and context. Method names should indicate their p...

Naming Conventions JavaScript

dependency management strategy

facebook/react-native
4
123178

When configuring dependencies in package.json, follow these strategic principles to ensure stable and maintainable pa...

Configurations Json

Avoid synchronous main dispatch

facebook/react-native
4
123178

Avoid using `RCTUnsafeExecuteOnMainQueueSync` and similar synchronous main queue dispatch methods as they can cause d...

Concurrency Other

Balance constraints with flexibility

facebook/react
4
237000

When designing APIs, carefully evaluate constraints imposed on consumers. Each limitation should serve a clear purpos...

API JavaScript

Understand query method behavior

rails/rails
4
57027

When working with database queries in Active Record, it's essential to understand the precise behavior of query metho...

Database Markdown

Optimize cache headers

rails/rails
4
57027

Use appropriate HTTP cache headers based on content mutability. For immutable assets (like digest-stamped files), app...

Caching Other

Human-readable configuration values

rails/rails
4
57027

When writing configuration files, prioritize human readability and maintainability by using descriptive expressions i...

Configurations Other

Efficient data processing

rails/rails
4
57027

When implementing algorithms that process large data streams or collections, use a chunking approach rather than proc...

Algorithms Ruby

Contextual error messages

rails/rails
4
57027

Error messages should provide sufficient context to understand and debug the problem efficiently. Include both the ex...

Error Handling Ruby

Content security policy configuration

rails/rails
4
57027

Implement Content Security Policy (CSP) configurations appropriately for your application's context. Use report-only ...

Security Ruby

Validate database connections explicitly

quarkusio/quarkus
4
14667

Always implement explicit database connection validation strategies to ensure robust application behavior during star...

Database Java

Secure authentication defaults

quarkusio/quarkus
4
14667

Configure authentication mechanisms with secure default settings to prevent security vulnerabilities. When implementi...

Security Java

Documentation style consistency

quarkusio/quarkus
4
14667

Maintain consistent documentation style to improve readability and user experience: 1. **Use precise terminology**: ...

Documentation Other

Avoid wildcard imports

quarkusio/quarkus
4
14667

Wildcard (star) imports like `import java.util.*;` are prohibited in the codebase as they reduce code readability and...

Code Style Java

Avoid unnecessary allocations

quarkusio/quarkus
4
14667

Minimize object creation and memory allocations, especially in frequently called methods and hot code paths, to reduc...

Performance Optimization Java

Automate style enforcement

quarkusio/quarkus
4
14667

Implement automated code style enforcement using complementary tools rather than relying on manual reviews. Configure...

Code Style Xml

Optimize memory usage

pytorch/pytorch
4
91345

Limit memory consumption in performance-critical paths by conditionally creating large data structures or deferring a...

Performance Optimization C++

Normalize configuration parameters

pytorch/pytorch
4
91345

Always normalize configuration inputs (especially environment variables) by removing whitespace and applying consiste...

Configurations Python

Eliminate redundant operations

pytorch/pytorch
4
91345

Avoid unnecessary operations that can impact performance. This includes: 1. Redundant data transformations: - Loa...

Performance Optimization Python

Design for compatibility

pytorch/pytorch
4
91345

When evolving APIs, prioritize backward compatibility to minimize disruption for existing users. Add new functionalit...

API C++

Choose appropriate exceptions

pytorch/pytorch
4
91345

Select the proper exception type based on the error scenario to provide clearer error handling and better debugging e...

Error Handling C++

Write targeted, specific tests

pydantic/pydantic
4
24377

Tests should validate specific, well-defined behaviors with clear assertions that directly relate to what's being tes...

Testing Python

Simple defaults, flexible overrides

pydantic/pydantic
4
24377

Design APIs with intuitive defaults for common use cases while providing specialized options for edge cases. This app...

API Python

Semantic over syntactic

pydantic/pydantic
4
24377

Choose names that clearly communicate the purpose and behavior of your code elements, focusing on semantic meaning ra...

Naming Conventions Python

Safe attribute access pattern

pydantic/pydantic
4
24377

Always use safe attribute access patterns to handle potentially null or undefined attributes. Instead of direct attri...

Null Handling Python

Document configuration relationships

pydantic/pydantic
4
24377

When designing configuration options that interact with each other, clearly document these relationships and consider...

Configurations Python

Consistent configuration patterns

pydantic/pydantic
4
24377

When working with configurations in Pydantic models, maintain consistency by using `ConfigDict()` instead of plain di...

Configurations Markdown

Balance documentation thoroughness

pydantic/pydantic
4
24377

Documentation should balance completeness with avoiding redundancy. When documenting complex features: 1. Centralize...

Documentation Markdown

Service layer abstraction

prowler-cloud/prowler
4
11834

Separate business logic and external service interactions from API views by using dedicated service layers. This impr...

API Python

Parameterize security commands

prowler-cloud/prowler
4
11834

When writing security-related CLI commands or remediation steps, always use standardized parameter placeholders (e.g....

Security Json

Memory usage optimization

prowler-cloud/prowler
4
11834

Optimize memory usage in high-performance applications by implementing explicit memory management techniques. This in...

Performance Optimization Python

Maintain component consistency

prowler-cloud/prowler
4
11834

Use a consistent approach when working with components to improve code maintainability and ensure visual coherence th...

Code Style TSX

Ensure migration compatibility

prowler-cloud/prowler
4
11834

When modifying database schemas through migrations, ensure compatibility with existing data. For new required fields,...

Migrations Python

Document configuration variables

prowler-cloud/prowler
4
11834

Always provide complete documentation for configuration variables, including their exact format, purpose, and behavio...

Configurations Markdown

Document authentication requirements

prowler-cloud/prowler
4
11834

When creating or modifying APIs, always provide comprehensive documentation for authentication methods and prerequisi...

API Markdown

special value handling

prometheus/prometheus
4
59616

Algorithms must explicitly define and consistently handle special values like NaN, infinity, and edge cases across al...

Algorithms Markdown

prevent concurrent data races

prometheus/prometheus
4
59616

Always analyze shared data access patterns to prevent race conditions in concurrent code. Use appropriate synchroniza...

Concurrency Go

maintain API consistency

prometheus/prometheus
4
59616

When designing or modifying APIs, ensure they follow established patterns and conventions within the codebase rather ...

API Go

ensure mathematical correctness

prometheus/prometheus
4
59616

When implementing or testing algorithms, ensure mathematical relationships and constraints are maintained throughout ...

Algorithms Other

Configure dependency management comprehensively

prometheus/prometheus
4
59616

When configuring dependency management tools like Renovate, ensure comprehensive setup that includes modern syntax, s...

Configurations Json

Complete observability documentation

prometheus/prometheus
4
59616

Ensure documentation for observability systems provides comprehensive information including all required permissions,...

Observability Markdown

Check nil at usage

prometheus/prometheus
4
59616

Perform null and validity checks at the point where values are actually used, rather than defensively initializing or...

Null Handling Go

proper async error testing

prisma/prisma
4
42967

When testing for expected errors in async code, use Jest's built-in async error testing patterns instead of try-catch...

Testing TypeScript

Ensure concurrent resource cleanup

prisma/prisma
4
42967

Always ensure proper cleanup of concurrent resources like semaphores, transactions, and async operations, even when e...

Concurrency TypeScript

validate configuration changes

prettier/prettier
4
50772

Configuration files require careful validation to ensure they work as intended and don't introduce unintended side ef...

Configurations Other

Measure performance impacts

prettier/prettier
4
50772

Always benchmark and measure actual performance impacts before making optimization decisions, rather than relying on ...

Performance Optimization JavaScript

maintain API backward compatibility

prettier/prettier
4
50772

When evolving public APIs, prioritize backward compatibility and avoid breaking changes to existing interfaces. Suppo...

API JavaScript

Cache correctness validation

prettier/prettier
4
50772

Ensure caching implementations store the correct data and use appropriate strategies for the context. Cache should st...

Caching JavaScript

API documentation clarity

prettier/prettier
4
50772

Ensure API documentation provides clear, accurate, and comprehensive information for developers. This includes precis...

API Markdown

Split complex migrations incrementally

PostHog/posthog
4
28460

Break complex schema changes into multiple, sequential migrations to ensure deployment safety and proper data handlin...

Migrations Python

RESTful endpoint organization

PostHog/posthog
4
28460

API endpoints should be properly organized around resources and follow RESTful principles. Avoid placing aggregation ...

API Python

optimize ORM queries

PostHog/posthog
4
28460

Optimize Django ORM queries to prevent performance issues and unnecessary database load. Avoid N+1 query problems by ...

Database Python

Configuration constants management

PostHog/posthog
4
28460

Extract configuration values into well-named constants instead of using magic numbers or inline values. Use consisten...

Configurations Python

Check existence before operations

PostHog/posthog
4
28460

Always verify that keys, IDs, indices, or other required values exist before performing operations that depend on the...

Null Handling Python

Capture broad exceptions

PostHog/posthog
4
28460

When using broad exception handlers like `except Exception:`, always capture and log the exception to avoid silent fa...

Error Handling Python

API response standardization

PostHog/posthog
4
28460

Ensure API responses follow established patterns and use proper typing. Always use standardized response types like `...

API TypeScript

AI context efficiency

PostHog/posthog
4
28460

When providing context to LLMs, choose the most efficient method based on the nature and size of the context data. Fo...

AI Python

Prevent deadlock conditions

pola-rs/polars
4
34296

Carefully manage resource acquisition and release to prevent deadlocks in concurrent code. Deadlocks typically occur ...

Concurrency Rust

Prevent cryptic errors

pola-rs/polars
4
34296

Always implement proper validation and type checking to prevent cryptic error messages. When errors do occur, provide...

Error Handling Python

Organize tests efficiently

pola-rs/polars
4
34296

Write maintainable, well-structured tests that are easy to understand and extend. Tests should remain simple and focu...

Testing Python

Optimize data transformations

pola-rs/polars
4
34296

When implementing data processing operations, avoid unnecessary data transformations, copies, and conversions that ca...

Database Rust

Design for operation flexibility

pola-rs/polars
4
34296

When implementing algorithms that operate on data structures (particularly arrays, lists, or collections), design the...

Algorithms Python

Defer expensive operations

pola-rs/polars
4
34296

Avoid triggering expensive computations prematurely in your code. Operations like `collect()`, intensive IO operation...

Performance Optimization Python

Choose appropriate abstractions

pola-rs/polars
4
34296

When designing APIs, select data types and patterns that match how they will be consumed while facilitating long-term...

API Rust

Use appropriate logging levels

python-poetry/poetry
4
33496

Use debug-level logging for technical details and error information that aids developer troubleshooting, while keepin...

Logging Python

Document configuration clearly

python-poetry/poetry
4
33496

Configuration files, hooks, and settings should include clear, accurate descriptions that explain their purpose and b...

Configurations Yaml

Complete config setting integration

python-poetry/poetry
4
33496

When adding new configuration settings, ensure they are properly integrated across all required system components. Co...

Configurations Python

Cache expensive computations

python-poetry/poetry
4
33496

Identify expensive operations that may be called multiple times and implement appropriate caching mechanisms to avoid...

Performance Optimization Python

API backwards compatibility

python-poetry/poetry
4
33496

When evolving public APIs, prioritize backwards compatibility through proper deprecation strategies and careful inter...

API Python

validate algorithmic edge cases

microsoft/playwright
4
76113

Algorithms must be thoroughly tested at boundary conditions and edge cases to prevent subtle bugs. Pay special attent...

Algorithms TypeScript

testing best practices

microsoft/playwright
4
76113

Choose testing methods, configurations, and approaches that prioritize user experience and reliability over theoretic...

Testing Markdown

Prioritize documentation clarity

microsoft/playwright
4
76113

Documentation should prioritize clarity and actionable guidance over comprehensive coverage. Organize content logical...

Documentation Markdown

explicit undefined checks

microsoft/playwright
4
76113

Always use explicit checks for undefined values and return appropriate nullable types instead of relying on implicit ...

Null Handling TypeScript

Avoid redundant operations

microsoft/playwright
4
76113

Identify and eliminate duplicate computations, unnecessary object creation, and redundant function calls to improve p...

Performance Optimization TypeScript

Simplify algorithmic implementations

emcie-co/parlant
4
12205

Favor clear, simple algorithmic implementations over complex custom logic. When faced with algorithmic choices, prefe...

Algorithms Python

Safe null access patterns

emcie-co/parlant
4
12205

Always use safe access patterns to prevent runtime errors when dealing with potentially null or undefined values. Ins...

Null Handling Python

safe environment variable access

emcie-co/parlant
4
12205

Always use `os.environ.get()` with appropriate defaults instead of direct dictionary access to prevent KeyError excep...

Configurations Python

Proper span lifecycle

opentofu/opentofu
4
25901

Always ensure trace spans are properly closed in all code execution paths to prevent trace leaks that can distort obs...

Observability Go

Prevent backing array surprises

opentofu/opentofu
4
25901

When modifying slices in Go, be aware that appending to a slice with available capacity will modify the backing array...

Algorithms Go

Minimize API surface

opentofu/opentofu
4
25901

Design APIs with minimal exposed surface by encapsulating implementation details within packages. When designing APIs...

API Go

Write reliable test cases

open-telemetry/opentelemetry-python
4
2061

Create deterministic and reliable test cases by following these guidelines: 1. Use hardcoded values instead of rando...

Testing Python

Return collections not None

open-telemetry/opentelemetry-python
4
2061

Return empty collections (lists, dicts, sets) instead of None when representing empty states. This reduces null check...

Null Handling Python

Prevent recursive logging calls

open-telemetry/opentelemetry-python
4
2061

Avoid implementing logging calls that could trigger recursive logging patterns, which can lead to infinite loops and ...

Logging Python

Precise configuration specifications

open-telemetry/opentelemetry-python
4
2061

Ensure configuration files use tool-specific syntax and conventions while leveraging appropriate defaults. Be intenti...

Configurations Toml

Place attributes correctly

open-telemetry/opentelemetry-python
4
2061

When implementing observability with OpenTelemetry, place attributes at the appropriate level in the telemetry hierar...

Observability Markdown
4
2061

Always use exact version pinning (==) for dependencies in requirements files rather than version ranges. This ensures...

Configurations Txt

Choose data structures wisely

open-telemetry/opentelemetry-python
4
2061

Select data structures based on your specific access patterns and performance requirements. Using the right data stru...

Algorithms Python

Use descriptive names

commaai/openpilot
4
58214

Choose names that clearly communicate purpose and meaning rather than using abbreviations or unclear terms. Names sho...

Naming Conventions Other

Tool-specific configuration compatibility

commaai/openpilot
4
58214

When working with configuration files that support multiple tools or package managers, ensure that configuration synt...

Configurations Toml

Prefer asynchronous operations

commaai/openpilot
4
58214

Use asynchronous patterns to prevent blocking operations from degrading system performance, especially in UI contexts...

Concurrency Other

optimize data structure selection

commaai/openpilot
4
58214

Choose data structures and algorithms based on their computational complexity and access patterns rather than conveni...

Algorithms Python

Initialize and validate values

commaai/openpilot
4
58214

Always initialize variables with sensible default values and validate inputs to prevent null reference errors and und...

Null Handling Python

Be specific with exceptions

commaai/openpilot
4
58214

Avoid catching broad exception types like `Exception` and instead catch specific exceptions that you expect and can h...

Error Handling Python

prefer built-in error utilities

opengrep/opengrep
4
1546

Use existing error handling utilities and appropriate error mechanisms instead of implementing manual error handling ...

Error Handling Other

Optimize for common cases

opencv/opencv
4
82865

When implementing algorithms, create specialized versions for common cases to improve performance, while maintaining ...

Algorithms Other

Framework synchronization practices

opencv/opencv
4
82865

When implementing concurrent code, always use the framework's provided synchronization primitives rather than direct ...

Concurrency C++

Document properly with references

opencv/opencv
4
82865

Always separate code from documentation and use proper referencing techniques. Documentation should be in markdown fi...

Documentation Other

Reuse buffers strategically

ollama/ollama
4
145704

For frequently called methods or hot code paths, reuse allocations instead of creating new buffers on each call. This...

Performance Optimization Go

Platform-aware configuration documentation

ollama/ollama
4
145705

Always document platform-specific configuration differences and requirements thoroughly. When writing documentation o...

Configurations Markdown

Loose API coupling

ollama/ollama
4
145704

Maintain a clear separation between API definitions and their implementations by avoiding direct passing of API struc...

API Go

Use async/await pattern

octokit/octokit.net
4
2793

When designing or documenting API clients, always use the async/await pattern rather than blocking calls. Replace cod...

API Markdown

Catch specific exceptions

octokit/octokit.net
4
2793

Always catch specific exception types rather than using general catch blocks. This improves error handling precision,...

Error Handling C#

robust algorithm implementation

nrwl/nx
4
27518

Implement algorithms that handle edge cases and avoid brittle assumptions about input data or structure formats. Inst...

Algorithms TypeScript

Ensure configuration consistency

nrwl/nx
4
27518

Configuration files should maintain consistency in patterns, use correct paths and values, and follow established con...

Configurations Json

Documentation metadata consistency

nrwl/nx
4
27518

Ensure documentation uses consistent structural elements and proper metadata to optimize user experience and content ...

Documentation Other

Configuration documentation clarity

nrwl/nx
4
27518

Configuration changes and examples should be documented with clear formatting, proper context, and helpful references...

Configurations Other

Vue context boundaries

nuxt/nuxt
4
57769

Ensure Vue composables, reactive state, and side effects are properly scoped within Vue's execution context to preven...

Vue Markdown

Strategic component loading

nuxt/nuxt
4
57769

Choose component loading strategies based on when interactivity is actually needed, not just code splitting. Lazy pre...

Performance Optimization Markdown

optimize array operations

nuxt/nuxt
4
57769

Pre-allocate arrays when the final size is known and consolidate multiple iterations into single loops to reduce memo...

Performance Optimization TypeScript

Handle async cancellation properly

nuxt/nuxt
4
57769

When implementing async operations with cancellation support, ensure that cancelled operations do not continue to upd...

Concurrency TypeScript

Cache lifecycle management

nuxt/nuxt
4
57769

Implement comprehensive cache lifecycle management that includes proper key management, invalidation strategies, and ...

Caching TypeScript

Optimize collection operations

novuhq/novu
4
37700

When processing collections of data, choose efficient algorithms and data structures that minimize computational comp...

Algorithms TSX

Environment-aware feature gating

novuhq/novu
4
37700

Always check environment variables, deployment modes, subscription tiers, and feature flags before enabling functiona...

Configurations TSX

Limit environment variable scope

nodejs/node
4
112178

When working with environment variables for configuration: 1. **Reuse existing environment variables** rather than c...

Configurations JavaScript

Format docs for readability

nodejs/node
4
112178

Documentation should follow consistent formatting and structural patterns to maximize readability and maintainability...

Documentation Markdown

Follow naming conventions

nodejs/node
4
112178

Maintain consistent naming conventions across the codebase: - Use PascalCase for class methods (e.g., `All()`, `Get(...

Naming Conventions Other

Document non-intuitive code

nodejs/node
4
112178

Add clear comments to explain complex logic, function differences, and non-obvious implementation details. This is es...

Documentation Other

Descriptive function names

nodejs/node
4
112178

Function and method names should precisely describe their purpose and behavior. Choose names that explicitly communic...

Naming Conventions JavaScript

Await all promises

nodejs/node
4
112178

Always explicitly await all asynchronous operations, especially in cleanup code paths and resource management. Failin...

Concurrency JavaScript

Verify documentation references

vercel/next.js
4
133000

When writing or updating documentation, ensure all code examples, installation commands, and project references accur...

Documentation Markdown

Proper Use of Suspense in Next.js Components

vercel/next.js
4
133000

When building Next.js applications that leverage server-side rendering (SSR) or Partial Prerendering (PPR), it is ess...

Next.js JavaScript

Proper Error Handling in Next.js API Routes

vercel/next.js
4
133000

This review focuses on ensuring proper error handling in Next.js API routes. Key principles include validating incomi...

Next.js JavaScript

Maintain Consistent Naming Conventions in Next.js Code

vercel/next.js
4
133000

As a code reviewer for Next.js projects, ensure that all code artifacts, including component names, file names, and c...

Next.js JavaScript

Dynamic API behavior detection

ChatGPTNextWeb/NextChat
4
85721

APIs should determine behavior based on runtime request characteristics rather than static configuration flags. This ...

API TypeScript

Protect network buffer lifecycle

netty/netty
4
34227

When handling network buffers in protocol implementations, ensure proper lifecycle management to prevent memory leaks...

Networking Java

Preserve backward compatibility

netty/netty
4
34227

When evolving APIs in minor versions, always maintain backward compatibility to avoid breaking client code. Follow th...

API Java

Optimize search operations

netty/netty
4
34227

Enhance search algorithm performance by prioritizing common cases, using appropriate data structures, and avoiding un...

Algorithms Java

Configurable over hardcoded

netty/netty
4
34227

Make configuration parameters configurable rather than hardcoding values, especially for limits, sizes, and threshold...

Configurations Java

Use consistent control structures

nestjs/nest
4
71766

Always use curly braces for control structures (if, for, while, etc.), even for single-line statements. This improves...

Code Style TypeScript

Structure exception handling patterns

nestjs/nest
4
71766

Implement consistent exception handling using framework-provided mechanisms rather than ad-hoc try-catch blocks or ma...

Error Handling TypeScript

Standardize logger configuration patterns

nestjs/nest
4
71766

Maintain consistent logger configuration and usage patterns across the application while leveraging built-in customiz...

Logging TypeScript

Prevent async race conditions

nestjs/nest
4
71767

Design async operations to prevent race conditions, memory leaks, and ensure proper resource cleanup. Key principles:...

Concurrency TypeScript

Pin dependency versions

nestjs/nest
4
71766

Explicitly pin or constrain dependency versions in CI/CD configurations instead of using `latest` tags. This prevents...

CI/CD Yaml

Package dependency configuration

nestjs/nest
4
71767

Configure dependencies appropriately in package.json based on usage patterns and requirements. This improves package ...

Configurations Json

HTTP header management

nestjs/nest
4
71766

When working with HTTP responses, follow these principles for proper header management: 1. **Only set default header...

Networking TypeScript

Document configuration behaviors

nestjs/nest
4
71766

Always document configuration options thoroughly, especially for module and service settings. For each configuration ...

Configurations TypeScript

Configurable log formatting

nestjs/nest
4
71767

Design logging systems with customizable formatting and output options. Separate formatting logic into protected meth...

Logging TypeScript

Benchmark before optimizing

nestjs/nest
4
71766

When making performance-critical decisions, always validate your approach with benchmarks using realistic data sizes ...

Performance Optimization TypeScript

Use descriptive names

neovim/neovim
4
91433

Avoid ambiguous or vague identifiers in favor of specific, self-documenting names that clearly convey purpose and con...

Naming Conventions C

Semantic naming over implementation

neovim/neovim
4
91433

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

Naming Conventions Txt

Initialize before dereferencing

neovim/neovim
4
91433

Always ensure buffers, containers, and data structures are properly initialized before passing them to functions that...

Null Handling C

consolidate network APIs

neovim/neovim
4
91433

When implementing network functionality, consolidate around standardized APIs like `vim.net.request()` instead of mai...

Networking Other

Configuration variable organization

neovim/neovim
4
91433

Use structured naming patterns and avoid polluting the global namespace when managing configuration variables. Prefer...

Configurations Other

Conditional expensive operations

neovim/neovim
4
91433

Only execute expensive operations when they are actually necessary. Avoid paying performance costs for functionality ...

Performance Optimization Other

avoid unnecessary configuration

neovim/neovim
4
91433

Avoid creating special-purpose configuration options when simpler alternatives exist. Don't force users to call setup...

Configurations Txt

avoid error masking

neovim/neovim
4
91433

Don't use mechanisms that suppress or hide errors unless absolutely necessary for the application flow. Error masking...

Error Handling Other

Scope JWT authentication tokens

neondatabase/neon
4
19015

Always include tenant, timeline, and endpoint identifiers in JWT tokens used for service authentication. This ensures...

Security Markdown

Proper Option type usage

neondatabase/neon
4
19015

Use Option only for truly optional values that can meaningfully be None. Avoid using Option when a value is always...

Null Handling Rust

Proactive cache warming

neondatabase/neon
4
19015

Implement proactive cache warming strategies to minimize performance degradation after system restarts or during cold...

Performance Optimization Markdown

Pin GitHub action versions

neondatabase/neon
4
19015

Always pin GitHub Actions to specific commit hashes instead of using major/minor version tags (like @v4). This ensure...

CI/CD Yaml

Ensure algorithm robustness

neondatabase/neon
4
19015

When implementing algorithms, ensure they handle all edge cases correctly and robustly. Code should gracefully manage...

Algorithms Rust

Connection pooling with pipelining

neondatabase/neon
4
19015

Implement connection pooling with request pipelining for network services to optimize resource usage and improve thro...

Networking Rust

Secure credential data handling

n8n-io/n8n
4
122978

Always protect sensitive credential data through proper encryption, secure storage, and careful handling in code. Key...

Security TypeScript

Maintain semantic naming consistency

n8n-io/n8n
4
122978

Names should be semantically meaningful and consistent across related concepts in the codebase. This applies to varia...

Naming Conventions TypeScript

Explicit environment configuration handling

n8n-io/n8n
4
122978

Environment and configuration values should be explicit, visible, and environment-aware. Avoid hardcoded production v...

Configurations TypeScript

Descriptive parameter names

n8n-io/n8n
4
122978

Use specific, descriptive parameter names for API resources rather than generic identifiers. Parameter names should c...

API Yaml

Consistent naming patterns

n8n-io/n8n
4
122978

Maintain consistent naming conventions throughout the codebase to improve readability and maintainability. This appli...

Naming Conventions Json

Consistent identifier naming

n8n-io/n8n
4
122978

Follow consistent naming conventions for all identifiers to improve code quality, accessibility, and test reliability...

Naming Conventions Other

Configuration consistency management

n8n-io/n8n
4
122978

When modifying configuration files, ensure all references to the changed values are updated consistently across the e...

Configurations Json

Actions configuration best practices

n8n-io/n8n
4
122978

When working with GitHub Actions workflows, follow these configuration best practices: 1. **Boolean inputs compariso...

Configurations Yaml

Graph traversal optimization

apache/mxnet
4
20801

When working with graph structures, avoid performing redundant depth-first search (DFS) traversals as each traversal ...

Algorithms Other

Explicit null checks

apache/mxnet
4
20801

Always use explicit null checks (`value is None` or `value is not None`) rather than implicit truthiness evaluations ...

Null Handling Python

Comprehensive API documentation

apache/mxnet
4
20801

Ensure all API elements are thoroughly documented following a consistent format. This includes: 1. **All function pa...

Documentation Python

Avoid redundant calculations

apache/mxnet
4
20801

Eliminate redundant calculations by identifying and caching frequently used values to improve performance. Consider t...

Performance Optimization Other

WebSocket lifecycle management

rocicorp/mono
4
2091

Ensure proper WebSocket connection lifecycle management by using `once()` instead of `on()` for cleanup operations an...

Networking TypeScript

verify authorization before operations

rocicorp/mono
4
2091

Always verify that users have proper authorization to access and modify resources before performing any data operatio...

Security TypeScript

dependency management practices

rocicorp/mono
4
2091

Ensure comprehensive dependency management in package.json files by following these practices: 1. **Evaluate necessi...

Configurations Json

Write user-centric documentation guides

mui/material-ui
4
96063

Documentation should be written with the user's perspective in mind, using clear, action-oriented language and intuit...

Documentation Markdown

Use slots for composition

mui/material-ui
4
96063

When designing React component APIs, implement the slots pattern using `slots` and `slotProps` props instead of speci...

React Markdown

Test behavior not implementation

mui/material-ui
4
96063

Focus tests on user behavior and outcomes rather than implementation details. Structure tests to simulate real user i...

Testing JavaScript

Strict mode-proof hooks

mui/material-ui
4
96063

Ensure your React components work correctly in both development (Strict Mode) and production environments by writing ...

React JavaScript

Standardize code formatting patterns

mui/material-ui
4
96063

Maintain consistent code formatting patterns across the codebase to improve readability and maintainability. This inc...

Code Style Markdown

Standardize build configurations

mui/material-ui
4
96063

When configuring module builds, maintain consistent and explicit configuration for different module formats (CJS, ESM...

Configurations Other

Semantic descriptive naming

mui/material-ui
4
96063

Choose names that clearly communicate purpose, behavior, and semantics of code elements. Names should be self-explana...

Naming Conventions JavaScript

Explicit configuration specifications

mui/material-ui
4
96063

When writing configuration files, be explicit and precise about dependencies and versions rather than using broad pat...

Configurations TypeScript

Event-triggered network requests

mui/material-ui
4
96063

When implementing user interactions that trigger network requests, use precise event handling techniques to ensure re...

Networking JavaScript

Document compatibility boundaries

mui/material-ui
4
96063

Clearly communicate your API's compatibility guarantees and limitations. When designing APIs, explicitly indicate wha...

API Markdown

Distinguish Next.js routers

mui/material-ui
4
96063

Always provide separate implementation instructions for Next.js App Router (13+) and Pages Router. These routing syst...

Next Markdown

Avoid render cycle allocations

mui/material-ui
4
96063

Creating new objects, arrays, or functions inside a component's render cycle causes unnecessary allocations on every ...

Performance Optimization JavaScript

Use accessible terminology

mastodon/mastodon
4
48691

Choose clear, understandable names and terminology that are appropriate for your intended audience, avoiding technica...

Naming Conventions Yaml

prefer early returns

mastodon/mastodon
4
48691

Use early returns and guard clauses to reduce nested conditionals and improve code readability. This pattern makes th...

Code Style TSX

optimize test organization

mastodon/mastodon
4
48691

Organize tests to minimize factory creation, reduce duplication, and improve performance by chaining assertions and e...

Testing Ruby

migration data dependencies

mastodon/mastodon
4
48691

Ensure that migrations properly handle data dependencies and sequencing to prevent deployment failures. When migratio...

Migrations Ruby

Hook responsibility separation

mastodon/mastodon
4
48691

Keep hooks and components focused on single, well-defined responsibilities to maintain clean architecture and avoid m...

React TSX

explicit API parameters

microsoft/markitdown
4
76602

Make API parameters explicit and named rather than hiding them in **kwargs. This improves clarity, enables better val...

API Python

Use proper logging

maplibre/maplibre-native
4
1411

Always use the project's standard logging system (mbgl::Log) with appropriate log levels instead of ad-hoc solutions ...

Logging C++

Structured coroutine management

maplibre/maplibre-native
4
1411

Always bind coroutine scopes to appropriate lifecycles and follow consistent patterns for asynchronous operations. Pr...

Concurrency Kotlin

Preallocate collection capacity

maplibre/maplibre-native
4
1411

When the final size of a collection is known before adding elements, use `reserve()` to preallocate memory capacity. ...

Performance Optimization C++

Extract workflow scripts

maplibre/maplibre-native
4
1411

Move complex scripts out of workflow YAML files into separate, dedicated script files in your repository. This practi...

CI/CD Yaml

Enforce clear data ownership

maplibre/maplibre-native
4
1411

Always establish and maintain clear ownership semantics in concurrent code to prevent data races. This includes: 1. ...

Concurrency C++

Document platform requirements

maplibre/maplibre-native
4
1411

When setting or changing minimum platform version requirements, always document the specific technical reasons for th...

Configurations Other

Descriptive named constants

maplibre/maplibre-native
4
1411

Replace magic numbers and unclear variables with descriptive named constants using appropriate naming conventions. Th...

Naming Conventions C++

Configure platform-specific builds

maplibre/maplibre-native
4
1411

Ensure build and distribution configurations are properly documented and optimized for each target platform. For cros...

Configurations Markdown

Separate user system data

logseq/logseq
4
37695

Separate user-facing data from system/implementation data using proper namespacing and schema design to prevent data ...

Database Other

Fail fast explicitly

logseq/logseq
4
37695

When critical components or operations fail, throw explicit errors rather than silently continuing or returning nil. ...

Error Handling Other

Use reactive hooks

lobehub/lobe-chat
4
65138

Always use React's reactive hook patterns instead of imperative state access or manual effect management. This ensure...

React TSX

Use idempotent migrations

lobehub/lobe-chat
4
65138

Always use defensive programming patterns in migration scripts to ensure they can be executed multiple times without ...

Migrations Sql

Provider-based interface design

lobehub/lobe-chat
4
65138

When designing interfaces that handle multiple providers or services, organize the API structure around provider-spec...

API TSX

Explicit environment declarations

lobehub/lobe-chat
4
65138

Always explicitly declare environment variables in configuration files, even when they have default values. Use consi...

Configurations Other

CSS utility usage

lobehub/lobe-chat
4
65138

Use CSS utility functions and avoid complex inline calculations for better maintainability and readability. Prefer `c...

Code Style TSX

Maintain comprehensive error handling

LMCache/LMCache
4
3800

Always preserve and implement thorough error handling that includes proper resource cleanup, meaningful logging, and ...

Error Handling Python

Configuration validation standards

LMCache/LMCache
4
3800

Ensure configuration parameters follow consistent validation, naming, and default value standards to improve code saf...

Configurations Python

optimize computational complexity

llvm/llvm-project
4
33702

When implementing algorithms, be mindful of computational complexity and optimize for efficiency by avoiding expensiv...

Algorithms C++

Configuration completeness validation

llvm/llvm-project
4
33702

Ensure configuration options are complete and properly validated before use. When implementing configuration parsing ...

Configurations C++

validate bounds before access

ggml-org/llama.cpp
4
83559

Always validate array indices, buffer sizes, and container bounds before accessing elements to prevent out-of-bounds ...

Null Handling C++

prioritize compile-time optimizations

ggml-org/llama.cpp
4
83559

In performance-critical code, favor compile-time optimizations over runtime flexibility to enable better compiler opt...

Performance Optimization Other

maintain code consistency

ggml-org/llama.cpp
4
83559

Always follow the existing code style patterns and conventions found in the surrounding codebase rather than introduc...

Code Style Other

API minimalism principle

ggml-org/llama.cpp
4
83559

Keep APIs minimal by avoiding redundant interfaces and preferring simple solutions over complex ones. When adding fun...

API C++

Safe operations with fallbacks

BerriAI/litellm
4
28310

Implement defensive programming by wrapping potentially failing operations in safe methods that provide fallback beha...

Error Handling Python

Prevent flaky test timing

langfuse/langfuse
4
13574

Replace non-deterministic timing patterns with reliable alternatives to prevent flaky tests. This includes: 1. Use e...

Testing TypeScript

Pin dependency versions

langfuse/langfuse
4
13574

Always pin external dependencies to specific versions in CI/CD workflows to ensure build reproducibility, stability, ...

CI/CD Yaml

Explicit null value checks

langfuse/langfuse
4
13574

Use explicit null/undefined checks instead of truthy/falsy checks when handling potentially null or undefined values....

Null Handling TypeScript

Configuration value consistency

langfuse/langfuse
4
13574

Maintain consistency in configuration values across the application by following these practices: 1. **Use properly ...

Configurations TSX

Prevent code injection vulnerabilities

langflow-ai/langflow
4
111046

When evaluating user-provided code or handling dynamic content, implement strict security measures to prevent malicio...

Security Python

Database configuration clarity

langflow-ai/langflow
4
111046

When documenting database configuration or setup procedures, provide specific, actionable instructions with clear ver...

Database Other

Avoid hardcoded configuration values

langflow-ai/langflow
4
111046

Replace hardcoded configuration values with configurable parameters to improve flexibility and maintainability. Hardc...

Configurations Python

AI response variability

langflow-ai/langflow
4
111046

When documenting AI model interactions, account for the non-deterministic nature of AI responses and avoid assumption...

AI Markdown

AI model chunk sizing

langflow-ai/langflow
4
111046

When configuring text processing components that work with AI embedding models, proactively consider tokenization lim...

AI Other

Use database-native types

langchain-ai/langchainjs
4
15004

Always leverage database-native data types and appropriate schema design to maximize performance and query capabiliti...

Database TypeScript

Eliminate redundant code

langchain-ai/langchainjs
4
15004

Simplify code by eliminating redundancy and unnecessary complexity. This improves readability, reduces potential bugs...

Code Style TypeScript

Dependency classification standards

langchain-ai/langchainjs
4
15004

Properly classify dependencies in package.json according to their usage pattern and project guidelines. This ensures ...

Configurations Json

Comprehensive AI documentation

langchain-ai/langchainjs
4
15004

When documenting AI integrations, provide comprehensive examples that showcase all common initialization and usage pa...

AI Other

Avoid hardcoded configurations

langchain-ai/langchainjs
4
15004

Always parameterize values that might vary across different environments or users instead of hardcoding them in your ...

Configurations TypeScript

Wrap errors meaningfully

kubernetes/kubernetes
4
116489

Always wrap errors with meaningful context that explains what operation failed and why. Use proper error wrapping wit...

Error Handling Go

Prevent information disclosure

kubernetes/kubernetes
4
116489

Avoid exposing sensitive information through error messages, logs, configuration, or other output channels that might...

Security Go

Feature gate configuration management

kubernetes/kubernetes
4
116489

Ensure feature gates are properly managed across all configuration files and contexts. Feature-specific permissions, ...

Configurations Yaml

Standardize network tools

kubeflow/kubeflow
4
15064

When performing network operations in build scripts or containers, prefer `curl` over `wget` for HTTP requests to sta...

Networking Dockerfile

Prioritize readability over brevity

kubeflow/kubeflow
4
15064

When writing code, favor readability and maintainability over clever or compact solutions. Break down complex logic i...

Code Style Python

Pin version dependencies

kubeflow/kubeflow
4
15064

Explicitly pin version dependencies in configuration files to ensure reproducible builds and prevent breaking changes...

Configurations Other

Load configurations efficiently

kubeflow/kubeflow
4
15064

When designing components that require configuration, follow these practices to enhance performance, maintainability,...

Configurations Go

Follow API conventions

kubeflow/kubeflow
4
15064

When designing APIs, adhere to established API conventions, particularly Kubernetes API conventions when working with...

API Go

Externalize configuration parameters

kubeflow/kubeflow
4
15064

Create configurations that can be easily managed outside your application code. Design configuration parameters to be...

Configurations Markdown

Document code thoroughly

kubeflow/kubeflow
4
15064

Always include appropriate documentation in your code to improve readability, maintainability, and usability: 1. **D...

Documentation Go

Contextualize and classify errors

kubeflow/kubeflow
4
15064

Always provide meaningful context when handling errors, and classify them appropriately based on their source. This i...

Error Handling Go

Centralize configuration constants

kubeflow/kubeflow
4
15064

Store configuration constants, defaults, and environment variable mappings in dedicated configuration files rather th...

Configurations Python

Use defensive null checks

JetBrains/kotlin
4
50857

When working with properties or methods that could potentially be null, use Kotlin's null safety features defensively...

Null Handling Kotlin

minimize merge conflicts

kilo-org/kilocode
4
7302

When working with upstream codebases, prioritize coding approaches that minimize merge conflicts while maintaining fu...

Code Style TSX

validate configuration dependencies

apache/kafka
4
30575

Validate configuration dependencies and constraints at initialization time rather than allowing invalid combinations ...

Configurations Java

optimize data structures

apache/kafka
4
30575

When working with data structures and collections, optimize for performance and correctness by using modern APIs, pro...

Database Java

Optimize collection conversions

apache/kafka
4
30575

When converting between Java and Scala collections or performing set operations, choose methods that minimize tempora...

Algorithms Other

Improve code readability

apache/kafka
4
30575

Write code that prioritizes readability through clear string formatting, descriptive method calls, and well-organized...

Code Style Other

Ensure complete JavaDoc coverage

apache/kafka
4
30575

All public classes, methods, and parameters must have comprehensive JavaDoc documentation. This includes: 1. **Class...

Documentation Java

catch specific exceptions

apache/kafka
4
30575

Avoid catching overly broad exception types like `Throwable` or `Exception` when you can be more specific about the e...

Error Handling Java

preserve error context

jj-vcs/jj
4
21171

When handling errors, preserve the original error context and avoid exposing internal representations to users. Use `...

Error Handling Rust

Minimize API scope

jj-vcs/jj
4
21171

When designing APIs, prioritize simplicity and focused scope over feature completeness. Before adding new API methods...

API Markdown

Use configuration constants

menloresearch/jan
4
37620

Always use named constants, enums, or well-defined configuration objects instead of magic strings, numbers, or inline...

Configurations TSX

model description accuracy

menloresearch/jan
4
37620

Ensure AI model descriptions are specific, capability-focused, and avoid marketing language or temporal references li...

AI Json

Implement graceful error fallbacks

menloresearch/jan
4
37620

Always implement fallback mechanisms when primary operations can fail, especially for critical operations like resour...

Error Handling TypeScript

Document AI infrastructure requirements

menloresearch/jan
4
37620

When documenting AI applications that run local models or perform inference, always provide comprehensive infrastruct...

AI Markdown

Cross-platform configuration simplification

menloresearch/jan
4
37620

When writing configuration files and scripts, prioritize cross-platform compatibility while keeping configurations si...

Configurations Json

AI model configuration completeness

menloresearch/jan
4
37620

Ensure all necessary AI model parameters are properly configured and passed through the system. AI models require com...

AI TypeScript

AI accuracy documentation

menloresearch/jan
4
37620

Ensure accurate representation of AI model capabilities, proper attribution, and honest claims about functionality. W...

AI Other

telemetry consistency standards

istio/istio
4
37192

Ensure telemetry attribute population logic is consistent across all components and follows established standards. Wh...

Observability Go

Document observability rationale

istio/istio
4
37192

When introducing, modifying, or removing observability features (tracing, metrics, monitoring configurations), always...

Observability Yaml

API version compatibility first

istio/istio
4
37192

When selecting API versions, prioritize compatibility over using the latest available version. Choose older, stable A...

API Yaml

prefer idiomatic patterns

vadimdemedes/ink
4
31825

Choose language-native methods and control structures that make code more readable and maintainable. Use built-in fun...

Code Style JavaScript

Package.json configuration standards

vadimdemedes/ink
4
31825

Ensure package.json follows modern standards and maintains consistency across configuration fields. Use structured ex...

Configurations Json

avoid `any` type usage

vadimdemedes/ink
4
31825

Replace `any` type annotations with more specific types to improve type safety and null handling. The `any` type disa...

Null Handling TSX

Use structured logging fields

influxdata/influxdb
4
30268

Always use structured logging with descriptive field names rather than string interpolation. Include relevant context...

Logging Rust

Prevent nil dereferences

influxdata/influxdb
4
30268

Always verify that pointers, slices, or arrays are non-nil and have sufficient elements before attempting to access t...

Null Handling Go

Prefer configurable values

influxdata/influxdb
4
30268

Always use configurable values instead of hardcoded defaults when available. This ensures that user preferences are r...

Configurations Go

Performance-conscious metrics implementation

influxdata/influxdb
4
30268

Implement metrics collection that is both comprehensive and minimally impactful on system performance. Design your me...

Observability Rust

Include explanatory examples

influxdata/influxdb
4
30268

Always enhance documentation with concrete, illustrative examples that demonstrate expected inputs, formats, or outpu...

Documentation Rust

Avoid unnecessary work

influxdata/influxdb
4
30268

When optimizing performance-critical code paths, eliminate redundant operations and unnecessary processing: 1. **Exi...

Performance Optimization Go

Avoid flaky test patterns

influxdata/influxdb
4
30268

Write reliable tests by avoiding common patterns that can lead to flaky behavior. Specifically: 1. Avoid arbitrary t...

Testing Rust

Test all code paths

elie222/inbox-zero
4
8267

Write comprehensive tests that cover all code paths including edge cases, error conditions, and different parameter c...

Testing TypeScript

Prevent workflow recursion

elie222/inbox-zero
4
8267

Control GitHub Actions workflow execution to avoid infinite loops and unnecessary builds. Implement these practices: ...

CI/CD Yaml

Normalize API responses

elie222/inbox-zero
4
8267

Design APIs to return consistent response structures across different data sources or providers. Normalize responses ...

API TSX

Handle AI operation failures

elie222/inbox-zero
4
8267

Always implement proper error handling for AI service operations. AI services can fail due to rate limiting, network ...

AI TypeScript

Ensure API contract integrity

elie222/inbox-zero
4
8267

Maintain strict consistency between API implementation and contract by ensuring: 1. Request/response schemas match ex...

API TypeScript

Define schema relations correctly

elie222/inbox-zero
4
8267

When designing database schemas, ensure relations and constraints are explicitly and correctly defined: 1. Every mod...

Database Prisma

Complete hook dependency arrays

elie222/inbox-zero
4
8267

Ensure all hooks (useEffect, useCallback, useMemo) explicitly list every dependency used within their callback functi...

React TSX

Cache invariant computations

elie222/inbox-zero
4
8267

Avoid repeatedly computing values that don't change frequently. For data structures, maps, or validation schemas used...

Performance Optimization TypeScript

Semantic variable naming

hyprwm/Hyprland
4
28863

Variable names should clearly convey their purpose, type, and units to improve code readability and prevent errors. F...

Naming Conventions C++

prefer std::error_code parameters

hyprwm/Hyprland
4
28863

When using std::filesystem operations, prefer passing std::error_code parameters instead of relying on try-catch bloc...

Error Handling C++

prefer managed pointers

hyprwm/Hyprland
4
28863

Raw pointers are banned in new code unless absolutely necessary. Instead, use managed pointer types to prevent null p...

Null Handling Other

Precise documentation language

hyprwm/Hyprland
4
28863

Documentation language should be precise, unambiguous, and clearly scoped to prevent misinterpretation while maintain...

Documentation Markdown

Precise configuration patterns

hyprwm/Hyprland
4
28863

Use precise file patterns and correct installation paths in CMake configuration to avoid unintended inclusions and en...

Configurations Txt

use Option combinators

juspay/hyperswitch
4
34028

Leverage Rust's Option API methods like `map`, `and_then`, `is_some()`, and `filter` instead of manual pattern matchi...

Null Handling Rust

Database schema consistency

juspay/hyperswitch
4
34028

Ensure database schema definitions are consistent with ORM annotations and include proper constraints for data integr...

Database Rust

Choose optimal algorithms

juspay/hyperswitch
4
34028

When implementing functionality, carefully evaluate and select the most efficient algorithmic approaches for data pro...

Algorithms Rust

Standardize build configuration patterns

helix-editor/helix
4
39026

Explicitly define and standardize build configuration patterns across the project to ensure consistent behavior and o...

Configurations Other

hide implementation details

helix-editor/helix
4
39026

When designing APIs, avoid exposing internal structures, implementation details, or platform-specific concepts to ext...

API Rust

consistent naming conventions

helix-editor/helix
4
39026

Maintain consistent naming patterns throughout your codebase, following established conventions and ensuring uniformi...

Naming Conventions Toml

avoid quadratic complexity

helix-editor/helix
4
39026

When working with data structures, especially ropes and collections, avoid algorithms that result in quadratic time c...

Algorithms Rust

avoid panics gracefully

helix-editor/helix
4
39026

Replace panics, expects, and unwraps with graceful error handling that provides user feedback and allows the system t...

Error Handling Rust

avoid hardcoded configuration values

helix-editor/helix
4
39026

Avoid hardcoding configuration values that affect user experience or behavior. Instead, make these values configurabl...

Configurations Rust

Safe property access patterns

grafana/grafana
4
68825

Use appropriate null/undefined handling techniques based on the context to prevent runtime errors. Be mindful of the ...

Null Handling TSX

Prefer null-safe access

grafana/grafana
4
68825

Always use null-safe access patterns when dealing with potentially undefined values to prevent runtime errors and imp...

Null Handling TypeScript

Optimize performance patterns

grafana/grafana
4
68825

Choose efficient implementation patterns that improve performance. Apply these optimizations throughout your code: 1...

Performance Optimization Go

Name for purpose first

grafana/grafana
4
68825

Choose names that lead with their primary purpose or category, followed by specific details. This makes code more dis...

Naming Conventions Go

Minimize database joins

grafana/grafana
4
68825

Prefer direct filtering or specialized service methods over complex JOIN operations, especially when maintaining or r...

Database Go

Maintain configuration documentation accuracy

grafana/grafana
4
68825

Always ensure configuration documentation accurately reflects the current system capabilities, limitations, and featu...

Configurations Markdown

Judicious configuration management

grafana/grafana
4
68825

Carefully manage configuration options, including feature flags, to balance flexibility with maintainability: 1. **U...

Configurations Go

Fail-safe security defaults

grafana/grafana
4
68825

Always implement security features with fail-safe defaults that deny access or disable insecure functionality unless ...

Security Go

Consistent semantic naming

grafana/grafana
4
68825

Use consistent, specific, and semantically appropriate naming conventions throughout the codebase. When creating new ...

Naming Conventions TypeScript

Consistent API versioning approach

grafana/grafana
4
68825

Adopt and document a consistent approach to API versioning across your services. The chosen format should be clearly ...

API Go

Component architecture principles

grafana/grafana
4
68825

Extract logic that doesn't render JSX into custom hooks instead of components. Components that don't return markup cr...

React TSX

User-focused documentation structure

block/goose
4
19037

Documentation should prioritize user needs and problems over technical implementation details. Start with the "why" -...

Documentation Markdown

Optimize memory and algorithms

block/goose
4
19037

Focus on efficient memory usage and algorithm selection while preserving functionality. Apply these optimization tech...

Performance Optimization Rust

Handle errors intentionally

block/goose
4
19037

Avoid generic catch-all error handling that masks important failures. Instead, be selective about which errors to han...

Error Handling TypeScript

consolidate API parameters

block/goose
4
19037

Prefer consolidating common configuration and parameters in API constructors or base methods rather than requiring mu...

API Rust

avoid concurrency anti-patterns

block/goose
4
19037

Avoid common concurrency anti-patterns that lead to race conditions, deadlocks, and unreliable behavior. Use structur...

Concurrency Rust

AI terminology consistency

block/goose
4
19037

Maintain consistent terminology when describing AI systems, capabilities, and workflows throughout documentation and ...

AI Markdown

Descriptive idiomatic identifiers

gin-gonic/gin
4
83022

Use descriptive names for variables, types, and interfaces that follow Go language idioms. Avoid single-letter variab...

Naming Conventions Go

Consistent error patterns

gin-gonic/gin
4
83022

Implement consistent error handling patterns throughout your codebase to improve readability and maintainability. **...

Error Handling Go

Structure user documentation

ghostty-org/ghostty
4
32864

When documenting complex features or configuration options, structure your documentation with these four key elements...

Documentation Other

Semantic name clarity

ghostty-org/ghostty
4
32864

Names should clearly and accurately reflect the purpose of variables, methods, and other identifiers. Follow these pr...

Naming Conventions Swift

Prevent unnecessary memory operations

ghostty-org/ghostty
4
32864

Avoid redundant memory allocations and copies when simpler alternatives exist. This includes: 1. Use in-place compar...

Performance Optimization Other

Optimize comparison patterns efficiently

ghostty-org/ghostty
4
32864

Choose efficient comparison patterns and algorithms based on the data type and use case. Key guidelines: 1. For stri...

Algorithms Other

In-tree build configurations

ghostty-org/ghostty
4
32864

Keep all build configuration files (Snapcraft, Flatpak manifests, etc.) in the repository alongside your code to ensu...

CI/CD Yaml

prefer settings over environment

google-gemini/gemini-cli
4
65062

Prefer settings.json over environment variables and CLI flags for user configuration options. Environment variables s...

Configurations TypeScript

Centralize proxy configuration

google-gemini/gemini-cli
4
65062

Avoid duplicate proxy configuration across your application by establishing a single point of proxy setup and leverag...

Networking TypeScript

Centralize configuration management

google-gemini/gemini-cli
4
65062

Prefer centralized configuration files (settings.json, settings.ts) over environment variables for application settin...

Configurations TSX

Validate with sensible defaults

fatedier/frp
4
95938

Implement a comprehensive configuration validation strategy that combines centralized validation functions with appro...

Configurations Go

Follow Go naming conventions

fatedier/frp
4
95938

Adhere to Go's standard naming conventions for identifiers: 1. **Control visibility with capitalization**: - Use ...

Naming Conventions Go

Optimize migration code

laravel/framework
4
33763

When writing database migration code, prioritize clarity and efficiency to ensure migrations are reliable and maintai...

Migrations PHP

Optimize loop operations

laravel/framework
4
33763

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

Algorithms PHP

Disable coverage in workflows

laravel/framework
4
33763

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

Testing Yaml

Descriptive configuration keys

laravel/framework
4
33763

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

Configurations PHP

Test observable behavior

flutter/flutter
4
172252

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

Testing Other

Make errors explicit

flutter/flutter
4
172252

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

Error Handling Other

Future-proof configuration defaults

flutter/flutter
4
172252

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

Configurations Other

Validate configuration defaults

gofiber/fiber
4
37560

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

Configurations Go

Use context for configuration

gofiber/fiber
4
37560

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

Configurations Markdown

Include practical examples

gofiber/fiber
4
37560

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

Documentation Markdown

Document mutex usage

gofiber/fiber
4
37560

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

Concurrency Go

Proper Handling of Promises in Fastify Implementations

fastify/fastify
4
34000

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

Fastify TypeScript

Content negotiation design

fastify/fastify
4
34000

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

API JavaScript

Consistent descriptive naming

fastify/fastify
4
34000

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

Naming Conventions JavaScript

Benchmark before choosing methods

fastify/fastify
4
34000

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

Performance Optimization JavaScript

Use pytest fixtures effectively

fastapi/fastapi
4
86871

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

Testing Python

Use early returns

fastapi/fastapi
4
86871

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

Code Style Python

Respect async execution order

fastapi/fastapi
4
86871

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

Concurrency Markdown

Proper HTTP status codes

fastapi/fastapi
4
86871

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

Security Python

Optimize hot paths

expressjs/express
4
67300

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

Performance Optimization JavaScript

Optimize dependency automation

expressjs/express
4
67300

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

Configurations Yaml

Access settings properly

expressjs/express
4
67300

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

Configurations JavaScript

Algorithm selection correctness

evanw/esbuild
4
39161

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

Algorithms Go

mark experimental configuration features

electron/electron
4
117644

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

Configurations Markdown

Ensure async error cleanup

electron/electron
4
117644

Always ensure cleanup code executes and avoid creating dangling promises in error handling scenarios. Use try-catch-f...

Error Handling TypeScript

consistent nullable returns

electron/electron
4
117644

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

Null Handling Markdown

Avoid exposing sensitive APIs

electron/electron
4
117644

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

Security Markdown

Parallel branch traceability

elastic/elasticsearch
4
73104

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

Algorithms Markdown

Exceptions for critical errors

elastic/elasticsearch
4
73104

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

Error Handling Java

Defensive null handling

elastic/elasticsearch
4
73104

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

Null Handling Java

Configure type serialization

elastic/elasticsearch
4
73104

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

Database Markdown

Clarity over uncertainty

elastic/elasticsearch
4
73104

Technical documentation should use precise language that clearly differentiates between product behavior and user con...

Documentation Markdown

Protect shared state

duckdb/duckdb
4
32061

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

Concurrency C++

preserve serialization compatibility

duckdb/duckdb
4
32061

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

Migrations Other

prefer settings over pragmas

duckdb/duckdb
4
32061

When implementing configuration options, prefer database settings over pragma functions to maintain consistency and b...

Configurations C++

optimize hot path performance

duckdb/duckdb
4
32061

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

Performance Optimization Other

maintain API backward compatibility

duckdb/duckdb
4
32061

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

API Other

Constructor configuration injection

duckdb/duckdb
4
32061

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

Configurations Other

comprehensive database testing

duckdb/duckdb
4
32061

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

Database Other

Use standardized logging pattern

stanfordnlp/dspy
4
27813

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

Logging Python

Optional dependency management

stanfordnlp/dspy
4
27813

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

Configurations Toml

Configuration context consistency

drizzle-team/drizzle-orm
4
29461

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

Configurations TypeScript

Prevent N+1 queries

django/django
4
84182

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

Database Txt

Optimize computational complexity

django/django
4
84182

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

Algorithms Python

Measure before optimizing

django/django
4
84182

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

Performance Optimization Python

Defend against nulls

django/django
4
84182

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

Null Handling Python

Use dynamic configuration access

discourse/discourse
4
44898

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

Configurations JavaScript

Safe setting modifications

discourse/discourse
4
44898

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

Configurations Ruby

Include contextual log information

discourse/discourse
4
44898

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

Logging Ruby

Consistent null safety patterns

discourse/discourse
4
44898

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

Null Handling JavaScript

Avoid N+1 queries

discourse/discourse
4
44898

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

Database Ruby

API parameter handling

discourse/discourse
4
44898

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

API JavaScript

API parameter clarity

discourse/discourse
4
44898

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

API Ruby

Validate access controls

langgenius/dify
4
114231

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

Security Python

Name by semantic purpose

langgenius/dify
4
114231

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

Naming Conventions TSX

Validate operation permissions

denoland/deno
4
103714

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

Security Rust

Use appropriate error types

denoland/deno
4
103714

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

Error Handling TypeScript

prefer safe optional returns

denoland/deno
4
103714

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

Null Handling Rust

explicit dependency configuration

denoland/deno
4
103714

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

Configurations Toml

defensive null handling

denoland/deno
4
103714

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

Null Handling JavaScript

Use modern API methods

deeplearning4j/deeplearning4j
4
14036

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

Algorithms Markdown

Minimize object allocations

deeplearning4j/deeplearning4j
4
14036

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

Performance Optimization Java

Keep configurations current

deeplearning4j/deeplearning4j
4
14036

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

Configurations Other
4
14036

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

Error Handling Java

Document AI APIs completely

deeplearning4j/deeplearning4j
4
14036

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

AI Markdown

Cross-platform algorithm optimization

deeplearning4j/deeplearning4j
4
14036

When implementing algorithms that need to execute efficiently across different platforms, consider both compile-time ...

Algorithms Other

Configurable resource locations

deeplearning4j/deeplearning4j
4
14036

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

Configurations Java

Compare floating-point safely

deeplearning4j/deeplearning4j
4
14036

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

Algorithms Java

Use precise networking terminology

cypress-io/cypress
4
48850

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

Networking Other

prefer existence over truthiness

cypress-io/cypress
4
48850

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

Null Handling TypeScript

meaningful test assertions

cypress-io/cypress
4
48850

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

Testing TypeScript

GraphQL mutation design

cypress-io/cypress
4
48850

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

API TypeScript

Environment variable handling

cypress-io/cypress
4
48850

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

Configurations JavaScript

Choose appropriate log levels

cypress-io/cypress
4
48850

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

Logging JavaScript

Default None not empty

crewaiinc/crewai
4
33945

Always use `None` as the default value for optional parameters and class attributes instead of empty collections (`[]...

Null Handling Python

Pause tracking during side-effects

vuejs/core
4
50769

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

Concurrency TypeScript

Optimize common search paths

vuejs/core
4
50769

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

Algorithms TypeScript

log complete error objects

adonisjs/core
4
18071

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

Logging TypeScript

Guarantee cleanup execution

vuejs/core
4
50769

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

Error Handling TypeScript

Consistent documentation language

home-assistant/core
4
80450

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

Documentation Json

Batch operations efficiently

home-assistant/core
4
80450

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

Performance Optimization Python

API documentation consistency

home-assistant/core
4
80450

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

API Json

Working configuration examples

continuedev/continue
4
27819

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

Configurations Markdown

Safe property access

continuedev/continue
4
27819

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

Null Handling TSX

Prevent broken interactions

continuedev/continue
4
27819

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

Error Handling TSX

Prevent async deadlocks

continuedev/continue
4
27819

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

Concurrency TypeScript

Maintain API compatibility

continuedev/continue
4
27819

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

API TypeScript

Write deterministic test assertions

docker/compose
4
35858

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

Testing Go

Wrap and check errors

docker/compose
4
35858

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

Error Handling Go

Use standard API fields

docker/compose
4
35858

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

API Python

Use API options pattern

docker/compose
4
35858

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

API Go

Prevent unintended CI behaviors

docker/compose
4
35858

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

CI/CD Go

Prevent sensitive data exposure

docker/compose
4
35858

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

Security Go

Keep code structure flat

docker/compose
4
35858

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

Code Style Go

consistent formatting choices

docker/compose
4
35858

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

Code Style Other

Configuration documentation clarity

docker/compose
4
35858

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

Configurations Yaml

use logging over print

comfyanonymous/ComfyUI
4
83726

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

Logging Python

optimize computational efficiency

comfyanonymous/ComfyUI
4
83726

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

Algorithms Python

explicit null handling strategies

comfyanonymous/ComfyUI
4
83726

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

Null Handling Python

Document complex code

comfyanonymous/ComfyUI
4
83726

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

Documentation Python

Semantic naming patterns

openai/codex
4
31275

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

Naming Conventions Rust

Prefer specific identifiers

openai/codex
4
31275

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

Naming Conventions TypeScript

Organize code top down

openai/codex
4
31275

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

Code Style Rust

Minimize blocking operations

openai/codex
4
31275

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

Concurrency Rust

Leverage style tools

openai/codex
4
31275

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

Code Style TypeScript

Avoid hard-coded configuration

openai/codex
4
31275

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

Configurations Shell

Strategic telemetry implementation

cline/cline
4
48299

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

Observability TypeScript

Avoid generic suffixes

cline/cline
4
48299

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

Naming Conventions Other

Setting declaration practices

ClickHouse/ClickHouse
4
42425

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

Configurations C++

Documentation precision standards

ClickHouse/ClickHouse
4
42425

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

Documentation C++

Write actionable documentation

snyk/cli
4
5178

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

Documentation Markdown

Use centralized configuration access

snyk/cli
4
5178

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

Configurations Go

Optimize variable declarations

snyk/cli
4
5178

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

Code Style Go

debug logging reliability

snyk/cli
4
5178

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

Logging TypeScript

avoid hardcoded configuration values

snyk/cli
4
5178

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

Configurations TypeScript

Use strict test doubles

chef/chef
4
7860

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

Testing Ruby

Standardize installation directory paths

chef/chef
4
7860

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

Configurations Other

Secure network operations

chef/chef
4
7860

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

Networking Ruby

Document configuration decisions

chef/chef
4
7860

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

Configurations Yaml

Document configuration completely

chef/chef
4
7860

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

Configurations Markdown

Use pytest best practices

bridgecrewio/checkov
4
7668

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

Testing Python

Preserve API compatibility

bridgecrewio/checkov
4
7668

When modifying existing APIs, function signatures, or return structures, always maintain backward compatibility to pr...

API Python

Precise configuration validation

bridgecrewio/checkov
4
7667

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

Configurations Yaml

Provide error feedback

calcom/cal.com
4
37732

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

Error Handling TSX

Prefer early returns

calcom/cal.com
4
37732

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

Code Style TSX

optimize iteration patterns

calcom/cal.com
4
37732

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

Algorithms TypeScript

Configuration access patterns

calcom/cal.com
4
37732

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

Configurations TSX

Avoid redundant operations

calcom/cal.com
4
37732

Identify and eliminate duplicate or inefficient operations that waste computational resources. Common patterns to wat...

Performance Optimization TypeScript

Avoid generic naming

calcom/cal.com
4
37732

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

Naming Conventions TSX

Use consistent test patterns

oven-sh/bun
4
79093

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

Testing TypeScript

Consistent descriptive identifiers

oven-sh/bun
4
79093

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

Naming Conventions TypeScript

Clear accurate documentation

oven-sh/bun
4
79093

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

Documentation TypeScript

Always await promises

oven-sh/bun
4
79093

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

Concurrency TypeScript

validate LLM reliability

browser-use/browser-use
4
69139

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

AI Python

Simplify complex implementations

browser-use/browser-use
4
69139

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

Code Style Python

optimize CI performance

browser-use/browser-use
4
69139

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

CI/CD Yaml

avoid external test dependencies

browser-use/browser-use
4
69139

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

Testing Python

Structured environment configuration

Homebrew/brew
4
44168

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

Configurations Ruby

Correct GitHub Actions annotations

Homebrew/brew
4
44168

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

CI/CD Ruby

Avoid variable name abbreviations

Homebrew/brew
4
44168

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

Naming Conventions Shell

Structure for readability

boto/boto3
4
9417

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

Code Style Python

Isolate concurrent resources

boto/boto3
4
9417

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

Concurrency Other

Consistent region configuration

boto/boto3
4
9417

Always maintain consistency in region configurations throughout your application. Instead of hardcoding endpoints, us...

Configurations Other

Expose essential configurations

better-auth/better-auth
4
19651

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

Configurations TypeScript

derive from session context

better-auth/better-auth
4
19651

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

Security TypeScript

validate feature configurations

bazelbuild/bazel
4
24489

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

Configurations Other

preserve exception causes

bazelbuild/bazel
4
24489

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

Error Handling Java

Ensure documentation completeness

bazelbuild/bazel
4
24489

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

Documentation Other

build action separation

bazelbuild/bazel
4
24489

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

CI/CD Java

Write deterministic tests

Azure/azure-sdk-for-net
4
5809

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

Testing C#

User-friendly configuration values

Azure/azure-sdk-for-net
4
5809

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

Configurations Markdown

Standardize environment variables

Azure/azure-sdk-for-net
4
5809

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

Configurations C#

Externalize configuration values

Azure/azure-sdk-for-net
4
5809

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

Configurations Yaml

Use Option combinators

tokio-rs/axum
4
22100

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

Null Handling Rust

Structure errors for safety

tokio-rs/axum
4
22100

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

Error Handling Rust

Minimize memory allocation overhead

tokio-rs/axum
4
22100

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

Performance Optimization Rust

Lock carefully in async

tokio-rs/axum
4
22100

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

Concurrency Rust

Handle protocol headers properly

tokio-rs/axum
4
22100

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

Networking Rust

Validate security-critical inputs

axios/axios
4
107000

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

Security JavaScript

Robust Axios Usage in TypeScript

axios/axios
4
107000

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

Axios TypeScript

Proper Error Handling in Axios TypeScript Code

axios/axios
4
107000

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

Axios TypeScript

Extract for better readability

axios/axios
4
107000

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

Code Style JavaScript

Maintain consistent formatting

aws/aws-sdk-js
4
7628

Enhance code readability and maintainability by applying consistent formatting practices throughout your codebase: 1...

Code Style JavaScript

Validate untrusted inputs

argoproj/argo-cd
4
20149

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

Security Go

Simplify code readability

argoproj/argo-cd
4
20149

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

Code Style TSX

optimize algorithmic complexity

argoproj/argo-cd
4
20149

Always consider computational complexity and performance when implementing algorithms. Look for opportunities to opti...

Algorithms Go

explicit security controls

argoproj/argo-cd
4
20149

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

Security Markdown

document network requirements

argoproj/argo-cd
4
20149

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

Networking Markdown

design extensible APIs

argoproj/argo-cd
4
20149

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

API Go

Ensure proper async context

appwrite/appwrite
4
51959

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

Concurrency Markdown

Cypress test isolation

appwrite/appwrite
4
51959

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

Testing JavaScript

Use semantic naming

ant-design/ant-design
4
95882

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

Naming Conventions TypeScript

Update deprecated demo APIs

ant-design/ant-design
4
95882

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

API Other

Test organization standards

ant-design/ant-design
4
95882

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

Testing TSX

Handle optional values safely

ant-design/ant-design
4
95882

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

Null Handling TypeScript

Deprecated API documentation

ant-design/ant-design
4
95882

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

Documentation Markdown

Use specific descriptive names

angular/angular
4
98611

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

Naming Conventions Markdown

Guard nullable value access

angular/angular
4
98611

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

Null Handling Markdown

Configuration opt-in safety

angular/angular
4
98611

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

Configurations TypeScript

Choose appropriate presentation formats

angular/angular
4
98611

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

Documentation Markdown

Choose appropriate algorithms

angular/angular
4
98611

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

Algorithms TypeScript

Avoid reactive over-engineering

angular/angular
4
98611

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

React Markdown

async resource cleanup

angular/angular
4
98611

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

Concurrency TypeScript

Platform-specific API documentation

alacritty/alacritty
4
59675

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

Networking Other

consistent error handling

alacritty/alacritty
4
59675

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

Error Handling Rust

Safe constraint modification sequence

apache/airflow
4
40858

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

Migrations Python

Parameterize similar tests

apache/airflow
4
40858

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

Testing Python

Optimize collection processing patterns

apache/airflow
4
40858

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

Algorithms Python

Leverage backend API capabilities

apache/airflow
4
40858

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

API TSX

Explicit version constraints

apache/airflow
4
40858

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

Configurations Toml

Explicit over implicit configuration

apache/airflow
4
40858

Always prefer explicit configuration parameters over inferring behavior from indirect sources like image tags, naming...

Configurations Yaml

Ensure deterministic queries

apache/airflow
4
40858

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

Database Python

Document public API boundaries

apache/airflow
4
40858

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

API Other

Context-rich log messages

apache/airflow
4
40858

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

Logging Python

Consistent technical term translation

apache/airflow
4
40858

When localizing an application, maintain consistent conventions for technical terms while respecting language-specifi...

Naming Conventions Json

Component reuse first

apache/airflow
4
40858

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

React TSX

Handle errors gracefully

Aider-AI/aider
4
35856

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

Error Handling Python

Externalize configuration values

Aider-AI/aider
4
35856

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

Configurations Python

Place configurations appropriately

vercel/ai
4
15590

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

Configurations TypeScript

Explicit code organization patterns

vercel/ai
4
15590

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

Code Style TypeScript

Self-explanatory identifier names

zed-industries/zed
3
62119

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

Naming Conventions Json

Respect language-specific conventions

zed-industries/zed
3
62119

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

Code Style Toml

Maintain style consistency

zed-industries/zed
3
62119

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

Code Style Other

Maintain consistent naming

zed-industries/zed
3
62119

Ensure naming follows consistent patterns throughout the codebase in both style and structure: 1. Use agreed-upon ca...

Naming Conventions Other

Hierarchical configuration organization

zed-industries/zed
3
62119

Organize configuration settings hierarchically by grouping related settings under meaningful namespaces rather than c...

Configurations Json

Optimize build configurations

facebook/yoga
3
18255

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

Performance Optimization Txt

Measure optimization trade-offs

facebook/yoga
3
18255

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

Performance Optimization Other

Document complex logic

facebook/yoga
3
18255

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

Code Style Objective-C

Design familiar APIs

facebook/yoga
3
18255

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

API Other

consistent formatting choices

facebook/yoga
3
18255

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

Code Style JavaScript

Analyze performance trade-offs

facebook/yoga
3
18255

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

Performance Optimization Objective-C

Algorithm specification compliance

facebook/yoga
3
18255

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

Algorithms C

Add safety checks

facebook/yoga
3
18255

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

Null Handling Objective-C

Remove unnecessary configurations

cloudflare/workers-sdk
3
3379

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

Configurations Other

HTTP response construction

cloudflare/workers-sdk
3
3379

Use appropriate HTTP response construction methods and status codes for API endpoints. Prefer `Response.json()` over ...

API TypeScript

eliminate redundant null checks

cloudflare/workers-sdk
3
3379

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

Null Handling TypeScript

Wrap throwing operations

cloudflare/workerd
3
6989

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

Error Handling TypeScript

Use KJ_UNWRAP_OR pattern

cloudflare/workerd
3
6989

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

Null Handling Other

Simplify async patterns

cloudflare/workerd
3
6989

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

Concurrency JavaScript

prefer nullish coalescing operators

cloudflare/workerd
3
6989

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

Null Handling TypeScript

document security-sensitive features

cloudflare/workerd
3
6989

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

Security Other

defer async callbacks

cloudflare/workerd
3
6989

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

Concurrency TypeScript

Clear descriptive naming

cloudflare/workerd
3
6989

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

Naming Conventions TypeScript

Choose efficient algorithms

cloudflare/workerd
3
6989

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

Algorithms TypeScript

Centralize error handling

cloudflare/workerd
3
6989

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

Error Handling Python

Parallelize independent operations

microsoft/vscode
3
174887

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

Concurrency TypeScript

Comprehensive JSDoc with examples

microsoft/vscode
3
174887

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

Documentation TypeScript

Avoid CSS !important

microsoft/vscode
3
174887

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

Code Style Css

Standardize configuration formats

volcano-sh/volcano
3
4899

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

Configurations Markdown

Secure configuration practices

volcano-sh/volcano
3
4899

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

Security Go

Justify default enablement

volcano-sh/volcano
3
4899

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

Configurations Yaml

Extract configuration constants

volcano-sh/volcano
3
4899

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

Configurations Go

Document technical details clearly

volcano-sh/volcano
3
4899

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

Documentation Markdown

Secure before deployment

vllm-project/vllm
3
51730

Remove or secure development-specific code before deploying to production environments. Development artifacts like de...

Security Python

Protect shared state

vllm-project/vllm
3
51730

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

Concurrency Python

Structured configuration management

vitessio/vitess
3
19815

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

Configurations Markdown

Robust network handling

vitessio/vitess
3
19815

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

Networking Go

Secure workflow permissions

vitejs/vite
3
74031

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

CI/CD Yaml

Restrict server access

vitejs/vite
3
74031

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

Security Markdown

comprehensive validated examples

vlang/v
3
36582

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

Documentation Markdown

Avoid breaking API changes

vlang/v
3
36582

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

API Other

Short-circuit evaluation strategies

astral-sh/uv
3
60322

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

Algorithms Rust

Optimize cache sharing strategies

astral-sh/uv
3
60322

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

Caching Markdown

Follow established naming conventions

astral-sh/uv
3
60322

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

Naming Conventions Markdown

Enforce strong optional types

astral-sh/uv
3
60322

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

Null Handling Rust

Declarative constraints over runtime

astral-sh/uv
3
60322

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

API Rust

prefer efficient operations

Unstructured-IO/unstructured
3
12116

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

Performance Optimization Python

API examples completeness

Unstructured-IO/unstructured
3
12117

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

API Other

use meaningful error types

unionlabs/union
3
74800

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

Error Handling TypeScript

use Effect Option consistently

unionlabs/union
3
74800

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

Null Handling TypeScript

Use configuration service injection

unionlabs/union
3
74800

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

Configurations TypeScript

SQL query best practices

unionlabs/union
3
74800

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

Database Rust

Reuse existing API utilities

unionlabs/union
3
74800

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

API Rust

organize code for readability

unionlabs/union
3
74800

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

Code Style Other

Maintain naming consistency

unionlabs/union
3
74800

Ensure consistent terminology and naming conventions across the entire codebase. Use the same identifier names for th...

Naming Conventions Other

Choose appropriate async primitives

unionlabs/union
3
74800

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

Concurrency Rust

avoid hardcoded configuration

unionlabs/union
3
74800

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

Configurations Rust

avoid error display duplication

unionlabs/union
3
74800

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

Error Handling Rust

Prevent object recreations

shadcn-ui/ui
3
90568

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

Performance Optimization TSX

Leverage framework defaults

shadcn-ui/ui
3
90568

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

Configurations TypeScript

Complete optional chaining

shadcn-ui/ui
3
90568

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

Null Handling TSX

Complete configuration paths

shadcn-ui/ui
3
90568

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

Configurations Other

Preserve naming consistency

microsoft/typescript
3
105378

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

Naming Conventions Other

Eliminate unnecessary constructs

microsoft/typescript
3
105378

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

Code Style JavaScript

Structure documentation logically

astral-sh/ty
3
11919

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

Documentation Markdown

Ensure CI dependency reliability

astral-sh/ty
3
11919

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

CI/CD Yaml

Use proper PostgreSQL types

twentyhq/twenty
3
35477

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

Database TypeScript

Use proper null utilities

twentyhq/twenty
3
35477

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

Null Handling TSX

Security-critical code review

twentyhq/twenty
3
35477

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

Security TypeScript

Choose appropriate concurrency patterns

twentyhq/twenty
3
35477

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

Concurrency TypeScript

Avoid repeated expensive operations

twentyhq/twenty
3
35477

Replace repeated expensive operations like `find()`, `filter()`, or `sort()` with pre-computed maps or cached results...

Performance Optimization TSX

Validate configuration structures

vercel/turborepo
3
28115

Ensure configuration files and schemas adhere to their expected structure, location, and uniqueness constraints. When...

Configurations TypeScript

Use functional null handling

vercel/turborepo
3
28115

Leverage Rust's functional operators for handling nullable and optional values. Instead of using unwrap() or explicit...

Null Handling Rust

Use affected mode

vercel/turborepo
3
28115

Optimize CI pipelines by running tasks only on packages affected by code changes. Use the `--affected` flag in Turbor...

CI/CD Other

Standardize package manager commands

vercel/turborepo
3
28115

Ensure all package manager commands in documentation and CI/CD scripts follow the correct syntax for the specific pac...

CI/CD Markdown

Semantic naming conventions

vercel/turborepo
3
28115

Use names that clearly convey the purpose and content of variables, parameters, and properties. When working with obj...

Naming Conventions TypeScript

Minimize lock duration

vercel/turborepo
3
28115

When using locks in asynchronous code, minimize the scope and duration for which locks are held, especially across `....

Concurrency Rust

Document configuration alternatives

vercel/turborepo
3
28115

When documenting commands or tools that can be executed in different ways based on configuration settings (like globa...

Configurations Markdown

Document cache strategies

vercel/turborepo
3
28115

Always provide clear documentation and implementation for caching strategies, including key generation, invalidation ...

Caching Other

Write explicit concrete tests

tree-sitter/tree-sitter
3
21799

Tests should be written explicitly with concrete examples and clear assertions rather than being generated programmat...

Testing Rust

optimize parser development strategy

tree-sitter/tree-sitter
3
21799

When developing parsers or grammars, apply strategic optimization by prioritizing commonly used language features and...

Algorithms Markdown

optimize dependency configurations

tree-sitter/tree-sitter
3
21799

When configuring dependencies in package manifests, prioritize efficiency and maintainability by avoiding redundant d...

Configurations Toml

API pattern consistency

tree-sitter/tree-sitter
3
21799

When designing new API functions, maintain consistent patterns across the codebase and avoid creating precedents that...

API Other

Remove unused code elements

traefik/traefik
3
55772

Eliminate unnecessary code elements including unused parameters, struct tags, methods, and dead code to improve code ...

Code Style Go

descriptive contextual logging

traefik/traefik
3
55772

Log messages should be descriptive, contextual, and provide actionable information. Include relevant context such as ...

Logging Go

Optimize job structure

tokio-rs/tokio
3
28989

Structure CI jobs for clarity, parallelism, and efficiency. Each job should have a single, well-defined purpose to pr...

CI/CD Yaml

Optimize CI job structure

tokio-rs/tokio
3
28981

Structure your CI workflows to maximize performance and clarity. Each job should have a single, clear responsibility ...

CI/CD Yaml

Minimize unsafe code

tokio-rs/tokio
3
28981

When writing code that requires unsafe operations, follow these critical security practices: 1. Minimize the scope o...

Security Rust

Clear command documentation

tokio-rs/tokio
3
28989

When documenting shell commands in technical documentation, use the `shell` language identifier instead of `bash` as ...

Documentation Markdown

Thread-safe resource sharing

huggingface/tokenizers
3
9868

When sharing mutable data between threads, use the `Arc>` pattern to ensure thread safety. `Arc` provides t...

Concurrency Rust

Pythonic API design

huggingface/tokenizers
3
9868

Design APIs that follow Python language conventions and idioms rather than blindly mirroring the underlying implement...

API Python

Purpose-indicating descriptive names

huggingface/tokenizers
3
9868

Choose names for variables, methods, parameters, and fixtures that clearly communicate their purpose, content, and be...

Naming Conventions Python

Optimize workflow triggers

huggingface/tokenizers
3
9868

Configure CI workflows with targeted triggers and path filters to balance thoroughness with efficiency. Run critical ...

CI/CD Yaml

Modular model components

huggingface/tokenizers
3
9868

Design machine learning model code with clear component boundaries and proper separation of concerns. Each component ...

AI Rust

Manage version constraints

huggingface/tokenizers
3
9868

When configuring dependency version constraints in project files, follow these principles: 1. Be explicit about vers...

Configurations Toml

Technical precision matters

hashicorp/terraform
3
45532

When documenting algorithms, data structures, and computational processes, use precise and objective language rather ...

Algorithms Other

Document implementation rationale

microsoft/terminal
3
99242

Add comments that explain the reasoning behind non-obvious code decisions, technical constraints, or complex logic, w...

Documentation C++

Clear accurate error messages

microsoft/terminal
3
99242

Error messages should be clear, accurate, and contextually appropriate to help users understand what went wrong and h...

Error Handling Other

Validate tensor inputs safely

tensorflow/tensorflow
3
190625

When handling tensor inputs that may contain invalid values, use transformational approaches rather than conditional ...

Null Handling Python

Separate test data

tensorflow/tensorflow
3
190625

Large test data should be separated from test logic to improve readability and maintainability. Move test data into s...

Testing Other

Use dedicated configuration files

temporalio/temporal
3
14953

Always use dedicated configuration files for specific configuration needs rather than modifying core build or system ...

Configurations Other

Structured contextual logging

temporalio/temporal
3
14953

Always use structured logging with appropriate tags instead of string concatenation or formatting. Include relevant c...

Logging Go

Operation order affects correctness

temporalio/temporal
3
14953

When implementing algorithms that involve multiple operations (like iteration, validation, and execution), the order ...

Algorithms Go

Minimize code nesting depth

temporalio/temporal
3
14953

Reduce cognitive load and improve code readability by minimizing nested code blocks. Prefer early returns and flatten...

Code Style Go

Context-aware network calls

temporalio/temporal
3
14953

Always propagate context through network calls to ensure proper cancellation, timeout handling, and tracing. For HTTP...

Networking Go

Use structured API parameters

gravitational/teleport
3
19109

When designing APIs with multiple related parameters, especially optional ones like filters, sorting, and pagination ...

API Go

Use semantically clear names

gravitational/teleport
3
19109

Choose names that clearly convey their purpose, scope, and meaning to reduce ambiguity and improve code maintainabili...

Naming Conventions Other

Use descriptive semantic names

gravitational/teleport
3
19109

Choose descriptive, semantic names that clearly convey purpose and meaning rather than generic or ambiguous identifie...

Naming Conventions TypeScript

Provide contextual error messages

gravitational/teleport
3
19109

Error messages should be specific, contextual, and use appropriate error creation functions to help users understand ...

Error Handling Go

Plan encryption key recovery

gravitational/teleport
3
19109

Always implement recovery mechanisms and plan for key rotation when designing encryption systems. Encryption key fail...

Security Other

Follow platform naming standards

gravitational/teleport
3
19109

Adhere to established naming conventions specific to each platform, framework, or technology being used. Different pl...

Naming Conventions Markdown

Avoid overly broad permissions

gravitational/teleport
3
19109

Use specific, scoped permissions instead of wildcards to prevent unintended access to sensitive resources. Wildcard p...

Security Go

API parameter encapsulation

gravitational/teleport
3
19109

When designing API methods that accept multiple related parameters (especially filters, search criteria, or configura...

API Other

Training-aware ML APIs

tensorflow/swift
3
6136

Design machine learning APIs with explicit parameters for distinguishing between training and inference phases rather...

AI Markdown

Swift idiomatic naming

tensorflow/swift
3
6136

Follow Swift's naming conventions to write more readable, maintainable code. The Swift language emphasizes clarity an...

Naming Conventions Other

Provide comprehensive examples

tensorflow/swift
3
6136

API documentation should include complete examples that demonstrate all key usage patterns. When documenting related ...

Documentation Markdown

Generic algorithm design

tensorflow/swift
3
6136

When implementing generic algorithms in Swift, follow these best practices to improve code clarity and performance: ...

Algorithms Other

Format for readability

tensorflow/swift
3
6136

Code should be formatted to optimize readability. Apply these key practices: 1. **Maintain reasonable line length** ...

Code Style Other

Follow Swift naming conventions

tensorflow/swift
3
6136

Ensure code follows established Swift naming conventions and remains consistent with domain terminology: 1. Use stan...

Naming Conventions Swift

Document API stability

tensorflow/swift
3
6136

When working with AI frameworks and machine learning libraries, clearly document the stability state of APIs being us...

AI Other

API version management

SWE-agent/SWE-agent
3
16839

When integrating with external APIs, explicitly handle version differences and use parameterized configurations inste...

API Python

preserve user input focus

sveltejs/svelte
3
83580

When implementing reactive state updates that affect input elements, always check if the user is currently interactin...

React JavaScript

Multi-indicator configuration detection

sveltejs/svelte
3
83580

When detecting configuration states, use multiple indicators rather than relying on a single source of truth, especia...

Configurations JavaScript

Descriptive migration comments

sveltejs/svelte
3
83580

When adding migration task comments, always include specific details about why manual intervention is required rather...

Migrations Other

async cleanup safety

sveltejs/svelte
3
83580

Ensure async operations include proper safety checks to prevent race conditions, memory leaks, and inconsistent state...

Concurrency JavaScript

analyze transitive dependencies

sveltejs/svelte
3
83580

When implementing dependency analysis algorithms, ensure comprehensive tracking of both direct and transitive depende...

Algorithms Markdown

Use parameter-based paths

supabase/supabase
3
86070

When designing API routes and interfaces, always use parameter-based path syntax instead of hardcoded literals. This ...

API TSX

Use configuration over hardcoding

supabase/supabase
3
86070

Always use configuration constants instead of hardcoding values directly in the code. This improves maintainability a...

Configurations TSX

Prevent re-render triggers

supabase/supabase
3
86070

Avoid creating new object/array references in component render functions and carefully manage state updates to preven...

Performance Optimization TSX

Explicit role security management

supabase/supabase
3
86070

Always be explicit about role privileges when configuring database security. Remember that both `authenticated` and `...

Database Other

Explicit null handling

supabase/supabase
3
86070

Use explicit patterns when dealing with potentially null or undefined values to prevent runtime errors and improve co...

Null Handling TSX

Database entity configuration

supabase/supabase
3
86070

Configure database entities with appropriate defaults and clear type distinctions. For triggers, prefer AFTER/ROW ove...

Database TSX

Centralize configuration values

supabase/supabase
3
86070

Extract and centralize configuration values instead of duplicating or hardcoding them throughout the codebase. This i...

Configurations TypeScript

Abstract user-facing errors

supabase/supabase
3
86070

Error messages displayed to end users should abstract away implementation details while providing actionable informat...

Error Handling TSX

prefer lazy computation

browserbase/stagehand
3
16443

Avoid precomputing expensive operations when they may not be needed, especially for large datasets. Instead, compute ...

Algorithms TypeScript

Configure workflow triggers

browserbase/stagehand
3
16443

Ensure GitHub Actions workflows are triggered appropriately by configuring branch patterns and path filters to balanc...

CI/CD Yaml

abstract environment variables

browserbase/stagehand
3
16443

Avoid directly referencing environment variables throughout your codebase. Instead, abstract them into named constant...

Configurations TypeScript

Standardize configuration formats

spring-projects/spring-framework
3
58382

Use consistent, explicit, and well-documented formats in all configuration files to improve readability and prevent m...

Configurations Other

Package null-safety annotations

spring-projects/spring-framework
3
58382

All package-info.java files must include both @NonNullApi and @NonNullFields annotations to establish null-safety at ...

Null Handling Xml

Optimize CI environment configuration

spring-projects/spring-framework
3
58382

When configuring CI environments, carefully evaluate whether default dependency versions are sufficient for your proj...

CI/CD Yaml

Leverage Kotlin null-safety

spring-projects/spring-framework
3
58382

Utilize Kotlin's null-safety features effectively to create cleaner, more robust code: 1. For class properties that ...

Null Handling Kotlin

Database-agnostic SQL syntax

spring-projects/spring-framework
3
58382

Write SQL statements that conform to standard SQL rather than relying on vendor-specific dialects to ensure portabili...

Database Java

Clone network headers carefully

spring-projects/spring-framework
3
58382

When working with HTTP or WebSocket headers in networking code, be cautious about header manipulation, cloning, and l...

Networking Java

Validate nulls properly

spring-projects/spring-boot
3
77637

Always use appropriate null validation mechanisms to prevent NullPointerExceptions and ensure code robustness. For s...

Null Handling Java

Reference existing configurations

spring-projects/spring-boot
3
77637

When setting up configuration files, reference existing configuration sources rather than duplicating values or logic...

Configurations Yaml

Verify CI build consistency

apache/spark
3
41554

Ensure CI pipelines thoroughly verify build outputs and maintain consistency across different build tools and configu...

CI/CD Yaml

use modern Java syntax

apache/spark
3
41554

Prefer modern Java language features and constructs to write more concise, readable code. Since Apache Spark 4.0.0, t...

Code Style Java

Use descriptive names