-
documentation clarity standards
remix-run/react-router30⭐ 55270Ensure all React-related documentation, comments, and descriptions maintain high standards of clarity, accu...
-
Use runServerless utility
serverless/serverless25⭐ 46810All new tests must be written using the `runServerless` utility instead of legacy testing approaches. This ...
-
Complete locale translations
RooCodeInc/Roo-Code25⭐ 17288Ensure that all text strings in locale-specific files are properly translated into their respective languag...
-
Configuration ownership and determinism
p-e-w/heretic25⭐ 5002Summary - Ensure configuration is explicit, owned by the correct component (application vs plugin), and det...
-
Use environment variables
hashicorp/terraform21⭐ 45532When working with configurations that require sensitive data (credentials, tokens, passwords), always use e...
-
reduce complexity for readability
servo/servo20⭐ 32962Prioritize code readability by reducing complexity through better organization and clearer patterns. Use ea...
-
Prevent sensitive data exposure
bridgecrewio/checkov20⭐ 7667Never log or store sensitive information (passwords, tokens, secrets) in clear text. This common security v...
-
Use descriptive names
strands-agents/sdk-python19⭐ 4044Choose names that clearly convey purpose and intent rather than generic or ambiguous terms. Names should be...
-
API authentication requirements
langflow-ai/langflow19⭐ 111046Ensure all API documentation and code examples include proper authentication headers and clearly explain au...
-
configuration value consistency
traefik/traefik18⭐ 55772Ensure configuration values follow consistent formats, use meaningful defaults, and accurately distinguish ...
-
Complete network configurations
traefik/traefik17⭐ 55772Network configuration examples and documentation should include all essential networking components such as...
-
Optimize allocation hotspots
netty/netty17⭐ 34227Identify and optimize object allocation in performance-critical paths by applying appropriate allocation st...
-
Configuration documentation clarity
langflow-ai/langflow17⭐ 111046Ensure configuration documentation clearly distinguishes between deployment contexts and uses consistent te...
-
no braces short ifs
hyprwm/Hyprland17⭐ 28863Remove braces around single-statement if blocks to maintain consistent code style and improve readability. ...
-
Use meaningful names
juspay/hyperswitch17⭐ 34028Use descriptive, self-explanatory names for variables, methods, fields, and types. Avoid single-letter vari...
-
optimize database operations
apache/spark16⭐ 41554When working with database operations, prioritize batching multiple statements and pushing operations down ...
-
Use descriptive semantic names
serverless/serverless16⭐ 46810Variable and function names should clearly communicate their purpose, type, and scope without requiring add...
-
Validate boundary conditions
rust-lang/rust16⭐ 105254Ensure algorithms handle boundary conditions and edge cases correctly by adding explicit validation for all...
-
documentation formatting consistency
nuxt/nuxt16⭐ 57769Ensure consistent formatting throughout documentation by applying these standards: wrap code terms, variabl...
-
Comprehensive test coverage
kubernetes/kubernetes16⭐ 116489Ensure comprehensive test coverage by systematically considering all scenarios, edge cases, and feature com...
-
Model integration rules
p-e-w/heretic16⭐ 5002When adding or changing model loading, quantization, LoRA/abliteration logic, or merging behavior, follow t...
-
Consistent module organization
p-e-w/heretic16⭐ 5002Keep code organized by responsibility and centralize reusable logic. Concretely: - Centralize helpers: mov...
-
Extract for clarity
elastic/elasticsearch16⭐ 73104Extract complex or reused logic into focused, well-named methods with single responsibilities. This improve...
-
Protect sensitive data
bridgecrewio/checkov16⭐ 7668Never log, display, or store sensitive information like passwords, tokens, or secrets in clear text. This c...
-
Comprehensive documentation standards
tokio-rs/axum16⭐ 22100Create clear, well-structured API documentation following proper formatting, correct references, informativ...
-
Use descriptive names
vlang/v15⭐ 36582Choose variable, function, and parameter names that clearly communicate their purpose and avoid confusion. ...
-
realistic documentation examples
sveltejs/svelte15⭐ 83580Use practical, complete examples in documentation rather than oversimplified or contrived ones that cut cor...
-
Avoid code duplication
BerriAI/litellm15⭐ 28310Eliminate redundant code by leveraging existing utilities, extracting reusable helper functions, and organi...
-
Organize code structure
juspay/hyperswitch15⭐ 34028Maintain clean and well-organized code structure by following consistent organizational patterns. This impr...
-
Explain non-obvious code
flutter/flutter15⭐ 172252Add explanatory comments for any code that isn't immediately self-explanatory, including magic numbers, imp...
-
Use specific assertion methods
fastify/fastify15⭐ 34000Choose the appropriate assertion method based on the data type being tested. This improves test readability...
-
Database type consistency
drizzle-team/drizzle-orm15⭐ 29461Ensure database-specific types, imports, and serialization are used consistently throughout the codebase. T...
-
Use descriptive, unambiguous names
bazelbuild/bazel15⭐ 24489Choose names that clearly communicate their purpose and avoid ambiguity or misinterpretation. Names should ...
-
Simplify complex code
bazelbuild/bazel15⭐ 24489Break down complex code structures into simpler, more readable forms to improve maintainability and reduce ...
-
Consistent terminology propagation
appwrite/appwrite15⭐ 51959When changing terminology or naming conventions in a codebase, ensure complete and consistent propagation a...
-
eliminate unnecessary code
Unstructured-IO/unstructured14⭐ 12116Remove redundant operations, unnecessary code blocks, and verbose constructs to improve code clarity and ma...
-
Optimize regex patterns
getsentry/sentry-php14⭐ 1873When using regular expressions, optimize for both performance and precision to ensure efficient and accurat...
-
Internationalize all text
RooCodeInc/Roo-Code14⭐ 17288All user-facing text must be wrapped with translation functions instead of using hardcoded English strings....
-
Consistent naming patterns
octokit/octokit.net14⭐ 2793Follow consistent naming conventions throughout the codebase to improve readability and maintainability: 1...
-
Guard against null
n8n-io/n8n14⭐ 122978Always use optional chaining (`?.`) and nullish coalescing (`??`) operators when accessing potentially unde...
-
Handle async operation errors
elie222/inbox-zero14⭐ 8267Always wrap asynchronous operations in try-catch-finally blocks to prevent unhandled promise rejections and...
-
Keep CI configurations minimal
laravel/framework14⭐ 33763When configuring CI workflows, include only the extensions, tools, and settings that are necessary for the ...
-
SQLAlchemy 2.0 patterns
langgenius/dify14⭐ 114231Migrate from legacy SQLAlchemy 1.x query patterns to modern 2.0 style for better performance, clarity, and ...
-
Consistent naming standards
home-assistant/core14⭐ 80450Ensure all user-facing strings follow Home Assistant's naming conventions for consistency and proper intern...
-
Configuration validation messages
cloudflare/workers-sdk13⭐ 3379Ensure configuration validation provides clear, actionable error messages that guide users toward correct c...
-
avoid expensive repeated operations
vlang/v13⭐ 36582Cache results of expensive computations and order operations from cheapest to most expensive to minimize pe...
-
Add comprehensive test coverage
vlang/v13⭐ 36582When adding functionality or fixing bugs, always add new test functions rather than modifying existing ones...
-
Enforce scope boundaries
gravitational/teleport13⭐ 19109When implementing hierarchical permission systems with scopes, ensure that permissions granted at a specifi...
-
Spring code style
spring-projects/spring-framework13⭐ 58382Follow Spring Framework's code style guidelines to ensure consistency across the codebase. Key rules includ...
-
Use semantically accurate names
servo/servo13⭐ 32962Variable, method, and type names should accurately reflect their actual purpose, content, and behavior. Avo...
-
Consistent descriptive naming
prometheus/prometheus13⭐ 59616Ensure variable, function, and type names are consistent, descriptive, and follow Go naming conventions. Na...
-
Code for readability
opencv/opencv13⭐ 82865Prioritize human readability when writing code. Split complex expressions into steps with meaningful variab...
-
Descriptive consistent naming
ghostty-org/ghostty13⭐ 32864Use descriptive, consistent naming that follows language and platform conventions. Choose names that clearl...
-
Use descriptive names
flutter/flutter13⭐ 172252Names should clearly describe what they represent or do, rather than how they're implemented or using gener...
-
API parameter consistency
electron/electron13⭐ 117644Ensure consistent parameter handling across API methods by using appropriate defaults, proper type conversi...
-
Clean up your code
deeplearning4j/deeplearning4j13⭐ 14036Maintain clean, professional code by removing development artifacts and improving readability: 1. **Remove...
-
Use descriptive contextual names
alacritty/alacritty13⭐ 59675Choose variable, function, and struct names that clearly communicate their purpose and content while consid...
-
Design interfaces, not implementations
zed-industries/zed12⭐ 62119Create intuitive API interfaces that abstract away implementation details while providing a consistent expe...
-
Use testify assertion libraries
vitessio/vitess12⭐ 19815Replace manual if-error checks with `testify`'s `assert` and `require` packages to make tests more readable...
-
Use semantically clear names
Unstructured-IO/unstructured12⭐ 12117Choose variable, method, and class names that clearly express their purpose and functionality to avoid conf...
-
simplify control flow patterns
twentyhq/twenty12⭐ 35477Improve code readability by simplifying control flow structures and avoiding unnecessary complexity. This i...
-
Simplify complex expressions
tree-sitter/tree-sitter12⭐ 21799Break down complex code structures into simpler, more readable forms. This includes avoiding deep nesting, ...
-
Configuration validation consistency
traefik/traefik12⭐ 55772Ensure configuration fields use consistent validation patterns, appropriate data types, and proper bounds c...
-
Use semantic naming
microsoft/terminal12⭐ 99242Names should clearly communicate their purpose, type, and behavior to improve code maintainability and acce...
-
Guide structure consistency
gravitational/teleport12⭐ 19109Documentation guides should follow a consistent structure and provide clear, descriptive content to improve...
-
consistent descriptive naming
SigNoz/signoz12⭐ 23369Use meaningful, descriptive names that clearly convey purpose and maintain consistency across similar conce...
-
eliminate code duplication
sgl-project/sglang12⭐ 17245Actively identify and eliminate code duplication by extracting common patterns into reusable components. Wh...
-
API consistency patterns
remix-run/react-router12⭐ 55270Ensure API design follows consistent patterns for naming, typing, and composition to improve developer expe...
-
Parameterize similar tests
python-poetry/poetry12⭐ 33496Use `pytest.mark.parametrize` to consolidate similar test cases instead of duplicating test code. This appr...
-
Component naming consistency
n8n-io/n8n12⭐ 122978Ensure component usage in templates matches registered components. Vue components must be referenced in tem...
-
Clean and consistent code
n8n-io/n8n12⭐ 122978Maintain clean and consistent code by removing unnecessary elements and following standard practices: 1. *...
-
Eliminate redundant constructs
apache/mxnet12⭐ 20801Remove unnecessary coding patterns that add complexity without providing value. Focus on clarity and simpli...
-
Model specification accuracy
lobehub/lobe-chat12⭐ 65138Ensure AI model configurations accurately reflect official specifications and avoid hardcoded assumptions. ...
-
prefer OpenAI compatibility
BerriAI/litellm12⭐ 28310When integrating new LLM providers or AI services, prioritize OpenAI-compatible patterns and reuse existing...
-
Mock tests in tests/litellm
BerriAI/litellm12⭐ 28310All new functionality must include mock tests placed in the `tests/litellm/` directory structure. Mock exte...
-
Use descriptive names
istio/istio12⭐ 37192Names should accurately reflect their actual functionality and behavior. Avoid misleading or vague identifi...
-
consistent highlighting patterns
helix-editor/helix12⭐ 39026Maintain consistency in syntax highlighting patterns by using appropriate, specific scopes and avoiding ove...
-
Use extensible parameter objects
electron/electron12⭐ 117644When designing APIs that may need additional parameters in the future, use objects instead of individual pa...
-
Provide contextual explanations
electron/electron12⭐ 117644Documentation should explain not just what APIs and features do, but when, why, and how to use them. Provid...
-
Use descriptive identifiers
discourse/discourse12⭐ 44898Choose names that clearly communicate purpose and reduce cognitive load for future readers. Avoid generic, ...
-
Follow existing naming patterns
docker/compose12⭐ 35858Maintain consistency with established naming conventions throughout the codebase. When adding new flags, fu...
-
consistent readable patterns
snyk/cli12⭐ 5178Maintain consistent coding patterns and prioritize readability to make code easier to understand and mainta...
-
Limit token permissions
chef/chef12⭐ 7860Always specify the minimum required permissions for the GITHUB_TOKEN in GitHub Actions workflows to enhance...
-
Maintain consistent style
oven-sh/bun12⭐ 79093Maintain consistent style patterns throughout the codebase to improve readability, reduce maintenance overh...
-
Follow support tiers
Homebrew/brew12⭐ 44168Configure your Homebrew installation according to the defined support tiers to ensure optimal functionality...
-
maintain consistent style
angular/angular12⭐ 98611Ensure consistent application of coding style conventions throughout the codebase, including naming pattern...
-
Use descriptive naming
volcano-sh/volcano11⭐ 4899Choose variable, function, and method names that clearly communicate their purpose and behavior. Avoid ambi...
-
Optimize algorithmic efficiency
volcano-sh/volcano11⭐ 4899Choose efficient algorithms and data structures to minimize computational overhead and improve code maintai...
-
Eliminate code redundancy
vllm-project/vllm11⭐ 51730Keep your codebase maintainable by eliminating both unnecessary and duplicated code: 1. **Remove debugging...
-
PEP 257 docstring compliance
Unstructured-IO/unstructured11⭐ 12116All public modules, classes, methods, and functions must have docstrings that follow PEP 257 formatting sta...
-
explicit None handling
Unstructured-IO/unstructured11⭐ 12116Always handle potential None values explicitly through defensive programming patterns, proper type annotati...
-
Minimize allocation hotspots
spring-projects/spring-framework11⭐ 58382Reduce object creation in performance-critical paths by carefully evaluating allocation patterns. For frequ...
-
Improve code organization
sgl-project/sglang11⭐ 17245Prioritize clean code structure and readability in AI/ML codebases by avoiding inline conditionals, using d...
-
optimize algorithmic complexity
servo/servo11⭐ 32962Prioritize algorithmic efficiency by choosing operations and data structures that minimize computational co...
-
comprehensive API documentation
servo/servo11⭐ 32962All public items, struct fields, and methods must have comprehensive documentation. When implementing web s...
-
Split for better readability
getsentry/sentry-php11⭐ 1873Break long lines and complex structures across multiple lines to improve code readability. Follow these gui...
-
require module documentation
semgrep/semgrep11⭐ 12598All modules containing functions should have corresponding .mli files with comprehensive documentation. The...
-
Optimize for readability
dotnet/runtime11⭐ 16578Write code that clearly communicates intent by using appropriate naming and formatting techniques. Improve ...
-
Device-agnostic acceleration code
pytorch/pytorch11⭐ 91345Avoid hardcoding specific device types like 'cuda' in AI code. Instead, use device-agnostic approaches such...
-
maintain code consistency
emcie-co/parlant11⭐ 12205Ensure consistent patterns, formatting, and conventions throughout the codebase. Inconsistencies in code st...
-
Craft actionable errors
opentofu/opentofu11⭐ 25901Create error messages that provide precise context, avoid unnecessary details, and give users clear actions...
-
precise language usage
nuxt/nuxt11⭐ 57769Use precise, natural language in documentation to improve clarity and readability. Focus on accurate word c...
-
Idempotent error-safe disposers
nodejs/node11⭐ 112178When implementing resource cleanup logic, especially disposers for explicit resource management, always des...
-
Follow modern C++ guidelines
maplibre/maplibre-native11⭐ 1411Adhere to the C++ Core Guidelines for improved code quality, readability, and maintainability. Follow these...
-
consolidate algorithmic patterns
ggml-org/llama.cpp11⭐ 83559Avoid duplicating similar algorithmic logic across multiple functions by consolidating them into generic, t...
-
AI model data validation
BerriAI/litellm11⭐ 28310All AI model configuration parameters must be verified against official provider documentation before mergi...
-
Organize documentation content
langflow-ai/langflow11⭐ 111046Structure documentation to prevent information overload and improve readability by using appropriate organi...
-
Use semantically clear names
kubernetes/kubernetes11⭐ 116489Choose names that accurately reflect the actual functionality, purpose, or semantic meaning rather than usi...
-
Feature gate field preservation
kubernetes/kubernetes11⭐ 116489When implementing feature-gated fields, always preserve existing field values when the feature gate is disa...
-
Names express clear intent
JetBrains/kotlin11⭐ 50857Choose names that clearly express intent and follow established conventions. Prefer explicit, descriptive n...
-
comprehensive test coverage
apache/kafka11⭐ 30575Ensure tests cover not only the happy path but also edge cases, error scenarios, and complete workflows. Ma...
-
consistent command flag design
jj-vcs/jj11⭐ 21171Design command-line interfaces with consistent flag semantics and leverage framework features for validatio...
-
Sanitize all inputs
elie222/inbox-zero11⭐ 8267Properly sanitize or escape all user-provided inputs before using them in sensitive contexts to prevent inj...
-
explicit error handling
juspay/hyperswitch11⭐ 34028Avoid catch-all patterns and implicit error handling. Handle each error case explicitly, use the ? operator...
-
Use clear names
p-e-w/heretic11⭐ 5002Rule: choose concise, semantically accurate, and responsibility-respecting names for identifiers (variables...
-
Surface errors clearly
p-e-w/heretic11⭐ 5002Rule: Fail fast, validate assumptions, and distinguish user cancellation. Motivation - Hidden or silently ...
-
Use descriptive naming
duckdb/duckdb11⭐ 32061Choose names that clearly communicate intent and purpose rather than being generic, abbreviated, or potenti...
-
Use descriptive names
duckdb/duckdb11⭐ 32061Names should be descriptive and unambiguous, clearly communicating their purpose and intent. Avoid abbrevia...
-
Use descriptive names
stanfordnlp/dspy11⭐ 27813Choose variable, method, class, and parameter names that clearly communicate their purpose and avoid ambigu...
-
Mock external dependencies only
home-assistant/core11⭐ 80450When writing tests for Home Assistant integrations, mock external library dependencies rather than Home Ass...
-
Use descriptive semantic names
ClickHouse/ClickHouse11⭐ 42425Names should accurately reflect their purpose, behavior, and semantic meaning to avoid confusion and improv...
-
Avoid unnecessary allocations
ClickHouse/ClickHouse11⭐ 42425Minimize memory allocations, data copying, and expensive operations by implementing early exits, using move...
-
Add explanatory comments
bazelbuild/bazel11⭐ 24489Add explanatory comments and documentation for complex logic, non-obvious code behavior, method parameters,...
-
Standardize platform-agnostic configuration
zed-industries/zed10⭐ 62119Ensure configuration handling is consistent and platform-agnostic by following these guidelines: 1. Use en...
-
prioritize code clarity
cloudflare/workerd10⭐ 6989Write code that prioritizes readability and clarity over minor optimizations or clever shortcuts. When face...
-
Validate nullability with types
microsoft/vscode10⭐ 174887Always handle null and undefined values explicitly through proper type declarations and validation patterns...
-
Document code thoroughly
vllm-project/vllm10⭐ 51730Always include comprehensive documentation for your code through both docstrings and explanatory comments. ...
-
Improve code clarity
vlang/v10⭐ 36582Write code that clearly expresses intent through explicit patterns, simplified logic, and readable structur...
-
prioritize code clarity
unionlabs/union10⭐ 74800Write code that prioritizes readability and explicitness over brevity. This includes using explicit type co...
-
Configuration documentation clarity
astral-sh/ty10⭐ 11919Configuration documentation should be precise, specific, and include helpful context for users. Avoid vague...
-
Use proper types
tensorflow/tensorflow10⭐ 190625Maintain code clarity by using appropriate type declarations and parameter passing conventions: 1. **Prefe...
-
Organize code by functionality
gravitational/teleport10⭐ 19109Structure code based on what it does rather than how it's implemented. Group related functionality together...
-
Complete API documentation
spring-projects/spring-framework10⭐ 58382Documentation should be complete, accurate, and follow Spring Framework conventions. Ensure your Javadocs i...
-
Purposeful documentation standards
getsentry/sentry-php10⭐ 1873Documentation should convey purpose and behavior, not just replicate code structure. Each docblock should e...
-
Standardize configuration paths
quarkusio/quarkus10⭐ 14667Follow consistent patterns for storing and referencing configuration files across projects. Place custom co...
-
Next.js directory structure
prowler-cloud/prowler10⭐ 11834Keep the Next.js `/app` directory strictly for routing purposes as per framework conventions. Non-routing r...
-
simplify complex algorithms
prometheus/prometheus10⭐ 59616When implementing algorithms, prioritize simplicity and maintainability over premature optimization. Comple...
-
Safe null handling
pola-rs/polars10⭐ 34296Always implement robust null handling patterns to prevent unexpected behavior and crashes. Consider all edg...
-
Extract duplicated code
pola-rs/polars10⭐ 34296Identify and extract duplicated code into reusable functions or move common fields to parent structures. Th...
-
prefer simple readable code
python-poetry/poetry10⭐ 33496Write code that prioritizes clarity and simplicity over cleverness. This improves maintainability and reduc...
-
Use descriptive identifier names
microsoft/playwright10⭐ 76113Choose specific, descriptive names for variables, methods, types, and other identifiers that clearly commun...
-
Consistent descriptive naming
opencv/opencv10⭐ 82865Use clear, descriptive names that follow consistent patterns established in the codebase and broader progra...
-
configuration resolution patterns
nuxt/nuxt10⭐ 57769When defining configuration schemas, use consistent patterns for safe property access, async resolution, an...
-
type-safe database operations
rocicorp/mono10⭐ 2091Implement proper type conversion and validation when working with different database systems to prevent run...
-
Avoid unnecessary auto
llvm/llvm-project10⭐ 33702Use explicit types instead of `auto` unless the type is obvious from the right-hand side of the assignment ...
-
TypeScript naming standards
langchain-ai/langchainjs10⭐ 15004Follow consistent naming conventions in TypeScript to improve code clarity, type safety, and developer expe...
-
simplify code structure
kubernetes/kubernetes10⭐ 116489Prioritize code simplification by removing unnecessary complexity, avoiding duplication, and leveraging exi...
-
Define technical terms clearly
jj-vcs/jj10⭐ 21171Always define technical terms and concepts explicitly in documentation rather than assuming reader knowledg...
-
Handle errors with care
elie222/inbox-zero10⭐ 8267Always implement comprehensive error handling for asynchronous operations, external API calls, and database...
-
Minimize allocations and syscalls
helix-editor/helix10⭐ 39026Optimize performance by minimizing unnecessary memory allocations and system calls. Key practices: 1. Avoi...
-
AI model integration patterns
google-gemini/gemini-cli10⭐ 65062When integrating with AI models and LLMs, structure your code to properly handle model responses, separate ...
-
Optimize for code readability
laravel/framework10⭐ 33763Prioritize code readability over clever solutions by: 1. Using early returns to reduce nesting 2. Leveragin...
-
optimize algorithmic efficiency
electron/electron10⭐ 117644Choose efficient data structures and algorithms to minimize computational overhead and improve performance....
-
Use descriptive names
langgenius/dify10⭐ 114231Choose names that clearly describe the purpose, behavior, or content of variables, methods, and classes. Av...
-
Safe null handling
langgenius/dify10⭐ 114231Handle null and undefined values safely by using appropriate fallback patterns, validating critical paramet...
-
organize code structure
denoland/deno10⭐ 103714Maintain clean code organization by moving implementation details to appropriate locations, extracting reus...
-
Centralize dependency management
deeplearning4j/deeplearning4j10⭐ 14036Manage dependencies at the top level using `
` to ensure version consistency across mo... -
Graceful error handling
snyk/cli10⭐ 5178Implement robust error handling that provides fallback mechanisms, ensures proper resource cleanup, and del...
-
Restrict public access
bridgecrewio/checkov10⭐ 7667Cloud resources should be configured to restrict public network access by default to minimize potential att...
-
Extract focused functions
bridgecrewio/checkov10⭐ 7667Break down complex logic into small, well-named functions that each do one thing well. This improves code r...
-
Consistent naming conventions
bridgecrewio/checkov10⭐ 7668Maintain consistent naming patterns throughout the codebase to improve readability and reduce confusion: 1...
-
Prefer explicit nil handling
Homebrew/brew10⭐ 44168Handle nil values explicitly and consistently to improve code clarity and type safety. Follow these guideli...
-
consistent configuration handling
better-auth/better-auth10⭐ 19651Ensure configuration options are handled uniformly across all API endpoints and providers. Configuration sh...
-
Type-safe flexible APIs
tokio-rs/axum10⭐ 22100Design APIs that favor both type safety and flexibility. Use strongly typed wrappers instead of primitive t...
-
Validate environment variables
appwrite/appwrite10⭐ 51959Always validate environment variables before use and implement proper fallback strategies. For required var...
-
Handle errors gracefully always
appwrite/appwrite10⭐ 51959Always implement graceful error handling for resource lookups, data parsing, and system operations. Catch s...
-
Enforce API endpoint consistency
appwrite/appwrite10⭐ 51959When implementing or modifying API endpoints, ensure consistency across related routes by checking: 1. Par...
-
optimize algorithmic efficiency
alacritty/alacritty10⭐ 59675Eliminate unnecessary operations and choose appropriate data structures to improve algorithmic efficiency. ...
-
Consistent semantic naming
vercel/ai10⭐ 15590Use clear, consistent, and semantic naming patterns across your codebase to improve readability and maintai...
-
Prefer idiomatic Option handling
zed-industries/zed9⭐ 62119When handling null values in Rust, use idiomatic Option patterns instead of verbose nested conditionals. Th...
-
Manage bindings and state
wavetermdev/waveterm9⭐ 17328Ensure components explicitly initialize reactive state, manage input/keybinding lifecycle, and decide wheth...
-
Eliminate unnecessary code patterns
microsoft/vscode9⭐ 174887Remove redundant code patterns that add complexity without value. This includes: 1. Duplicate code blocks ...
-
Extract reusable functions
volcano-sh/volcano9⭐ 4899When you identify duplicate code blocks, complex logic that can be simplified, or functionality that doesn'...
-
Avoid magic numbers
vllm-project/vllm9⭐ 51730Replace hardcoded values and magic numbers in AI model code with named constants or configuration parameter...
-
Write clear test cases
Unstructured-IO/unstructured9⭐ 12116Structure test cases for maximum readability and maintainability by following these principles: 1. Organiz...
-
validate configuration defaults
Unstructured-IO/unstructured9⭐ 12116Configuration parameters should be properly validated with appropriate defaults and clear handling of edge ...
-
Use descriptive specific names
twentyhq/twenty9⭐ 35477Names should be descriptive and specific enough to clearly communicate their purpose and avoid confusion. T...
-
Propagate errors with context
vercel/turborepo9⭐ 28115Properly propagate errors to callers with sufficient context rather than handling them prematurely or hidin...
-
Release locks before waking
tokio-rs/tokio9⭐ 28989In concurrent systems, it's critical to release locks before performing operations that might trigger reent...
-
Use consistent error handling
tensorflow/tensorflow9⭐ 190625Apply standardized error handling patterns across your codebase for improved reliability and debugging. For...
-
Use descriptive names
gravitational/teleport9⭐ 19109Choose names that clearly indicate their purpose and behavior rather than using generic or ambiguous terms....
-
thoughtful configuration design
gravitational/teleport9⭐ 19109When designing configuration schemas and fields, carefully consider their placement, validation, and long-t...
-
use modern null-safe operators
sveltejs/svelte9⭐ 83580Prefer modern JavaScript null-safe operators over verbose conditional checks to improve code readability an...
-
prefer simple code patterns
sveltejs/svelte9⭐ 83580Choose straightforward, readable code patterns over complex or clever alternatives. This improves maintaina...
-
Configurable model selection
browserbase/stagehand9⭐ 16443Avoid hard-coding model names and provider-specific configurations throughout the codebase. Instead, implem...
-
Preserve API compatibility
spring-projects/spring-boot9⭐ 77637When evolving APIs, maintain backward compatibility to avoid breaking client code. Consider these guideline...
-
avoid unwrap and panic
servo/servo9⭐ 32962Replace `.unwrap()` and `panic!()` calls with proper error handling to prevent crashes and improve robustne...
-
API design patterns
servo/servo9⭐ 32962Design APIs with appropriate parameter types, place conversion functions as trait implementations in the co...
-
consistent async/await usage
serverless/serverless9⭐ 46810When refactoring code to use async/await, ensure complete and consistent adoption throughout the function o...
-
Descriptive identifier naming
getsentry/sentry-php9⭐ 1873Choose meaningful, self-explanatory names for variables, parameters, properties, and methods that clearly c...
-
Use descriptive names
semgrep/semgrep9⭐ 12598Names should clearly and accurately describe their purpose, avoiding abbreviations, acronyms, and misleadin...
-
prefer simple readable code
semgrep/semgrep9⭐ 12598Choose clarity and simplicity over clever or complex constructs. Avoid unnecessary abstractions, complex fu...
-
avoid failwith patterns
semgrep/semgrep9⭐ 12598Avoid using `failwith`, `assert false`, and similar blunt error handling mechanisms that can turn recoverab...
-
Keep documentation purposefully minimal
rust-lang/rust9⭐ 105254Documentation should be concise, focused, and maintainable. Follow these principles: 1. Keep examples shor...
-
Specific exceptions with context
dotnet/runtime9⭐ 16578Always throw the most specific exception type appropriate for the error condition and include contextual in...
-
Optimize memory access
dotnet/runtime9⭐ 16578When implementing performance-critical algorithms, carefully consider memory access patterns. Document alig...
-
Follow naming patterns
dotnet/runtime9⭐ 16578Maintain consistent naming patterns throughout your code to improve readability and maintainability. Follow...
-
prefer Kotlin idioms
facebook/react-native9⭐ 123178Use Kotlin-specific constructs and syntax patterns instead of Java-style code to improve readability and ma...
-
Self-documenting identifier names
rails/rails9⭐ 57027Use clear, self-documenting names for variables, methods, and classes that express intent without exposing ...
-
Layer security defenses
rails/rails9⭐ 57027Implement multiple layers of security throughout your application rather than relying on a single protectio...
-
Verify token security level
quarkusio/quarkus9⭐ 14667When refreshing or updating authentication tokens, always verify the new token maintains or exceeds the ori...
-
minimize memory allocations
prometheus/prometheus9⭐ 59616Prioritize memory allocation minimization through buffer reuse, pre-allocation, and efficient data structur...
-
refactor complex conditions
prettier/prettier9⭐ 50772Break down complex inline conditions and nested logic into separate, well-named functions or simpler expres...
-
Use descriptive names
PostHog/posthog9⭐ 28460Choose names that clearly communicate purpose and accurately represent what they describe. Avoid ambiguous ...
-
Appropriate error handling
pola-rs/polars9⭐ 34296Distinguish between implementation errors (invariant violations) and expected failure cases. For implementa...
-
explicit configuration specification
python-poetry/poetry9⭐ 33496Always explicitly specify configuration values rather than relying on defaults or implicit behavior. Poetry...
-
Use semantically accurate names
commaai/openpilot9⭐ 58214Variable, method, and class names should accurately reflect their actual behavior and purpose. Misleading o...
-
Prefer explicit readable code
commaai/openpilot9⭐ 58214Write code that prioritizes readability and explicitness over cleverness or brevity. This includes several ...
-
Semantic over generic names
netty/netty9⭐ 34227Choose specific, descriptive names that clearly convey purpose over generic or abbreviated identifiers. Nam...
-
Document public APIs
netty/netty9⭐ 34227All public-facing APIs must be thoroughly documented with clear javadocs. This includes: 1. **Classes and ...
-
Explicit default configurations
nestjs/nest9⭐ 71767Always provide explicit default values for configuration options to improve code readability and maintainab...
-
Choose meaningful identifier names
nestjs/nest9⭐ 71767Names for variables, methods, and classes should be descriptive, semantically accurate, and consistent with...
-
Vue component test requirement
n8n-io/n8n9⭐ 122978Every Vue component (.vue file) that is created or modified must have at least one corresponding unit test ...
-
Use descriptive specific names
mastodon/mastodon9⭐ 48691Choose descriptive, specific names that clearly communicate intent and behavior rather than generic or ambi...
-
Ensure semantic naming accuracy
logseq/logseq9⭐ 37695Names should accurately reflect the actual behavior, purpose, and scope of functions, variables, and classe...
-
Use descriptive consistent names
LMCache/LMCache9⭐ 3800Choose names that clearly convey their purpose, role, and meaning while maintaining consistency with establ...
-
Safe access patterns
BerriAI/litellm9⭐ 28310Always use safe access methods when working with potentially null or undefined values. Use .get() for dicti...
-
AI provider documentation completeness
BerriAI/litellm9⭐ 28310Ensure comprehensive documentation for AI/ML provider integrations that covers all usage patterns, uses pre...
-
Sync documentation with code
langfuse/langfuse9⭐ 13574Always ensure documentation and comments accurately reflect the actual code implementation. When modifying ...
-
API documentation completeness
langflow-ai/langflow9⭐ 111046Ensure API documentation provides comprehensive, accurate information including limitations, complete workf...
-
Use semantically accurate names
apache/kafka9⭐ 30575Choose names that accurately reflect the purpose, scope, and semantics of variables, methods, and classes. ...
-
eliminate redundant code
jj-vcs/jj9⭐ 21171Remove unnecessary code, operations, and annotations that don't add value. This includes redundant type ann...
-
Simplify code structure
istio/istio9⭐ 37192Prioritize code simplicity and readability by leveraging standard library functions, improving control flow...
-
Add explanatory comments
istio/istio9⭐ 37192Code should include explanatory comments that help future maintainers understand complex logic, design deci...
-
Use transactions for consistency
elie222/inbox-zero9⭐ 8267Always wrap multiple related database operations in a transaction to ensure data consistency and prevent pa...
-
Remove commented code
elie222/inbox-zero9⭐ 8267Commented-out code should be removed from the codebase rather than left as comments. Keeping commented code...
-
plugin contract API
p-e-w/heretic9⭐ 5002Define a clear, minimal plugin contract and loader API for all external/ built-in plugins. Motivation: plug...
-
Extract repeated code
grafana/grafana9⭐ 68825Identify and extract repeated code patterns into well-named functions to improve readability, maintainabili...
-
eliminate code duplication
block/goose9⭐ 19037Actively identify and eliminate code duplication by extracting repeated logic into reusable functions, usin...
-
Code structure clarity
ghostty-org/ghostty9⭐ 32864Write code with clear structural organization that enhances readability and maintainability. Extract duplic...
-
organize code by responsibility
google-gemini/gemini-cli9⭐ 65062Place code at the appropriate abstraction level and extract complex logic to dedicated modules. Large files...
-
Explicit null handling
laravel/framework9⭐ 33763Use explicit identity comparisons for null checks and leverage modern PHP null-handling features to create ...
-
minimize memory allocations
gofiber/fiber9⭐ 37560Prioritize reducing memory allocations and choosing efficient data structures to improve performance. Avoid...
-
Ensure comprehensive test coverage
gofiber/fiber9⭐ 37560All code paths, error conditions, and edge cases must have corresponding unit tests to ensure robust functi...
-
Documentation translation guidelines
fastapi/fastapi9⭐ 86871Maintain consistency and accuracy when translating documentation. Ensure technical terms and special format...
-
conditional feature initialization
electron/electron9⭐ 117644Only initialize configuration-dependent features, systems, or resources when the relevant settings, flags, ...
-
Name reflects meaning
elastic/elasticsearch9⭐ 73104Choose names that clearly communicate the intent, behavior, and semantics of code elements. Names should be...
-
Eliminate code duplication
duckdb/duckdb9⭐ 32061Actively identify and eliminate code duplication to improve maintainability and reduce the risk of inconsis...
-
avoid silent failures
stanfordnlp/dspy9⭐ 27813Always provide clear feedback when operations fail, even when continuing with fallbacks or alternative appr...
-
Use modern null handling
discourse/discourse9⭐ 44898Leverage modern JavaScript operators and patterns for cleaner, more robust null and undefined handling. Thi...
-
minimize memory allocations
denoland/deno9⭐ 103714Identify and eliminate unnecessary memory allocations in performance-critical code paths. This includes pre...
-
Remove debugging artifacts
deeplearning4j/deeplearning4j9⭐ 14036Production code should be free from debugging artifacts that reduce readability and maintainability. Remove...
-
Extract repeated logic
comfyanonymous/ComfyUI9⭐ 83726When you notice code patterns being repeated across functions or methods, extract the common logic into sep...
-
Use descriptive names
snyk/cli9⭐ 5178Choose names that clearly communicate purpose, content, and intent. Avoid generic or ambiguous identifiers ...
-
Fail gracefully always
chef/chef9⭐ 7860Ensure code handles errors robustly by using protective patterns that prevent resource leaks, provide clear...
-
Centralize environment variables
bridgecrewio/checkov9⭐ 7668All environment variables should be defined in a centralized location (`checkov/common/util/env_vars_config...
-
Authorization hierarchy verification
calcom/cal.com9⭐ 37732Always implement comprehensive authorization checks that verify user permissions at the appropriate hierarc...
-
Ensure comprehensive test coverage
bazelbuild/bazel9⭐ 24489When implementing new functionality or modifying existing code, always add corresponding tests that compreh...
-
Documentation quality standards
Azure/azure-sdk-for-net9⭐ 5809Ensure documentation is specific, complete, and actionable for developers: 1. **Provide meaningful content...
-
Axum Code Review: Interaction Patterns
tokio-rs/axum9⭐ 22100When implementing Axum-based applications, it is crucial to ensure that the interaction patterns between co...
-
Ensure database transactional integrity
appwrite/appwrite9⭐ 51959When performing multiple related database operations, use transactions and proper error handling to maintai...
-
comprehensive test coverage
angular/angular9⭐ 98611Ensure test suites provide comprehensive coverage by including edge cases, different input scenarios, and a...
-
Use descriptive names
cloudflare/workers-sdk8⭐ 3379Choose names that clearly describe their purpose, behavior, and data type rather than generic or ambiguous ...
-
Informative error messages
cloudflare/workers-sdk8⭐ 3379Error messages should provide specific context and actionable guidance to help developers understand and re...
-
dependency version constraints
cloudflare/workers-sdk8⭐ 3379Ensure consistent and appropriate dependency version constraints across all package.json files. Use flexibl...
-
Use appropriate exception types
cloudflare/workerd8⭐ 6989Choose the correct exception handling mechanism and type based on the error condition's nature and audience...
-
Prioritize descriptive naming
cloudflare/workerd8⭐ 6989Choose clear, self-explanatory names that prioritize readability over brevity. Avoid abbreviations, obscure...
-
isolate lock safety
cloudflare/workerd8⭐ 6989Always ensure proper isolate lock management and thread-safe access patterns when working with JavaScript c...
-
Favor reusable helpers
wavetermdev/waveterm8⭐ 17328Centralize repeated UI logic and prefer modern, consistent JS style. When you see duplicated logic, ad-hoc ...
-
Vectorize over Python loops
vllm-project/vllm8⭐ 51730Replace Python loops and list comprehensions with vectorized operations when processing tensors or performi...
-
Catch specific exception types
vllm-project/vllm8⭐ 51730Avoid using broad exception handlers like `except Exception:` or bare `except:`. Instead, catch specific ex...
-
Prevent concurrent access races
vitessio/vitess8⭐ 19815When sharing data across goroutines, always use proper synchronization mechanisms to prevent race condition...
-
Meaningful consistent naming
vitessio/vitess8⭐ 19815Use descriptive, semantically clear names that follow consistent patterns throughout the codebase. Names sh...
-
Names should be descriptive
astral-sh/uv8⭐ 60322Use clear, descriptive names while avoiding redundant qualifiers. Choose full words over abbreviations unle...
-
Clear precise documentation
astral-sh/uv8⭐ 60322Documentation should use direct, precise language that accurately describes components and their behavior. ...
-
Use descriptive semantic names
unionlabs/union8⭐ 74800Choose names that clearly communicate purpose, intent, and functionality rather than generic or abbreviated...
-
Optimize critical loops
microsoft/typescript8⭐ 105378When implementing algorithms with nested loops or recursive operations, carefully analyze the computational...
-
simplify code structure
twentyhq/twenty8⭐ 35477Write code that is easy to read and understand by avoiding unnecessary complexity in structure and logic. T...
-
Validate configurations comprehensively
vercel/turborepo8⭐ 28115When implementing configuration systems, ensure comprehensive validation, testing, and documentation. Key r...
-
Descriptive, unambiguous identifiers
vercel/turborepo8⭐ 28115Choose names that clearly express intent and behavior while avoiding ambiguity. Identifiers should communic...
-
ensure documentation completeness
traefik/traefik8⭐ 55772Documentation should include all necessary information for users to successfully implement features. This i...
-
Write focused single-purpose tests
tokio-rs/tokio8⭐ 28981Break down large test cases into smaller, focused tests that each verify a single feature or behavior. Each...
-
Optimize algorithmic complexity
tokio-rs/tokio8⭐ 28989Always consider the time and space complexity implications of your code. Choose data structures and algorit...
-
Return results not panics
huggingface/tokenizers8⭐ 9868Libraries should never panic as this can crash applications using the library. Always return a `Result` typ...
-
Use descriptive identifiers
microsoft/terminal8⭐ 99242Choose clear, self-documenting names for variables, methods, parameters, and properties that explicitly con...
-
optimize algorithmic choices
microsoft/terminal8⭐ 99242Choose efficient algorithms and data structures to improve performance and reduce computational overhead. T...
-
Cache expensive computations
microsoft/terminal8⭐ 99242Identify and cache the results of expensive operations that are computed repeatedly with the same inputs. T...
-
Names reflect precise behavior
temporalio/temporal8⭐ 14953Choose names that accurately reflect the behavior and purpose of code elements. Names should be semanticall...
-
Descriptive specific names
spring-projects/spring-framework8⭐ 58382Choose names that are specific, descriptive, and accurately reflect the purpose and domain of variables, me...
-
Optimize test case design
spring-projects/spring-boot8⭐ 77637Write focused, efficient tests that validate core functionality without unnecessary complexity. Key princip...
-
Follow consistent style conventions
spring-projects/spring-boot8⭐ 77637Spring Boot projects maintain specific coding style conventions for consistency and readability. When contr...
-
Explicit security configurations
spring-projects/spring-boot8⭐ 77637When configuring security-related features, always use the most specific configurer classes to make securit...
-
Eliminate redundant operations
sgl-project/sglang8⭐ 17245Avoid duplicate function calls, repeated tensor operations, and redundant computations that can significant...
-
avoid unsafe unwrapping
servo/servo8⭐ 32962Replace `.unwrap()` calls and sentinel values with safe null handling patterns to prevent runtime panics an...
-
avoid unnecessary work
servo/servo8⭐ 32962Identify and eliminate computational work that serves no purpose, particularly for inactive, hidden, or irr...
-
prefer simple readable patterns
serverless/serverless8⭐ 46810Choose simple, readable code patterns over complex alternatives. Avoid unnecessary complexity that doesn't ...
-
maintain backwards compatibility
strands-agents/sdk-python8⭐ 4044When modifying public APIs, always preserve backwards compatibility to avoid breaking existing consumers. P...
-
Precise type narrowing
astral-sh/ruff8⭐ 40619Implement sound type narrowing algorithms that balance precision with correctness. When narrowing types: 1...
-
Use descriptive, conflict-free names
TanStack/router8⭐ 11590Choose descriptive names that clearly convey purpose while avoiding conflicts with existing APIs, built-in ...
-
Dependency version specification
TanStack/router8⭐ 11590Ensure proper dependency version specification and compatibility management in package.json files. Use expl...
-
Extract reusable patterns
RooCodeInc/Roo-Code8⭐ 17288Extract repetitive or complex code into reusable functions, components, or custom hooks. This improves code...
-
Organize tests for clarity
rails/rails8⭐ 57027Structure tests to maximize clarity and maintainability by: 1. Placing related tests together in appropriat...
-
Optimize numerical precision
pytorch/pytorch8⭐ 91345When implementing AI operations that involve matrix multiplication or neural network components, explicitly...
-
Use configurable default values
prowler-cloud/prowler8⭐ 11834Make configuration values flexible and robust by avoiding hardcoded values and providing sensible defaults....
-
Specific exception handling
prowler-cloud/prowler8⭐ 11834Handle exceptions with specificity rather than using broad catch-all blocks. Catch specific exception types...
-
Write meaningful documentation
prometheus/prometheus8⭐ 59616Documentation comments should be accurate, concise, and add genuine value rather than restating obvious cod...
-
metrics registration lifecycle
prometheus/prometheus8⭐ 59616Ensure proper metrics registration and lifecycle management to maintain observability system stability. Han...
-
Configuration mutual exclusivity validation
prometheus/prometheus8⭐ 59616Ensure configuration options that are mutually exclusive are properly validated with clear, actionable erro...
-
explicit null handling
prisma/prisma8⭐ 42967Prefer explicit null and undefined handling over optional or nullable types. When possible, provide default...
-
dependency classification standards
prisma/prisma8⭐ 42967Ensure proper classification and versioning of package dependencies in package.json files. Dependencies sho...
-
Use descriptive variable names
prettier/prettier8⭐ 50772Choose variable and function names that clearly communicate their purpose, type, and context. Avoid abbrevi...
-
Documentation example consistency
prettier/prettier8⭐ 50772Ensure all code examples and documentation maintain consistent formatting standards, use descriptive variab...
-
Explicit null handling
python-poetry/poetry8⭐ 33496Use explicit and clear patterns when handling null/None values to improve code readability and maintainabil...
-
API consistency standards
emcie-co/parlant8⭐ 12205Maintain consistent patterns across all API endpoints, including naming conventions, response structures, H...
-
Separate configuration lifecycles
opentofu/opentofu8⭐ 25901Maintain clear separation between different stages of configuration processing by creating dedicated struct...
-
Log effectively for debugging
opentofu/opentofu8⭐ 25901Always include meaningful log messages at appropriate levels to aid in debugging and system monitoring. Fol...
-
Document intent and limitations
opentofu/opentofu8⭐ 25901Clearly document the intended purpose, scope limitations, and design decisions in your code. For all export...
-
Follow GoDoc conventions
ollama/ollama8⭐ 145704Document code following Go's official documentation style guide (https://tip.golang.org/doc/comment). All e...
-
Descriptive balanced naming
ollama/ollama8⭐ 145704Choose identifier names that clearly communicate their purpose while maintaining an appropriate balance bet...
-
Use specific assertions
octokit/octokit.net8⭐ 2793Always write assertions that verify specific, expected values rather than simple existence or boolean check...
-
Document public API elements
octokit/octokit.net8⭐ 2793Every public API element (classes, methods, properties, constructors) must have XML documentation comments ...
-
explicit null safety
novuhq/novu8⭐ 37700Always perform explicit null and undefined checks before processing values, and use the nullish coalescing ...
-
Complete OpenAPI annotations
novuhq/novu8⭐ 37700Ensure all API endpoints have complete and accurate OpenAPI annotations to support proper SDK generation an...
-
Informative error messages
nodejs/node8⭐ 112178Error messages should be specific, actionable, and include context that helps developers understand and fix...
-
Evolve return values
nodejs/node8⭐ 112178When extending APIs with new capabilities, carefully consider how changes to return values affect consumers...
-
Technical documentation precision
vercel/next.js8⭐ 133000Ensure technical documentation is precise, accurate, and correctly formatted to prevent confusion and impro...
-
Secure Data Handling in Next.js Applications
vercel/next.js8⭐ 133000When building Next.js applications that handle sensitive data, it's crucial to implement robust security me...
-
Effective Cache Management in Next.js Applications
vercel/next.js8⭐ 133000When implementing caching in Next.js applications, it is crucial to be intentional about the caching behavi...
-
reduce test verbosity
neovim/neovim8⭐ 91433Write concise, efficient tests by eliminating repetitive code and combining related test cases. Avoid verbo...
-
consistent naming conventions
neovim/neovim8⭐ 91433Maintain consistent naming patterns and terminology across the codebase to reduce cognitive load and improv...
-
Design domain-specific error types
neondatabase/neon8⭐ 19015Create and use domain-specific error types instead of generic errors or anyhow. This improves error handlin...
-
Use structured logging
n8n-io/n8n8⭐ 122978Always use the project's structured logger instead of direct console methods (`console.log`, `console.error...
-
Prevent null reference exceptions
n8n-io/n8n8⭐ 122978Always use optional chaining and nullish coalescing operators to prevent runtime errors when accessing prop...
-
Technical precision matters
apache/mxnet8⭐ 20801When documenting AI models, frameworks, and optimization techniques, precision in language is as important ...
-
Validate noexcept guarantees
maplibre/maplibre-native8⭐ 1411Only mark functions as `noexcept` when you can guarantee they won't throw exceptions under any circumstance...
-
Environment variable access
lobehub/lobe-chat8⭐ 65138Use direct `process.env` access and standardized configuration management instead of custom environment var...
-
Use descriptive names
llvm/llvm-project8⭐ 33702Choose names that clearly describe the purpose, behavior, and content of functions, variables, and constant...
-
maintain naming consistency
ggml-org/llama.cpp8⭐ 83559Follow established naming patterns and conventions consistently throughout the codebase. This includes usin...
-
Extract repeated code
langfuse/langfuse8⭐ 13574Follow the DRY (Don't Repeat Yourself) principle by extracting repeated code patterns into helper functions...
-
API field documentation
kubernetes/kubernetes8⭐ 116489API fields must be comprehensively documented with clear behavior specifications, format constraints, and i...
-
Effective API samples
JetBrains/kotlin8⭐ 50857Create clear, comprehensive, and properly structured code samples to document API usage. Follow these princ...
-
Conditional configuration management
kilo-org/kilocode8⭐ 7302Ensure configurations are conditional, context-aware, and resilient. Use feature flags to control functiona...
-
prefer modern collection APIs
apache/kafka8⭐ 30575Use modern collection creation methods instead of legacy alternatives for improved readability and concisen...
-
Use descriptive names
influxdata/influxdb8⭐ 30268Names in code should be self-documenting, accurately reflect purpose, and follow consistent conventions. Ap...
-
Promote code clarity
influxdata/influxdb8⭐ 30268Write code that prioritizes clarity and maintainability over brevity. This involves several key practices: ...
-
Minimize critical path allocations
influxdata/influxdb8⭐ 30268Avoid unnecessary memory allocations in performance-critical code paths. These allocations not only consume...
-
Lock with defer unlock
influxdata/influxdb8⭐ 30268Always follow the lock-defer-unlock pattern when protecting shared resources with mutexes. Acquire the lock...
-
Choose appropriate lock primitives
influxdata/influxdb8⭐ 30268Select lock types based on access patterns - prefer RWLock over Mutex for read-heavy operations to enable c...
-
Maintain clean code structure
hyprwm/Hyprland8⭐ 28863Keep code well-organized by separating interface from implementation, managing dependencies properly, and f...
-
Protect sensitive data
juspay/hyperswitch8⭐ 34028Wrap all sensitive data fields in Secret<> types to prevent accidental exposure through logs, debug output,...
-
Manage tensors proactively
p-e-w/heretic8⭐ 5002Motivation: Large models and matrix ops can produce big ephemeral tensors, cross-device copies, and tempora...
-
Config schema conventions
p-e-w/heretic8⭐ 5002Provide a clear, stable, and discoverable configuration schema. Apply the following rules to all TOML/envir...
-
Documentation clarity and formatting
ghostty-org/ghostty8⭐ 32864Ensure documentation is clear, precise, and consistently formatted. Key practices include: 1. **Be explici...
-
Prevent concurrent state races
google-gemini/gemini-cli8⭐ 65062When multiple operations can execute concurrently (e.g., multiple keystrokes in the same React event loop, ...
-
Use semantic exceptions
laravel/framework8⭐ 33763Choose exception types that accurately reflect the nature of the error. Use `LogicException` for developer ...
-
Precise type annotations
laravel/framework8⭐ 33763Always use the most specific and accurate type information possible in PHPDoc comments to improve static an...
-
Follow naming patterns
gofiber/fiber8⭐ 37560Maintain consistent naming conventions throughout the codebase by following established patterns and avoidi...
-
Write clear documentation
fastify/fastify8⭐ 34000Documentation should be clear, precise, and self-contained while following established style conventions. W...
-
Isolate configuration concerns
fastapi/fastapi8⭐ 86871Keep configuration settings separate from application code by using environment variables or dedicated conf...
-
Document all responses
fastapi/fastapi8⭐ 86871When designing APIs, thoroughly document all possible responses your endpoints can return, not just the "ha...
-
Single source documentation
expressjs/express8⭐ 67300Maintain documentation with a single source of truth to prevent inconsistencies and reduce maintenance burd...
-
Enforce null safety patterns
expressjs/express8⭐ 67300Implement comprehensive null safety patterns to prevent runtime errors and ensure predictable behavior. Fol...
-
use optional types safely
electron/electron8⭐ 117644When functions may not return valid values, use `std::optional` or `absl::optional` instead of raw types th...
-
Optimize before implementing
elastic/elasticsearch8⭐ 73104Before implementing algorithms, evaluate their efficiency implications, especially for operations that may ...
-
Handle optional dependencies gracefully
stanfordnlp/dspy8⭐ 27813When integrating with external AI libraries, models, or services, handle optional dependencies gracefully t...
-
verify authorization explicitly
discourse/discourse8⭐ 44898Always perform explicit authorization checks rather than assuming existing security controls are sufficient...
-
Avoid ambiguous naming
denoland/deno8⭐ 103714Choose names that clearly convey their purpose and avoid ambiguous identifiers that can be misinterpreted. ...
-
Document API completely
deeplearning4j/deeplearning4j8⭐ 14036All public APIs must have comprehensive and clear documentation that helps developers understand functional...
-
Semantic naming patterns
crewaiinc/crewai8⭐ 33945Names should clearly communicate purpose, relationships, and domain context. Choose identifiers that reveal...
-
Prefer pythonic simplicity
crewaiinc/crewai8⭐ 33945Use Python's expressive features to write cleaner, more maintainable code by reducing nesting and improving...
-
Clear variable naming
home-assistant/core8⭐ 80450Use descriptive, unambiguous variable and function names that clearly convey their purpose and avoid confli...
-
avoid code duplication
home-assistant/core8⭐ 80450Create reusable components instead of duplicating similar code patterns. When you find yourself writing sim...
-
Environment variable validation
docker/compose8⭐ 35858Always validate environment variables and provide appropriate fallbacks when using them for configuration. ...
-
break down large files
cline/cline8⭐ 48299Large files with multiple responsibilities should be broken down into focused, single-responsibility module...
-
validate before executing operations
ClickHouse/ClickHouse8⭐ 42425Always validate inputs and preconditions before executing database operations, and fail explicitly rather t...
-
Use centralized loggers
snyk/cli8⭐ 5178Always use centrally supplied loggers from the invocation context or configuration instead of creating new ...
-
Extract and organize methods
chef/chef8⭐ 7860Break down large, complex methods into smaller, focused methods with clear names that describe their purpos...
-
Write pythonic code
bridgecrewio/checkov8⭐ 7668Embrace Python's idiomatic programming style to make your code more readable, concise, and maintainable. Fo...
-
Safe dictionary access
bridgecrewio/checkov8⭐ 7667Always use safe dictionary access patterns when handling potentially null or missing values. This prevents ...
-
Restrict public network
bridgecrewio/checkov8⭐ 7668Always configure cloud resources to restrict or disable public network access unless explicitly required fo...
-
Choose optimal algorithms
bridgecrewio/checkov8⭐ 7667Always select appropriate data structures and algorithms based on their performance characteristics and the...
-
Write self-documenting tests
boto/boto38⭐ 9417Tests should clearly communicate their purpose and expectations without requiring readers to analyze implem...
-
Wrap errors with context
argoproj/argo-cd8⭐ 20149When propagating errors up the call stack, always wrap them with contextual information about the failing o...
-
Comprehensive migration planning
appwrite/appwrite8⭐ 51959When changing identifier systems (e.g., from using `getInternalId()` to `getSequence()`), implement compreh...
-
consistent null handling patterns
angular/angular8⭐ 98611Use consistent and meaningful null/undefined handling patterns throughout your code. Prefer positive type g...
-
Explain code intent
alacritty/alacritty8⭐ 59675Comments and documentation should explain WHY code exists and what purpose it serves, not just describe wha...
-
Use descriptive action names
apache/airflow8⭐ 40858Names should clearly indicate purpose and behavior using appropriate action verbs and descriptive terms. Th...
-
Test through public APIs
zed-industries/zed7⭐ 62119Write comprehensive tests that validate functionality through public interfaces rather than testing impleme...
-
Document compatibility flags comprehensively
cloudflare/workerd7⭐ 6989All compatibility flags must include comprehensive documentation that clearly explains their purpose, behav...
-
comprehensive assertion testing
cloudflare/workerd7⭐ 6989Ensure test assertions are thorough and complete by testing both expected behavior and error conditions wit...
-
Avoid redundant operations
volcano-sh/volcano7⭐ 4899Eliminate duplicate computations, unnecessary API calls, and redundant processing to improve performance an...
-
Add explicit nil checks
volcano-sh/volcano7⭐ 4899Always add explicit nil checks before accessing object properties and after type assertions to prevent null...
-
Follow logging best practices
vllm-project/vllm7⭐ 51730Maintain high-quality logging throughout the codebase by following these best practices: 1. **Use appropri...
-
Check before access
vllm-project/vllm7⭐ 51730Always verify that objects, attributes, and variables are not None before accessing their properties, calli...
-
Dynamic configuration needs validation
vitessio/vitess7⭐ 19815When implementing dynamic configuration options, validate that the system actually supports runtime changes...
-
Descriptive consistent naming
vitejs/vite7⭐ 74031Choose variable, function, and class names that accurately reflect their purpose while maintaining consiste...
-
informative error messages
vlang/v7⭐ 36582Error messages should be specific, contextual, and include relevant information to aid debugging and user u...
-
function documentation standards
vlang/v7⭐ 36582All public functions and methods must be documented with comments that `v doc` can understand. Documentatio...
-
Clear technical writing
vlang/v7⭐ 36582Ensure technical documentation uses clear, grammatically correct language with consistent formatting when e...
-
Choose efficient data structures
vlang/v7⭐ 36582Select data structures and algorithms based on performance characteristics and actual usage patterns rather...
-
Structure for readability
astral-sh/uv7⭐ 60322Organize code to maximize readability and maintainability. When code becomes complex, break it down into sm...
-
Redact URL credentials
astral-sh/uv7⭐ 60322Always redact sensitive credentials in URLs before logging, displaying in error messages, or serializing to...
-
Choose efficient data structures
unionlabs/union7⭐ 74800Select data structures and algorithms that optimize for the specific use case rather than defaulting to gen...
-
Organize tailwind classes
shadcn-ui/ui7⭐ 90568Structure your Tailwind CSS classes for readability and maintainability. Instead of long chains of conditio...
-
Names reveal semantic purpose
microsoft/typescript7⭐ 105378Choose names that clearly communicate the semantic purpose and behavior of code elements. Variable and func...
-
Document function behavior completely
microsoft/typescript7⭐ 105378Functions should be documented with comprehensive JSDoc comments that cover: 1. Purpose and behavior descri...
-
prefer compile-time configuration
tree-sitter/tree-sitter7⭐ 21799Use compile-time configuration checks with `cfg!` macros instead of runtime environment variable parsing wh...
-
avoid unnecessary Option operations
tree-sitter/tree-sitter7⭐ 21799When working with Option types, prefer efficient and safe access patterns over unnecessary operations. Use ...
-
Use descriptive names
traefik/traefik7⭐ 55772Choose names that clearly express the purpose, behavior, or semantic meaning of variables, functions, and t...
-
Structure conditional compilation
tokio-rs/tokio7⭐ 28981Use organized structural patterns for conditional compilation to improve code maintainability and readabili...
-
Follow naming conventions
tokio-rs/tokio7⭐ 28981Choose names that follow established API conventions and guidelines to create a consistent, intuitive codeb...
-
Meaningful consistent names
tensorflow/tensorflow7⭐ 190625Choose names that are both semantically precise and follow consistent conventions. Names should accurately ...
-
Measure performance impact
sveltejs/svelte7⭐ 83580Before making performance-related changes, measure the actual impact with benchmarks and profiling. Many pe...
-
Document structure consistency
supabase/supabase7⭐ 86070Maintain consistent document structure and formatting in documentation to improve readability and user expe...
-
Use AssertJ correctly
spring-projects/spring-framework7⭐ 58382Spring Framework tests must use AssertJ for assertions rather than JUnit's `Assertions`, Spring's `Assert` ...
-
Maintain consistent naming patterns
spring-projects/spring-boot7⭐ 77637Follow established naming patterns and conventions throughout the codebase to ensure consistency and clarit...
-
Consistent observability data
spring-projects/spring-boot7⭐ 77637When implementing observability features, always ensure consistency in your data model, especially with tag...
-
Simplify conditional structures
apache/spark7⭐ 41554Organize complex conditional logic using clear, sequential patterns rather than nested structures or multip...
-
validate memory bounds
bytedance/sonic7⭐ 8532Always validate array and string bounds before accessing memory to prevent out-of-bounds access and potenti...
-
Package organization standards
SigNoz/signoz7⭐ 23369Maintain proper package organization by following established structural patterns and separation of concern...
-
Promise error handling patterns
serverless/serverless7⭐ 46810When handling promise errors, use the second callback parameter of `.then()` instead of `.catch()` when you...
-
Eliminate redundant operations
serverless/serverless7⭐ 46810Identify and eliminate repeated expensive operations to improve performance. Look for opportunities to cach...
-
API schema validation accuracy
serverless/serverless7⭐ 46810Ensure that JSON schema validation for API configurations precisely matches the actual service requirements...
-
Language-agnostic configuration design
oraios/serena7⭐ 14465Design configuration parameters to be language-agnostic when possible, use established configuration object...
-
Use data providers effectively
getsentry/sentry-php7⭐ 1873Organize your test suite by using data providers to consolidate similar test cases rather than creating mul...
-
Evolve API safely
getsentry/sentry-php7⭐ 1873When modifying existing APIs, implement changes that maintain backward compatibility while enabling new fun...
-
Minimize mocks verify behavior
getsentry/sentry7⭐ 41297Write tests that verify actual system behavior rather than implementation details by minimizing mock usage ...
-
eliminate code duplication
strands-agents/sdk-python7⭐ 4044Identify and consolidate duplicate code patterns by extracting common logic into reusable functions and uni...
-
Choose appropriate synchronization
strands-agents/sdk-python7⭐ 4044Select the correct synchronization mechanism based on your execution context and avoid unnecessary synchron...
-
Standardize configuration value handling
rust-lang/rust7⭐ 105254Implement robust and type-safe configuration handling to avoid fragile hardcoding and improve maintainabili...
-
Ensure complete test coverage
rust-lang/rust7⭐ 105254Write comprehensive tests that cover all relevant cases and variations while maintaining proper organizatio...
-
Simplify code expressions
dotnet/runtime7⭐ 16578Strive for clarity by simplifying code expressions and reducing unnecessary complexity. Complex or verbose ...
-
Choose error strategies deliberately
astral-sh/ruff7⭐ 40619Make deliberate choices about error handling strategies based on the context. Decide between early returns ...
-
SSR documentation completeness
TanStack/router7⭐ 11590Ensure server-side rendering documentation provides complete implementation details with proper build confi...
-
Validate nullable values explicitly
RooCodeInc/Roo-Code7⭐ 17288Always handle potentially null or undefined values explicitly using type guards, null coalescing operators,...
-
Preserve error context chain
RooCodeInc/Roo-Code7⭐ 17288When catching and re-throwing errors, always preserve the original error context using the `cause` option o...
-
Maintain consistent terminology patterns
RooCodeInc/Roo-Code7⭐ 17288Ensure consistent terminology usage across the codebase, especially in localization files and technical doc...
-
Document i18n string usage
RooCodeInc/Roo-Code7⭐ 17288All user-facing strings must be documented with translation function usage to ensure proper internationaliz...
-
Consistent localization formatting
RooCodeInc/Roo-Code7⭐ 17288Ensure all localization strings maintain consistent formatting patterns within each locale file. This inclu...
-
Configure with care
RooCodeInc/Roo-Code7⭐ 17288Always validate configuration values before use, provide sensible defaults, and centralize constants in sha...
-
simplify redundant logic
facebook/react-native7⭐ 123178Eliminate redundant conditional logic, extract duplicated code, and choose simpler patterns over complex im...
-
extract complex logic
facebook/react-native7⭐ 123178Break down complex functions and large files into smaller, focused units with clear responsibilities. Extra...
-
Configuration validation and defaults
facebook/react-native7⭐ 123178Always validate configuration structure before accessing properties and provide sensible defaults while pre...
-
avoid !! operator
facebook/react-native7⭐ 123178Avoid using the not-null assertion operator (`!!`) as it can cause runtime crashes if the assumption about ...
-
Database-specific query optimization
rails/rails7⭐ 57027Leverage database-specific features to optimize queries and improve performance. Different database engines...
-
Configure at proper scope
rails/rails7⭐ 57027Place configuration options at their proper scope within the framework hierarchy. Avoid tight coupling betw...
-
Meaningful error communication
quarkusio/quarkus7⭐ 14667Error handling should be designed to provide clear, actionable information to developers while avoiding red...
-
Document configuration comprehensively
quarkusio/quarkus7⭐ 14667Configuration properties should be thoroughly documented with explicit details about constraints, units, de...
-
API evolution strategy
quarkusio/quarkus7⭐ 14667Design APIs with future extensibility in mind by using parameter objects instead of direct method parameter...
-
Document code rationale
pydantic/pydantic7⭐ 24377Add clear comments that explain the "why" behind non-obvious code decisions, complex logic, or special-case...
-
Consistent term capitalization
pydantic/pydantic7⭐ 24377Follow consistent capitalization rules for technical terms, acronyms, and library names throughout your cod...
-
Meaningful consistent naming
prowler-cloud/prowler7⭐ 11834Use names that clearly describe the purpose and behavior of variables, methods, classes, and files, while m...
-
Extract duplicate code
prisma/prisma7⭐ 42967When you notice code patterns being repeated across multiple locations, extract them into reusable function...
-
Database provider compatibility
prisma/prisma7⭐ 42967Ensure database code properly handles provider-specific differences and capabilities. Different database pr...
-
consistent error object usage
prisma/prisma7⭐ 42967Always use proper Error objects when throwing exceptions, maintain consistent error handling contracts, and...
-
Consistent clear naming
prisma/prisma7⭐ 42967Use consistent terminology across similar concepts and choose names that clearly indicate their purpose. Av...
-
Use descriptive names
python-poetry/poetry7⭐ 33496Variable, method, and class names should clearly and accurately describe their purpose, content, or behavio...
-
optimize algorithmic efficiency
python-poetry/poetry7⭐ 33496Choose efficient algorithms and data structures to avoid unnecessary computational complexity. Look for opp...
-
dependency constraint consistency
python-poetry/poetry7⭐ 33496Maintain consistent formatting and rationale for dependency version constraints in configuration files. Use...
-
validate inputs early
microsoft/playwright7⭐ 76113Always validate function parameters and configuration options at the beginning of functions, providing spec...
-
Specify configuration behaviors
opentofu/opentofu7⭐ 25901When implementing configuration features (variables, flags, resources), thoroughly document their behavior ...
-
Optimize code location scope
open-telemetry/opentelemetry-python7⭐ 2061Place code in the most specific and appropriate location to improve findability and maintainability. Follow...
-
Future-proof API design
open-telemetry/opentelemetry-python7⭐ 2061Design APIs that can evolve without breaking existing code. Use keyword-only arguments (with `*,`) for opti...
-
Use proper assertions
opencv/opencv7⭐ 82865Write tests with proper assertions to ensure reliability and maintainability. Follow these guidelines: 1. ...
-
Use optimized functions
opencv/opencv7⭐ 82865When implementing algorithms, prefer using OpenCV's built-in optimized functions over writing custom implem...
-
Maintain consistent style
octokit/octokit.net7⭐ 2793Follow established patterns consistently throughout the codebase to improve readability and maintainability...
-
User-centric documentation practices
nrwl/nx7⭐ 27518Documentation should prioritize user needs and experience over technical convenience. This means using appr...
-
Avoid code duplication
nrwl/nx7⭐ 27518Before implementing new functionality, check if similar utilities or patterns already exist in the codebase...
-
Use consistent terminology
nuxt/nuxt7⭐ 57769Prioritize consistent, clear, and beginner-friendly terminology throughout your codebase and documentation....
-
Version APIs with care
nodejs/node7⭐ 112178When introducing new API features or changes, implement proper versioning to maintain stability and backwar...
-
Public over internal APIs
nodejs/node7⭐ 112178When designing or implementing APIs, always prefer publicly documented APIs over internal ones. Internal AP...
-
Benchmark before optimizing code
nodejs/node7⭐ 112178Performance optimizations should be validated through benchmarks before implementation. This helps prevent ...
-
Simplify control flow
netty/netty7⭐ 34227Streamline code by simplifying control flow structures to improve readability. Eliminate unnecessary nestin...
-
Proper asynchronous error handling
nestjs/nest7⭐ 71767Ensure errors in asynchronous operations and event-based systems are handled consistently to prevent unexpe...
-
Descriptive identifier names
nestjs/nest7⭐ 71766Choose identifier names (variables, functions, parameters, classes) that clearly describe their purpose, co...
-
Complete function documentation
neovim/neovim7⭐ 91433Ensure all functions have comprehensive, accurate documentation including required tags (@param, @return, @...
-
API consistency patterns
neovim/neovim7⭐ 91433Ensure similar API functions use consistent parameter patterns, types, and behaviors. When designing new AP...
-
Structure endpoints for REST
neondatabase/neon7⭐ 19015Organize API endpoints hierarchically by resource type and use appropriate HTTP methods based on operation ...
-
Clear consistent identifier names
neondatabase/neon7⭐ 19015Choose clear, consistent, and non-redundant names for identifiers across the codebase. Follow these guideli...
-
Maintain test state isolation
n8n-io/n8n7⭐ 122978Ensure each test runs in isolation by properly managing test state, mocks, and timers. Clean up all test ar...
-
Simplify for readability
apache/mxnet7⭐ 20801Complex expressions, especially nested ternary operations, reduce code readability and maintainability. Pre...
-
Consistent naming patterns
apache/mxnet7⭐ 20801Maintain consistent naming conventions throughout the codebase to enhance readability and reduce confusion....
-
remove unnecessary code
rocicorp/mono7⭐ 2091Eliminate unnecessary code elements that add complexity without providing value. This includes removing red...
-
prioritize code readability
rocicorp/mono7⭐ 2091Write code that prioritizes clarity and readability over cleverness or brevity. This includes several key p...
-
centralize configuration management
mastodon/mastodon7⭐ 48691Migrate configuration from direct environment variable access to Rails' config_for mechanism for better org...
-
Modern C++ style practices
maplibre/maplibre-native7⭐ 1411Apply modern C++ features and consistent syntax patterns to improve code readability and safety. Follow the...
-
Simplify code readability
logseq/logseq7⭐ 37695Write code that prioritizes clarity and simplicity over cleverness. Use appropriate Clojure idioms to make ...
-
Extract reusable components
lobehub/lobe-chat7⭐ 65138Extract utilities, types, constants, and shared logic into dedicated modules to improve code maintainabilit...
-
Add unit tests
lobehub/lobe-chat7⭐ 65138All new functionality must include corresponding unit tests. This is especially critical for utility functi...
-
Simplify for readability
LMCache/LMCache7⭐ 3800Improve code readability by simplifying complex logic, using Pythonic idioms, and removing unnecessary code...
-
Ensure operation completion safety
LMCache/LMCache7⭐ 3800In concurrent code, ensure that operations complete safely before proceeding to prevent race conditions and...
-
comprehensive test coverage
llvm/llvm-project7⭐ 33702Tests should comprehensively cover all relevant scenarios, including return values, edge cases, different c...
-
avoid unnecessary allocations
llvm/llvm-project7⭐ 33702Minimize performance overhead by avoiding unnecessary memory allocations, expensive data structures, and re...
-
leverage existing framework functionality
ggml-org/llama.cpp7⭐ 83559Before implementing custom solutions in AI model conversion code, thoroughly investigate whether the framew...
-
eliminate code duplication
ggml-org/llama.cpp7⭐ 83559Avoid duplicating code blocks by extracting common functionality into reusable functions, using templates f...
-
Follow consistent naming patterns
BerriAI/litellm7⭐ 28310Maintain consistent naming conventions across all aspects of the codebase, including file structures, folde...
-
Surface errors to users
langfuse/langfuse7⭐ 13574Always provide user-visible feedback for errors instead of only logging to the console. This ensures users ...
-
Falsy vs null checks
langfuse/langfuse7⭐ 13574Distinguish between falsy values (0, '', false, null, undefined) and null/undefined values in your code. Us...
-
Cache expensive operations
langfuse/langfuse7⭐ 13574Identify and cache results of computationally expensive or repetitive operations instead of recalculating t...
-
Use comprehensive JSDoc
langchain-ai/langchainjs7⭐ 15004Always use JSDoc format (`/** */`) instead of regular comments (`//`) for documenting classes, functions, a...
-
Preserve API backward compatibility
langchain-ai/langchainjs7⭐ 15004When modifying existing APIs, maintain backward compatibility by implementing changes in a non-breaking way...
-
implement proper observability
kubernetes/kubernetes7⭐ 116489Ensure observability mechanisms (events and metrics) are implemented correctly with appropriate types, accu...
-
Clear field documentation
kubernetes/kubernetes7⭐ 116489Write precise, unambiguous documentation that explains what fields and methods represent rather than implem...
-
Avoid unnecessary work
kubernetes/kubernetes7⭐ 116489Optimize performance by avoiding unnecessary computations, allocations, and operations. Use feature gates, ...
-
Simplify code structure
kubeflow/kubeflow7⭐ 15064Strive to simplify code structure by eliminating unnecessary complexity. This includes: 1. **Move conditio...
-
Precise workflow triggers
kubeflow/kubeflow7⭐ 15064Configure CI/CD workflows to trigger precisely based on relevant file path changes. This minimizes unnecess...
-
Go export naming conventions
kubeflow/kubeflow7⭐ 15064In Go, the first letter of an identifier (function, variable, struct field, etc.) determines its visibility...
-
Use configuration property providers
JetBrains/kotlin7⭐ 50857Always use Gradle's Provider API when accessing project, system, or Gradle properties in your build configu...
-
Test edge cases
JetBrains/kotlin7⭐ 50857Ensure tests verify both basic functionality and edge cases. Tests that only cover the happy path can miss ...
-
Minimize unnecessary work
JetBrains/kotlin7⭐ 50857Optimize performance by reducing the amount of computation performed, especially on data that won't appear ...
-
Keep code clearly organized
JetBrains/kotlin7⭐ 50857Maintain code readability and organization by extracting focused, well-named functions and using appropriat...
-
Design extensible stable APIs
JetBrains/kotlin7⭐ 50857When designing public APIs, prioritize extensibility while maintaining backward compatibility and implement...
-
prioritize documentation clarity
jj-vcs/jj7⭐ 21171Write documentation that prioritizes user understanding over technical precision. Avoid unclear phrases, ov...
-
Use testify assertions
influxdata/influxdb7⭐ 30268Always use the testify package (require/assert) in tests instead of standard Go testing assertions. The tes...
-
Validate environment variables strictly
elie222/inbox-zero7⭐ 8267Enforce strict validation of environment variables using Zod schemas with explicit environment-specific rul...
-
prevent null dereferences
hyprwm/Hyprland7⭐ 28863Always verify pointers are valid before dereferencing to prevent crashes and undefined behavior. This appli...
-
avoid expensive hot paths
hyprwm/Hyprland7⭐ 28863Identify and optimize expensive operations in frequently executed code paths to prevent performance bottlen...
-
API type consistency
juspay/hyperswitch7⭐ 34028Use structured types instead of generic strings in API definitions to improve type safety and clarity. Pref...
-
Handle nullable values
p-e-w/heretic7⭐ 5002Treat None/absent values explicitly and guard attribute access. Motivation: user input, storage APIs, opti...
-
use descriptive names
helix-editor/helix7⭐ 39026Choose specific, purpose-revealing names that clearly communicate intent rather than generic, abbreviated, ...
-
Safe concurrent programming
grafana/grafana7⭐ 68825When working with concurrent code, carefully manage shared resources and synchronization to prevent race co...
-
Follow documentation conventions
grafana/grafana7⭐ 68825Ensure documentation adheres to established style guidelines and technical standards: 1. **Use proper term...
-
Test behavioral differences
google-gemini/gemini-cli7⭐ 65062Tests should verify that different states, modes, or inputs produce meaningfully different behaviors, not j...
-
reduce nesting complexity
google-gemini/gemini-cli7⭐ 65062Prefer early returns, guard clauses, and helper method extraction to reduce nesting levels and improve code...
-
Use modern PHPUnit attributes
laravel/framework7⭐ 33763Prefer modern PHPUnit attributes over PHPDoc annotations for improved type safety, IDE support, and code re...
-
check all error returns
gofiber/fiber7⭐ 37560Always check and handle error returns from function calls, even for operations that seem unlikely to fail. ...
-
Technical term consistency
fastapi/fastapi7⭐ 86871When working with multilingual codebases or documentation, maintain consistent naming conventions for techn...
-
Sync versus async tests
fastapi/fastapi7⭐ 86871Choose the appropriate testing approach based on your test requirements. For standard API endpoint testing,...
-
Standardize dependency version notation
expressjs/express7⭐ 67300When specifying dependencies in package.json, follow consistent version notation patterns that align with y...
-
Follow StandardJS when modifying
expressjs/express7⭐ 67300When modifying existing code, update the touched lines to follow StandardJS conventions while preserving th...
-
Clear intention in names
expressjs/express7⭐ 67300Choose names that clearly communicate intention and follow established conventions. This applies to variabl...
-
prefer const correctness
electron/electron7⭐ 117644Always mark variables, parameters, and methods as `const` when they don't modify state. This improves code ...
-
comprehensive test coverage
duckdb/duckdb7⭐ 32061Ensure thorough test coverage by systematically testing edge cases, boundary conditions, failure scenarios,...
-
avoid repeated expensive operations
duckdb/duckdb7⭐ 32061Identify and eliminate repeated expensive computations, especially in loops and frequently executed code pa...
-
Complete parameter documentation
stanfordnlp/dspy7⭐ 27813Ensure all public functions and classes have comprehensive docstrings that include parameter descriptions, ...
-
Use descriptive identifier names
django/django7⭐ 84182Choose clear, descriptive names for variables, functions, and classes that accurately convey their purpose ...
-
Follow established naming conventions
discourse/discourse7⭐ 44898Ensure all identifiers follow the established naming conventions for the codebase and framework being used....
-
Clean code formatting rules
continuedev/continue7⭐ 27819Maintain consistent and clean code formatting to improve readability and maintainability. Follow these guid...
-
CI script reliability practices
continuedev/continue7⭐ 27819Ensure CI/CD workflows maintain reliability by following these practices: 1. **Use explicit script paths**...
-
explicit configuration management
docker/compose7⭐ 35858Make all configuration settings explicit and well-documented, avoiding implicit defaults and auto-detection...
-
semantic naming accuracy
ClickHouse/ClickHouse7⭐ 42425Ensure that method, variable, and class names accurately reflect their actual behavior, purpose, or content...
-
Explicit error handling
ClickHouse/ClickHouse7⭐ 42425Always handle error conditions explicitly rather than silently ignoring them or using generic error respons...
-
Document non-obvious code
ClickHouse/ClickHouse7⭐ 42425Add explanatory comments for any code element that is not self-explanatory, including complex return types,...
-
prevent silent test failures
snyk/cli7⭐ 5178Tests must explicitly fail when expected conditions are not met, rather than silently exiting early or usin...
-
Handle all errors explicitly
snyk/cli7⭐ 5178Always explicitly handle errors rather than assuming they are handled by dependencies or ignoring them. Eve...
-
Document intent and reasoning
snyk/cli7⭐ 5178Add comments that explain the reasoning, intent, or context behind code decisions, especially for non-obvio...
-
API response consistency
snyk/cli7⭐ 5178Ensure consistent patterns for API response handling, error management, and type safety across all API inte...
-
Document with examples
chef/chef7⭐ 7860Always include comprehensive documentation with clear examples for properties, methods, and code patterns. ...
-
Consistent descriptive naming patterns
chef/chef7⭐ 7860Use clear, descriptive names that follow consistent patterns across the codebase. For methods and propertie...
-
Meaningful identifier names
bridgecrewio/checkov7⭐ 7667Choose descriptive and semantic identifiers that clearly convey purpose, role, and behavior. Avoid vague, g...
-
Validate nullability explicitly
oven-sh/bun7⭐ 79093Always validate null or undefined values before using them to prevent crashes and undefined behavior. When ...
-
Assert before cast
oven-sh/bun7⭐ 79093Always validate values before performing unsafe operations like dynamic casting. When a value could be null...
-
Standardize API integration patterns
Homebrew/brew7⭐ 44168Establish consistent patterns for API integrations by following these guidelines: 1. Document API endpoint...
-
Optimize collection operations
Homebrew/brew7⭐ 44168Use Ruby's built-in collection methods to write more efficient and readable code. This reduces algorithmic ...
-
Prevent algorithmic pitfalls
boto/boto37⭐ 9417Avoid common algorithmic errors that lead to incorrect results or inefficient code by following these pract...
-
Follow naming conventions
boto/boto37⭐ 9417Use consistent and appropriate naming conventions based on the context in Python code: 1. **Classes**: Use...
-
Defensive null value handling
boto/boto37⭐ 9417Always handle potential null/None values defensively by: 1. Using `.get()` for dictionary access instead of...
-
prefer simple readable code
bazelbuild/bazel7⭐ 24489Favor simple, readable implementations over complex or overly abstracted solutions. This includes eliminati...
-
prefer simple API designs
bazelbuild/bazel7⭐ 24489Design APIs with simple, direct interfaces rather than complex parameter passing patterns or unnecessary in...
-
optimize algorithm choices
bazelbuild/bazel7⭐ 24489Choose algorithms and data structures that provide both deterministic behavior and optimal performance char...
-
Executor service lifecycle
bazelbuild/bazel7⭐ 24489Properly manage executor service lifecycle to prevent resource leaks, deadlocks, and orphaned threads that ...
-
Configuration clarity standards
bazelbuild/bazel7⭐ 24489Configuration options should be designed with clarity, consistency, and user experience as primary concerns...
-
Design stable APIs
Azure/azure-sdk-for-net7⭐ 5809When creating or modifying APIs, carefully consider what becomes part of your public API surface to ensure ...
-
Check before dereferencing
Azure/azure-sdk-for-net7⭐ 5809Always verify objects are not null before dereferencing them, particularly when using methods that might re...
-
Defensive null checking
aws/aws-sdk-js7⭐ 7628Always perform explicit null/undefined checks before accessing properties or using values that could be nul...
-
Stable dependency version management
appwrite/appwrite7⭐ 51959Always use stable, well-defined version constraints in configuration files to ensure reproducible builds an...
-
Keep documentation paths current
appwrite/appwrite7⭐ 51959Maintain accurate and consistent documentation paths, references, and descriptions across the codebase. Whe...
-
Consistent placeholder conventions
appwrite/appwrite7⭐ 51959Ensure all placeholders in localization files follow consistent naming conventions to prevent runtime error...
-
Use semantic descriptive names
ant-design/ant-design7⭐ 95882Choose variable, function, and type names that clearly communicate their purpose, source, and context. Name...
-
Prevent component re-mounting
ant-design/ant-design7⭐ 95882Maintain stable component structure to prevent unnecessary re-mounting and unmounting of child components. ...
-
API evolution strategy
ant-design/ant-design7⭐ 95882When evolving APIs, design for extensibility and provide clear migration paths to maintain backward compati...
-
Use descriptive names
angular/angular7⭐ 98611Choose names that clearly and unambiguously describe their purpose rather than being overly generic or tech...
-
Document configuration specifics
alacritty/alacritty7⭐ 59675When documenting configuration options in changelogs, README files, or other user-facing documentation, foc...
-
Prefer Rust structural patterns
zed-industries/zed6⭐ 62119Use Rust's structural patterns to write more idiomatic and maintainable code. This includes: 1. Use early ...
-
Consider algorithmic complexity
zed-industries/zed6⭐ 62119When implementing algorithms, be mindful of their computational complexity and choose appropriate data stru...
-
prefer higher-level APIs
cloudflare/workerd6⭐ 6989When designing APIs, prefer using higher-level abstractions and established patterns over direct low-level ...
-
Node.js API compatibility
cloudflare/workerd6⭐ 6989When implementing Node.js-compatible APIs, ensure exact behavioral matching with Node.js, including export ...
-
minimize memory operations
cloudflare/workerd6⭐ 6989Avoid unnecessary memory allocations, copies, and inefficient memory usage patterns that can impact perform...
-
maintain consistent patterns
cloudflare/workerd6⭐ 6989Ensure consistent coding patterns and approaches are used throughout the codebase, even when multiple valid...
-
Use network timeouts
wavetermdev/waveterm6⭐ 17328Ensure all network operations are cancellable, timeout-protected, and executed where the resource lives. M...
-
defensive nil handling
wavetermdev/waveterm6⭐ 17328Always validate values and short-circuit on errors; guard uses of possibly nil/empty values while avoiding ...
-
Use specific semantic names
microsoft/vscode6⭐ 174887Choose specific, descriptive names for identifiers that accurately reflect their purpose and behavior. Avoi...
-
Keep APIs simple JavaScript-like
microsoft/vscode6⭐ 174887Design APIs to be simple and idiomatic to JavaScript/TypeScript while maintaining proper encapsulation. Avo...
-
Handle errors with specificity
microsoft/vscode6⭐ 174887Always handle errors specifically and explicitly, avoiding generic catch blocks that mask or ignore errors....
-
Algorithm explanation clarity
volcano-sh/volcano6⭐ 4899When documenting algorithms, provide detailed explanations of the underlying logic with concrete examples a...
-
Use self-documenting names
vllm-project/vllm6⭐ 51730Variable, function, and parameter names should accurately reflect their purpose, behavior, and content. Cho...
-
Stable documentation links
vllm-project/vllm6⭐ 51730Ensure all documentation links are stable, consistent, and correctly targeted to improve navigation and lon...
-
Process configurations consistently
vllm-project/vllm6⭐ 51730Ensure that configuration data is processed consistently and correctly throughout the codebase. This includ...
-
Optimize data structures
vitessio/vitess6⭐ 19815Choose and implement data structures with careful consideration of algorithmic complexity, memory usage, an...
-
Ensure documentation accuracy
vitejs/vite6⭐ 74031Documentation must precisely reflect the current codebase implementation. When documenting features, option...
-
Make errors user actionable
astral-sh/uv6⭐ 60322Error messages should provide clear, actionable information that helps users understand and resolve the pro...
-
Validate production configurations
unionlabs/union6⭐ 74800Always validate configuration values and ensure production safety by avoiding hardcoded values, implementin...
-
Module resolution hierarchy
microsoft/typescript6⭐ 105378When configuring TypeScript projects, establish a clear understanding of module and type resolution hierarc...
-
Specify algorithmic scope precisely
astral-sh/ty6⭐ 11919When documenting changes to algorithms, data structures, or computational approaches, explicitly identify t...
-
Use semantically accurate names
twentyhq/twenty6⭐ 35477Names should clearly and accurately reflect their actual purpose, functionality, and scope. Avoid misleadin...
-
Use domain-specific exceptions
twentyhq/twenty6⭐ 35477Create custom exception classes for each domain/module instead of throwing generic errors or letting applic...
-
simplify API interfaces
twentyhq/twenty6⭐ 35477Keep API interfaces simple and focused by avoiding unnecessary input wrapping, extracting context parameter...
-
Know your implicit configurations
vercel/turborepo6⭐ 28115When working with Turborepo, be aware of implicit configurations and special files that affect behavior eve...
-
Eliminate code duplication
vercel/turborepo6⭐ 28115Avoid duplicating logic, patterns, or data across the codebase. When similar code appears in multiple place...
-
Optimize frequent operations
tree-sitter/tree-sitter6⭐ 21799Identify code paths that execute frequently (loops, hot functions, repeated calls) and optimize them by avo...
-
Algorithm and data optimization
tree-sitter/tree-sitter6⭐ 21799Choose efficient algorithms and appropriate data structures based on access patterns and computational requ...
-
complete observability router options
traefik/traefik6⭐ 55772When documenting router configuration options for any provider (Docker, Consul Catalog, ECS, KV stores, Nom...
-
Use Option methods idiomatically
tokio-rs/tokio6⭐ 28989When dealing with Optional values, prefer Rust's built-in Option methods over manual null checks. This make...
-
Structural configuration approaches
tokio-rs/tokio6⭐ 28989When working with feature flags and conditional compilation, prefer structural approaches over scattered co...
-
Prefer explicit over concise
tokio-rs/tokio6⭐ 28989Choose explicit and unambiguous names over concise but unclear ones. When a method, type, or variable has a...
-
Organize code logically
tokio-rs/tokio6⭐ 28989Group related code elements together with a consistent and logical structure. Place stable fields and funct...
-
Optimize memory allocation
tokio-rs/tokio6⭐ 28981Be deliberate about memory allocation patterns to improve performance. Implement these practices: 1. **Pre...
-
Network API design consistency
tokio-rs/tokio6⭐ 28989When designing networking APIs, maintain consistency with existing interfaces while ensuring proper cross-p...
-
Follow import style
tokio-rs/tokio6⭐ 28981Tokio projects follow specific import conventions for consistency and readability. Adhere to these guidelin...
-
Flexible consistent API patterns
tokio-rs/tokio6⭐ 28989Design APIs with flexibility and consistency by leveraging established patterns and avoiding unnecessary co...
-
Design error handling carefully
tokio-rs/tokio6⭐ 28989When implementing error handling, balance between propagation and recovery. Design error types to preserve ...
-
Simplify for readability
huggingface/tokenizers6⭐ 9868Prioritize code readability by using simpler and more direct expressions. When possible, return values dire...
-
Descriptive purpose-driven naming
hashicorp/terraform6⭐ 45532Choose identifiers that accurately describe their purpose and behavior, not just their type or how they're ...
-
Contextual null checks
hashicorp/terraform6⭐ 45532Use type-appropriate null checking strategies based on the context of your data. For primitive values, ensu...
-
Use established configuration patterns
microsoft/terminal6⭐ 99242When adding new configuration options or settings, leverage existing configuration frameworks and patterns ...
-
manage object lifetimes carefully
microsoft/terminal6⭐ 99242Ensure proper object lifetime management in concurrent scenarios to prevent crashes from dangling pointers ...
-
Choose efficient data structures
microsoft/terminal6⭐ 99242Select data structures and types that optimize for both memory usage and computational efficiency. Avoid un...
-
Choose efficient implementations
tensorflow/tensorflow6⭐ 190625When implementing algorithms, prioritize both correctness and performance by selecting appropriate data str...
-
Specific assertion methods
temporalio/temporal6⭐ 14953Use the most specific and descriptive assertion methods available in your test framework to improve test re...
-
Precompute and cache
temporalio/temporal6⭐ 14953Avoid performing expensive operations repeatedly, especially in hot code paths. Identify operations such as...
-
Comprehensive function documentation
gravitational/teleport6⭐ 19109Functions, methods, and non-trivial constants should include comprehensive documentation that explains thei...
-
document configuration hierarchies
sveltejs/svelte6⭐ 83580When documenting configuration options, clearly explain all available configuration levels and their preced...
-
Document complex APIs
sveltejs/svelte6⭐ 83580Require comprehensive JSDoc documentation for classes, complex functions, and all exported functions to imp...
-
Choose descriptive names
sveltejs/svelte6⭐ 83580Prioritize semantic clarity and descriptive naming over brevity or convenience. Avoid esoteric, abbreviated...
-
Prevent hardcoded secrets
supabase/supabase6⭐ 86070Never store sensitive information such as API keys, passwords, tokens, or credentials directly in your sour...
-
Use appropriate collections
spring-projects/spring-framework6⭐ 58382Choose the right collection implementation for each algorithmic task to optimize both performance and reada...
-
Meaningful exception design
spring-projects/spring-boot6⭐ 77637Design exceptions to provide clear context, preserve stack traces, and propagate correctly through your sys...
-
Documentation clarity principles
spring-projects/spring-boot6⭐ 77637When writing technical documentation, adhere to these core principles to ensure clarity and effectiveness: ...
-
Document configuration properties completely
spring-projects/spring-boot6⭐ 77637Configuration properties should be fully documented with clear descriptions, explicit default values, and p...
-
Concrete bean return types
spring-projects/spring-boot6⭐ 77637When defining `@Bean` methods in Spring configurations, use concrete return types rather than interfaces wh...
-
Alphabetical ordering requirement
spring-projects/spring-boot6⭐ 77637Always maintain alphabetical ordering for lists of elements including dependencies, modules, configuration ...
-
optimize data structures
apache/spark6⭐ 41554Choose appropriate data structures and algorithms to optimize computational complexity and performance. Con...
-
use loose equality checks
serverless/serverless6⭐ 46810Use loose equality (`== null`) instead of strict equality (`=== null` or `=== undefined`) when checking for...
-
configuration examples accuracy
serverless/serverless6⭐ 46810Ensure configuration examples and documentation use current, supported syntax and accurately reflect the ac...
-
avoid local imports
oraios/serena6⭐ 14465Place all import statements at the top of the file as global imports rather than importing modules within f...
-
Use descriptive identifiers
getsentry/sentry6⭐ 41297Choose variable, parameter, field, and class names that clearly communicate their purpose and context. Favo...
-
Structure logs with context
getsentry/sentry6⭐ 41297Use structured logging with appropriate context and log levels to maximize the value of log messages. Inclu...
-
Explicit null handling
getsentry/sentry-php6⭐ 1873Always be explicit and consistent when handling null values to improve code clarity and prevent subtle bugs...
-
Feature flag rollouts
getsentry/sentry6⭐ 41297Use feature flags to gate new functionality for controlled rollouts. This allows for quick enabling/disabli...
-
Structure validation algorithms
rust-lang/rust6⭐ 105254When implementing or modifying parsing and validation algorithms, carefully consider both the correctness a...
-
Clear helpful error messages
rust-lang/rust6⭐ 105254Create user-friendly error messages that guide developers toward solutions. Error messages should: 1. Inclu...
-
Optimize common paths
dotnet/runtime6⭐ 16578Design algorithms that optimize for the most common execution paths by prioritizing frequent scenarios in c...
-
Model actual hardware costs
dotnet/runtime6⭐ 16578Base optimization decisions on accurate hardware cost models rather than outdated assumptions. Modern archi...
-
Document configuration intent
dotnet/runtime6⭐ 16578Configuration settings should be self-documenting with clear intent. When adding temporary workarounds, con...
-
Handle nulls with Option
astral-sh/ruff6⭐ 40619Use Rust's Option type and its methods effectively to handle nullable values. This improves code clarity an...
-
Enhance code clarity
TanStack/router6⭐ 11590Ensure all code examples and documentation are as clear and complete as possible for developers. This inclu...
-
API parameter design
TanStack/router6⭐ 11590Design API parameters thoughtfully by making them optional when appropriate, avoiding unnecessary required ...
-
Maintain consistent naming patterns
RooCodeInc/Roo-Code6⭐ 17288Use consistent naming patterns throughout the codebase. When adding new identifiers, follow existing patter...
-
Enforce resource usage limits
RooCodeInc/Roo-Code6⭐ 17288Implement explicit resource limits and monitoring to prevent performance degradation and memory issues. Thi...
-
Enforce API format consistency
RooCodeInc/Roo-Code6⭐ 17288Maintain consistent data formats, parameter units, and interface patterns across API implementations. This ...
-
Use descriptive semantic names
remix-run/react-router6⭐ 55270Choose variable, function, and type names that clearly communicate their purpose and context. Prioritize re...
-
precise null type checking
remix-run/react-router6⭐ 55270Use precise null and undefined type checking that matches the actual usage context. Distinguish between che...
-
Hook dependencies stability
remix-run/react-router6⭐ 55270Ensure hook dependencies are minimal, stable, and follow React's rules to prevent unnecessary re-renders an...
-
configuration consistency standards
remix-run/react-router6⭐ 55270Ensure configuration options, flags, and environment settings are handled consistently across all commands ...
-
configuration compatibility validation
remix-run/react-router6⭐ 55270Ensure that code examples and documentation accurately reflect the constraints and requirements of differen...
-
Prefer simpler expressions
rails/rails6⭐ 57027Always choose the simplest, most readable way to express your code logic. Unnecessary complexity makes code...
-
Minimize unnecessary object allocations
rails/rails6⭐ 57027Avoid creating unnecessary objects, especially in frequently executed code paths. This includes being mindf...
-
Minimize public API surface
rails/rails6⭐ 57027Design APIs with a minimal public surface area by carefully controlling which methods and properties are ex...
-
Follow documentation conventions
rails/rails6⭐ 57027Maintain consistent formatting and style in all documentation to improve readability and professionalism: ...
-
Document APIs clearly
rails/rails6⭐ 57027When designing and documenting APIs, prioritize clarity and completeness through concrete examples and accu...
-
Thread-safe state management
quarkusio/quarkus6⭐ 14667When managing state accessed by multiple threads, ensure thread safety through appropriate synchronization ...
-
Graceful API evolution
pytorch/pytorch6⭐ 91345When modifying, deprecating, or replacing APIs, ensure a smooth transition experience for developers by fol...
-
Standardize dependency management
pydantic/pydantic6⭐ 24377Maintain consistent dependency management practices across CI workflows to ensure reliable builds and tests...
-
Maintain code consistency
pydantic/pydantic6⭐ 24377Ensure code follows consistent patterns throughout the codebase, even when duplicating code is necessary. W...
-
Least privilege principle
prowler-cloud/prowler6⭐ 11834Always follow the principle of least privilege by granting the minimum permissions necessary for functional...
-
improve code readability
prometheus/prometheus6⭐ 59616Structure code to maximize readability and reduce cognitive load through proper formatting and control flow...
-
avoid subjective language
prometheus/prometheus6⭐ 59616Avoid subjective terms, unexplained jargon, and assumptions about user knowledge in documentation. Replace ...
-
Manage output streams carefully
prisma/prisma6⭐ 42967Always consider the destination and lifecycle of output streams to prevent protocol interference, data loss...
-
Verify optional chaining necessity
prettier/prettier6⭐ 50772Analyze whether optional chaining (`?.`) is actually needed based on the surrounding context and prior vali...
-
prefer efficient algorithms
prettier/prettier6⭐ 50772Choose more efficient algorithmic approaches by leveraging built-in methods and APIs instead of implementin...
-
Documentation clarity standards
prettier/prettier6⭐ 50772Ensure documentation is clear, precise, and technically accurate to prevent confusion and build errors. Thi...
-
consistent spacing patterns
prettier/prettier6⭐ 50772Maintain consistent spacing patterns around operators, keywords, and interpolation syntax throughout the co...
-
Cache invalidation consistency
PostHog/posthog6⭐ 28460Ensure comprehensive and consistent cache invalidation patterns across all models that affect cached data. ...
-
Optimize memory allocation patterns
pola-rs/polars6⭐ 34296Minimize memory allocations and optimize allocation patterns to improve performance. Key practices: 1. Pre...
-
Names reveal clear intent
pola-rs/polars6⭐ 34296Choose names that clearly communicate intent and context, avoiding ambiguity or confusion. Variable and fun...
-
Explicit null handling
pola-rs/polars6⭐ 34296Always be explicit and consistent about how null values are handled in operations and documentation. This c...
-
Clear actionable error messages
python-poetry/poetry6⭐ 33496Error messages should be user-friendly, readable, and provide actionable guidance for resolution. Avoid exp...
-
proxy configuration precedence
microsoft/playwright6⭐ 76113Ensure proxy configuration follows proper precedence hierarchy and handles different proxy types correctly....
-
Extract repeated logic
microsoft/playwright6⭐ 76113When you find yourself writing similar code patterns multiple times, extract them into reusable methods, co...
-
comprehensive test coverage
emcie-co/parlant6⭐ 12205Ensure tests are comprehensive and explicit to prevent regressions and gaps in coverage. Tests should cover...
-
Structure tests thoroughly
opentofu/opentofu6⭐ 25901Create well-structured tests with thorough coverage of both expected success and error conditions. Name tes...
-
Safe lock patterns
opentofu/opentofu6⭐ 25901When implementing concurrent operations, ensure locks are acquired and released properly in all execution p...
-
Reduce code nesting
opentofu/opentofu6⭐ 25901Minimize nesting levels and complexity in your code to improve readability and maintainability. Use early r...
-
Write purposeful comments
open-telemetry/opentelemetry-python6⭐ 2061Comments should explain "why" and "how" rather than restating what is already obvious from the code. Focus ...
-
Sanitize observability data exports
open-telemetry/opentelemetry-python6⭐ 2061When exporting observability data (metrics, traces, logs) to external systems, properly sanitize all data f...
-
Use OpenCV error mechanisms
opencv/opencv6⭐ 82865Always use OpenCV's built-in error handling mechanisms instead of C++ exceptions or custom error handling. ...
-
Prevent null vulnerabilities
opencv/opencv6⭐ 82865Use container classes and smart pointers instead of manual memory allocation to prevent null pointer derefe...
-
Cross-platform API design rules
opencv/opencv6⭐ 82865Design public APIs to work seamlessly across different programming languages and platforms. Follow these ke...
-
Clear API contracts
opencv/opencv6⭐ 82865Design APIs with clear contracts that behave exactly as their names and signatures suggest. Functions shoul...
-
Optimize with standard library
ollama/ollama6⭐ 145704When implementing algorithms, prefer using Go's standard library over custom implementations or external de...
-
Use nullable for optionals
octokit/octokit.net6⭐ 2793When a property or parameter represents an optional value that might be absent in requests or responses, us...
-
validate configuration values
nrwl/nx6⭐ 27518Always validate configuration values at runtime and provide clear, actionable error messages when invalid c...
-
Use explicit, consistent names
nrwl/nx6⭐ 27518Variable and parameter names should be explicit about their purpose and consistent with established naming ...
-
scope CI access tokens
nrwl/nx6⭐ 27518Configure CI pipelines to use appropriately scoped access tokens based on branch protection status. Use rea...
-
Document CI configuration clearly
nrwl/nx6⭐ 27518Always include file path comments in CI configuration code blocks and use officially recommended setup acti...
-
Use descriptive names
nuxt/nuxt6⭐ 57769Choose variable, function, and file names that clearly describe their purpose, behavior, and content. Names...
-
explicit API design
nuxt/nuxt6⭐ 57769Design APIs with explicit parameters, consistent return types, and clear interfaces to improve usability an...
-
Configuration method selection
nuxt/nuxt6⭐ 57769Choose the appropriate configuration method based on when values are needed and whether they can change at ...
-
Use semantic naming patterns
novuhq/novu6⭐ 37700Establish consistent naming conventions that preserve semantic meaning and follow established patterns. Use...
-
Extract reusable components
novuhq/novu6⭐ 37700Eliminate code duplication by extracting common functionality into shared utilities, constants, and base cl...
-
Prefer clarity over cleverness
nodejs/node6⭐ 112178Write code that prioritizes readability and maintainability over cleverness or excessive optimization. Avoi...
-
Handling Dynamic Content in Next.js Components
vercel/next.js6⭐ 133000When implementing Next.js components that rely on dynamic content (e.g. random values, current time), it is...
-
Provider-specific AI handling
ChatGPTNextWeb/NextChat6⭐ 85721Implement provider-specific logic when integrating different AI services, as each provider has unique requi...
-
Use null validation utilities
netty/netty6⭐ 34227Consistently use utility methods like `ObjectUtil.checkNotNull()` or `Objects.requireNonNull()` to validate...
-
Memory ordering needs barriers
netty/netty6⭐ 34227Ensure proper memory ordering in concurrent code by using appropriate memory barriers and atomic operations...
-
Structure behavior-driven tests properly
nestjs/nest6⭐ 71766Organize tests using behavior-driven development (BDD) patterns to improve clarity and maintainability. Gro...
-
Follow protocol standards
nestjs/nest6⭐ 71767When implementing networking features, strictly adhere to protocol specifications and standards to ensure p...
-
prioritize code readability
neovim/neovim6⭐ 91433Write code that prioritizes readability and clarity over brevity. Use proper formatting, clear expressions,...
-
Follow established API patterns
neovim/neovim6⭐ 91433APIs should follow documented conventions and established patterns within the codebase to ensure consistenc...
-
Documentation accuracy standards
neovim/neovim6⭐ 91433Ensure all function documentation accurately reflects the actual code behavior and includes complete, prope...
-
Optimize cargo dependencies
neondatabase/neon6⭐ 19015Maintain clean and efficient dependency configurations in Cargo.toml files by following these practices: 1...
-
Minimize unnecessary allocations
neondatabase/neon6⭐ 19015Avoid allocations and cloning when they don't provide sufficient benefit relative to their performance cost...
-
Log level appropriately
neondatabase/neon6⭐ 19015Select the appropriate log level based on operational significance and ensure messages are clear, accurate,...
-
Keep files focused small
neondatabase/neon6⭐ 19015Maintain code organization by keeping files focused on a single responsibility and splitting large files in...
-
Standardize LLM interface parameters
n8n-io/n8n6⭐ 122978Maintain consistent parameter names and interface patterns across LLM implementations to improve maintainab...
-
Sanitize all dynamic content
n8n-io/n8n6⭐ 122978Always sanitize dynamic content before rendering to prevent XSS and injection attacks. This includes HTML c...
-
Never swallow errors silently
n8n-io/n8n6⭐ 122978Always handle errors explicitly and preserve their context. Never silently catch and discard errors as this...
-
Optimize iteration patterns
apache/mxnet6⭐ 20801When iterating through collections, choose the most efficient iteration pattern based on what information y...
-
Use descriptive names
rocicorp/mono6⭐ 2091Choose names that clearly communicate intent and purpose, avoiding vague or misleading terms. Names should ...
-
explicit null handling
rocicorp/mono6⭐ 2091Use explicit null and undefined checks with assertions to validate assumptions and maintain type safety. Pr...
-
Environment variable patterns
rocicorp/mono6⭐ 2091Use consistent patterns for environment variable handling and configuration validation. Access environment ...
-
Use theme utilities consistently
mui/material-ui6⭐ 96063Always use theme utilities for consistent styling across the application instead of hard-coded values. Repl...
-
Meaningful and consistent names
mui/material-ui6⭐ 96063Use descriptive, accurate identifiers that follow established conventions and maintain consistency througho...
-
Extract complex logic
mastodon/mastodon6⭐ 48691Break down complex methods into smaller, well-named private methods to improve readability and maintainabil...
-
Handle errors by severity
maplibre/maplibre-native6⭐ 1411Choose error handling mechanisms based on error severity and recoverability: 1. Use throws for unrecoverab...
-
Consistent API practices
maplibre/maplibre-native6⭐ 1411Maintain consistency in API design, documentation, and implementation across all supported platforms to imp...
-
Add explanatory documentation
logseq/logseq6⭐ 37695Add docstrings to functions and comments to explain complex logic, especially when the purpose or reasoning...
-
consistent naming patterns
lobehub/lobe-chat6⭐ 65138Maintain consistent naming conventions within related groups of identifiers. When naming related variables,...
-
Provide contextual code documentation
llvm/llvm-project6⭐ 33702Code should include documentation that explains the purpose, rationale, and context behind implementation d...
-
Follow naming conventions
ggml-org/llama.cpp6⭐ 83559Maintain consistency with established naming patterns and conventions throughout the codebase. This include...
-
explicit control flow logic
ggml-org/llama.cpp6⭐ 83559Use explicit control flow structures like switch statements instead of complex boolean logic or implicit re...
-
Use proper logging mechanisms
BerriAI/litellm6⭐ 28310Always use the logging library instead of print statements and maintain consistent logging patterns through...
-
Preserve error handling context
langfuse/langfuse6⭐ 13574Always preserve error context by using specific error types, safe error handling patterns, and meaningful e...
-
Maintain naming consistency
langfuse/langfuse6⭐ 13574Use consistent and descriptive names for variables, components, and functions throughout the codebase. When...
-
Hook and state correctness
langfuse/langfuse6⭐ 13574Ensure React hooks and state updates follow best practices to prevent subtle bugs: 1. **Call hooks uncondi...
-
Environment variable documentation
langflow-ai/langflow6⭐ 111046Ensure comprehensive and accurate documentation of environment variables, including cross-references, auto-...
-
Prefer nullish coalescing
langchain-ai/langchainjs6⭐ 15004When handling null or undefined values, use modern JavaScript patterns to write more robust and maintainabl...
-
Prefer descriptive errors
JetBrains/kotlin6⭐ 50857When handling errors in your code, always provide detailed context in error messages to aid debugging. Use ...
-
Use descriptive names
kilo-org/kilocode6⭐ 7302Choose names that clearly communicate purpose, type, and intent rather than generic or ambiguous identifier...
-
extract reusable utilities
kilo-org/kilocode6⭐ 7302When you notice repeated logic or functions that could be shared across multiple files, extract them into d...
-
Synchronization safety patterns
apache/kafka6⭐ 30575Ensure proper synchronization mechanisms to prevent deadlocks and race conditions in concurrent code. When ...
-
avoid unnecessary object creation
apache/kafka6⭐ 30575Minimize object allocation in performance-critical code paths by reusing existing objects, caching expensiv...
-
Choose efficient data structures
jj-vcs/jj6⭐ 21171Select data structures and algorithms based on their performance characteristics and expected usage pattern...
-
Return errors explicitly
istio/istio6⭐ 37192Functions should return errors explicitly to callers rather than terminating the program, hiding errors in ...
-
prevent race conditions
istio/istio6⭐ 37192Always protect shared state access and ensure proper synchronization in concurrent operations to prevent ra...
-
Feature flag lifecycle management
istio/istio6⭐ 37192Establish clear guidelines for feature flag creation, default values, and removal strategy based on risk as...
-
Avoid expensive operations
istio/istio6⭐ 37192Identify and eliminate computationally expensive operations in frequently executed code paths. Common expen...
-
Wrap errors with context
influxdata/influxdb6⭐ 30268Always wrap errors with meaningful context using fmt.Errorf and %w verb. Include relevant identifiers (file...
-
Follow API conventions
influxdata/influxdb6⭐ 30268Design APIs following modern conventions and best practices to improve usability, maintainability, and cons...
-
Choose optimal data structures
influxdata/influxdb6⭐ 30268Select data structures based on specific access patterns and performance requirements. When both fast looku...
-
Minimize redundant operations
elie222/inbox-zero6⭐ 8267Optimize application performance by preventing unnecessary renders, calculations, and network operations. I...
-
Handle nulls with types
elie222/inbox-zero6⭐ 8267Enforce type safety by properly handling null and undefined values through TypeScript types and explicit ch...
-
Enforce atomic database operations
elie222/inbox-zero6⭐ 8267Replace check-then-act patterns with atomic database operations to prevent race conditions in concurrent en...
-
Dynamic configuration handling
hyprwm/Hyprland6⭐ 28863When implementing configuration changes that need to be applied at runtime, follow these practices: 1. **U...
-
consistent naming conventions
hyprwm/Hyprland6⭐ 28863Follow the project's established naming conventions consistently across all code. Use camelCase for variabl...
-
Synchronize environment configurations
juspay/hyperswitch6⭐ 34028When making configuration changes, ensure all relevant environment files are updated consistently to preven...
-
Avoid hardcoded configuration values
juspay/hyperswitch6⭐ 34028Configuration values should not be hardcoded in the source code. Instead, they should be externalized to co...
-
preserve dtype and shapes
p-e-w/heretic6⭐ 5002When writing PyTorch code, preserve tensor dtypes and devices and be explicit about vector/matrix shapes to...
-
prefer let-else patterns
helix-editor/helix6⭐ 39026When handling Option types that require early returns on None values, prefer the let-else pattern over verb...
-
Consistent descriptive naming conventions
helix-editor/helix6⭐ 39026Use consistent and descriptive naming conventions across the codebase: 1. Use kebab-case for configuration...
-
Explicit null validation
grafana/grafana6⭐ 68825Always validate objects for null/nil before accessing their properties, and establish consistent patterns f...
-
Descriptive semantic names
grafana/grafana6⭐ 68825Always use descriptive variable, parameter, function, and constant names that clearly convey their purpose ...
-
Use descriptive identifiers
block/goose6⭐ 19037Replace generic, ambiguous, or magic identifiers with descriptive, specific names that clearly communicate ...
-
avoid panics and expects
block/goose6⭐ 19037Replace panic-inducing operations like `.expect()` and `.unwrap()` with proper error handling that allows g...
-
avoid environment variable proliferation
block/goose6⭐ 19037Prefer the consolidated config system over adding new environment variables. Environment variables should o...
-
AI model configuration consistency
block/goose6⭐ 19037Maintain consistent AI model metadata and configuration across all providers to prevent breaking changes an...
-
Use proper network constants
golang/go6⭐ 129599When writing network-related code, always use named constants from system packages instead of magic numbers...
-
Document code behavior
gin-gonic/gin6⭐ 83022Document the "why" and "how" of your code, not just what it does. Add clear comments to explain: 1. Non-ob...
-
Robust SSH integration
ghostty-org/ghostty6⭐ 32864When implementing SSH integration in your application, follow these practices to ensure reliability across ...
-
Document configs comprehensively
ghostty-org/ghostty6⭐ 32864Configuration options must be documented comprehensively with: 1. Clear, descriptive name using appropriat...
-
Use semantic naming
google-gemini/gemini-cli6⭐ 65062Choose names that clearly communicate the purpose, behavior, and intent of variables, methods, classes, and...
-
Secure input validation
google-gemini/gemini-cli6⭐ 65062Always validate and sanitize user inputs, especially when constructing commands or file paths. Use establis...
-
Ensure comprehensive user documentation
google-gemini/gemini-cli6⭐ 65062All user-facing features, APIs, and tools must have clear, comprehensive documentation that explains their ...
-
Organize code logically
fatedier/frp6⭐ 95938Maintain a clean and logical code structure by properly organizing code according to its functionality and ...
-
Name indicates clear purpose
laravel/framework6⭐ 33763Names should clearly indicate their purpose, type, and behavior. This applies to methods, variables, and pa...
-
Cache expensive operations
laravel/framework6⭐ 33763Identify and cache results of expensive operations that may be called repeatedly during a request lifecycle...
-
Extract methods for clarity
flutter/flutter6⭐ 172252Break down large methods and extract repeated code patterns into smaller, focused methods or getters to imp...
-
explicit null validation
flutter/flutter6⭐ 172252Always validate null values explicitly rather than using silent fallbacks or implicit handling. When null v...
-
Algorithm precision handling
flutter/flutter6⭐ 172252Choose algorithms that handle edge cases and mathematical precision correctly to avoid subtle bugs and unex...
-
prefer existing APIs
gofiber/fiber6⭐ 37560When adding new functionality, prioritize reusing existing methods and interfaces rather than creating new ...
-
Extract duplicate logic
gofiber/fiber6⭐ 37560When code blocks become large or contain repetitive patterns, extract them into separate functions to impro...
-
Consistent test code style
fastify/fastify6⭐ 34000Maintain consistent and clear testing patterns by following these guidelines: use strict equality assertion...
-
Concurrent operations completion management
fastify/fastify6⭐ 34000When running concurrent operations in tests, ensure all operations complete before concluding the test. Rac...
-
Ensure comprehensive test coverage
electron/electron6⭐ 117644Always verify that tests cover all relevant scenarios, edge cases, and conditions rather than just the happ...
-
avoid redundant operations
electron/electron6⭐ 117644Identify and eliminate unnecessary duplicate operations, redundant function calls, and repeated computation...
-
Use configuration access methods
elastic/elasticsearch6⭐ 73104When accessing configuration settings, always use the appropriate type-safe accessor methods provided by th...
-
Robust test assertions
elastic/elasticsearch6⭐ 73104Use precise, informative assertions in tests to provide clear feedback when tests fail and verify the corre...
-
Prefer callbacks over blocking
elastic/elasticsearch6⭐ 73104Always structure concurrent code to use asynchronous callbacks instead of blocking operations. Blocking cal...
-
Measure before optimizing performance
elastic/elasticsearch6⭐ 73104Before implementing performance optimizations, measure and validate the impact through benchmarks. This app...
-
maintain codebase consistency
duckdb/duckdb6⭐ 32061Ensure new code follows established patterns, conventions, and standards already present in the codebase. T...
-
explicit null state management
duckdb/duckdb6⭐ 32061Make null state checks explicit and comprehensive rather than using implicit return values or redundant fie...
-
Explicit CI configurations
duckdb/duckdb6⭐ 32061CI/CD workflows should use explicit, named configurations rather than wildcards, globs, or implicit behavio...
-
Optional configuration parameters
stanfordnlp/dspy6⭐ 27813Make configuration parameters optional with sensible defaults instead of requiring mandatory values, and on...
-
Null safety patterns
stanfordnlp/dspy6⭐ 27813Implement proper null safety patterns to prevent runtime errors and unexpected behavior. This includes seve...
-
implement algorithms correctly
stanfordnlp/dspy6⭐ 27813Ensure algorithmic implementations use correct patterns, handle edge cases gracefully, and avoid silent fai...
-
API backward compatibility
stanfordnlp/dspy6⭐ 27813Maintain backward compatibility when evolving API interfaces by preserving existing method signatures and p...
-
AI configuration documentation
stanfordnlp/dspy6⭐ 27813Ensure AI model configurations and related documentation use precise terminology and provide clear, complet...
-
Write focused efficient tests
django/django6⭐ 84182Tests should be focused, efficient and meaningful. Follow these guidelines: 1. Avoid testing implementatio...
-
Use connection by alias
django/django6⭐ 84182When working with database operations in Django projects that might use multiple database backends, always ...
-
Use appropriate log levels
langgenius/dify6⭐ 114231Choose the correct logging level based on the importance and purpose of the message. Use DEBUG for debuggin...
-
Prefer exceptions over silent failures
langgenius/dify6⭐ 114231Raise exceptions instead of returning None, logging warnings, or silently modifying values when encounterin...
-
Concurrent resource management
langgenius/dify6⭐ 114231When implementing concurrent operations, properly manage shared resources to prevent race conditions and en...
-
organize code properly
zen-browser/desktop6⭐ 34711Maintain clean code organization by separating concerns into appropriate classes and files. Extract large f...
-
Validate and document nulls
deeplearning4j/deeplearning4j6⭐ 14036Always handle null values explicitly and consistently throughout your codebase to prevent null pointer exce...
-
Use descriptive names
cypress-io/cypress6⭐ 48850Choose names that clearly reveal the purpose and behavior of variables, functions, and methods. Names shoul...
-
function decomposition clarity
cypress-io/cypress6⭐ 48850Functions should be focused, concise, and easy to understand. Break down large functions (>100 lines) into ...
-
Consistent formatting preferences
cypress-io/cypress6⭐ 48850Follow consistent formatting and syntax patterns to improve code readability and maintainability. This incl...
-
Structure errors with intent
crewaiinc/crewai6⭐ 33945Implement error handling with clear intent and proper propagation. Follow these principles: 1. Use structu...
-
Write comprehensive test cases
vuejs/core6⭐ 50769Tests should thoroughly cover all code paths and edge cases. Each test case should: 1. Test distinct scenar...
-
Use appropriate logging levels
home-assistant/core6⭐ 80450Choose the correct logging level based on the nature and expected frequency of the event being logged. Foll...
-
Strict props event handling
vuejs/core6⭐ 50769Enforce strict typing and consistent handling of component props and events to ensure type safety, runtime ...
-
Evolve APIs gracefully
vuejs/core6⭐ 50769When modifying or extending APIs, prioritize backward compatibility while providing clear migration paths f...
-
ESLint configuration alignment
adonisjs/core6⭐ 18071Ensure your ESLint configuration matches the JavaScript language features used in your codebase to prevent ...
-
Choose semantic descriptive names
vuejs/core6⭐ 50769Names should be clear, descriptive and follow consistent patterns. Choose names that accurately reflect the...
-
Avoid redundant computations
vuejs/core6⭐ 50769Identify and eliminate redundant operations that cause performance bottlenecks by caching expensive functio...
-
Semantically consistent naming
continuedev/continue6⭐ 27819Names should accurately reflect their purpose and be used consistently throughout the codebase. This applie...
-
Handle unsafe operations safely
continuedev/continue6⭐ 27819Always wrap potentially unsafe operations (like JSON parsing, Buffer operations, or API calls) in try-catch...
-
Extract into helper functions
continuedev/continue6⭐ 27819Break down complex or deeply nested code into smaller, well-named helper functions to improve readability a...
-
Add logging without duplication
docker/compose6⭐ 35858When adding logging functionality to existing code, encapsulate the logging logic within methods or use par...
-
Use descriptive names
comfyanonymous/ComfyUI6⭐ 83726Choose descriptive, self-documenting names for constants, functions, parameters, and types that clearly com...
-
Hardware compatibility patterns
comfyanonymous/ComfyUI6⭐ 83726Implement proper hardware compatibility patterns when working with different GPU backends and AI frameworks...
-
gRPC interface consistency
cline/cline6⭐ 48299Ensure gRPC/RPC interfaces follow consistent patterns for return types, error handling, and method design. ...
-
Check before property access
cline/cline6⭐ 48299Always verify that parent objects and properties exist before accessing nested properties or calling method...
-
Pin dependency versions
snyk/cli6⭐ 5178Always pin dependencies to exact versions in package.json instead of using semantic version ranges (^, ~) t...
-
Never commit secrets
chef/chef6⭐ 7860Private cryptographic keys, certificates with private keys, and other secrets must never be committed to so...
-
Memoize expensive operations
chef/chef6⭐ 7860Cache results of expensive operations, especially shell commands and external queries, to avoid redundant e...
-
Keep actions versions current
chef/chef6⭐ 7860Always use the latest stable versions of GitHub Actions components in CI/CD workflows to avoid deprecated f...
-
Externalize configuration values
chef/chef6⭐ 7860Avoid hardcoding configuration values directly in scripts, especially for values that might change between ...
-
Choose semantic algorithms
chef/chef6⭐ 7860Select algorithms and data operations that match the semantic intent of your code rather than using conveni...
-
Document configuration consistently
bridgecrewio/checkov6⭐ 7667Ensure all configuration options are clearly documented and follow consistent naming and syntax conventions...
-
Select specific database fields
calcom/cal.com6⭐ 37732Always explicitly select only the database fields you actually need instead of using broad includes or fetc...
-
Check exceptions consistently
oven-sh/bun6⭐ 79093Always check for exceptions immediately after operations that might throw them, especially before using the...
-
Minimize unnecessary operations
Homebrew/brew6⭐ 44168Optimize performance by eliminating redundant operations and arranging code to avoid unnecessary computatio...
-
Follow established naming patterns
Homebrew/brew6⭐ 44168Names should be descriptive and consistent with existing patterns in the codebase. This applies to methods,...
-
Clear error recovery paths
Homebrew/brew6⭐ 44168Implement error handling that provides both clear recovery paths for users and graceful degradation for the...
-
Clear code examples
Homebrew/brew6⭐ 44168Documentation should include clear, actionable code examples that users can reliably follow. Avoid using am...
-
Comprehensive API documentation
boto/boto36⭐ 9417Always provide comprehensive API documentation that includes accurate examples, complete parameter descript...
-
Use consistent error types
better-auth/better-auth6⭐ 19651Always use the appropriate error classes and throwing mechanisms for consistent error handling across the c...
-
Explicit null handling
bazelbuild/bazel6⭐ 24489Always make null handling explicit through proper annotations, defensive checks, and clear documentation. U...
-
Avoid unnecessary computations
bazelbuild/bazel6⭐ 24489Before performing expensive operations, check if the work is actually needed or if more efficient alternati...
-
Use domain-specific type names
Azure/azure-sdk-for-net6⭐ 5809Types should be named with clear domain context rather than generic terms. Avoid single-word or overly gene...
-
Minimize memory allocations
Azure/azure-sdk-for-net6⭐ 5809Reduce garbage collection pressure and improve application performance by avoiding unnecessary memory alloc...
-
Document code reasoning
Azure/azure-sdk-for-net6⭐ 5809Add clear, concise comments that explain the "why" behind complex logic, non-obvious decisions, and implici...
-
Prefer simpler code constructs
tokio-rs/axum6⭐ 22100Always opt for simpler, more idiomatic code constructs over complex or verbose alternatives. This includes ...
-
Semantic naming conventions
aws/aws-sdk-js6⭐ 7628Use descriptive, semantic names for all code elements that clearly indicate their purpose and behavior. Fol...
-
Early return after errors
aws/aws-sdk-js6⭐ 7628When handling errors in asynchronous functions, always return immediately after invoking a callback with an...
-
Document APIs thoroughly
aws/aws-sdk-js6⭐ 7628All public API elements must be thoroughly documented with JSDoc annotations that clearly explain their pur...
-
Prefer early returns
argoproj/argo-cd6⭐ 20149Use early returns and guard clauses to reduce nesting levels and improve code readability. Instead of deepl...
-
Complete configuration examples
argoproj/argo-cd6⭐ 20149Configuration examples in documentation must be complete and reference authoritative sources to prevent dep...
-
Use language-specific syntax
appwrite/appwrite6⭐ 51959Code snippets must use the correct language-specific syntax and include all necessary imports to compile pr...
-
Synchronize configuration values
appwrite/appwrite6⭐ 51959Ensure all configuration values, particularly version numbers and environment variables, are consistent acr...
-
Secure authorization skip handling
appwrite/appwrite6⭐ 51959When using authorization bypass mechanisms like `Authorization::skip()`, ensure proper security validation ...
-
Markdown formatting consistency
ant-design/ant-design6⭐ 95882Ensure consistent markdown formatting in documentation by wrapping all technical terms, API names, property...
-
JSDoc deprecation formatting
ant-design/ant-design6⭐ 95882Ensure consistent formatting in JSDoc deprecation comments to improve API documentation clarity and develop...
-
Dependency versioning consistency
ant-design/ant-design6⭐ 95882Establish and maintain consistent dependency versioning strategies in package.json configuration. Choose be...
-
Use reactive signal patterns
angular/angular6⭐ 98611Prefer Angular's reactive signal patterns over manual subscription management and imperative approaches. Us...
-
leverage existing Angular patterns
angular/angular6⭐ 98611Before implementing new functionality, check if Angular already provides a suitable utility, service, or pa...
-
Validate user-controlled paths
apache/airflow6⭐ 40858Always validate and sanitize user-provided inputs used in file path operations to prevent path traversal at...
-
Standardize API parameter handling
apache/airflow6⭐ 40858Use consistent parameter handling patterns across API endpoints to ensure maintainability and predictable b...
-
Avoid code duplication
apache/airflow6⭐ 40858Extract repeated code patterns into reusable functions, variables, or constants to improve maintainability ...
-
Verify AI model capabilities
vercel/ai6⭐ 15590Always verify and accurately document AI model capabilities, supported formats, and limitations before impl...
-
Type-safe null handling
vercel/ai6⭐ 15590Use TypeScript's type system and modern JavaScript features to prevent null reference errors. **TypeScrip...
-
Keep tests simple
vercel/ai6⭐ 15590Tests should be straightforward, explicit, and free from complex logic or indirection. Avoid "magic" in tes...
-
Test actual functionality
cloudflare/agents6⭐ 2312Ensure tests verify real operations and integration scenarios rather than just basic concepts or type defin...
-
Use structured model metadata
zed-industries/zed5⭐ 62119Represent AI model information using structured data rather than hardcoded enumerations or conditionals. St...
-
Scope dependencies appropriately
zed-industries/zed5⭐ 62119Configure dependencies with their minimum necessary scope to maintain clean architecture and improve build ...
-
Document configuration constraints clearly
zed-industries/zed5⭐ 62119When defining configuration options, always clearly document parameter constraints, valid ranges, and behav...
-
Choose domain-specific semantic names
zed-industries/zed5⭐ 62119Names should clearly reflect their domain-specific meaning and purpose, avoiding generic or ambiguous terms...
-
Strict null checks
facebook/yoga5⭐ 18255Use explicit strict equality checks when testing for null or undefined values. Prefer `x === undefined` ove...
-
Explicit undefined state handling
facebook/yoga5⭐ 18255Always use explicit, well-defined representations for undefined, uninitialized, or invalid states instead o...
-
JSDoc documentation standards
cloudflare/workers-sdk5⭐ 3379All public functions and complex code should have proper JSDoc documentation. Functions must include clear ...
-
Configuration file consistency
cloudflare/workers-sdk5⭐ 3379Ensure consistent patterns for configuration files, proper exclusion of development artifacts, and clear en...
-
proper span lifecycle management
cloudflare/workerd5⭐ 6989Ensure spans are properly created, attached to async operations, and reported at appropriate times to maint...
-
Network resource state validation
cloudflare/workerd5⭐ 6989Always validate the state of network resources (sockets, streams, connections) before performing operations...
-
compatibility flag consistency
cloudflare/workerd5⭐ 6989Ensure compatibility flags follow consistent naming conventions, use explicit typing, and maintain proper u...
-
avoid unnecessary allocations
cloudflare/workerd5⭐ 6989Minimize object creation and memory copying operations to improve performance. Cache and reuse objects when...
-
Specify API contracts
wavetermdev/waveterm5⭐ 17328State and document explicit, unambiguous contracts for all API endpoints and RPC messages, especially aroun...
-
Explicit API shapes
wavetermdev/waveterm5⭐ 17328Require API surfaces (payloads, function contracts, and compact descriptor grammars) to be explicit, well-d...
-
Centralize constants and structure
wavetermdev/waveterm5⭐ 17328Motivation Keep code readable, consistent and easy to change by centralizing configuration, constants and m...
-
Use structured logging
volcano-sh/volcano5⭐ 4899Always use structured logging methods like klog.InfoS and klog.ErrorS instead of unstructured methods like ...
-
Use descriptive consistent naming
volcano-sh/volcano5⭐ 4899Choose names that are self-explanatory, descriptive, and consistent across the codebase. Avoid abbreviated ...
-
Validate algorithmic operations carefully
vllm-project/vllm5⭐ 51730Mathematical and logical operations require careful validation to ensure correctness. Common issues include...
-
Remove unnecessary code elements
vllm-project/vllm5⭐ 51730Keep code clean and maintainable by removing unnecessary elements that add complexity without value: 1. Re...
-
Preserve API compatibility
vllm-project/vllm5⭐ 51730When modifying API interfaces, parameters, or argument behavior, ensure backward compatibility is maintaine...
-
Optimize memory allocation
vitessio/vitess5⭐ 19815Always allocate data structures with appropriate initial capacity and use memory-efficient data types to re...
-
Runtime-agnostic API design
vitejs/vite5⭐ 74031When designing APIs for systems that support multiple JavaScript runtimes, prioritize decoupling server sta...
-
Propagate errors with context
vitejs/vite5⭐ 74031Always propagate errors with proper context and recovery strategy. Use try-catch blocks for both synchronou...
-
Environment variable management
vitejs/vite5⭐ 74031When working with environment variables in Vite applications, be explicit about variable loading behavior a...
-
Runtime configurable defaults
vlang/v5⭐ 36582Prefer runtime-configurable values over hardcoded constants to allow users to customize behavior without re...
-
Secure configuration defaults
astral-sh/uv5⭐ 60322Establish secure default configurations in project metadata files to prevent accidental publishing and ensu...
-
Optimize CI/CD commands
astral-sh/uv5⭐ 60322Design CI/CD workflows to be efficient, consistent, and purposeful across all environments. When writing or...
-
Environment variable best practices
astral-sh/uv5⭐ 60322When implementing environment variable configuration: 1. Follow standard environment variable conventions:...
-
Raise exceptions properly
Unstructured-IO/unstructured5⭐ 12116Always ensure exceptions are properly raised and propagated rather than being logged and swallowed. Avoid p...
-
extensible parameter design
Unstructured-IO/unstructured5⭐ 12116Design API parameters to support future extension without breaking changes. Use string enums instead of boo...
-
Environment variable patterns
Unstructured-IO/unstructured5⭐ 12117Use consistent patterns for environment variable handling in shell scripts. Always provide sensible default...
-
Meaningful consistent identifiers
shadcn-ui/ui5⭐ 90568Choose descriptive, semantically accurate names for variables, types, and components that clearly communica...
-
Guard against undefined
microsoft/typescript5⭐ 105378Always protect against potential null or undefined values before attempting property access or method calls...
-
Extract complex logical expressions
microsoft/typescript5⭐ 105378Complex logical expressions should be extracted into well-named variables or functions to improve code read...
-
prefer type guards
twentyhq/twenty5⭐ 35477Use semantic type guards like `isDefined()` instead of basic type checks (`typeof`, simple null checks) or ...
-
Minimize hook re-renders
twentyhq/twenty5⭐ 35477Design React hooks to minimize unnecessary re-renders by avoiding common anti-patterns that cause performan...
-
Add tests for functionality
twentyhq/twenty5⭐ 35477New functionality should include corresponding tests to ensure code quality and maintainability. When intro...
-
Validate performance impact first
vercel/turborepo5⭐ 28115Always validate performance changes through profiling or benchmarking before implementation, and favor memo...
-
Design ergonomic APIs
vercel/turborepo5⭐ 28115Create APIs that are both easy to use correctly and hard to use incorrectly. Focus on: 1. **Use pattern ma...
-
Use meaningful identifiers
tree-sitter/tree-sitter5⭐ 21799Choose identifiers that accurately represent their purpose, semantics, and relationship to the codebase. Na...
-
Use descriptive identifiers
tree-sitter/tree-sitter5⭐ 21799Choose identifiers that clearly communicate their purpose, content, or role rather than using generic or ab...
-
Ensure documentation clarity
tree-sitter/tree-sitter5⭐ 21799Documentation should be clear, accurate, and provide meaningful information to users. Avoid misleading desc...
-
consistent formatting preferences
tree-sitter/tree-sitter5⭐ 21799Maintain consistent formatting and use concise, standard syntax throughout the codebase. This includes seve...
-
complete API documentation
traefik/traefik5⭐ 55772Ensure all API configuration options are fully documented with accurate default values, required field indi...
-
Structure feature flags strategically
tokio-rs/tokio5⭐ 28989Design feature flags to minimize dependency bloat while maximizing flexibility for users. Each optional dep...
-
Structure API doc blocks
tokio-rs/tokio5⭐ 28989Each public API documentation block should follow a consistent structure: 1. Start with a single-line summ...
-
Socket configuration guidance
tokio-rs/tokio5⭐ 28981When implementing networking APIs, always clearly document socket modes, configuration options, and platfor...
-
Optimize hot paths
tokio-rs/tokio5⭐ 28989Identify and optimize frequently executed code paths to improve performance. Hot paths have a significant i...
-
Graceful error handling
tokio-rs/tokio5⭐ 28981Prioritize graceful error handling over panicking by providing fallbacks and propagating rich context. When...
-
Fast deterministic tests
tokio-rs/tokio5⭐ 28989Avoid using real sleeps or delays in tests as they significantly slow down the test suite and can introduce...
-
Design flexible APIs
tokio-rs/tokio5⭐ 28981When designing APIs, prioritize flexibility, ergonomics, and intuitiveness to create better user experience...
-
Minimize memory allocations
huggingface/tokenizers5⭐ 9868Avoid unnecessary memory allocations to improve performance. Each allocation has both CPU and memory overhe...
-
Handle nullable types idiomatically
huggingface/tokenizers5⭐ 9868Use Rust's idiomatic patterns when working with Option and Result types to prevent panics and improve code ...
-
Use precise semantic names
hashicorp/terraform5⭐ 45532Choose names that accurately reflect the purpose and semantics of the entity being named. Avoid overloaded ...
-
Prefer modern authentication
hashicorp/terraform5⭐ 45532Always use modern identity-based authentication methods instead of static credentials when accessing extern...
-
Include descriptive documentation
hashicorp/terraform5⭐ 45532Provide complete, clear descriptions for all configuration elements in documentation. Every output, variabl...
-
Document function behavior completely
hashicorp/terraform5⭐ 45532Function and method documentation should accurately describe behavior, parameters, and any non-obvious aspe...
-
prefer const declarations
microsoft/terminal5⭐ 99242Use `const` for variables that are not modified after initialization, and avoid creating unnecessary tempor...
-
Validate quantization parameters carefully
tensorflow/tensorflow5⭐ 190625When implementing quantized operations in ML models, thoroughly validate quantization parameters to ensure ...
-
Validate before dereference
tensorflow/tensorflow5⭐ 190625Always check that pointers, optional values, and results of type casts are valid before dereferencing or us...
-
Optimize loop operations
tensorflow/tensorflow5⭐ 190625Minimize expensive operations within inner loops to improve performance. Key practices include: 1. Extract...
-
Informative error messages
tensorflow/tensorflow5⭐ 190625Error messages should be informative, actionable, and concise to help users quickly understand and fix issu...
-
Handle dynamic shapes
tensorflow/tensorflow5⭐ 190625When implementing tensor-based algorithms, avoid assumptions about fixed tensor shapes by not relying on di...
-
Optimize metrics label cardinality
temporalio/temporal5⭐ 14953Carefully manage metric label cardinality to prevent excessive memory usage and maintain system performance...
-
Domain-specific error boundaries
temporalio/temporal5⭐ 14953Define and use domain-specific error types within bounded contexts rather than relying on generic service e...
-
Design stable APIs
temporalio/temporal5⭐ 14953When designing APIs, prioritize long-term stability and compatibility to avoid breaking changes. Use reques...
-
Use appropriate testify assertions
gravitational/teleport5⭐ 19109Choose the most specific and appropriate testify assertion methods for your test scenarios to improve test ...
-
minimize unnecessary allocations
gravitational/teleport5⭐ 19109Avoid unnecessary memory allocations in performance-critical code paths, especially in frequently executed ...
-
Configuration requirements clarity
gravitational/teleport5⭐ 19109Configuration requirements and dependencies should be made explicit and prominent in documentation, not bur...
-
API consistency patterns
gravitational/teleport5⭐ 19109Maintain consistent API patterns and structures across different resource types and access methods within t...
-
Teach by example
tensorflow/swift5⭐ 6136Present concepts through clear, focused examples that demonstrate features positively rather than through c...
-
Explicit configuration validation
SWE-agent/SWE-agent5⭐ 16839Avoid using configuration values as implicit feature flags or logic triggers. Instead, validate configurati...
-
prefer testing libraries
sveltejs/svelte5⭐ 83580When testing components, use established testing libraries like @testing-library/svelte instead of low-leve...
-
defensive error handling
sveltejs/svelte5⭐ 83580Add defensive checks and proper error handling to prevent crashes and handle edge cases gracefully. This in...
-
avoid expensive operations
sveltejs/svelte5⭐ 83580Identify and eliminate computationally expensive operations through early termination, better data structur...
-
Structure components with clarity
supabase/supabase5⭐ 86070Maintain clean and logical component organization by following these guidelines: 1. Keep related files tog...
-
Clear, descriptive identifiers
supabase/supabase5⭐ 86070Choose variable, component, and parameter names that clearly describe their purpose and avoid ambiguity. Na...
-
Use structured logging consistently
browserbase/stagehand5⭐ 16443Always use the established logging framework instead of console.log or ad-hoc logging approaches. This ensu...
-
Use descriptive names
browserbase/stagehand5⭐ 16443Choose descriptive, domain-specific names that clearly communicate intent and prevent confusion. Avoid gene...
-
Provide contextual error messages
browserbase/stagehand5⭐ 16443Error messages should include specific context about what went wrong and provide actionable guidance for re...
-
Leverage TypeScript null safety
browserbase/stagehand5⭐ 16443Use TypeScript's type system proactively to prevent null and undefined issues at compile time rather than h...
-
Respect annotation processing order
spring-projects/spring-framework5⭐ 58382When designing Spring components, pay careful attention to the order in which annotations are processed, es...
-
Design for API extension
spring-projects/spring-framework5⭐ 58382When designing APIs, prioritize extensibility by providing clear extension points and avoiding direct expos...
-
Cleanup error handling
spring-projects/spring-framework5⭐ 58382When handling resources that require cleanup (like streams, connections, or transactions), ensure that erro...
-
API boundary null handling
spring-projects/spring-framework5⭐ 58382Establish consistent null handling patterns at API boundaries to prevent null pointer exceptions and improv...
-
Property description conventions
spring-projects/spring-boot5⭐ 77637When documenting configuration properties in Spring Boot applications, follow these conventions for clarity...
-
prefer simple APIs
apache/spark5⭐ 41554Design APIs with simplicity in mind by avoiding unnecessary method overloads, reducing configuration option...
-
Include contextual information
apache/spark5⭐ 41554Log messages should include comprehensive contextual information to support debugging and system monitoring...
-
avoid unnecessary computations
apache/spark5⭐ 41554Prevent performance degradation by avoiding unnecessary expensive operations such as premature execution, r...
-
Use appropriate error types
SigNoz/signoz5⭐ 23369Always use semantically correct error types and codes that match the actual failure scenario. This ensures ...
-
Centralize configuration management
SigNoz/signoz5⭐ 23369Consolidate configuration parameters into centralized config structures instead of using scattered options ...
-
Use descriptive names
sgl-project/sglang5⭐ 17245Choose variable, function, and parameter names that accurately reflect their content, type, and purpose. Av...
-
conditional CI execution
servo/servo5⭐ 32962Use appropriate conditional statements in CI workflows to ensure steps execute under the right circumstance...
-
Structure configs for clarity
serverless/serverless5⭐ 46810Organize configuration objects to maximize clarity and maintainability while ensuring robust validation. Fo...
-
API clarity and consistency
serverless/serverless5⭐ 46810Ensure API configurations, documentation, and terminology are clear, consistent, and properly organized. Gr...
-
exact assertion testing
oraios/serena5⭐ 14465Tests should verify exact expected results rather than generic existence checks. Avoid assertions like `isi...
-
Secure sensitive data
getsentry/sentry5⭐ 41297Always protect sensitive data through proper encryption, secure cookies, and careful exception handling to ...
-
Remove unnecessary code elements
getsentry/sentry5⭐ 41297Keep code clean and maintainable by removing unnecessary elements. This includes: 1. Omit type annotations...
-
Prevent N+1 database queries
getsentry/sentry5⭐ 41297Avoid N+1 database queries by using appropriate Django ORM features like select_related(), prefetch_related...
-
Propagate errors with context
getsentry/sentry-php5⭐ 1873Always propagate errors appropriately by rethrowing caught exceptions and maintaining error context. Catch ...
-
Document API changes
getsentry/sentry-php5⭐ 1873When documenting API changes, particularly breaking changes, follow these practices to ensure clarity and e...
-
Defensive null checking
getsentry/sentry5⭐ 41297Implement defensive null checking to prevent NoneType errors, KeyError, and IndexError exceptions. When acc...
-
Choose efficient algorithms
semgrep/semgrep5⭐ 12598When implementing algorithms, prioritize computational efficiency by selecting appropriate data structures ...
-
Fail fast explicitly
strands-agents/sdk-python5⭐ 4044Always throw exceptions for error conditions rather than silently failing, logging warnings, or attempting ...
-
explicit null checks
strands-agents/sdk-python5⭐ 4044Use explicit existence checks rather than value-based null checks, and be intentional about failing fast ve...
-
comprehensive test assertions
strands-agents/sdk-python5⭐ 4044Write robust test assertions that verify complete objects and behaviors rather than individual properties. ...
-
Complete docstring documentation
strands-agents/sdk-python5⭐ 4044Ensure all classes, methods, and properties have comprehensive docstrings that clearly explain their purpos...
-
AI provider normalization
strands-agents/sdk-python5⭐ 4044When integrating multiple AI model providers, implement proper abstraction layers to normalize differences ...
-
Name for semantic meaning
rust-lang/rust5⭐ 105254Choose names that clearly convey the semantic meaning and purpose of the identifier, rather than using clev...
-
Document lock behavior
rust-lang/rust5⭐ 105254When implementing or documenting synchronization primitives, always clearly specify how locks behave under ...
-
Benchmark before optimizing code
rust-lang/rust5⭐ 105254Always validate performance optimizations with benchmarks before implementation. Ensure measurements accoun...
-
Prevent null references
dotnet/runtime5⭐ 16578Use defensive coding practices to prevent null reference exceptions by properly handling potentially null v...
-
Maintainable test structure
dotnet/runtime5⭐ 16578Write tests that are maintainable, self-documenting, and that promote good testing practices: 1. **Use pro...
-
Document code meaningfully
dotnet/runtime5⭐ 16578Provide meaningful documentation that enhances code maintainability and understanding. Follow these practic...
-
Cache expensive computations
dotnet/runtime5⭐ 16578Avoid recomputing expensive operations by caching results when they will be used multiple times. This appli...
-
Avoid busy waiting
dotnet/runtime5⭐ 16578When implementing concurrent code that waits for conditions to be met, avoid busy-wait loops that continuou...
-
Abstract traversal patterns
dotnet/runtime5⭐ 16578When implementing algorithms that operate on complex data structures (trees, graphs, dominator structures),...
-
Use descriptive identifiers
astral-sh/ruff5⭐ 40619Avoid abbreviations in variable, parameter, and method names to improve code readability and maintainabilit...
-
Profile allocations before optimization
astral-sh/ruff5⭐ 40619Before implementing data structures or algorithms, analyze allocation patterns and optimize for common case...
-
Document component behavior comprehensively
astral-sh/ruff5⭐ 40619Documentation should clearly explain the purpose, behavior, and relationships between code components using...
-
Consider algorithmic complexity tradeoffs
astral-sh/ruff5⭐ 40619When implementing algorithms or data structures, carefully evaluate the tradeoffs between computational com...
-
validate configuration schemas
TanStack/router5⭐ 11590Always validate configuration objects using proper schema validation (like Zod) before type casting or usin...
-
validate before accessing
TanStack/router5⭐ 11590Always validate that values exist and have expected properties before accessing them, especially when remov...
-
Use parameterized testing
TanStack/router5⭐ 11590When testing multiple scenarios with similar logic, use your testing framework's built-in parameterized tes...
-
Maintain comprehensive documentation
TanStack/router5⭐ 11590When making code changes, ensure all relevant documentation is updated comprehensively across different for...
-
explicit error type handling
TanStack/router5⭐ 11590Handle errors with explicit type checking and intentional decisions rather than generic catch-all approache...
-
Configuration option consistency
TanStack/router5⭐ 11590Ensure configuration options follow consistent naming conventions and are documented accurately. Use "defau...
-
Write resilient test assertions
RooCodeInc/Roo-Code5⭐ 17288Write test assertions that are resilient to implementation changes by focusing on behavior rather than impl...
-
Use structured logging
RooCodeInc/Roo-Code5⭐ 17288Replace direct `console.log`, `console.warn`, and `console.error` calls with a centralized logging abstract...
-
Prevent duplicate keys
RooCodeInc/Roo-Code5⭐ 17288Always ensure configuration files, especially JSON files, have unique keys. Duplicate keys can cause unpred...
-
maintain naming consistency
remix-run/react-router5⭐ 55270Ensure consistent naming conventions across the entire codebase, including terminology, file names, directo...
-
dependency version ranges
remix-run/react-router5⭐ 55270When configuring dependencies in package.json, use version ranges that maintain backwards compatibility and...
-
Configure rendering modes clearly
remix-run/react-router5⭐ 55270Ensure clear distinction and proper handling between different rendering modes (SSR, SSG, SPA) with appropr...
-
API naming consistency
remix-run/react-router5⭐ 55270Ensure related APIs use consistent naming patterns, parameter structures, and calling conventions across th...
-
validate before accessing
facebook/react-native5⭐ 123178Always validate parameters for both null values and correct types before accessing their properties or meth...
-
Prefer micro-optimizations
facebook/react-native5⭐ 123178Apply small performance improvements that accumulate to significant gains. Focus on efficient memory usage,...
-
Early returns prevent waste
facebook/react-native5⭐ 123178Add early return statements and duplicate checks to avoid unnecessary computations, memory allocations, and...
-
Document configuration logic
facebook/react-native5⭐ 123178Always add clear, explanatory comments for conditional configuration logic, architectural decisions, and pl...
-
avoid Hungarian notation
facebook/react-native5⭐ 123178Do not use Hungarian notation prefixes (like `m`, `s`) in variable and field names. Use descriptive, semant...
-
Write complete API examples
rails/rails5⭐ 57027Always provide complete, context-rich code examples in API documentation. Examples should show the full usa...
-
Place configurations appropriately
rails/rails5⭐ 57027Choose the right location and scope for your Rails configuration options to improve maintainability and cla...
-
Initialize nil-prone variables
rails/rails5⭐ 57027Always initialize variables that might be nil to appropriate default values to prevent unexpected behavior....
-
Prefer Optional over nulls
quarkusio/quarkus5⭐ 14667Use Java's Optional API instead of null checks to improve code readability, safety, and maintainability. Wh...
-
Optimize algorithmic operations
quarkusio/quarkus5⭐ 14667Before implementing or modifying algorithms, carefully evaluate data structure properties and operation cos...
-
Name for meaning first
quarkusio/quarkus5⭐ 14667Choose names that prioritize domain meaning and clarity over implementation details. This applies to method...
-
Document public APIs
quarkusio/quarkus5⭐ 14667All public APIs, interfaces, and methods should include comprehensive JavaDoc that clearly explains their p...
-
Clear database configuration examples
quarkusio/quarkus5⭐ 14667Database configuration examples in documentation should be correct, minimal, and include proper context. Pr...
-
Use higher-level iterations
pytorch/pytorch5⭐ 91345When working with multiple sequences that need to be combined, prefer higher-level iteration abstractions o...
-
Prevent null pollution
pytorch/pytorch5⭐ 91345Design your code to minimize the unexpected introduction of None values into data structures and APIs. Use ...
-
Handle errors specifically
pytorch/pytorch5⭐ 91345Always be explicit and specific when handling errors rather than using catch-all approaches or implicit con...
-
Robust error messaging
pydantic/pydantic5⭐ 24377Create clear, specific, and actionable error messages that help users understand and resolve issues, while ...
-
Eliminate redundant computation
pydantic/pydantic5⭐ 24377Identify and eliminate redundant or duplicate computation paths in your code, especially for expensive oper...
-
Cache expensive computations
pydantic/pydantic5⭐ 24377Implement strategic caching and memoization for expensive or frequently repeated computations to avoid redu...
-
Secure authentication flows
prowler-cloud/prowler5⭐ 11834Implement authentication flows that protect sensitive information and follow secure credential management p...
-
Safe attribute access patterns
prowler-cloud/prowler5⭐ 11834Implement consistent patterns for safely accessing potentially null or undefined attributes and dictionary ...
-
Prioritize code readability
prowler-cloud/prowler5⭐ 11834Write code that optimizes for human readability and understanding. Complex expressions, while technically c...
-
Consistent naming patterns
prowler-cloud/prowler5⭐ 11834Follow systematic naming conventions for types, interfaces, and functions to enhance code readability and n...
-
simplify test structure
prometheus/prometheus5⭐ 59616Write tests that are direct, focused, and free of unnecessary complexity. Remove redundant test fields, use...
-
explicit test assertions
prometheus/prometheus5⭐ 59616Tests should explicitly assert both positive and negative expectations to make test intentions clear and pr...
-
avoid panics gracefully
prometheus/prometheus5⭐ 59616Never use panic() for error handling in production code paths, especially in core engine components. Instea...
-
Avoid unnecessary allocations
prisma/prisma5⭐ 42967Minimize memory allocations by avoiding intermediate objects, sharing underlying buffers, and eliminating u...
-
validate configuration values
prettier/prettier5⭐ 50772Always validate configuration values and provide clear, actionable error messages when validation fails. Ha...
-
Modern configuration formats
prettier/prettier5⭐ 50772Prefer ES module configuration files with TypeScript annotations over JSON formats for better developer exp...
-
Add explanatory comments
prettier/prettier5⭐ 50772Add explanatory comments for complex logic, special cases, or non-obvious code behavior. Comments should ex...
-
Maintain naming consistency
PostHog/posthog5⭐ 28460Ensure consistent naming conventions, terminology, and identifiers across the entire codebase. Names should...
-
eliminate code duplication
PostHog/posthog5⭐ 28460Actively identify and eliminate code duplication in all its forms to improve maintainability and reduce bug...
-
Cache expensive operations
PostHog/posthog5⭐ 28460Identify and eliminate redundant expensive operations by implementing caching, memoization, or conditional ...
-
break down large functions
PostHog/posthog5⭐ 28460Large functions that handle multiple responsibilities should be decomposed into smaller, focused functions ...
-
Hide implementation details
pola-rs/polars5⭐ 34296Design public APIs to hide implementation details and focus on the user's mental model of the system. Avoid...
-
Explicit configuration precedence
pola-rs/polars5⭐ 34296Implement a clear configuration resolution chain that follows a consistent precedence pattern: explicit par...
-
Evaluate algorithmic complexity tradeoffs
pola-rs/polars5⭐ 34296When implementing algorithms, carefully evaluate tradeoffs between performance optimizations and code maint...
-
Documentation clarity standards
python-poetry/poetry5⭐ 33496Ensure documentation is grammatically correct, clearly structured, and uses precise terminology. Avoid verb...
-
Configure HTTP requests properly
python-poetry/poetry5⭐ 33496When making HTTP requests, use standard library enums for status codes, set appropriate timeouts, and handl...
-
Synchronous event handlers
microsoft/playwright5⭐ 76113Keep event handlers synchronous to prevent race conditions and timing issues. Async operations within event...
-
comprehensive test coverage
microsoft/playwright5⭐ 76113Tests should be comprehensive and cover edge cases, complete scenarios, and use specific assertions rather ...
-
API parameter clarity
microsoft/playwright5⭐ 76113Design API parameters to be self-documenting and minimize cognitive overhead. Avoid boolean parameters in f...
-
preserve exception context
emcie-co/parlant5⭐ 12205When handling exceptions, preserve the original exception context and provide clear, actionable error infor...
-
Names reflect exact purpose
emcie-co/parlant5⭐ 12205Choose names that precisely reflect the component's purpose and behavior, avoiding ambiguous terms or short...
-
LLM provider abstraction
emcie-co/parlant5⭐ 12205When integrating with different LLM providers, create proper base class abstractions that filter and valida...
-
Document with examples
opentofu/opentofu5⭐ 25901Always include clear, contextual examples when documenting APIs, interfaces, or command-line functionality....
-
Defensive null handling
opentofu/opentofu5⭐ 25901Always initialize data structures before use, particularly before accessing them in loops or conditional bl...
-
Clear concise documentation
opentofu/opentofu5⭐ 25901Write documentation that is direct, consistent, and appropriately detailed. Follow these principles: 1. **...
-
Optimize configuration structure
open-telemetry/opentelemetry-python5⭐ 2061Structure configuration files like tox.ini to maximize maintainability and efficiency. Use factor prefixes ...
-
Handle exceptions appropriately
open-telemetry/opentelemetry-python5⭐ 2061When implementing error handling logic, be deliberate about which exception types you catch and where you h...
-
Follow Python naming conventions
open-telemetry/opentelemetry-python5⭐ 2061Use consistent Python naming conventions to improve code readability and maintainability: 1. Use snake_cas...
-
Configuration source precedence
open-telemetry/opentelemetry-python5⭐ 2061Define and document a clear precedence order when configurations come from multiple sources (code parameter...
-
Use environment variables
commaai/openpilot5⭐ 58214Make configuration values configurable through environment variables with sensible defaults instead of hard...
-
use context managers concurrency
commaai/openpilot5⭐ 58214When working with concurrent operations involving shared resources or processes, use context managers and e...
-
eliminate unnecessary code
commaai/openpilot5⭐ 58214Remove redundant code constructs and prefer concise, direct patterns that improve readability and maintaina...
-
Context-aware algorithm selection
opengrep/opengrep5⭐ 1546Choose algorithms and data structures based on operational requirements and usage context rather than defau...
-
Optimize memory allocation patterns
opencv/opencv5⭐ 82865Prefer efficient memory allocation patterns to improve performance. Key practices: 1. Use RAII containers ...
-
Optimize container access
opencv/opencv5⭐ 82865Choose efficient container types and optimize access patterns in performance-critical code. Avoid operation...
-
Maintain code consistency
opencv/opencv5⭐ 82865Keep code clean and consistent with established project conventions. This includes: 1. Follow existing for...
-
Guard optional dependencies
opencv/opencv5⭐ 82865Configuration management requires careful handling of optional dependencies in both build scripts and sourc...
-
Use idiomatic Go flow
ollama/ollama5⭐ 145704Follow Go's idiomatic control flow patterns to improve code readability and maintainability. Key practices ...
-
Use environment variables
ollama/ollama5⭐ 145704Use environment variables instead of hardcoding configuration values such as file paths, port numbers, or s...
-
Guard against nil
ollama/ollama5⭐ 145704Always check for nil values and successful type assertions before accessing or dereferencing objects, espec...
-
Document synchronization intent
ollama/ollama5⭐ 145704Always clearly document the purpose and scope of synchronization primitives (mutexes, read-write locks) by:...
-
Comprehensive test coverage
ollama/ollama5⭐ 145704Test functions should provide comprehensive coverage of both expected and edge cases. Include tests for: 1...
-
Clear recoverable error messages
ollama/ollama5⭐ 145704Error messages should be clear, actionable, and indicate whether recovery is possible. When designing error...
-
Abstract model operations cleanly
ollama/ollama5⭐ 145704When implementing AI model operations, create clean abstractions through interfaces that separate core math...
-
Design intuitive API methods
octokit/octokit.net5⭐ 2793When designing API methods, prioritize intuitive usage patterns and backwards compatibility. Follow these g...
-
Verify configuration paths
nrwl/nx5⭐ 27518Ensure configuration property paths are accurate and complete, especially for nested configurations and con...
-
Use nullish coalescing operators
nrwl/nx5⭐ 27518Prefer modern JavaScript nullish coalescing (`??`) and optional chaining (`?.`) operators over verbose cond...
-
minimize resource usage
nrwl/nx5⭐ 27518Optimize performance by being selective about resource consumption - process only necessary data, avoid red...
-
Follow Vue API patterns
nuxt/nuxt5⭐ 57769Always prefer Vue's native APIs and follow official Vue patterns instead of creating custom implementations...
-
explicit response types
nuxt/nuxt5⭐ 57769Always specify explicit response types when making API calls, especially for prerendered routes or external...
-
Extract repeated patterns
novuhq/novu5⭐ 37700Extract repeated code patterns, CSS classes, and constants to improve maintainability and reduce duplicatio...
-
Environment variable fallbacks
novuhq/novu5⭐ 37700Always implement proper fallback chains for environment variables and handle missing configuration graceful...
-
contextual API parameters
novuhq/novu5⭐ 37700Design APIs to provide contextual information and adapt behavior based on current usage context. Pass conte...
-
Use modern C++ features
nodejs/node5⭐ 112178Embrace modern C++20 features throughout the codebase to improve code readability, maintainability, and per...
-
Thread-safe resource management patterns
nodejs/node5⭐ 112178Ensure thread-safe access to shared resources while following proper resource management patterns. When imp...
-
Standardize null pointer checks
nodejs/node5⭐ 112178Always use standard null-checking patterns like CHECK_NOT_NULL for pointer validation instead of manual nul...
-
Propagate errors with context
nodejs/node5⭐ 112178Always propagate errors with their original context instead of swallowing them or throwing new errors that ...
-
Minimize configuration dependencies
nodejs/node5⭐ 112178Keep configuration dependencies minimal and platform-aware. Avoid including unnecessary configuration files...
-
Follow consistent naming patterns
nodejs/node5⭐ 112178Maintain consistent naming conventions throughout the codebase to improve readability and reduce confusion....
-
Document with precise accuracy
nodejs/node5⭐ 112178Maintain precise and accurate documentation through both JSDoc annotations and explanatory comments. Ensure...
-
Behavior-focused test design
nodejs/node5⭐ 112178Tests should focus on verifying behavior rather than implementation details to ensure they remain robust du...
-
Write robust assertions
vercel/next.js5⭐ 133000When writing tests, ensure assertions can handle non-deterministic content while providing clear failure co...
-
Optimize Next.js Resource Utilization
vercel/next.js5⭐ 133000As a code reviewer, I recommend the following practices to optimize resource utilization when implementing ...
-
Release resources consistently
netty/netty5⭐ 34227Always ensure resources are properly released, especially in exception paths. Use try-finally blocks to gua...
-
Use consistent curly braces
nestjs/nest5⭐ 71767Always use curly braces for conditional statements and loops, even for single-line bodies. This maintains c...
-
Strategic dependency configuration
nestjs/nest5⭐ 71766Configure dependencies in package.json strategically based on how they're used in your project: 1. **Direc...
-
Standardize null safety patterns
nestjs/nest5⭐ 71766Use modern JavaScript features and utility functions consistently for null/undefined checks. Prefer optiona...
-
Preserve public API stability
nestjs/nest5⭐ 71767When modifying or extending public interfaces, ensure changes maintain backward compatibility and follow pr...
-
Preserve API interface stability
nestjs/nest5⭐ 71766When modifying or extending public API interfaces, ensure backward compatibility and proper versioning. Fol...
-
Modern null safety patterns
nestjs/nest5⭐ 71767Leverage modern JavaScript features and utility functions for safer null/undefined handling. This reduces c...
-
Avoid testing anti-patterns
nestjs/nest5⭐ 71767Ensure your tests actually validate functionality by avoiding common testing anti-patterns: 1. **Don't moc...
-
validate early, fail fast
neovim/neovim5⭐ 91433Perform comprehensive input validation and precondition checks at the beginning of functions, before execut...
-
Provide helpful documentation context
neovim/neovim5⭐ 91433Documentation should include sufficient context, practical examples, and helpful hints to make it truly use...
-
prefer concise expressions
neovim/neovim5⭐ 91433Write concise, readable code by choosing the most direct expression for simple operations. Use ternary oper...
-
Use descriptive identifiers
neondatabase/neon5⭐ 19015Choose clear, meaningful names for variables, parameters, and constants that convey their purpose without r...
-
Stage configuration changes gradually
neondatabase/neon5⭐ 19015When introducing configuration changes that affect multiple system components, implement them in stages to ...
-
Hierarchical semantic naming
neondatabase/neon5⭐ 19015Use hierarchical prefixes and clear descriptive names to indicate the domain, source, and purpose of code e...
-
Flexible documented configurations
neondatabase/neon5⭐ 19015Create configuration interfaces that are flexible, well-documented, and future-proof. When designing config...
-
Document concurrency design decisions
neondatabase/neon5⭐ 19015Always document key concurrency design decisions in code, including: 1. Locking protocols and ordering betw...
-
Design metrics for insights
neondatabase/neon5⭐ 19015Design metrics that provide actionable insights while maintaining system efficiency. Follow these key princ...
-
Comprehensive code documentation
neondatabase/neon5⭐ 19015Properly document code with clear, accurate, and useful comments using the correct syntax based on context:...
-
Validate API data contracts
n8n-io/n8n5⭐ 122978Always validate API request and response data using schema validation to ensure type safety and prevent run...
-
Optimize loop operations
n8n-io/n8n5⭐ 122978Avoid repeated computations and object creation in loops or high-frequency operations. Move invariant calcu...
-
Manage database connections
n8n-io/n8n5⭐ 122978Always properly manage database connections to prevent resource leaks and improve application stability. Im...
-
Use intent-revealing names
apache/mxnet5⭐ 20801Choose names that clearly reveal the purpose, behavior, or type of the code elements they represent. A good...
-
Hybridization compatible operations
apache/mxnet5⭐ 20801When implementing neural network models that will be hybridized for performance optimization, use operation...
-
Explain optimization mechanisms
apache/mxnet5⭐ 20801When implementing or documenting performance optimizations, clearly explain the mechanism and expected perf...
-
Document all parameters
apache/mxnet5⭐ 20801Always provide complete and accurate documentation for all function parameters, especially when adding new ...
-
preserve error context
rocicorp/mono5⭐ 2091When propagating errors through promise rejections, catch blocks, or error transformations, always preserve...
-
minimize hot path allocations
rocicorp/mono5⭐ 2091Reduce memory allocations and garbage collection pressure in frequently executed code paths. Object creatio...
-
avoid unnecessary computations
rocicorp/mono5⭐ 2091Optimize algorithms by eliminating redundant work and intermediate data structures. Look for opportunities ...
-
API consistency patterns
rocicorp/mono5⭐ 2091Maintain consistent patterns across similar APIs to improve developer experience and reduce cognitive overh...
-
Add missing test coverage
rocicorp/mono5⭐ 2091Identify and address gaps in test coverage by requesting specific tests for untested functionality. When re...
-
Configure CSS layers
mui/material-ui5⭐ 96063When integrating Material UI with other styling solutions like Tailwind CSS v4, proper configuration of CSS...
-
Use semantic naming
mastodon/mastodon5⭐ 48691Choose names that clearly communicate purpose and align with established domain terminology. Prioritize sem...
-
Use contextually descriptive names
mastodon/mastodon5⭐ 48691Names should clearly indicate their purpose and context to avoid confusion, especially when similar concept...
-
Optimize database queries
mastodon/mastodon5⭐ 48691Write efficient database queries by leveraging proper indexes, using performance-optimized ActiveRecord met...
-
early nil validation
mastodon/mastodon5⭐ 48691Check for nil values early in methods and handle them gracefully before they can cause runtime errors or tr...
-
batch similar operations
mastodon/mastodon5⭐ 48691When performing multiple similar operations (database queries, Redis calls, job enqueues, or data lookups),...
-
API parameter design
mastodon/mastodon5⭐ 48691Design API parameters with clear intent, proper validation, and thoughtful default behaviors. Parameter nam...
-
Structure documentation effectively
maplibre/maplibre-native5⭐ 1411Documentation should prioritize clear organization with a logical flow to help developers find information ...
-
Self-documenting code naming
maplibre/maplibre-native5⭐ 1411Method, parameter, and variable names should clearly describe their purpose and behavior, making code self-...
-
Prefer safe null handling
maplibre/maplibre-native5⭐ 1411Use explicit, safe practices when dealing with potentially null resources to prevent memory leaks and undef...
-
Document public API completely
maplibre/maplibre-native5⭐ 1411All public APIs (files in `include/`) must have comprehensive documentation using either Doxygen-style or t...
-
optimize algorithm performance
logseq/logseq5⭐ 37695When implementing algorithms, prioritize performance optimization through careful algorithm selection, quer...
-
Defer expensive operations
logseq/logseq5⭐ 37695Avoid performing expensive computations until they are actually needed, and eliminate redundant work in hot...
-
Configuration option lifecycle
logseq/logseq5⭐ 37695When adding new configuration options, follow a systematic approach to ensure consistency and maintainabili...
-
API parameter consolidation
lobehub/lobe-chat5⭐ 65138When designing API functions with multiple parameters, consolidate optional or related parameters into a si...
-
Eliminate redundant operations
LMCache/LMCache5⭐ 3800Avoid unnecessary function calls, I/O operations, and redundant checks that can significantly impact perfor...
-
Cache state consistency
LMCache/LMCache5⭐ 3800Ensure cache operations maintain consistent state and handle shared resources properly throughout the cache...
-
AI model architecture flexibility
LMCache/LMCache5⭐ 3800Avoid hardcoding AI model-specific assumptions and instead design systems to be configurable across differe...
-
Use descriptive semantic names
llvm/llvm-project5⭐ 33702Choose specific, meaningful names that clearly convey purpose and follow established codebase patterns. Avo...
-
proper error propagation
llvm/llvm-project5⭐ 33702Ensure errors are properly propagated to callers rather than handled locally with exits or fatal errors. Li...
-
minimize header dependencies
llvm/llvm-project5⭐ 33702Organize code to minimize header dependencies and improve compilation times. Use forward declarations inste...
-
Eliminate redundant null checks
llvm/llvm-project5⭐ 33702Avoid unnecessary null checks when the called function already handles null cases, and use references inste...
-
Design thoughtful API interfaces
llvm/llvm-project5⭐ 33702When designing APIs, prioritize clarity, appropriate abstraction levels, and user experience. Avoid magic n...
-
cost-based algorithmic decisions
llvm/llvm-project5⭐ 33702When implementing algorithmic transformations and optimizations, use cost analysis and profitability heuris...
-
use model metadata
ggml-org/llama.cpp5⭐ 83559Leverage model metadata from GGUF format instead of hardcoded configuration values or filename-based logic....
-
optimize memory access patterns
ggml-org/llama.cpp5⭐ 83559Ensure CUDA kernels use optimal memory access patterns to maximize performance. This involves several key p...
-
measure before optimizing
ggml-org/llama.cpp5⭐ 83559Always profile and measure performance impact before implementing optimizations, especially micro-optimizat...
-
AI parameter organization
ggml-org/llama.cpp5⭐ 83559Ensure proper organization and placement of AI model parameters, hyperparameters, and configuration options...
-
Use configuration helper utilities
BerriAI/litellm5⭐ 28310Always use centralized helper functions for configuration management instead of direct environment variable...
-
Prefer generic API patterns
BerriAI/litellm5⭐ 28310Avoid creating provider-specific API implementations when generic, reusable solutions exist or can be devel...
-
background task coordination
BerriAI/litellm5⭐ 28310When working with background tasks in async applications, ensure proper task lifecycle management and coord...
-
avoid expensive operations
BerriAI/litellm5⭐ 28310Identify and optimize resource-intensive operations in frequently executed code paths. This includes avoidi...
-
API parameter consistency
BerriAI/litellm5⭐ 28310Ensure consistent parameter naming, format, and usage across all API interfaces, documentation, and code ex...
-
Explicit API contracts
likec4/likec45⭐ 2582Require API types and public interfaces to express clear, enforceable contracts: guarantee invariants, norm...
-
Validate all inputs
langfuse/langfuse5⭐ 13574All user-controlled inputs must be validated and sanitized before use to prevent injection attacks, unautho...
-
Use structured logging framework
langfuse/langfuse5⭐ 13574Replace all console.* calls with an appropriate structured logging framework using proper log levels. This ...
-
Memoize computed values
langfuse/langfuse5⭐ 13574Cache the results of expensive operations and component renders to avoid redundant calculations during re-r...
-
Ensure deterministic query results
langfuse/langfuse5⭐ 13574Always ensure database queries produce deterministic results by including explicit ORDER BY clauses when us...
-
Avoid array mutations
langfuse/langfuse5⭐ 13574Always clone arrays before performing operations that would mutate the original array, especially when work...
-
intentional error handling
langflow-ai/langflow5⭐ 111046Make deliberate, context-appropriate decisions about error handling strategy rather than applying generic p...
-
Validate untrusted input
langchain-ai/langchainjs5⭐ 15004Always validate and sanitize user-provided inputs before using them in sensitive contexts like SQL queries,...
-
Throw meaningful errors
langchain-ai/langchainjs5⭐ 15004Always throw specific, actionable errors instead of returning unexpected values or simply logging issues. E...
-
Optimize model token usage
langchain-ai/langchainjs5⭐ 15004Implement token-efficient patterns when working with AI models to optimize costs and performance. Key pract...
-
Follow documentation standards
langchain-ai/langchainjs5⭐ 15004Ensure all documentation follows established templates and includes required sections. When referencing com...
-
Prefer early null returns
kubernetes/kubernetes5⭐ 116489Use early return patterns with null checks to reduce nesting and improve code readability. Avoid unnecessar...
-
Optimize search algorithms
kubernetes/kubernetes5⭐ 116489Implement efficient search strategies that minimize computational overhead through proper ordering, early t...
-
Use modern JavaScript idioms
kubeflow/kubeflow5⭐ 15064Favor modern JavaScript syntax and clean code practices to improve readability and maintainability. This in...
-
Structured documentation with examples
kubeflow/kubeflow5⭐ 15064Create comprehensive documentation with clear structure and practical examples. Documentation should includ...
-
Standardize makefile patterns
kubeflow/kubeflow5⭐ 15064Maintain consistent Makefile patterns across all components to improve build reliability and developer expe...
-
Environment variable management
kubeflow/kubeflow5⭐ 15064Manage environment variables in Docker configurations with appropriate scope, placement, and documentation:...
-
Centralize configuration values
kubeflow/kubeflow5⭐ 15064Store all configuration values in dedicated configuration files rather than hardcoding them throughout the ...
-
Consider operation time complexity
JetBrains/kotlin5⭐ 50857When implementing operations that manipulate collections or perform repeated actions, carefully consider th...
-
optimize algorithmic complexity
apache/kafka5⭐ 30575Replace inefficient algorithms with more optimal data structures and approaches to improve computational co...
-
Defensive null validation
apache/kafka5⭐ 30575Always validate null parameters and dependencies early with proper ordering to prevent NullPointerException...
-
API completeness validation
apache/kafka5⭐ 30575Ensure APIs are complete by validating that all necessary cases are handled, all required arguments are pro...
-
Use type-specific variable names
jj-vcs/jj5⭐ 21171Use distinct variable names that reflect their types to avoid confusion and make code intent clearer. Avoid...
-
Consistent naming conventions
jj-vcs/jj5⭐ 21171Maintain consistent naming and terminology throughout code and documentation. This includes proper capitali...
-
eliminate code redundancy
menloresearch/jan5⭐ 37620Remove duplicate imports, unused legacy code, and repetitive patterns to maintain clean, organized codebase...
-
network configuration consistency
istio/istio5⭐ 37192Ensure network-related configurations remain consistent across different components and avoid unintended ov...
-
Conservative networking defaults
istio/istio5⭐ 37192When configuring networking components, prefer stable and permissive defaults over restrictive or experimen...
-
API compatibility preservation
istio/istio5⭐ 37192When evolving APIs, prioritize backward compatibility and avoid changing the semantics of existing fields. ...
-
Structured logging best practices
influxdata/influxdb5⭐ 30268Use structured logging with appropriate field types and context to make logs more useful for troubleshootin...
-
Stable schema identifiers
influxdata/influxdb5⭐ 30268Use persistent identifiers for schema elements rather than relying on positional information or enumeration...
-
Prefer explicit nullability
influxdata/influxdb5⭐ 30268Always make nullable states explicit in your code by leveraging Rust's type system. Use `Option
` rather ... -
Manage complete cache lifecycle
influxdata/influxdb5⭐ 30268Implement comprehensive cache lifecycle management focusing on three key aspects: 1. Idempotent Creation: ...
-
Maintain code readability
influxdata/influxdb5⭐ 30268Ensure code remains readable and maintainable by following these practices: 1. **Combine case statements w...
-
Handle errors by criticality
influxdata/influxdb5⭐ 30268Choose error handling strategies based on operation criticality: 1. For critical operations that could cor...
-
Descriptive semantic naming
influxdata/influxdb5⭐ 30268Create identifiers that clearly convey meaning through descriptive names and appropriate types. Two key pra...
-
Clear configuration parameters
influxdata/influxdb5⭐ 30268Configuration parameters should be descriptively named, well documented, and have sensible defaults that ar...
-
Transactional verified migrations
elie222/inbox-zero5⭐ 8267Enhance database migration reliability by wrapping changes in transactions with pre-check and post-verifica...
-
Time precision matters
elie222/inbox-zero5⭐ 8267When implementing algorithms involving date and time calculations, maintain precise control over time compo...
-
Prevent async race conditions
elie222/inbox-zero5⭐ 8267Always guard against race conditions when working with asynchronous code. Implement these patterns to avoid...
-
Names reflect semantic purpose
elie222/inbox-zero5⭐ 8267Choose names that reflect the semantic purpose rather than implementation details or temporal characteristi...
-
optimize computational efficiency
hyprwm/Hyprland5⭐ 28863Prioritize algorithmic efficiency and avoid unnecessary computational overhead in performance-critical code...
-
Optimization algorithm compatibility
p-e-w/heretic5⭐ 5002When implementing or changing optimization code (samplers, objectives, and result selection), ensure algori...
-
reduce nesting complexity
helix-editor/helix5⭐ 39026Prefer code structures that minimize nesting levels and improve readability through early returns, pattern ...
-
Follow established conventions
helix-editor/helix5⭐ 39026Configuration settings should align with official language documentation and established community standard...
-
Standardize observability semantic conventions
grafana/grafana5⭐ 68825When implementing observability features (logs, metrics, traces), use consistent semantic conventions to en...
-
Proper shell quoting
grafana/grafana5⭐ 68825Always use proper quoting in shell scripts (especially GitHub Actions workflows) to prevent word splitting,...
-
Function design principles
grafana/grafana5⭐ 68825Design functions for maximum reusability, clarity, and maintainability. Follow these principles: 1. **Pass...
-
Close resources with errors
grafana/grafana5⭐ 68825Always close resources (files, streams, connections) and properly handle their Close() errors. For read ope...
-
Verify configuration documentation
block/goose5⭐ 19037Ensure all configuration documentation accurately reflects actual system behavior, available options, and c...
-
Use if-unwrap with optionals
ghostty-org/ghostty5⭐ 32864Always use Zig's if-unwrap pattern (`if (optional) |value| {...}`) when working with optional values instea...
-
Use specific configuration patterns
google-gemini/gemini-cli5⭐ 65062When defining exclusion patterns, file filters, or other configuration rules, use specific, targeted patter...
-
Never ignore errors silently
google-gemini/gemini-cli5⭐ 65062All errors must be explicitly handled through catching, logging, or user feedback. Silent error suppression...
-
Maintain naming consistency
google-gemini/gemini-cli5⭐ 65062Ensure consistent naming patterns and approaches across similar functionality in the codebase. This include...
-
implement resource constraints
google-gemini/gemini-cli5⭐ 65062Implement multiple types of resource constraints with appropriate thresholds to prevent performance degrada...
-
document current functionality
google-gemini/gemini-cli5⭐ 65062Documentation should focus exclusively on current, active functionality rather than including historical co...
-
classify errors appropriately
google-gemini/gemini-cli5⭐ 65062Different types of errors require different handling strategies. Classify errors into categories and apply ...
-
Choose efficient data structures
google-gemini/gemini-cli5⭐ 65062Select data structures and algorithms that match your performance requirements rather than defaulting to si...
-
API consistency patterns
google-gemini/gemini-cli5⭐ 65062Maintain consistent interface patterns across APIs and avoid loose coupling through magic strings or unstab...
-
add tests for changes
google-gemini/gemini-cli5⭐ 65062Every code change, whether it's a new feature, bug fix, or refactoring, must include corresponding tests. T...
-
Handle errors completely
fatedier/frp5⭐ 95938Always handle errors comprehensively by checking return values, implementing proper error propagation, and ...
-
Connection lifecycle management
fatedier/frp5⭐ 95938Implement comprehensive lifecycle management for network connections. Ensure proper initialization, authent...
-
Manage dependencies wisely
laravel/framework5⭐ 33763When configuring dependencies in composer.json files, follow these guidelines to ensure maintainable and re...
-
Escape column names properly
laravel/framework5⭐ 33763Always use the appropriate wrapping/escaping mechanism when generating SQL to prevent syntax errors and SQL...
-
Design flexible APIs
laravel/framework5⭐ 33763When designing APIs, prioritize flexibility and developer experience by: 1. **Accept broader parameter typ...
-
Eliminate redundant operations
flutter/flutter5⭐ 172252Identify and remove unnecessary operations that impact performance, including redundant checks, duplicate c...
-
Avoid breaking changes
flutter/flutter5⭐ 172252When modifying existing APIs, prioritize backward compatibility to prevent breaking changes that would forc...
-
Use structured error logging
firecrawl/firecrawl5⭐ 54535Always use the proper logger instance instead of console methods, and format error logs with structured dat...
-
Validate security configurations
gofiber/fiber5⭐ 37560Always verify that security middleware configurations use correct constant values, proper parameter specifi...
-
Evaluate nil check necessity
gofiber/fiber5⭐ 37560Before adding nil checks, evaluate whether they are actually necessary or if they represent false positives...
-
Type-safe API designs
fastify/fastify5⭐ 34000Design APIs with strong type safety to improve developer experience and catch errors at compile time. Avoid...
-
Properly Handle Errors in Fastify Applications
fastify/fastify5⭐ 34000When implementing error handling in Fastify applications, it is important to always throw instances of the ...
-
Preserve error context
fastify/fastify5⭐ 34000When handling errors, always ensure the original error context is preserved and properly surfaced. Error in...
-
Null safe patterns
fastify/fastify5⭐ 34000Use concise null checking patterns to prevent runtime errors and improve code readability when handling pot...
-
Explicit Configuration Usage in Fastify
fastify/fastify5⭐ 34000When using the Fastify framework in TypeScript, ensure that all configuration options are explicitly declar...
-
Consistent JSDoc standards
fastify/fastify5⭐ 34000Document all public APIs and significant internal functions with comprehensive JSDoc comments that include ...
-
Adhere to Fastify Coding Conventions
fastify/fastify5⭐ 34000When implementing code that uses the Fastify package in TypeScript, ensure the following conventions are fo...
-
Protocol-specific error handling
fastapi/fastapi5⭐ 86871Handle errors and responses appropriately based on the network protocol being used. Different protocols hav...
-
Consistent code examples
fastapi/fastapi5⭐ 86871Maintain consistent formatting and styling in code examples throughout your NestJS application documentatio...
-
REST principles first
expressjs/express5⭐ 67300When designing APIs with Express, prioritize proper REST principles and HTTP semantics over convenience. Th...
-
Propagate errors properly
expressjs/express5⭐ 67300Always forward errors to the framework's error handling pipeline instead of swallowing them or handling the...
-
Handle streams properly
expressjs/express5⭐ 67300When transferring data over HTTP, properly implement streaming mechanisms to prevent memory exhaustion and ...
-
Ensure test completion
expressjs/express5⭐ 67300Tests must properly terminate by following appropriate asynchronous patterns. For asynchronous tests, alway...
-
maintain API compatibility
evanw/esbuild5⭐ 39161When implementing or extending APIs, preserve compatibility with existing standards and expected behaviors....
-
Use descriptive consistent names
electron/electron5⭐ 117644Choose names that are both semantically accurate and consistent with established patterns. Names should cle...
-
Descriptive error messages
electron/electron5⭐ 117644Error messages should be descriptive, contextual, and self-identifying to aid debugging and user understand...
-
Prevent redundant operations
elastic/elasticsearch5⭐ 73104In distributed database systems, prevent redundant operations that can overload cluster resources. When imp...
-
validate inputs early
duckdb/duckdb5⭐ 32061Validate function inputs, preconditions, and assumptions as early as possible in the execution flow, prefer...
-
validate inputs comprehensively
duckdb/duckdb5⭐ 32061Ensure thorough input validation and comprehensive edge case handling in database operations. This includes...
-
Optimize algorithm complexity
duckdb/duckdb5⭐ 32061Choose efficient algorithms and data structures to avoid unnecessary computational complexity. Replace manu...
-
consistent null validation
duckdb/duckdb5⭐ 32061Ensure null checks and input validation are applied consistently across similar functions and code paths. W...
-
Test structure and clarity
stanfordnlp/dspy5⭐ 27813Organize tests for maximum clarity and maintainability by leveraging pytest features and proper test struct...
-
reduce nesting levels
stanfordnlp/dspy5⭐ 27813Minimize nested conditional statements and complex control flow by using early returns, guard clauses, and ...
-
prefer nullish coalescing operator
drizzle-team/drizzle-orm5⭐ 29461Use the nullish coalescing operator (`??`) instead of the logical OR operator (`||`) when you specifically ...
-
Version annotation in docs
django/django5⭐ 84182Always include appropriate version annotations when documenting new features or changes in behavior. Use `....
-
Use semantic HTML elements
django/django5⭐ 84182Structure HTML templates using semantically appropriate elements rather than generic containers. Replace no...
-
Structure logs effectively
django/django5⭐ 84182When implementing logging in your application, structure your log messages and parameters consistently to i...
-
Preserve error handling context
django/django5⭐ 84182When handling exceptions, preserve the original error context and provide clear, actionable error messages....
-
Graceful API evolution
django/django5⭐ 84182When evolving APIs, prioritize backward compatibility and provide clear migration paths. For any significan...
-
Comments versus docstrings usage
django/django5⭐ 84182Choose between comments and docstrings based on the documentation's purpose and scope. Use docstrings for A...
-
validate migration data comprehensively
discourse/discourse5⭐ 44898Migration scripts must thoroughly validate data conditions and handle edge cases to ensure reliable data tr...
-
Use modern syntax
discourse/discourse5⭐ 44898Adopt modern JavaScript and Ember syntax patterns instead of legacy approaches to improve code readability ...
-
optimize test fixtures
discourse/discourse5⭐ 44898Use the `fab!` shorthand syntax for creating test fixtures and reuse fabricated objects across tests to imp...
-
Improve code readability
discourse/discourse5⭐ 44898Structure code to match logical flow and extract intermediate variables to improve readability. When dealin...
-
Extract duplicate code
discourse/discourse5⭐ 44898When you notice repeated code patterns, logic blocks, or similar implementations across methods or classes,...
-
simplify complex logic
langgenius/dify5⭐ 114231Improve code readability by reducing complexity and nesting through early returns, extracting complex logic...
-
HTTP standards compliance
langgenius/dify5⭐ 114231Ensure API endpoints follow HTTP standards for status codes and method selection. Delete operations should ...
-
Configuration value types
langgenius/dify5⭐ 114231Ensure configuration values use appropriate types, avoid unnecessary Optional annotations, and maintain con...
-
Use appropriate synchronization mechanisms
denoland/deno5⭐ 103714Select and implement synchronization primitives that match your concurrency requirements and avoid unsafe p...
-
avoid panics gracefully
denoland/deno5⭐ 103714Replace panic-prone operations like `unwrap()` and `expect()` with graceful error handling that provides me...
-
avoid implementation detail leakage
denoland/deno5⭐ 103714APIs should provide clean abstraction boundaries without exposing internal implementation details or creati...
-
User-friendly documentation examples
deeplearning4j/deeplearning4j5⭐ 14036Documentation should guide users toward best practices through clear examples. Begin with positive patterns...
-
Use logging best practices
deeplearning4j/deeplearning4j5⭐ 14036Adopt these logging best practices to ensure consistent, efficient, and meaningful logs: 1. **Use Lombok's...
-
Numerical stability practices
deeplearning4j/deeplearning4j5⭐ 14036When implementing machine learning algorithms, ensure numerical correctness and stability by following thes...
-
Descriptive error context
deeplearning4j/deeplearning4j5⭐ 14036Error messages should be specific, descriptive, and include context to help with debugging. Avoid generic m...
-
Thoughtful error handling
cypress-io/cypress5⭐ 48850Implement error handling that considers recoverability, appropriate logging levels, and prevents redundant ...
-
Simplify complex expressions
cypress-io/cypress5⭐ 48850Break down complex conditional logic, nested structures, and verbose syntax into smaller, well-named functi...
-
prefer modern composition patterns
cypress-io/cypress5⭐ 48850Use Vue 3 Composition API patterns that provide better performance, type safety, and maintainability. Prefe...
-
Explain non-obvious code
cypress-io/cypress5⭐ 48850Add explanatory comments for complex logic, workarounds, and non-obvious code patterns to help future maint...
-
Environment variable validation
cypress-io/cypress5⭐ 48850Always validate environment variables with proper type checking, fallback values, and defensive handling to...
-
consistent descriptive naming
cypress-io/cypress5⭐ 48850Maintain consistent naming patterns across similar functionality while ensuring names accurately describe t...
-
Configuration documentation clarity
cypress-io/cypress5⭐ 48850Ensure configuration documentation, setup instructions, and changelogs use precise, clear language with pro...
-
Model-agnostic AI code
crewaiinc/crewai5⭐ 33945When building applications that interact with AI models, avoid hardcoding model-specific behavior and inste...
-
prefer None over placeholders
home-assistant/core5⭐ 80450When data is unavailable, unknown, or invalid, return `None` instead of placeholder strings like "Unknown",...
-
Minimize try block scope
home-assistant/core5⭐ 80450Only include code that can actually raise exceptions within try blocks. Move variable assignments, logging ...
-
Maintain consistent code style
vuejs/core5⭐ 50769Follow project-wide code style conventions to ensure consistency and readability. Key practices include: 1...
-
Explicit nullish checks
vuejs/core5⭐ 50769When checking for the absence of values, use explicit nullish checks rather than relying on JavaScript's fa...
-
Validate before data access
continuedev/continue5⭐ 27819Always validate data existence and type before accessing properties or methods to prevent runtime errors fr...
-
Standardize AI model interfaces
continuedev/continue5⭐ 27819When implementing AI model integrations, maintain consistent interfaces and proper type definitions across ...
-
Robust comparison algorithms
continuedev/continue5⭐ 27819Ensure your comparison algorithms handle edge cases properly and avoid common pitfalls: 1. **Normalize val...
-
Document why not what
continuedev/continue5⭐ 27819Documentation should explain rationale and be technically precise. Focus on: 1. Including all required par...
-
Decouple tests from implementation
continuedev/continue5⭐ 27819Tests tightly coupled to implementation details break easily when the implementation changes, creating main...
-
Choose clear semantic names
continuedev/continue5⭐ 27819Names should clearly and accurately convey their purpose, behavior, and content. Follow these guidelines: ...
-
Scope concurrency control precisely
docker/compose5⭐ 35858Apply concurrency control mechanisms with precise scope to prevent both race conditions and unnecessary blo...
-
prefer dynamic configuration sources
comfyanonymous/ComfyUI5⭐ 83726Use runtime-determined configuration sources instead of hardcoded values or static file parsing when more r...
-
optimize CI resource usage
comfyanonymous/ComfyUI5⭐ 83726Design CI/CD workflows to minimize unnecessary resource consumption and provide faster feedback. Avoid trig...
-
Explicit error propagation
comfyanonymous/ComfyUI5⭐ 83726Functions should raise exceptions with meaningful messages instead of returning False, None, or silently ca...
-
avoid expensive operations
comfyanonymous/ComfyUI5⭐ 83726Identify and eliminate unnecessary expensive operations that can significantly impact performance. Common p...
-
API backward compatibility
comfyanonymous/ComfyUI5⭐ 83726Ensure API changes maintain backward compatibility to avoid breaking existing clients and workflows. When a...
-
Write comprehensive test assertions
openai/codex5⭐ 31275Instead of making multiple small assertions that check individual fields or conditions, write single compre...
-
Structure configurations properly
openai/codex5⭐ 31275Define a clear, hierarchical structure for application configurations with descriptive naming and proper or...
-
Document non-obvious aspects
openai/codex5⭐ 31275Documentation should explain what isn't obvious from the code itself. Focus on providing context about "why...
-
Contextualize, don't swallow
openai/codex5⭐ 31275Always propagate errors with appropriate context rather than silently ignoring them. This makes debugging e...
-
Centralize configuration management
openai/codex5⭐ 31275Prefer centralized configuration objects over environment variables for application settings. Environment v...
-
use semantic naming
cline/cline5⭐ 48299Choose variable, function, and type names that clearly communicate their purpose and meaning without requir...
-
reuse common message types
cline/cline5⭐ 48299Prefer reusable message types over single-purpose request/response pairs to reduce API bloat and improve ma...
-
centralize configuration management
cline/cline5⭐ 48299Consolidate related configuration settings into dedicated config objects or files rather than scattering ha...
-
Add missing error handling
cline/cline5⭐ 48299Wrap operations that can fail in try/catch blocks to prevent unhandled exceptions from crashing the applica...
-
optimize algorithmic complexity
ClickHouse/ClickHouse5⭐ 42425Always consider the algorithmic complexity and performance implications of data structure choices, memory a...
-
optimize algorithm selection
ClickHouse/ClickHouse5⭐ 42425Choose algorithms and data structures based on actual performance characteristics rather than defaulting to...
-
Extract common patterns
ClickHouse/ClickHouse5⭐ 42425Identify and extract repeated code patterns into reusable functions or methods to improve maintainability a...
-
Database schema consistency
ClickHouse/ClickHouse5⭐ 42425Ensure database operations maintain consistent behavior and ordering, especially in distributed systems. Wh...
-
Use optional chaining
snyk/cli5⭐ 5178Always use optional chaining (`?.`) and null checks when accessing properties or methods on objects that mi...
-
comprehensive test coverage
snyk/cli5⭐ 5178Ensure thorough test coverage by extracting complex logic into small, testable functions and using appropri...
-
Secure credential management
chef/chef5⭐ 7860When handling passwords, certificates, or keys in your code, implement secure encryption and storage mechan...
-
Prefer guard clauses
chef/chef5⭐ 7860Use guard clauses with early returns for null checking instead of wrapping code in conditional blocks. This...
-
Explicit configuration over implicit
chef/chef5⭐ 7860Always define explicit configuration defaults rather than relying on implicit behavior or autovivification....
-
Use appropriate logging levels
bridgecrewio/checkov5⭐ 7668Select the correct logging level based on the importance and visibility requirements of the information. Ch...
-
Thorough test assertions
bridgecrewio/checkov5⭐ 7667Ensure tests thoroughly validate functionality through comprehensive assertions. When writing tests: 1. As...
-
Strategic exception management
bridgecrewio/checkov5⭐ 7668Choose the appropriate error handling strategy based on the context and severity of potential failures. Use...
-
Strategic error handling
bridgecrewio/checkov5⭐ 7667Choose appropriate error handling strategies based on the nature of the error and recovery potential: 1. *...
-
Document configuration options
bridgecrewio/checkov5⭐ 7668Always provide comprehensive documentation for all configuration options, including environment variables, ...
-
Choose optimal data structures
bridgecrewio/checkov5⭐ 7668Select the most appropriate data structure based on the specific operations your algorithm needs to perform...
-
Use descriptive identifiers
calcom/cal.com5⭐ 37732Choose specific, descriptive names for variables, functions, and parameters that clearly communicate their ...
-
Explicit null checks
calcom/cal.com5⭐ 37732Always use explicit null and undefined checks instead of relying solely on optional chaining, especially wh...
-
ensure test reliability
calcom/cal.com5⭐ 37732Write tests that are stable, independent, and non-flaky by following proper isolation and waiting practices...
-
Design contextual API interfaces
calcom/cal.com5⭐ 37732API interfaces should expose only relevant data and functionality based on context, configuration, and user...
-
Use memory pools
oven-sh/bun5⭐ 79093Reuse memory with buffer pools for temporary allocations instead of creating new buffers each time. This re...
-
Network API compatibility
oven-sh/bun5⭐ 79093When implementing networking APIs that mirror Node.js functionality, ensure both behavior and error pattern...
-
Match filenames to contents
oven-sh/bun5⭐ 79093Files should be named to clearly reflect their primary contents: 1. When a file contains a single primary ...
-
Descriptive identifier names
oven-sh/bun5⭐ 79093Choose clear, consistent, and accurate identifiers that precisely reflect behavior and follow established p...
-
Clean all error paths
oven-sh/bun5⭐ 79093Ensure all error paths properly clean up resources and handle errors appropriately. This includes: 1. Usin...
-
Environment variable configuration
browser-use/browser-use5⭐ 69139Prefer environment variables over hardcoded configuration values to improve flexibility and avoid forcing c...
-
Simplify complex code blocks
Homebrew/brew5⭐ 44168Break down complex code blocks and expressions into simpler, more readable components. Complex boolean logi...
-
Actions workflow best practices
Homebrew/brew5⭐ 44168Use GitHub Actions native features and follow best practices to create maintainable, secure, and reliable C...
-
Write clear examples
boto/boto35⭐ 9417Create comprehensive code examples in documentation that demonstrate common operations and use proper forma...
-
Consistent method interfaces
boto/boto35⭐ 9417Design APIs with consistent method interfaces across related resources to improve usability and reduce lear...
-
Configure proxies with schemes
boto/boto35⭐ 9417When configuring proxies in AWS SDK clients, always include the complete URL scheme in proxy definitions. M...
-
Validate before usage
better-auth/better-auth5⭐ 19651Always explicitly check for null or undefined values before using them in operations. Don't assume values e...
-
Prefer simple solutions
better-auth/better-auth5⭐ 19651Choose existing utilities, simpler patterns, and cleaner implementations over manual or complex approaches....
-
Use semantically clear names
bazelbuild/bazel5⭐ 24489Choose names that clearly express their purpose and avoid patterns that can lead to confusion or bugs. Name...
-
Specific exceptions for clarity
Azure/azure-sdk-for-net5⭐ 5809Use specific exception types with meaningful error messages rather than generic exceptions to improve error...
-
Preserve API compatibility
Azure/azure-sdk-for-net5⭐ 5809When evolving APIs, maintain backward compatibility to prevent breaking changes for existing consumers. K...
-
Maintain clean code structure
Azure/azure-sdk-for-net5⭐ 5809Keep code clean and well-organized by: 1. Removing unnecessary elements: - Delete commented-out code tha...
-
Centralize configuration values
Azure/azure-sdk-for-net5⭐ 5809Configuration values should be defined once and referenced throughout your project to ensure consistency an...
-
Prefer descriptive over brief
tokio-rs/axum5⭐ 22100Choose clear, descriptive names over abbreviated or shortened versions. Names should be self-documenting an...
-
Documentation consistency standards
tokio-rs/axum5⭐ 22100Maintain consistent documentation formatting standards across all project files, especially in changelogs, ...
-
Consistent axum Usage in TypeScript
tokio-rs/axum5⭐ 22100When implementing TypeScript code that uses the axum package, maintain consistent and idiomatic usage: alwa...
-
Type-safe API interfaces design
axios/axios5⭐ 107000Design API interfaces with strong type safety while maintaining excellent developer experience. Prefer expl...
-
Standardize null value checks
axios/axios5⭐ 107000Always use consistent patterns and utility functions for handling null and undefined values. This improves ...
-
Specific test assertions
axios/axios5⭐ 107000When writing tests, explicitly assert specific conditions and expected values rather than relying on genera...
-
Proxy protocol handling
axios/axios5⭐ 107000When implementing HTTP clients with proxy support, ensure the connection to the proxy uses the protocol spe...
-
Documentation reflects reality
axios/axios5⭐ 107000Always ensure documentation accurately represents the actual code behavior and implementation details. Incl...
-
Consistent method behaviors
axios/axios5⭐ 107000Design API methods with predictable behavior patterns that follow common conventions. Methods that modify o...
-
Complete error handling chain
axios/axios5⭐ 107000Implement comprehensive error handling throughout the codebase by ensuring all error scenarios are properly...
-
Structured test resource management
aws/aws-sdk-js5⭐ 7628Organize tests with proper resource lifecycle management to ensure reliability and maintainability. Create ...
-
Content integrity verification
aws/aws-sdk-js5⭐ 7628When handling HTTP responses, especially with streaming data, properly verify content integrity and length ...
-
Use descriptive constants
argoproj/argo-cd5⭐ 20149Replace hardcoded strings, numbers, and magic values with well-named constants that clearly describe their ...
-
Use configuration constants
argoproj/argo-cd5⭐ 20149Replace hardcoded values with named constants from common packages or make values configurable through envi...
-
structured logging practices
argoproj/argo-cd5⭐ 20149Use structured logging with proper context and consolidate related log messages. Instead of multiple separa...
-
Provide comprehensive explanations
argoproj/argo-cd5⭐ 20149Documentation should provide thorough technical explanations that define key concepts, explain behaviors, a...
-
Follow Go naming conventions
argoproj/argo-cd5⭐ 20149Adhere to Go naming conventions and maintain consistency with established codebase terminology. This includ...
-
Choose appropriate synchronization primitives
argoproj/argo-cd5⭐ 20149Select the right synchronization mechanism based on your specific use case to avoid performance regressions...
-
Check nil before access
argoproj/argo-cd5⭐ 20149Always verify that pointers and nested struct fields are not nil before accessing their members to prevent ...
-
Assert response fully always
appwrite/appwrite5⭐ 51959Always validate all relevant aspects of API responses in tests, including status codes, headers, and body c...
-
Simplify complex expressions
ant-design/ant-design5⭐ 95882Extract repeated expressions and complex conditional logic into clear, readable variables to improve code m...
-
Semantic naming consistency
ant-design/ant-design5⭐ 95882Choose semantically clear and consistent names across related elements in your codebase. Names should conve...
-
React component API clarity
ant-design/ant-design5⭐ 95882Ensure React component APIs are well-designed with accurate TypeScript interfaces, clear documentation, and...
-
Extract common patterns
ant-design/ant-design5⭐ 95882When you encounter repeated code patterns, conditional logic within loops, or similar implementations acros...
-
Consistent null safety patterns
ant-design/ant-design5⭐ 95882Maintain consistent approaches to null and undefined handling throughout the codebase. Use optional chainin...
-
Configuration documentation standards
ant-design/ant-design5⭐ 95882Ensure configuration properties and settings are documented with consistent formatting and precise specific...
-
avoid redundant operations
angular/angular5⭐ 98611Identify and eliminate redundant computations, function calls, and expensive operations that can be cached,...
-
API consistency patterns
angular/angular5⭐ 98611Ensure that similar APIs follow consistent patterns and conventions across the codebase. When designing or ...
-
AI documentation clarity
angular/angular5⭐ 98611Ensure AI-related documentation, comments, and explanations are clear, accurate, and well-structured. This ...
-
Add explanatory comments
angular/angular5⭐ 98611Code should include explanatory comments when the purpose, behavior, or context is not immediately clear fr...
-
Write audience-appropriate documentation
alacritty/alacritty5⭐ 59675Documentation should be written from the perspective of its intended audience, using language and detail le...
-
prefer early returns
alacritty/alacritty5⭐ 59675Use early returns and guard clauses to reduce nesting levels and improve code readability. When you have mu...
-
Configuration validation feedback
alacritty/alacritty5⭐ 59675Always validate configuration options and provide clear feedback to users about potential issues. This incl...
-
Configuration documentation accuracy
alacritty/alacritty5⭐ 59675Ensure configuration documentation is accurate, consistent, and clearly indicates optional versus required ...
-
Avoid unwrap on nullables
alacritty/alacritty5⭐ 59675Never use `unwrap()` on nullable values that could reasonably be None, as this can cause crashes that are h...
-
avoid unnecessary operations
alacritty/alacritty5⭐ 59675Eliminate redundant work by implementing early returns, avoiding unnecessary clones/references, and skippin...
-
Validate nulls explicitly
apache/airflow5⭐ 40858Always check for null values before using them, and use Python's idiomatic patterns to make these checks co...
-
Use system configuration defaults
apache/airflow5⭐ 40858Always use the configuration system's default values instead of hardcoding defaults in the code. This ensur...
-
Maintain code consistency
apache/airflow5⭐ 40858Ensure consistency throughout the codebase by following established patterns for both UI components and cod...
-
Internationalize ui text
apache/airflow5⭐ 40858All user interface text must be internationalized using the appropriate i18n module instead of hardcoded st...
-
Handle exceptions with specificity
apache/airflow5⭐ 40858Use specific exception types and avoid masking errors through overly broad exception handling or default va...
-
Documentation best practices
apache/airflow5⭐ 40858Documentation should follow established best practices to ensure clarity, consistency, and usefulness: 1. ...
-
Verify properties before logging
vercel/ai5⭐ 15590When logging object properties, always verify that the property names exactly match the actual structure of...
-
Maintain API naming consistency
vercel/ai5⭐ 15590When working with AI model interfaces and result objects, ensure consistent property naming across related ...
-
Document API schemas
vercel/ai5⭐ 15590Add comprehensive JSDoc comments to all API interfaces, types, and schema definitions. This documentation s...
-
Consistent provider options
vercel/ai5⭐ 15590When designing APIs that support multiple providers or service integrations, implement consistent patterns ...
-
Protect render loop performance
zed-industries/zed4⭐ 62119Ensure render loop operations stay within frame time budget (typically 16.67ms for 60fps). Avoid expensive ...
-
Contextualize don't panic
zed-industries/zed4⭐ 62119Always provide meaningful context for errors and avoid code that can panic in production. Use `.context()` ...
-
Background process blocking operations
zed-industries/zed4⭐ 62119Always move potentially blocking operations to background threads to maintain UI responsiveness. Use approp...
-
standardize build configurations
facebook/yoga4⭐ 18255Ensure build configurations are consistently propagated through all build steps and output directories foll...
-
optimize memory layout
facebook/yoga4⭐ 18255Prioritize memory-efficient data structures and algorithms by favoring stack allocation over heap allocatio...
-
Improve code readability
facebook/yoga4⭐ 18255Enhance code clarity and maintainability by applying several readability techniques: extract repeated expre...
-
explicit code declarations
facebook/yoga4⭐ 18255Always make code declarations explicit and consistent to improve readability and maintainability. This incl...
-
Evaluate synchronization necessity
facebook/yoga4⭐ 18255Before implementing thread safety mechanisms like atomic operations or mutexes for global variables, critic...
-
Simplify conditional logic
cloudflare/workers-sdk4⭐ 3379Prefer concise conditional expressions over verbose nested conditions and unnecessary boolean variables. Th...
-
ensure test isolation
cloudflare/workers-sdk4⭐ 3379Tests must be isolated and not leak state between runs. This includes properly cleaning up mocks, spies, an...
-
changeset validation standards
cloudflare/workers-sdk4⭐ 3379Establish comprehensive validation for changesets to ensure reliable release automation. Changesets are req...
-
HTTP protocol compliance
cloudflare/workerd4⭐ 6989Ensure HTTP protocol implementations strictly follow RFC standards and handle edge cases correctly. This in...
-
Connection reuse safety
cloudflare/workerd4⭐ 6989When implementing network connection reuse, prioritize safety over performance by enforcing sequential requ...
-
Add explanatory comments
cloudflare/workerd4⭐ 6989When code behavior, limitations, or implementation decisions are not immediately obvious from reading the c...
-
Use design tokens
wavetermdev/waveterm4⭐ 17328Centralize visual styles and prefer theme variables over hardcoded values. Motivation: duplicate hardcoded ...
-
Propagate errors clearly
wavetermdev/waveterm4⭐ 17328Always return and propagate errors; surface them to callers and the UI, and clean up resources on error pat...
-
platform-specific config
wavetermdev/waveterm4⭐ 17328Centralize OS-specific configuration and modifier mappings in a dedicated config/adapter module and documen...
-
Validate before expensive operations
microsoft/vscode4⭐ 174887Perform lightweight validation checks before executing expensive operations to avoid unnecessary resource c...
-
Optimize algorithmic complexity first
microsoft/vscode4⭐ 174887When implementing algorithms, prioritize reducing computational complexity before adding special cases or o...
-
Handle configuration value changes
microsoft/vscode4⭐ 174887Configuration values should be properly initialized and stay updated throughout their lifecycle. Follow the...
-
Comprehensive test structure
volcano-sh/volcano4⭐ 4899Tests should focus on comprehensive coverage of main logic flows rather than trivial functions, use establi...
-
Always check errors
volcano-sh/volcano4⭐ 4899Always check and handle errors returned from function calls, especially API operations, before proceeding w...
-
Document AI model capabilities
vllm-project/vllm4⭐ 51730Provide clear, comprehensive documentation for AI model capabilities, especially for multimodal features an...
-
Use parameterized queries
vitessio/vitess4⭐ 19815Always use parameterized queries with bind variables instead of string concatenation or formatting when con...
-
Standardize error wrapping patterns
vitessio/vitess4⭐ 19815Use consistent error wrapping patterns to preserve error context and ensure proper error code propagation. ...
-
Metric design best practices
vitessio/vitess4⭐ 19815Design metrics to be reliable and maintainable by following these key principles: 1. Initialize metrics wi...
-
Log levels and clarity
vitessio/vitess4⭐ 19815Choose appropriate log levels and write clear, meaningful log messages that provide necessary context witho...
-
Explicit nil handling
vitessio/vitess4⭐ 19815Always handle nil values explicitly in your code to improve clarity and prevent subtle bugs. When a functio...
-
Environment-portable configuration management
vitessio/vitess4⭐ 19815Ensure all configurations are environment-portable and follow current best practices for the target platfor...
-
Use optional patterns
vitejs/vite4⭐ 74031Choose the most appropriate pattern for handling potentially undefined or null values. When designing types...
-
Optimize glob operations
vitejs/vite4⭐ 74031When using glob patterns for file system operations, ensure optimal performance and consistent behavior by ...
-
Minimize memory allocations
vitejs/vite4⭐ 74031Choose methods and patterns that reduce unnecessary memory allocations and object creation to improve perfo...
-
Manage configuration inheritance carefully
vitejs/vite4⭐ 74031When designing configuration systems, establish clear default values and inheritance patterns. Follow these...
-
Leverage native tooling
vitejs/vite4⭐ 74031Prioritize native or Rust-based implementations of build tools over their JavaScript counterparts to signif...
-
Evolve APIs with compatibility
vitejs/vite4⭐ 74031When evolving APIs, maintain backwards compatibility while introducing new features by following a staged d...
-
Document code purposefully
vitejs/vite4⭐ 74031High-quality code documentation improves maintainability and helps other developers understand your intenti...
-
Clean configuration organization
vitejs/vite4⭐ 74031Organize configuration settings logically and avoid redundancy in project configuration files. Group relate...
-
Break down complex functions
vitejs/vite4⭐ 74031Improve code readability and maintainability by decomposing large, complex functions into smaller, focused ...
-
explicit null checks
vlang/v4⭐ 36582Always verify that pointers and function return values are not null before dereferencing or using them. Thi...
-
Document algorithm behavior
vlang/v4⭐ 36582When implementing or documenting algorithms, clearly specify their behavior, expected outputs, and usage pa...
-
Configure socket blocking behavior
vlang/v4⭐ 36582Always explicitly configure socket blocking behavior when creating TCP connections, and provide compile-tim...
-
Use direct documentation style
astral-sh/uv4⭐ 60322Write documentation using direct, clear language that addresses the reader directly. Follow these style gui...
-
Respect connectivity state
astral-sh/uv4⭐ 60322Applications should gracefully handle different network connectivity states and provide appropriate feedbac...
-
Consistent authentication patterns
astral-sh/uv4⭐ 60322Design API authentication mechanisms with consistent patterns, clear documentation, and helpful error messa...
-
Balance test performance considerations
astral-sh/uv4⭐ 60322When writing tests, consider both thoroughness and execution time. For operations with significant overhead...
-
optimize algorithmic complexity
Unstructured-IO/unstructured4⭐ 12116When implementing algorithms, prioritize performance by avoiding unnecessary computations and choosing effi...
-
Document configuration reasoning
Unstructured-IO/unstructured4⭐ 12117Always document the reasoning behind configuration decisions, especially for temporary settings like depend...
-
Database schema compliance
Unstructured-IO/unstructured4⭐ 12117Ensure database integrations use correct field names, data types, and schema conventions specific to each d...
-
workspace dependency consistency
unionlabs/union4⭐ 74800All internal project dependencies should use workspace configuration instead of direct path or git referenc...
-
Validate before type conversions
unionlabs/union4⭐ 74800Always validate input constraints and use safe conversion methods before performing type conversions that c...
-
Use structured logging fields
unionlabs/union4⭐ 74800Prefer structured logging fields over string formatting in tracing logs to improve searchability, parsing, ...
-
Effect-based API clients
unionlabs/union4⭐ 74800Use Effect-based HTTP clients with specific error types instead of throwing generic exceptions or relying o...
-
Configuration file completeness
unionlabs/union4⭐ 74800Ensure all configuration files contain required fields, maintain proper structure, and follow consistent fo...
-
API interface design
unionlabs/union4⭐ 74800Design APIs with clean abstractions, logical data organization, and proper layer separation. Structure inte...
-
React rendering safeguards
shadcn-ui/ui4⭐ 90568This standard ensures your React components render correctly and efficiently, preventing common pitfalls th...
-
Provide actionable errors
microsoft/typescript4⭐ 105378Error messages should not only identify problems but also guide developers toward solutions. Include specif...
-
Preserve API compatibility first
microsoft/typescript4⭐ 105378When modifying existing APIs, maintain backwards compatibility by adding new overloads rather than directly...
-
Consistent type algorithms
microsoft/typescript4⭐ 105378Implement consistent algorithms for type compatibility and comparison across different data structures. Whe...
-
Cache expensive computed values
microsoft/typescript4⭐ 105378Cache frequently accessed or computed values to avoid redundant calculations and property lookups. This app...
-
API documentation clarity
astral-sh/ty4⭐ 11919Ensure API documentation, including changelogs and feature descriptions, prioritizes user understanding ove...
-
Validate configuration consistency
twentyhq/twenty4⭐ 35477Ensure configuration values have consistent defaults across all systems and validate configuration structur...
-
Avoid expensive repeated operations
twentyhq/twenty4⭐ 35477Identify and eliminate expensive operations that are performed repeatedly, such as object creation in loops...
-
Keep build tooling updated
vercel/turborepo4⭐ 28115Maintain up-to-date build and CI/CD tooling to leverage the latest features, performance improvements, and ...
-
Define API boundaries
vercel/turborepo4⭐ 28115Clearly specify what constitutes your public API contract to manage versioning expectations and documentati...
-
Configuration precision matters
vercel/turborepo4⭐ 28115Ensure configuration files are precise and stable to prevent unexpected build failures and runtime issues. ...
-
Choose logging levels wisely
vercel/turborepo4⭐ 28115Select appropriate logging levels based on the frequency and importance of the logged operation. Use `trace...
-
Boundary case handling
vercel/turborepo4⭐ 28115Always handle boundary conditions explicitly in algorithms to prevent unexpected behavior. When implementin...
-
validate algorithm boundaries
tree-sitter/tree-sitter4⭐ 21799Always validate boundary conditions and termination criteria in algorithms to prevent infinite loops, out-o...
-
Use meaningful prefixed names
tree-sitter/tree-sitter4⭐ 21799Names should be semantically meaningful and properly prefixed to prevent namespace conflicts. In C, enum va...
-
Simplify conditional logic
tree-sitter/tree-sitter4⭐ 21799Improve code readability by simplifying complex conditional expressions and control flow structures. Factor...
-
Respect environment overrides
tree-sitter/tree-sitter4⭐ 21799Build systems and configuration scripts must respect standard environment variables and provide proper over...
-
Provide clear error context
tree-sitter/tree-sitter4⭐ 21799Always provide meaningful, specific error messages that help users understand what went wrong and why. Use ...
-
parameter type clarity
tree-sitter/tree-sitter4⭐ 21799Design API parameters using specific, intention-revealing types rather than generic or ambiguous ones. This...
-
Optimize CI workflow syntax
tree-sitter/tree-sitter4⭐ 21799Write cleaner and more maintainable CI/CD workflows by following established syntax patterns and best pract...
-
Conditional compilation guards
tree-sitter/tree-sitter4⭐ 21799Always use appropriate preprocessor directives to guard platform-specific, version-dependent, or feature-sp...
-
validate input sanitization
traefik/traefik4⭐ 55772Always maintain input sanitization and validation mechanisms to prevent security vulnerabilities. Disabling...
-
Network information extraction
traefik/traefik4⭐ 55772When extracting network information from connections (such as remote addresses, proxy IPs, or forwarded hea...
-
API interface simplification
traefik/traefik4⭐ 55772Design APIs with clean, minimal interfaces that encapsulate internal logic and avoid exposing unnecessary c...
-
Secure unsafe code
tokio-rs/tokio4⭐ 28989When working with unsafe code, follow these practices to minimize security vulnerabilities: 1. **Minimize ...
-
Optimize algorithmic efficiency
tokio-rs/tokio4⭐ 28981Pay careful attention to operations inside loops and recursive functions to avoid unexpected algorithmic co...
-
Memory ordering needs justification
tokio-rs/tokio4⭐ 28981When using atomic operations, explicitly justify the choice of memory ordering. Each use of a memory orderi...
-
Granular feature flags
tokio-rs/tokio4⭐ 28981Feature flags should be designed with granularity to ensure dependencies are only required when absolutely ...
-
Document null safety assumptions
tokio-rs/tokio4⭐ 28981When writing code that handles potentially null, undefined, or uninitialized values, always document safety...
-
Code block formatting standards
tokio-rs/tokio4⭐ 28981When documenting code examples and shell commands in project documentation, follow these formatting standar...
-
Prefer explicit API design
huggingface/tokenizers4⭐ 9868When designing APIs, favor simple and explicit interfaces over flexible but complex ones. This reduces cogn...
-
Choose semantically clear identifiers
huggingface/tokenizers4⭐ 9868Select parameter and method names that accurately describe their purpose and behavior, avoiding ambiguous t...
-
Choose optimal data structures
huggingface/tokenizers4⭐ 9868Select data structures based on their algorithmic complexity and usage patterns. Consider the tradeoffs bet...
-
Resource cleanup on errors
hashicorp/terraform4⭐ 45532Always ensure proper resource cleanup in error paths to prevent leaks. Use defer functions with explicit er...
-
Explicit protocol interfaces
hashicorp/terraform4⭐ 45532Design protocol interfaces with explicit behavior definitions rather than relying on implicit conventions. ...
-
Ensure test isolation
hashicorp/terraform4⭐ 45532Tests should be completely isolated from each other and clean up after themselves to prevent interference. ...
-
Consistent documentation formatting
hashicorp/terraform4⭐ 45532Maintain consistent style in documentation files to improve readability and professionalism. Specifically: ...
-
Configuration override precedence
hashicorp/terraform4⭐ 45532When designing systems with configurations that can be specified at multiple levels (global vs local, envir...
-
Clarify test documentation
hashicorp/terraform4⭐ 45532Ensure all testing-related documentation is clear, accurate, and user-focused. Use precise terminology when...
-
Choose appropriate API types
hashicorp/terraform4⭐ 45532Select the simplest data types that satisfy requirements when designing API signatures. Avoid using complex...
-
Validate before configuration generation
microsoft/terminal4⭐ 99242Always validate system capabilities and existing configuration state before generating new configuration en...
-
Safe optional handling
microsoft/terminal4⭐ 99242Always use safe patterns when working with optional, nullable, or potentially empty types. Avoid direct com...
-
Safe null handling patterns
microsoft/terminal4⭐ 99242Always use consistent and safe patterns when dealing with potentially null or undefined values. This includ...
-
Reuse defined resources consistently
microsoft/terminal4⭐ 99242Always reuse existing defined constants, resources, and reusable components instead of duplicating values o...
-
Minimize reference counting overhead
microsoft/terminal4⭐ 99242Avoid unnecessary reference counting operations that can impact performance, especially in frequently calle...
-
Implement defensive validation
microsoft/terminal4⭐ 99242Always validate inputs, check boundaries, and avoid relying on undocumented API behavior or assumptions abo...
-
API parameter explicitness
microsoft/terminal4⭐ 99242Always use correct and explicit parameters when calling APIs, rather than relying on defaults or passing in...
-
Tensor-aware control flow
tensorflow/tensorflow4⭐ 190625When working with TensorFlow tensors, avoid using Python comparison operators (`<`, `>=`, `==`) or conditio...
-
Complete docstring structure
tensorflow/tensorflow4⭐ 190625Function documentation should follow a consistent structure that includes all necessary components to be co...
-
Centralize configuration settings
tensorflow/tensorflow4⭐ 190625Place configuration settings in centralized, appropriate locations rather than duplicating them across mult...
-
Trust GetX accessors
temporalio/temporal4⭐ 14953When working with protocol buffer messages or similar objects that provide GetX() accessor methods, avoid r...
-
Safe lock usage patterns
temporalio/temporal4⭐ 14953Follow these critical patterns when using locks to prevent deadlocks, resource leaks, and performance issue...
-
Ensure deterministic execution
temporalio/temporal4⭐ 14953When working with Temporal workflows, maintaining deterministic behavior is critical for reliable replay an...
-
Dynamic config usage principles
temporalio/temporal4⭐ 14953Use dynamic configuration selectively and effectively by following these principles: 1. Only use dynamic c...
-
Consistent naming patterns
temporalio/temporal4⭐ 14953Maintain consistent naming patterns across related components and services. When implementing equivalent fu...
-
Synchronization primitive selection
gravitational/teleport4⭐ 19109Choose appropriate synchronization primitives and ensure proper protection of shared state to avoid race co...
-
prefer simpler patterns
gravitational/teleport4⭐ 19109Choose simpler, more readable code patterns over complex alternatives to improve maintainability and reduce...
-
Optimize computational complexity
gravitational/teleport4⭐ 19109Always analyze the computational complexity of algorithms and choose efficient implementations to avoid per...
-
Authenticated health checks
gravitational/teleport4⭐ 19109When implementing health checks for external services, verify the complete communication stack rather than ...
-
Add contextual logging
gravitational/teleport4⭐ 19109Add informative log messages with sufficient context to help operators diagnose issues, understand system s...
-
Mathematical precision matters
tensorflow/swift4⭐ 6136When implementing mathematical algorithms, ensure precise terminology and correct implementation of mathema...
-
Document environment variables
tensorflow/swift4⭐ 6136When using configurable components, clearly document all relevant environment variables and their effects. ...
-
state boundary management
sveltejs/svelte4⭐ 83580Ensure proper state management when passing reactive values across component and function boundaries. State...
-
Simplify and deduplicate code
sveltejs/svelte4⭐ 83580Write concise, non-redundant code by eliminating unnecessary duplication and using simpler syntax where pos...
-
Documentation clarity standards
sveltejs/svelte4⭐ 83580Ensure technical documentation clearly distinguishes between similar but different concepts, uses precise l...
-
Complete code examples
sveltejs/svelte4⭐ 83580Ensure all code examples are complete, functional, and accurately demonstrate the intended concepts. Code e...
-
API flexibility balance
sveltejs/svelte4⭐ 83580When designing APIs, carefully balance simplicity for common use cases with flexibility for advanced scenar...
-
Secure authentication flows
supabase/supabase4⭐ 86070Design APIs with secure authentication flows by following proper error handling and documentation practices...
-
Protect sensitive API keys
supabase/supabase4⭐ 86070Never expose keys with elevated privileges (such as `service_role` or secret keys) in client-side code. The...
-
Pin dependency versions
supabase/supabase4⭐ 86070Always specify exact versions for dependencies in your configuration files and import statements to ensure ...
-
Maintain network controls
supabase/supabase4⭐ 86070Create maintainable and clearly documented network access controls. Instead of hardcoding network restricti...
-
Maintain code consistency
supabase/supabase4⭐ 86070Ensure consistent code organization, naming conventions, and structure throughout the codebase: 1. Use ide...
-
Handle external operations safely
supabase/supabase4⭐ 86070Always implement explicit error handling for external operations such as network requests, database queries...
-
Follow hooks rules
supabase/supabase4⭐ 86070Adhere strictly to React hooks rules and best practices to ensure your components behave correctly and pred...
-
Document intent clearly
supabase/supabase4⭐ 86070Add clear documentation that explains not just what code does, but why certain approaches were chosen. This...
-
organize code properly
browserbase/stagehand4⭐ 16443Maintain clear code organization by placing code in appropriate files, directories, and modules. Respect mo...
-
API parameter design
browserbase/stagehand4⭐ 16443Design API methods with structured object parameters instead of ordered parameters or loose typing. Use pro...
-
Use environment-independent defaults
spring-projects/spring-framework4⭐ 58382When designing configuration options, avoid relying on environment-specific defaults such as system charact...
-
Spring annotation best practices
spring-projects/spring-framework4⭐ 58382When working with Spring annotations, follow these guidelines to avoid common issues: 1. **Use interface t...
-
Minimize lock contention
spring-projects/spring-framework4⭐ 58382When implementing thread-safe code, minimize the scope and duration of locks to reduce contention and impro...
-
Consistent style conventions
spring-projects/spring-framework4⭐ 58382Apply consistent formatting and organization conventions throughout the codebase to enhance readability and...
-
Explicit security documentation
spring-projects/spring-boot4⭐ 77637Always provide explicit and accurate documentation for security-related configurations, including: 1. Use ...
-
Session-specific configuration access
apache/spark4⭐ 41554Always access configuration through the appropriate session context rather than using global configuration ...
-
self-documenting code practices
apache/spark4⭐ 41554Write code that explains itself through clear structure and meaningful names, while adding targeted comment...
-
Resource cleanup responsibility
apache/spark4⭐ 41554Ensure proper resource management by clearly defining cleanup responsibilities and implementing robust clea...
-
Externalize configuration values
apache/spark4⭐ 41554Avoid hardcoding configuration values directly in code. Instead, make them externally configurable through ...
-
avoid null in Scala
apache/spark4⭐ 41554Avoid using null values in Scala code and prefer Option types for representing optional values. Null usage ...
-
Use existing API utilities
SigNoz/signoz4⭐ 23369Always leverage existing utility hooks, constants, and navigation methods instead of implementing manual so...
-
REST API conventions
SigNoz/signoz4⭐ 23369Follow standard REST API conventions for HTTP methods, status codes, endpoint structure, and response compl...
-
ensure migration idempotency
SigNoz/signoz4⭐ 23369Database migrations must be designed to run safely multiple times without causing errors or data corruption...
-
Avoid inline styles
SigNoz/signoz4⭐ 23369Move all inline styles to dedicated CSS/SCSS files to improve maintainability, consistency, and separation ...
-
Verify algorithmic correctness
sgl-project/sglang4⭐ 17245Ensure algorithmic implementations are correct before applying optimizations or complex conditional logic. ...
-
Use Optional types safely
sgl-project/sglang4⭐ 17245Always use proper nullable type annotations and safe access patterns to prevent runtime errors from null/un...
-
Prevent race conditions
sgl-project/sglang4⭐ 17245Ensure atomic operations and proper synchronization when multiple threads or processes access shared state....
-
Optimize cache performance
sgl-project/sglang4⭐ 17245Prioritize cache performance by leveraging proven optimization techniques and avoiding performance anti-pat...
-
standardize log output methods
serverless/serverless4⭐ 46810Use `process.stdout.write` instead of `console.log` for controlled logging output to avoid linter issues an...
-
Use semantically meaningful names
oraios/serena4⭐ 14465Choose names that clearly convey purpose and intent rather than generic or ambiguous terms. Prefer specific...
-
Use proper logging practices
oraios/serena4⭐ 14465Always use logging instead of print statements, and choose appropriate log levels to avoid log spam. Print ...
-
explicit None handling
oraios/serena4⭐ 14465When operations cannot complete successfully or return meaningful results, explicitly return None rather th...
-
Exception chaining practices
oraios/serena4⭐ 14465Always use exception chaining with `raise ... from e` when re-raising or wrapping exceptions to preserve th...
-
Ensure complete documentation quality
oraios/serena4⭐ 14465Documentation should be comprehensive, clear, and provide all necessary context for understanding and using...
-
Thread management best practices
getsentry/sentry4⭐ 41297When working with threads or thread pools in concurrent code, follow these practices to improve reliability...
-
Raise contextual error types
getsentry/sentry4⭐ 41297Always raise specific, contextual exception types instead of generic exceptions. Include relevant error det...
-
Precise dependency versioning
getsentry/sentry-php4⭐ 1873When specifying dependency version constraints in configuration files, be deliberate about minimum versions...
-
Include practical examples
getsentry/sentry-php4⭐ 1873Enhance technical documentation with clear, practical code examples that demonstrate usage. This applies to...
-
Flexible configuration formats
getsentry/sentry-php4⭐ 1873Support multiple configuration formats where appropriate (string, callable, object) to accommodate differen...
-
Balance CI test coverage
getsentry/sentry-php4⭐ 1873Configure CI workflows to optimize both comprehensive testing and resource usage. For resource-intensive te...
-
Optimize React hook patterns
getsentry/sentry4⭐ 41297Design React hooks with performance and maintainability in mind by following these key principles: 1. Mini...
-
Explicit optional type declarations
getsentry/sentry4⭐ 41297Always explicitly declare optional types in interfaces and function parameters rather than relying on runti...
-
validate environment variable usage
semgrep/semgrep4⭐ 12598Always validate environment variables with proper fallback logic and avoid unnecessary usage in tests or wh...
-
Use appropriate log levels
semgrep/semgrep4⭐ 12598Choose log levels based on the intended audience to prevent user-visible noise. Most logging should use `Lo...
-
Simplify complex logic
semgrep/semgrep4⭐ 12598Break down complex code structures into simpler, more readable forms. Long indented blocks, verbose conditi...
-
Document configuration choices
semgrep/semgrep4⭐ 12598Add explanatory comments for non-obvious configuration settings, especially when they deviate from defaults...
-
Document code purpose
semgrep/semgrep4⭐ 12598Ensure that code elements have clear documentation explaining their purpose, behavior, and context. This in...
-
Design consistent tracing interfaces
semgrep/semgrep4⭐ 12598When implementing observability features like tracing, prioritize consistent and extensible API design. Use...
-
CI workflow optimization
semgrep/semgrep4⭐ 12598Optimize CI/CD workflows by prioritizing reliability over convenience and leveraging built-in platform feat...
-
Benchmark performance assumptions
semgrep/semgrep4⭐ 12598Always validate performance concerns with actual measurements before making optimization decisions. Avoid m...
-
Add CI safety checks
semgrep/semgrep4⭐ 12598Implement defensive checks and error handling in CI/CD workflows to prevent failures and ensure robust oper...
-
Ensure deterministic resume behavior
strands-agents/sdk-python4⭐ 4044When implementing persistence and resume functionality in durable execution systems, ensure that state is p...
-
Extract complex logic helpers
rust-lang/rust4⭐ 105254Complex or duplicated logic should be extracted into well-named helper functions to improve code readabilit...
-
Contextual error messages
rust-lang/rust4⭐ 105254Error messages should provide specific context about the error and guide users toward solutions. When repor...
-
Structure configuration options
dotnet/runtime4⭐ 16578Design and document configuration options (feature flags, environment variables, conditional compilation) t...
-
Maintain consistent formatting
dotnet/runtime4⭐ 16578Ensure consistent formatting and organization throughout the codebase to improve readability and maintainab...
-
Decompose complex algorithms
dotnet/runtime4⭐ 16578When implementing algorithms, break down complex methods that handle multiple concerns into smaller, more f...
-
Choose appropriate error mechanisms
dotnet/runtime4⭐ 16578Use the right error handling mechanism for each scenario: exceptions for recoverable situations, assertions...
-
Support configuration extension patterns
astral-sh/ruff4⭐ 40619When designing configuration systems, provide both replacement and extension options for list-based setting...
-
Maintain focused module structure
astral-sh/ruff4⭐ 40619Keep modules focused and well-organized by grouping related functionality together and splitting large file...
-
Leverage existing API utilities
astral-sh/ruff4⭐ 40619When implementing or consuming APIs, always prefer using existing utility methods and abstractions over man...
-
test real user interactions
TanStack/router4⭐ 11590Write tests that simulate actual user behavior and verify real rendering outcomes rather than testing imple...
-
Maintain backward compatibility
TanStack/router4⭐ 11590When evolving APIs, always maintain backward compatibility to avoid breaking existing user code. Support bo...
-
Ensure documentation clarity
TanStack/router4⭐ 11590Documentation should be clear, accurate, and consistently structured to provide maximum value to developers...
-
API backward compatibility
TanStack/router4⭐ 11590When updating existing APIs, maintain backward compatibility by deprecating old options rather than introdu...
-
Robust error handling
RooCodeInc/Roo-Code4⭐ 17288Implement comprehensive error handling to prevent crashes and aid debugging. This includes: 1. **Use try/c...
-
Prevent unnecessary processing
RooCodeInc/Roo-Code4⭐ 17288Optimize React component performance by minimizing unnecessary operations that can slow down your applicati...
-
Optimize React components
RooCodeInc/Roo-Code4⭐ 17288Apply these React optimization techniques to improve component performance and maintainability: 1. **Use s...
-
Optimize algorithm implementations
RooCodeInc/Roo-Code4⭐ 17288When implementing algorithms, ensure they are both efficient and correct across all input cases. Key consid...
-
Names reflect semantic purpose
RooCodeInc/Roo-Code4⭐ 17288Identifiers (variables, properties, keys, IDs) should accurately reflect their semantic purpose and context...
-
Consistent output path specification
RooCodeInc/Roo-Code4⭐ 17288Configuration files defining operations that generate data outputs must always include a `
` elemen... -
Configuration consistency check
RooCodeInc/Roo-Code4⭐ 17288Ensure that configuration files and settings are consistent with their intended functionality and maintain ...
-
Conditional debug logging
RooCodeInc/Roo-Code4⭐ 17288Remove or conditionally disable console.log and console.debug statements before committing code to producti...
-
model-appropriate configuration
smallcloudai/refact4⭐ 3114Ensure AI models use configuration settings that match their specific architecture and requirements. Differ...
-
Simplify configuration setup
remix-run/react-router4⭐ 55270Avoid redundant configuration parameters and prefer automated solutions over manual maintenance. Remove con...
-
Provide explicit error handling
remix-run/react-router4⭐ 55270Create custom, descriptive errors instead of allowing external dependencies or systems to fail with generic...
-
prefer built-in React types
remix-run/react-router4⭐ 55270Favor React's built-in types over custom interfaces when possible, and consolidate to standard library type...
-
API backward compatibility
remix-run/react-router4⭐ 55270When evolving APIs, maintain backward compatibility by preserving existing public interfaces while adding n...
-
Optimize hot paths
facebook/react4⭐ 237000In performance-critical code paths that execute frequently, optimize to reduce unnecessary operations that ...
-
proper synchronization practices
facebook/react-native4⭐ 123178Ensure thread safety by using appropriate synchronization mechanisms and understanding thread context. When...
-
preserve component patterns
facebook/react-native4⭐ 123178When refactoring React components, maintain essential component patterns including type annotations, ref fo...
-
organize tests clearly
facebook/react-native4⭐ 123178Structure tests with clear organization, focused scope, and minimal duplication to improve maintainability ...
-
optimize algorithmic efficiency
facebook/react-native4⭐ 123178When implementing algorithms, especially in performance-critical paths like scroll handlers or layout metho...
-
minimize public API surface
facebook/react-native4⭐ 123178Carefully evaluate whether functionality needs to be exposed as public API. Keep implementations private wh...
-
Eliminate unnecessary computations
facebook/react-native4⭐ 123178Identify and remove redundant operations, unnecessary copies, and repeated computations that add algorithmi...
-
descriptive specific naming
facebook/react-native4⭐ 123178Use descriptive and specific names that clearly communicate purpose and context. Method names should indica...
-
dependency management strategy
facebook/react-native4⭐ 123178When configuring dependencies in package.json, follow these strategic principles to ensure stable and maint...
-
Avoid synchronous main dispatch
facebook/react-native4⭐ 123178Avoid using `RCTUnsafeExecuteOnMainQueueSync` and similar synchronous main queue dispatch methods as they c...
-
Balance constraints with flexibility
facebook/react4⭐ 237000When designing APIs, carefully evaluate constraints imposed on consumers. Each limitation should serve a cl...
-
Understand query method behavior
rails/rails4⭐ 57027When working with database queries in Active Record, it's essential to understand the precise behavior of q...
-
Optimize cache headers
rails/rails4⭐ 57027Use appropriate HTTP cache headers based on content mutability. For immutable assets (like digest-stamped f...
-
Human-readable configuration values
rails/rails4⭐ 57027When writing configuration files, prioritize human readability and maintainability by using descriptive exp...
-
Efficient data processing
rails/rails4⭐ 57027When implementing algorithms that process large data streams or collections, use a chunking approach rather...
-
Contextual error messages
rails/rails4⭐ 57027Error messages should provide sufficient context to understand and debug the problem efficiently. Include b...
-
Content security policy configuration
rails/rails4⭐ 57027Implement Content Security Policy (CSP) configurations appropriately for your application's context. Use re...
-
Validate database connections explicitly
quarkusio/quarkus4⭐ 14667Always implement explicit database connection validation strategies to ensure robust application behavior d...
-
Secure authentication defaults
quarkusio/quarkus4⭐ 14667Configure authentication mechanisms with secure default settings to prevent security vulnerabilities. When ...
-
Documentation style consistency
quarkusio/quarkus4⭐ 14667Maintain consistent documentation style to improve readability and user experience: 1. **Use precise termi...
-
Avoid wildcard imports
quarkusio/quarkus4⭐ 14667Wildcard (star) imports like `import java.util.*;` are prohibited in the codebase as they reduce code reada...
-
Avoid unnecessary allocations
quarkusio/quarkus4⭐ 14667Minimize object creation and memory allocations, especially in frequently called methods and hot code paths...
-
Automate style enforcement
quarkusio/quarkus4⭐ 14667Implement automated code style enforcement using complementary tools rather than relying on manual reviews....
-
Optimize memory usage
pytorch/pytorch4⭐ 91345Limit memory consumption in performance-critical paths by conditionally creating large data structures or d...
-
Normalize configuration parameters
pytorch/pytorch4⭐ 91345Always normalize configuration inputs (especially environment variables) by removing whitespace and applyin...
-
Eliminate redundant operations
pytorch/pytorch4⭐ 91345Avoid unnecessary operations that can impact performance. This includes: 1. Redundant data transformations...
-
Design for compatibility
pytorch/pytorch4⭐ 91345When evolving APIs, prioritize backward compatibility to minimize disruption for existing users. Add new fu...
-
Choose appropriate exceptions
pytorch/pytorch4⭐ 91345Select the proper exception type based on the error scenario to provide clearer error handling and better d...
-
Write targeted, specific tests
pydantic/pydantic4⭐ 24377Tests should validate specific, well-defined behaviors with clear assertions that directly relate to what's...
-
Simple defaults, flexible overrides
pydantic/pydantic4⭐ 24377Design APIs with intuitive defaults for common use cases while providing specialized options for edge cases...
-
Semantic over syntactic
pydantic/pydantic4⭐ 24377Choose names that clearly communicate the purpose and behavior of your code elements, focusing on semantic ...
-
Safe attribute access pattern
pydantic/pydantic4⭐ 24377Always use safe attribute access patterns to handle potentially null or undefined attributes. Instead of di...
-
Document configuration relationships
pydantic/pydantic4⭐ 24377When designing configuration options that interact with each other, clearly document these relationships an...
-
Consistent configuration patterns
pydantic/pydantic4⭐ 24377When working with configurations in Pydantic models, maintain consistency by using `ConfigDict()` instead o...
-
Balance documentation thoroughness
pydantic/pydantic4⭐ 24377Documentation should balance completeness with avoiding redundancy. When documenting complex features: 1. ...
-
Service layer abstraction
prowler-cloud/prowler4⭐ 11834Separate business logic and external service interactions from API views by using dedicated service layers....
-
Parameterize security commands
prowler-cloud/prowler4⭐ 11834When writing security-related CLI commands or remediation steps, always use standardized parameter placehol...
-
Memory usage optimization
prowler-cloud/prowler4⭐ 11834Optimize memory usage in high-performance applications by implementing explicit memory management technique...
-
Maintain component consistency
prowler-cloud/prowler4⭐ 11834Use a consistent approach when working with components to improve code maintainability and ensure visual co...
-
Ensure migration compatibility
prowler-cloud/prowler4⭐ 11834When modifying database schemas through migrations, ensure compatibility with existing data. For new requir...
-
Document configuration variables
prowler-cloud/prowler4⭐ 11834Always provide complete documentation for configuration variables, including their exact format, purpose, a...
-
Document authentication requirements
prowler-cloud/prowler4⭐ 11834When creating or modifying APIs, always provide comprehensive documentation for authentication methods and ...
-
special value handling
prometheus/prometheus4⭐ 59616Algorithms must explicitly define and consistently handle special values like NaN, infinity, and edge cases...
-
prevent concurrent data races
prometheus/prometheus4⭐ 59616Always analyze shared data access patterns to prevent race conditions in concurrent code. Use appropriate s...
-
maintain API consistency
prometheus/prometheus4⭐ 59616When designing or modifying APIs, ensure they follow established patterns and conventions within the codeba...
-
ensure mathematical correctness
prometheus/prometheus4⭐ 59616When implementing or testing algorithms, ensure mathematical relationships and constraints are maintained t...
-
Configure dependency management comprehensively
prometheus/prometheus4⭐ 59616When configuring dependency management tools like Renovate, ensure comprehensive setup that includes modern...
-
Complete observability documentation
prometheus/prometheus4⭐ 59616Ensure documentation for observability systems provides comprehensive information including all required pe...
-
Check nil at usage
prometheus/prometheus4⭐ 59616Perform null and validity checks at the point where values are actually used, rather than defensively initi...
-
proper async error testing
prisma/prisma4⭐ 42967When testing for expected errors in async code, use Jest's built-in async error testing patterns instead of...
-
Ensure concurrent resource cleanup
prisma/prisma4⭐ 42967Always ensure proper cleanup of concurrent resources like semaphores, transactions, and async operations, e...
-
validate configuration changes
prettier/prettier4⭐ 50772Configuration files require careful validation to ensure they work as intended and don't introduce unintend...
-
Measure performance impacts
prettier/prettier4⭐ 50772Always benchmark and measure actual performance impacts before making optimization decisions, rather than r...
-
maintain API backward compatibility
prettier/prettier4⭐ 50772When evolving public APIs, prioritize backward compatibility and avoid breaking changes to existing interfa...
-
Cache correctness validation
prettier/prettier4⭐ 50772Ensure caching implementations store the correct data and use appropriate strategies for the context. Cache...
-
API documentation clarity
prettier/prettier4⭐ 50772Ensure API documentation provides clear, accurate, and comprehensive information for developers. This inclu...
-
Split complex migrations incrementally
PostHog/posthog4⭐ 28460Break complex schema changes into multiple, sequential migrations to ensure deployment safety and proper da...
-
RESTful endpoint organization
PostHog/posthog4⭐ 28460API endpoints should be properly organized around resources and follow RESTful principles. Avoid placing ag...
-
optimize ORM queries
PostHog/posthog4⭐ 28460Optimize Django ORM queries to prevent performance issues and unnecessary database load. Avoid N+1 query pr...
-
Configuration constants management
PostHog/posthog4⭐ 28460Extract configuration values into well-named constants instead of using magic numbers or inline values. Use...
-
Check existence before operations
PostHog/posthog4⭐ 28460Always verify that keys, IDs, indices, or other required values exist before performing operations that dep...
-
Capture broad exceptions
PostHog/posthog4⭐ 28460When using broad exception handlers like `except Exception:`, always capture and log the exception to avoid...
-
API response standardization
PostHog/posthog4⭐ 28460Ensure API responses follow established patterns and use proper typing. Always use standardized response ty...
-
AI context efficiency
PostHog/posthog4⭐ 28460When providing context to LLMs, choose the most efficient method based on the nature and size of the contex...
-
Prevent deadlock conditions
pola-rs/polars4⭐ 34296Carefully manage resource acquisition and release to prevent deadlocks in concurrent code. Deadlocks typica...
-
Prevent cryptic errors
pola-rs/polars4⭐ 34296Always implement proper validation and type checking to prevent cryptic error messages. When errors do occu...
-
Organize tests efficiently
pola-rs/polars4⭐ 34296Write maintainable, well-structured tests that are easy to understand and extend. Tests should remain simpl...
-
Optimize data transformations
pola-rs/polars4⭐ 34296When implementing data processing operations, avoid unnecessary data transformations, copies, and conversio...
-
Design for operation flexibility
pola-rs/polars4⭐ 34296When implementing algorithms that operate on data structures (particularly arrays, lists, or collections), ...
-
Defer expensive operations
pola-rs/polars4⭐ 34296Avoid triggering expensive computations prematurely in your code. Operations like `collect()`, intensive IO...
-
Choose appropriate abstractions
pola-rs/polars4⭐ 34296When designing APIs, select data types and patterns that match how they will be consumed while facilitating...
-
Use appropriate logging levels
python-poetry/poetry4⭐ 33496Use debug-level logging for technical details and error information that aids developer troubleshooting, wh...
-
Document configuration clearly
python-poetry/poetry4⭐ 33496Configuration files, hooks, and settings should include clear, accurate descriptions that explain their pur...
-
Complete config setting integration
python-poetry/poetry4⭐ 33496When adding new configuration settings, ensure they are properly integrated across all required system comp...
-
Cache expensive computations
python-poetry/poetry4⭐ 33496Identify expensive operations that may be called multiple times and implement appropriate caching mechanism...
-
API backwards compatibility
python-poetry/poetry4⭐ 33496When evolving public APIs, prioritize backwards compatibility through proper deprecation strategies and car...
-
validate algorithmic edge cases
microsoft/playwright4⭐ 76113Algorithms must be thoroughly tested at boundary conditions and edge cases to prevent subtle bugs. Pay spec...
-
testing best practices
microsoft/playwright4⭐ 76113Choose testing methods, configurations, and approaches that prioritize user experience and reliability over...
-
Prioritize documentation clarity
microsoft/playwright4⭐ 76113Documentation should prioritize clarity and actionable guidance over comprehensive coverage. Organize conte...
-
explicit undefined checks
microsoft/playwright4⭐ 76113Always use explicit checks for undefined values and return appropriate nullable types instead of relying on...
-
Avoid redundant operations
microsoft/playwright4⭐ 76113Identify and eliminate duplicate computations, unnecessary object creation, and redundant function calls to...
-
Simplify algorithmic implementations
emcie-co/parlant4⭐ 12205Favor clear, simple algorithmic implementations over complex custom logic. When faced with algorithmic choi...
-
Safe null access patterns
emcie-co/parlant4⭐ 12205Always use safe access patterns to prevent runtime errors when dealing with potentially null or undefined v...
-
safe environment variable access
emcie-co/parlant4⭐ 12205Always use `os.environ.get()` with appropriate defaults instead of direct dictionary access to prevent KeyE...
-
Proper span lifecycle
opentofu/opentofu4⭐ 25901Always ensure trace spans are properly closed in all code execution paths to prevent trace leaks that can d...
-
Prevent backing array surprises
opentofu/opentofu4⭐ 25901When modifying slices in Go, be aware that appending to a slice with available capacity will modify the bac...
-
Minimize API surface
opentofu/opentofu4⭐ 25901Design APIs with minimal exposed surface by encapsulating implementation details within packages. When desi...
-
Write reliable test cases
open-telemetry/opentelemetry-python4⭐ 2061Create deterministic and reliable test cases by following these guidelines: 1. Use hardcoded values instea...
-
Return collections not None
open-telemetry/opentelemetry-python4⭐ 2061Return empty collections (lists, dicts, sets) instead of None when representing empty states. This reduces ...
-
Prevent recursive logging calls
open-telemetry/opentelemetry-python4⭐ 2061Avoid implementing logging calls that could trigger recursive logging patterns, which can lead to infinite ...
-
Precise configuration specifications
open-telemetry/opentelemetry-python4⭐ 2061Ensure configuration files use tool-specific syntax and conventions while leveraging appropriate defaults. ...
-
Place attributes correctly
open-telemetry/opentelemetry-python4⭐ 2061When implementing observability with OpenTelemetry, place attributes at the appropriate level in the teleme...
-
Pin dependency versions
open-telemetry/opentelemetry-python4⭐ 2061Always use exact version pinning (==) for dependencies in requirements files rather than version ranges. Th...
-
Choose data structures wisely
open-telemetry/opentelemetry-python4⭐ 2061Select data structures based on your specific access patterns and performance requirements. Using the right...
-
Use descriptive names
commaai/openpilot4⭐ 58214Choose names that clearly communicate purpose and meaning rather than using abbreviations or unclear terms....
-
Tool-specific configuration compatibility
commaai/openpilot4⭐ 58214When working with configuration files that support multiple tools or package managers, ensure that configur...
-
Prefer asynchronous operations
commaai/openpilot4⭐ 58214Use asynchronous patterns to prevent blocking operations from degrading system performance, especially in U...
-
optimize data structure selection
commaai/openpilot4⭐ 58214Choose data structures and algorithms based on their computational complexity and access patterns rather th...
-
Initialize and validate values
commaai/openpilot4⭐ 58214Always initialize variables with sensible default values and validate inputs to prevent null reference erro...
-
Be specific with exceptions
commaai/openpilot4⭐ 58214Avoid catching broad exception types like `Exception` and instead catch specific exceptions that you expect...
-
prefer built-in error utilities
opengrep/opengrep4⭐ 1546Use existing error handling utilities and appropriate error mechanisms instead of implementing manual error...
-
Optimize for common cases
opencv/opencv4⭐ 82865When implementing algorithms, create specialized versions for common cases to improve performance, while ma...
-
Framework synchronization practices
opencv/opencv4⭐ 82865When implementing concurrent code, always use the framework's provided synchronization primitives rather th...
-
Document properly with references
opencv/opencv4⭐ 82865Always separate code from documentation and use proper referencing techniques. Documentation should be in m...
-
Reuse buffers strategically
ollama/ollama4⭐ 145704For frequently called methods or hot code paths, reuse allocations instead of creating new buffers on each ...
-
Platform-aware configuration documentation
ollama/ollama4⭐ 145705Always document platform-specific configuration differences and requirements thoroughly. When writing docum...
-
Loose API coupling
ollama/ollama4⭐ 145704Maintain a clear separation between API definitions and their implementations by avoiding direct passing of...
-
Use async/await pattern
octokit/octokit.net4⭐ 2793When designing or documenting API clients, always use the async/await pattern rather than blocking calls. R...
-
Catch specific exceptions
octokit/octokit.net4⭐ 2793Always catch specific exception types rather than using general catch blocks. This improves error handling ...
-
robust algorithm implementation
nrwl/nx4⭐ 27518Implement algorithms that handle edge cases and avoid brittle assumptions about input data or structure for...
-
Ensure configuration consistency
nrwl/nx4⭐ 27518Configuration files should maintain consistency in patterns, use correct paths and values, and follow estab...
-
Documentation metadata consistency
nrwl/nx4⭐ 27518Ensure documentation uses consistent structural elements and proper metadata to optimize user experience an...
-
Configuration documentation clarity
nrwl/nx4⭐ 27518Configuration changes and examples should be documented with clear formatting, proper context, and helpful ...
-
Vue context boundaries
nuxt/nuxt4⭐ 57769Ensure Vue composables, reactive state, and side effects are properly scoped within Vue's execution context...
-
Strategic component loading
nuxt/nuxt4⭐ 57769Choose component loading strategies based on when interactivity is actually needed, not just code splitting...
-
optimize array operations
nuxt/nuxt4⭐ 57769Pre-allocate arrays when the final size is known and consolidate multiple iterations into single loops to r...
-
Handle async cancellation properly
nuxt/nuxt4⭐ 57769When implementing async operations with cancellation support, ensure that cancelled operations do not conti...
-
Cache lifecycle management
nuxt/nuxt4⭐ 57769Implement comprehensive cache lifecycle management that includes proper key management, invalidation strate...
-
Optimize collection operations
novuhq/novu4⭐ 37700When processing collections of data, choose efficient algorithms and data structures that minimize computat...
-
Environment-aware feature gating
novuhq/novu4⭐ 37700Always check environment variables, deployment modes, subscription tiers, and feature flags before enabling...
-
Limit environment variable scope
nodejs/node4⭐ 112178When working with environment variables for configuration: 1. **Reuse existing environment variables** rat...
-
Format docs for readability
nodejs/node4⭐ 112178Documentation should follow consistent formatting and structural patterns to maximize readability and maint...
-
Follow naming conventions
nodejs/node4⭐ 112178Maintain consistent naming conventions across the codebase: - Use PascalCase for class methods (e.g., `All...
-
Document non-intuitive code
nodejs/node4⭐ 112178Add clear comments to explain complex logic, function differences, and non-obvious implementation details. ...
-
Descriptive function names
nodejs/node4⭐ 112178Function and method names should precisely describe their purpose and behavior. Choose names that explicitl...
-
Await all promises
nodejs/node4⭐ 112178Always explicitly await all asynchronous operations, especially in cleanup code paths and resource manageme...
-
Verify documentation references
vercel/next.js4⭐ 133000When writing or updating documentation, ensure all code examples, installation commands, and project refere...
-
Proper Use of Suspense in Next.js Components
vercel/next.js4⭐ 133000When building Next.js applications that leverage server-side rendering (SSR) or Partial Prerendering (PPR),...
-
Proper Error Handling in Next.js API Routes
vercel/next.js4⭐ 133000This review focuses on ensuring proper error handling in Next.js API routes. Key principles include validat...
-
Maintain Consistent Naming Conventions in Next.js Code
vercel/next.js4⭐ 133000As a code reviewer for Next.js projects, ensure that all code artifacts, including component names, file na...
-
Dynamic API behavior detection
ChatGPTNextWeb/NextChat4⭐ 85721APIs should determine behavior based on runtime request characteristics rather than static configuration fl...
-
Protect network buffer lifecycle
netty/netty4⭐ 34227When handling network buffers in protocol implementations, ensure proper lifecycle management to prevent me...
-
Preserve backward compatibility
netty/netty4⭐ 34227When evolving APIs in minor versions, always maintain backward compatibility to avoid breaking client code....
-
Optimize search operations
netty/netty4⭐ 34227Enhance search algorithm performance by prioritizing common cases, using appropriate data structures, and a...
-
Configurable over hardcoded
netty/netty4⭐ 34227Make configuration parameters configurable rather than hardcoding values, especially for limits, sizes, and...
-
Use consistent control structures
nestjs/nest4⭐ 71766Always use curly braces for control structures (if, for, while, etc.), even for single-line statements. Thi...
-
Structure exception handling patterns
nestjs/nest4⭐ 71766Implement consistent exception handling using framework-provided mechanisms rather than ad-hoc try-catch bl...
-
Standardize logger configuration patterns
nestjs/nest4⭐ 71766Maintain consistent logger configuration and usage patterns across the application while leveraging built-i...
-
Prevent async race conditions
nestjs/nest4⭐ 71767Design async operations to prevent race conditions, memory leaks, and ensure proper resource cleanup. Key p...
-
Pin dependency versions
nestjs/nest4⭐ 71766Explicitly pin or constrain dependency versions in CI/CD configurations instead of using `latest` tags. Thi...
-
Package dependency configuration
nestjs/nest4⭐ 71767Configure dependencies appropriately in package.json based on usage patterns and requirements. This improve...
-
HTTP header management
nestjs/nest4⭐ 71766When working with HTTP responses, follow these principles for proper header management: 1. **Only set defa...
-
Document configuration behaviors
nestjs/nest4⭐ 71766Always document configuration options thoroughly, especially for module and service settings. For each conf...
-
Configurable log formatting
nestjs/nest4⭐ 71767Design logging systems with customizable formatting and output options. Separate formatting logic into prot...
-
Benchmark before optimizing
nestjs/nest4⭐ 71766When making performance-critical decisions, always validate your approach with benchmarks using realistic d...
-
Use descriptive names
neovim/neovim4⭐ 91433Avoid ambiguous or vague identifiers in favor of specific, self-documenting names that clearly convey purpo...
-
Semantic naming over implementation
neovim/neovim4⭐ 91433Choose names that reflect the semantic purpose and meaning rather than implementation details or internal m...
-
Initialize before dereferencing
neovim/neovim4⭐ 91433Always ensure buffers, containers, and data structures are properly initialized before passing them to func...
-
consolidate network APIs
neovim/neovim4⭐ 91433When implementing network functionality, consolidate around standardized APIs like `vim.net.request()` inst...
-
Configuration variable organization
neovim/neovim4⭐ 91433Use structured naming patterns and avoid polluting the global namespace when managing configuration variabl...
-
Conditional expensive operations
neovim/neovim4⭐ 91433Only execute expensive operations when they are actually necessary. Avoid paying performance costs for func...
-
avoid unnecessary configuration
neovim/neovim4⭐ 91433Avoid creating special-purpose configuration options when simpler alternatives exist. Don't force users to ...
-
avoid error masking
neovim/neovim4⭐ 91433Don't use mechanisms that suppress or hide errors unless absolutely necessary for the application flow. Err...
-
Scope JWT authentication tokens
neondatabase/neon4⭐ 19015Always include tenant, timeline, and endpoint identifiers in JWT tokens used for service authentication. Th...
-
Proper Option type usage
neondatabase/neon4⭐ 19015Use Option
only for truly optional values that can meaningfully be None. Avoid using Option when a value... -
Proactive cache warming
neondatabase/neon4⭐ 19015Implement proactive cache warming strategies to minimize performance degradation after system restarts or d...
-
Pin GitHub action versions
neondatabase/neon4⭐ 19015Always pin GitHub Actions to specific commit hashes instead of using major/minor version tags (like @v4). T...
-
Ensure algorithm robustness
neondatabase/neon4⭐ 19015When implementing algorithms, ensure they handle all edge cases correctly and robustly. Code should gracefu...
-
Connection pooling with pipelining
neondatabase/neon4⭐ 19015Implement connection pooling with request pipelining for network services to optimize resource usage and im...
-
Secure credential data handling
n8n-io/n8n4⭐ 122978Always protect sensitive credential data through proper encryption, secure storage, and careful handling in...
-
Maintain semantic naming consistency
n8n-io/n8n4⭐ 122978Names should be semantically meaningful and consistent across related concepts in the codebase. This applie...
-
Explicit environment configuration handling
n8n-io/n8n4⭐ 122978Environment and configuration values should be explicit, visible, and environment-aware. Avoid hardcoded pr...
-
Descriptive parameter names
n8n-io/n8n4⭐ 122978Use specific, descriptive parameter names for API resources rather than generic identifiers. Parameter name...
-
Consistent naming patterns
n8n-io/n8n4⭐ 122978Maintain consistent naming conventions throughout the codebase to improve readability and maintainability. ...
-
Consistent identifier naming
n8n-io/n8n4⭐ 122978Follow consistent naming conventions for all identifiers to improve code quality, accessibility, and test r...
-
Configuration consistency management
n8n-io/n8n4⭐ 122978When modifying configuration files, ensure all references to the changed values are updated consistently ac...
-
Actions configuration best practices
n8n-io/n8n4⭐ 122978When working with GitHub Actions workflows, follow these configuration best practices: 1. **Boolean inputs...
-
Graph traversal optimization
apache/mxnet4⭐ 20801When working with graph structures, avoid performing redundant depth-first search (DFS) traversals as each ...
-
Explicit null checks
apache/mxnet4⭐ 20801Always use explicit null checks (`value is None` or `value is not None`) rather than implicit truthiness ev...
-
Comprehensive API documentation
apache/mxnet4⭐ 20801Ensure all API elements are thoroughly documented following a consistent format. This includes: 1. **All f...
-
Avoid redundant calculations
apache/mxnet4⭐ 20801Eliminate redundant calculations by identifying and caching frequently used values to improve performance. ...
-
WebSocket lifecycle management
rocicorp/mono4⭐ 2091Ensure proper WebSocket connection lifecycle management by using `once()` instead of `on()` for cleanup ope...
-
verify authorization before operations
rocicorp/mono4⭐ 2091Always verify that users have proper authorization to access and modify resources before performing any dat...
-
dependency management practices
rocicorp/mono4⭐ 2091Ensure comprehensive dependency management in package.json files by following these practices: 1. **Evalua...
-
Write user-centric documentation guides
mui/material-ui4⭐ 96063Documentation should be written with the user's perspective in mind, using clear, action-oriented language ...
-
Use slots for composition
mui/material-ui4⭐ 96063When designing React component APIs, implement the slots pattern using `slots` and `slotProps` props instea...
-
Test behavior not implementation
mui/material-ui4⭐ 96063Focus tests on user behavior and outcomes rather than implementation details. Structure tests to simulate r...
-
Strict mode-proof hooks
mui/material-ui4⭐ 96063Ensure your React components work correctly in both development (Strict Mode) and production environments b...
-
Standardize code formatting patterns
mui/material-ui4⭐ 96063Maintain consistent code formatting patterns across the codebase to improve readability and maintainability...
-
Standardize build configurations
mui/material-ui4⭐ 96063When configuring module builds, maintain consistent and explicit configuration for different module formats...
-
Semantic descriptive naming
mui/material-ui4⭐ 96063Choose names that clearly communicate purpose, behavior, and semantics of code elements. Names should be se...
-
Explicit configuration specifications
mui/material-ui4⭐ 96063When writing configuration files, be explicit and precise about dependencies and versions rather than using...
-
Event-triggered network requests
mui/material-ui4⭐ 96063When implementing user interactions that trigger network requests, use precise event handling techniques to...
-
Document compatibility boundaries
mui/material-ui4⭐ 96063Clearly communicate your API's compatibility guarantees and limitations. When designing APIs, explicitly in...
-
Distinguish Next.js routers
mui/material-ui4⭐ 96063Always provide separate implementation instructions for Next.js App Router (13+) and Pages Router. These ro...
-
Avoid render cycle allocations
mui/material-ui4⭐ 96063Creating new objects, arrays, or functions inside a component's render cycle causes unnecessary allocations...
-
Use accessible terminology
mastodon/mastodon4⭐ 48691Choose clear, understandable names and terminology that are appropriate for your intended audience, avoidin...
-
prefer early returns
mastodon/mastodon4⭐ 48691Use early returns and guard clauses to reduce nested conditionals and improve code readability. This patter...
-
optimize test organization
mastodon/mastodon4⭐ 48691Organize tests to minimize factory creation, reduce duplication, and improve performance by chaining assert...
-
migration data dependencies
mastodon/mastodon4⭐ 48691Ensure that migrations properly handle data dependencies and sequencing to prevent deployment failures. Whe...
-
Hook responsibility separation
mastodon/mastodon4⭐ 48691Keep hooks and components focused on single, well-defined responsibilities to maintain clean architecture a...
-
explicit API parameters
microsoft/markitdown4⭐ 76602Make API parameters explicit and named rather than hiding them in **kwargs. This improves clarity, enables ...
-
Use proper logging
maplibre/maplibre-native4⭐ 1411Always use the project's standard logging system (mbgl::Log) with appropriate log levels instead of ad-hoc ...
-
Structured coroutine management
maplibre/maplibre-native4⭐ 1411Always bind coroutine scopes to appropriate lifecycles and follow consistent patterns for asynchronous oper...
-
Preallocate collection capacity
maplibre/maplibre-native4⭐ 1411When the final size of a collection is known before adding elements, use `reserve()` to preallocate memory ...
-
Extract workflow scripts
maplibre/maplibre-native4⭐ 1411Move complex scripts out of workflow YAML files into separate, dedicated script files in your repository. T...
-
Enforce clear data ownership
maplibre/maplibre-native4⭐ 1411Always establish and maintain clear ownership semantics in concurrent code to prevent data races. This incl...
-
Document platform requirements
maplibre/maplibre-native4⭐ 1411When setting or changing minimum platform version requirements, always document the specific technical reas...
-
Descriptive named constants
maplibre/maplibre-native4⭐ 1411Replace magic numbers and unclear variables with descriptive named constants using appropriate naming conve...
-
Configure platform-specific builds
maplibre/maplibre-native4⭐ 1411Ensure build and distribution configurations are properly documented and optimized for each target platform...
-
Separate user system data
logseq/logseq4⭐ 37695Separate user-facing data from system/implementation data using proper namespacing and schema design to pre...
-
Fail fast explicitly
logseq/logseq4⭐ 37695When critical components or operations fail, throw explicit errors rather than silently continuing or retur...
-
Use reactive hooks
lobehub/lobe-chat4⭐ 65138Always use React's reactive hook patterns instead of imperative state access or manual effect management. T...
-
Use idempotent migrations
lobehub/lobe-chat4⭐ 65138Always use defensive programming patterns in migration scripts to ensure they can be executed multiple time...
-
Provider-based interface design
lobehub/lobe-chat4⭐ 65138When designing interfaces that handle multiple providers or services, organize the API structure around pro...
-
Explicit environment declarations
lobehub/lobe-chat4⭐ 65138Always explicitly declare environment variables in configuration files, even when they have default values....
-
CSS utility usage
lobehub/lobe-chat4⭐ 65138Use CSS utility functions and avoid complex inline calculations for better maintainability and readability....
-
Maintain comprehensive error handling
LMCache/LMCache4⭐ 3800Always preserve and implement thorough error handling that includes proper resource cleanup, meaningful log...
-
Configuration validation standards
LMCache/LMCache4⭐ 3800Ensure configuration parameters follow consistent validation, naming, and default value standards to improv...
-
optimize computational complexity
llvm/llvm-project4⭐ 33702When implementing algorithms, be mindful of computational complexity and optimize for efficiency by avoidin...
-
Configuration completeness validation
llvm/llvm-project4⭐ 33702Ensure configuration options are complete and properly validated before use. When implementing configuratio...
-
validate bounds before access
ggml-org/llama.cpp4⭐ 83559Always validate array indices, buffer sizes, and container bounds before accessing elements to prevent out-...
-
prioritize compile-time optimizations
ggml-org/llama.cpp4⭐ 83559In performance-critical code, favor compile-time optimizations over runtime flexibility to enable better co...
-
maintain code consistency
ggml-org/llama.cpp4⭐ 83559Always follow the existing code style patterns and conventions found in the surrounding codebase rather tha...
-
API minimalism principle
ggml-org/llama.cpp4⭐ 83559Keep APIs minimal by avoiding redundant interfaces and preferring simple solutions over complex ones. When ...
-
Safe operations with fallbacks
BerriAI/litellm4⭐ 28310Implement defensive programming by wrapping potentially failing operations in safe methods that provide fal...
-
Prefer utility reuse
likec4/likec44⭐ 2582When changing or adding code prefer existing helpers, language-idiomatic constructs, and small well-maintai...
-
Prevent flaky test timing
langfuse/langfuse4⭐ 13574Replace non-deterministic timing patterns with reliable alternatives to prevent flaky tests. This includes:...
-
Pin dependency versions
langfuse/langfuse4⭐ 13574Always pin external dependencies to specific versions in CI/CD workflows to ensure build reproducibility, s...
-
Explicit null value checks
langfuse/langfuse4⭐ 13574Use explicit null/undefined checks instead of truthy/falsy checks when handling potentially null or undefin...
-
Configuration value consistency
langfuse/langfuse4⭐ 13574Maintain consistency in configuration values across the application by following these practices: 1. **Use...
-
Prevent code injection vulnerabilities
langflow-ai/langflow4⭐ 111046When evaluating user-provided code or handling dynamic content, implement strict security measures to preve...
-
Database configuration clarity
langflow-ai/langflow4⭐ 111046When documenting database configuration or setup procedures, provide specific, actionable instructions with...
-
Avoid hardcoded configuration values
langflow-ai/langflow4⭐ 111046Replace hardcoded configuration values with configurable parameters to improve flexibility and maintainabil...
-
AI response variability
langflow-ai/langflow4⭐ 111046When documenting AI model interactions, account for the non-deterministic nature of AI responses and avoid ...
-
AI model chunk sizing
langflow-ai/langflow4⭐ 111046When configuring text processing components that work with AI embedding models, proactively consider tokeni...
-
Use database-native types
langchain-ai/langchainjs4⭐ 15004Always leverage database-native data types and appropriate schema design to maximize performance and query ...
-
Eliminate redundant code
langchain-ai/langchainjs4⭐ 15004Simplify code by eliminating redundancy and unnecessary complexity. This improves readability, reduces pote...
-
Dependency classification standards
langchain-ai/langchainjs4⭐ 15004Properly classify dependencies in package.json according to their usage pattern and project guidelines. Thi...
-
Comprehensive AI documentation
langchain-ai/langchainjs4⭐ 15004When documenting AI integrations, provide comprehensive examples that showcase all common initialization an...
-
Avoid hardcoded configurations
langchain-ai/langchainjs4⭐ 15004Always parameterize values that might vary across different environments or users instead of hardcoding the...
-
Wrap errors meaningfully
kubernetes/kubernetes4⭐ 116489Always wrap errors with meaningful context that explains what operation failed and why. Use proper error wr...
-
Prevent information disclosure
kubernetes/kubernetes4⭐ 116489Avoid exposing sensitive information through error messages, logs, configuration, or other output channels ...
-
Feature gate configuration management
kubernetes/kubernetes4⭐ 116489Ensure feature gates are properly managed across all configuration files and contexts. Feature-specific per...
-
Standardize network tools
kubeflow/kubeflow4⭐ 15064When performing network operations in build scripts or containers, prefer `curl` over `wget` for HTTP reque...
-
Prioritize readability over brevity
kubeflow/kubeflow4⭐ 15064When writing code, favor readability and maintainability over clever or compact solutions. Break down compl...
-
Pin version dependencies
kubeflow/kubeflow4⭐ 15064Explicitly pin version dependencies in configuration files to ensure reproducible builds and prevent breaki...
-
Load configurations efficiently
kubeflow/kubeflow4⭐ 15064When designing components that require configuration, follow these practices to enhance performance, mainta...
-
Follow API conventions
kubeflow/kubeflow4⭐ 15064When designing APIs, adhere to established API conventions, particularly Kubernetes API conventions when wo...
-
Externalize configuration parameters
kubeflow/kubeflow4⭐ 15064Create configurations that can be easily managed outside your application code. Design configuration parame...
-
Document code thoroughly
kubeflow/kubeflow4⭐ 15064Always include appropriate documentation in your code to improve readability, maintainability, and usabilit...
-
Contextualize and classify errors
kubeflow/kubeflow4⭐ 15064Always provide meaningful context when handling errors, and classify them appropriately based on their sour...
-
Centralize configuration constants
kubeflow/kubeflow4⭐ 15064Store configuration constants, defaults, and environment variable mappings in dedicated configuration files...
-
Use defensive null checks
JetBrains/kotlin4⭐ 50857When working with properties or methods that could potentially be null, use Kotlin's null safety features d...
-
minimize merge conflicts
kilo-org/kilocode4⭐ 7302When working with upstream codebases, prioritize coding approaches that minimize merge conflicts while main...
-
validate configuration dependencies
apache/kafka4⭐ 30575Validate configuration dependencies and constraints at initialization time rather than allowing invalid com...
-
optimize data structures
apache/kafka4⭐ 30575When working with data structures and collections, optimize for performance and correctness by using modern...
-
Optimize collection conversions
apache/kafka4⭐ 30575When converting between Java and Scala collections or performing set operations, choose methods that minimi...
-
Improve code readability
apache/kafka4⭐ 30575Write code that prioritizes readability through clear string formatting, descriptive method calls, and well...
-
Ensure complete JavaDoc coverage
apache/kafka4⭐ 30575All public classes, methods, and parameters must have comprehensive JavaDoc documentation. This includes: ...
-
catch specific exceptions
apache/kafka4⭐ 30575Avoid catching overly broad exception types like `Throwable` or `Exception` when you can be more specific a...
-
preserve error context
jj-vcs/jj4⭐ 21171When handling errors, preserve the original error context and avoid exposing internal representations to us...
-
Minimize API scope
jj-vcs/jj4⭐ 21171When designing APIs, prioritize simplicity and focused scope over feature completeness. Before adding new A...
-
Use configuration constants
menloresearch/jan4⭐ 37620Always use named constants, enums, or well-defined configuration objects instead of magic strings, numbers,...
-
model description accuracy
menloresearch/jan4⭐ 37620Ensure AI model descriptions are specific, capability-focused, and avoid marketing language or temporal ref...
-
Implement graceful error fallbacks
menloresearch/jan4⭐ 37620Always implement fallback mechanisms when primary operations can fail, especially for critical operations l...
-
Document AI infrastructure requirements
menloresearch/jan4⭐ 37620When documenting AI applications that run local models or perform inference, always provide comprehensive i...
-
Cross-platform configuration simplification
menloresearch/jan4⭐ 37620When writing configuration files and scripts, prioritize cross-platform compatibility while keeping configu...
-
AI model configuration completeness
menloresearch/jan4⭐ 37620Ensure all necessary AI model parameters are properly configured and passed through the system. AI models r...
-
AI accuracy documentation
menloresearch/jan4⭐ 37620Ensure accurate representation of AI model capabilities, proper attribution, and honest claims about functi...
-
telemetry consistency standards
istio/istio4⭐ 37192Ensure telemetry attribute population logic is consistent across all components and follows established sta...
-
Document observability rationale
istio/istio4⭐ 37192When introducing, modifying, or removing observability features (tracing, metrics, monitoring configuration...
-
API version compatibility first
istio/istio4⭐ 37192When selecting API versions, prioritize compatibility over using the latest available version. Choose older...
-
prefer idiomatic patterns
vadimdemedes/ink4⭐ 31825Choose language-native methods and control structures that make code more readable and maintainable. Use bu...
-
Package.json configuration standards
vadimdemedes/ink4⭐ 31825Ensure package.json follows modern standards and maintains consistency across configuration fields. Use str...
-
avoid `any` type usage
vadimdemedes/ink4⭐ 31825Replace `any` type annotations with more specific types to improve type safety and null handling. The `any`...
-
Use structured logging fields
influxdata/influxdb4⭐ 30268Always use structured logging with descriptive field names rather than string interpolation. Include releva...
-
Prevent nil dereferences
influxdata/influxdb4⭐ 30268Always verify that pointers, slices, or arrays are non-nil and have sufficient elements before attempting t...
-
Prefer configurable values
influxdata/influxdb4⭐ 30268Always use configurable values instead of hardcoded defaults when available. This ensures that user prefere...
-
Performance-conscious metrics implementation
influxdata/influxdb4⭐ 30268Implement metrics collection that is both comprehensive and minimally impactful on system performance. Desi...
-
Include explanatory examples
influxdata/influxdb4⭐ 30268Always enhance documentation with concrete, illustrative examples that demonstrate expected inputs, formats...
-
Avoid unnecessary work
influxdata/influxdb4⭐ 30268When optimizing performance-critical code paths, eliminate redundant operations and unnecessary processing:...
-
Avoid flaky test patterns
influxdata/influxdb4⭐ 30268Write reliable tests by avoiding common patterns that can lead to flaky behavior. Specifically: 1. Avoid a...
-
Test all code paths
elie222/inbox-zero4⭐ 8267Write comprehensive tests that cover all code paths including edge cases, error conditions, and different p...
-
Prevent workflow recursion
elie222/inbox-zero4⭐ 8267Control GitHub Actions workflow execution to avoid infinite loops and unnecessary builds. Implement these p...
-
Normalize API responses
elie222/inbox-zero4⭐ 8267Design APIs to return consistent response structures across different data sources or providers. Normalize ...
-
Handle AI operation failures
elie222/inbox-zero4⭐ 8267Always implement proper error handling for AI service operations. AI services can fail due to rate limiting...
-
Ensure API contract integrity
elie222/inbox-zero4⭐ 8267Maintain strict consistency between API implementation and contract by ensuring: 1. Request/response schema...
-
Define schema relations correctly
elie222/inbox-zero4⭐ 8267When designing database schemas, ensure relations and constraints are explicitly and correctly defined: 1....
-
Complete hook dependency arrays
elie222/inbox-zero4⭐ 8267Ensure all hooks (useEffect, useCallback, useMemo) explicitly list every dependency used within their callb...
-
Cache invariant computations
elie222/inbox-zero4⭐ 8267Avoid repeatedly computing values that don't change frequently. For data structures, maps, or validation sc...
-
Semantic variable naming
hyprwm/Hyprland4⭐ 28863Variable names should clearly convey their purpose, type, and units to improve code readability and prevent...
-
prefer std::error_code parameters
hyprwm/Hyprland4⭐ 28863When using std::filesystem operations, prefer passing std::error_code parameters instead of relying on try-...
-
prefer managed pointers
hyprwm/Hyprland4⭐ 28863Raw pointers are banned in new code unless absolutely necessary. Instead, use managed pointer types to prev...
-
Precise documentation language
hyprwm/Hyprland4⭐ 28863Documentation language should be precise, unambiguous, and clearly scoped to prevent misinterpretation whil...
-
Precise configuration patterns
hyprwm/Hyprland4⭐ 28863Use precise file patterns and correct installation paths in CMake configuration to avoid unintended inclusi...
-
use Option combinators
juspay/hyperswitch4⭐ 34028Leverage Rust's Option API methods like `map`, `and_then`, `is_some()`, and `filter` instead of manual patt...
-
Database schema consistency
juspay/hyperswitch4⭐ 34028Ensure database schema definitions are consistent with ORM annotations and include proper constraints for d...
-
Choose optimal algorithms
juspay/hyperswitch4⭐ 34028When implementing functionality, carefully evaluate and select the most efficient algorithmic approaches fo...
-
Standardize build configuration patterns
helix-editor/helix4⭐ 39026Explicitly define and standardize build configuration patterns across the project to ensure consistent beha...
-
hide implementation details
helix-editor/helix4⭐ 39026When designing APIs, avoid exposing internal structures, implementation details, or platform-specific conce...
-
consistent naming conventions
helix-editor/helix4⭐ 39026Maintain consistent naming patterns throughout your codebase, following established conventions and ensurin...
-
avoid quadratic complexity
helix-editor/helix4⭐ 39026When working with data structures, especially ropes and collections, avoid algorithms that result in quadra...
-
avoid panics gracefully
helix-editor/helix4⭐ 39026Replace panics, expects, and unwraps with graceful error handling that provides user feedback and allows th...
-
avoid hardcoded configuration values
helix-editor/helix4⭐ 39026Avoid hardcoding configuration values that affect user experience or behavior. Instead, make these values c...
-
Safe property access patterns
grafana/grafana4⭐ 68825Use appropriate null/undefined handling techniques based on the context to prevent runtime errors. Be mindf...
-
Prefer null-safe access
grafana/grafana4⭐ 68825Always use null-safe access patterns when dealing with potentially undefined values to prevent runtime erro...
-
Optimize performance patterns
grafana/grafana4⭐ 68825Choose efficient implementation patterns that improve performance. Apply these optimizations throughout you...
-
Name for purpose first
grafana/grafana4⭐ 68825Choose names that lead with their primary purpose or category, followed by specific details. This makes cod...
-
Minimize database joins
grafana/grafana4⭐ 68825Prefer direct filtering or specialized service methods over complex JOIN operations, especially when mainta...
-
Maintain configuration documentation accuracy
grafana/grafana4⭐ 68825Always ensure configuration documentation accurately reflects the current system capabilities, limitations,...
-
Judicious configuration management
grafana/grafana4⭐ 68825Carefully manage configuration options, including feature flags, to balance flexibility with maintainabilit...
-
Fail-safe security defaults
grafana/grafana4⭐ 68825Always implement security features with fail-safe defaults that deny access or disable insecure functionali...
-
Consistent semantic naming
grafana/grafana4⭐ 68825Use consistent, specific, and semantically appropriate naming conventions throughout the codebase. When cre...
-
Consistent API versioning approach
grafana/grafana4⭐ 68825Adopt and document a consistent approach to API versioning across your services. The chosen format should b...
-
Component architecture principles
grafana/grafana4⭐ 68825Extract logic that doesn't render JSX into custom hooks instead of components. Components that don't return...
-
User-focused documentation structure
block/goose4⭐ 19037Documentation should prioritize user needs and problems over technical implementation details. Start with t...
-
Optimize memory and algorithms
block/goose4⭐ 19037Focus on efficient memory usage and algorithm selection while preserving functionality. Apply these optimiz...
-
Handle errors intentionally
block/goose4⭐ 19037Avoid generic catch-all error handling that masks important failures. Instead, be selective about which err...
-
consolidate API parameters
block/goose4⭐ 19037Prefer consolidating common configuration and parameters in API constructors or base methods rather than re...
-
avoid concurrency anti-patterns
block/goose4⭐ 19037Avoid common concurrency anti-patterns that lead to race conditions, deadlocks, and unreliable behavior. Us...
-
AI terminology consistency
block/goose4⭐ 19037Maintain consistent terminology when describing AI systems, capabilities, and workflows throughout document...
-
Descriptive idiomatic identifiers
gin-gonic/gin4⭐ 83022Use descriptive names for variables, types, and interfaces that follow Go language idioms. Avoid single-let...
-
Consistent error patterns
gin-gonic/gin4⭐ 83022Implement consistent error handling patterns throughout your codebase to improve readability and maintainab...
-
Structure user documentation
ghostty-org/ghostty4⭐ 32864When documenting complex features or configuration options, structure your documentation with these four ke...
-
Semantic name clarity
ghostty-org/ghostty4⭐ 32864Names should clearly and accurately reflect the purpose of variables, methods, and other identifiers. Follo...
-
Prevent unnecessary memory operations
ghostty-org/ghostty4⭐ 32864Avoid redundant memory allocations and copies when simpler alternatives exist. This includes: 1. Use in-pl...
-
Optimize comparison patterns efficiently
ghostty-org/ghostty4⭐ 32864Choose efficient comparison patterns and algorithms based on the data type and use case. Key guidelines: 1...
-
In-tree build configurations
ghostty-org/ghostty4⭐ 32864Keep all build configuration files (Snapcraft, Flatpak manifests, etc.) in the repository alongside your co...
-
prefer settings over environment
google-gemini/gemini-cli4⭐ 65062Prefer settings.json over environment variables and CLI flags for user configuration options. Environment v...
-
Centralize proxy configuration
google-gemini/gemini-cli4⭐ 65062Avoid duplicate proxy configuration across your application by establishing a single point of proxy setup a...
-
Centralize configuration management
google-gemini/gemini-cli4⭐ 65062Prefer centralized configuration files (settings.json, settings.ts) over environment variables for applicat...
-
Validate with sensible defaults
fatedier/frp4⭐ 95938Implement a comprehensive configuration validation strategy that combines centralized validation functions ...
-
Follow Go naming conventions
fatedier/frp4⭐ 95938Adhere to Go's standard naming conventions for identifiers: 1. **Control visibility with capitalization**:...
-
Optimize migration code
laravel/framework4⭐ 33763When writing database migration code, prioritize clarity and efficiency to ensure migrations are reliable a...
-
Optimize loop operations
laravel/framework4⭐ 33763When writing loops, optimize for both readability and performance by following these key principles: 1. **...
-
Disable coverage in workflows
laravel/framework4⭐ 33763Keep code coverage tools disabled in CI/CD workflows unless they're specifically needed for generating cove...
-
Descriptive configuration keys
laravel/framework4⭐ 33763Configuration keys should clearly indicate their value type, units, or expected format to prevent misunders...
-
Test observable behavior
flutter/flutter4⭐ 172252Focus on testing what users see and experience rather than internal implementation details. Tests should ve...
-
Make errors explicit
flutter/flutter4⭐ 172252Always make error conditions explicit and visible rather than hiding them through silent failures, default ...
-
Future-proof configuration defaults
flutter/flutter4⭐ 172252When designing configuration options, avoid hardcoded values and ensure defaults can be changed in future v...
-
Validate configuration defaults
gofiber/fiber4⭐ 37560Configuration structs should validate input values and provide sensible defaults that work well in producti...
-
Use context for configuration
gofiber/fiber4⭐ 37560When accessing application state or configuration within request handlers, always use the context method `c...
-
Include practical examples
gofiber/fiber4⭐ 37560Documentation should include practical, working examples that demonstrate real-world usage scenarios. When ...
-
Document mutex usage
gofiber/fiber4⭐ 37560Always document mutex fields and their purpose, ensure proper locking/unlocking patterns, and avoid redunda...
-
Proper Handling of Promises in Fastify Implementations
fastify/fastify4⭐ 34000When implementing Fastify applications in TypeScript, it is important to follow consistent patterns for han...
-
Content negotiation design
fastify/fastify4⭐ 34000When building APIs, implement proper content negotiation to handle various media types in both requests and...
-
Consistent descriptive naming
fastify/fastify4⭐ 34000Use precise, consistent, and descriptive naming conventions throughout your code to enhance readability and...
-
Benchmark before choosing methods
fastify/fastify4⭐ 34000Always benchmark different implementation approaches for performance-critical operations before selecting a...
-
Use pytest fixtures effectively
fastapi/fastapi4⭐ 86871Tests should use pytest fixtures to improve organization, promote test isolation, and avoid code duplicatio...
-
Use early returns
fastapi/fastapi4⭐ 86871Decrease indentation levels in your code by using early returns for edge cases and guard conditions. This a...
-
Respect async execution order
fastapi/fastapi4⭐ 86871When working with asynchronous code, always be mindful of the execution order of operations, particularly w...
-
Proper HTTP status codes
fastapi/fastapi4⭐ 86871When implementing authentication and authorization systems, use semantically correct HTTP status codes to a...
-
Optimize hot paths
expressjs/express4⭐ 67300When writing code that will be executed frequently (hot paths), prioritize performance optimizations that r...
-
Optimize dependency automation
expressjs/express4⭐ 67300Configure automated dependency update tools (like Dependabot) to balance security needs against developer c...
-
Access settings properly
expressjs/express4⭐ 67300Always use the provided settings accessor methods (`app.get()`, `app.set()`, `app.enabled()`, `app.disabled...
-
Algorithm selection correctness
evanw/esbuild4⭐ 39161Choose algorithms that correctly match the problem requirements and understand their computational properti...
-
mark experimental configuration features
electron/electron4⭐ 117644Always mark experimental and deprecated configuration options with appropriate stability indicators in docu...
-
Ensure async error cleanup
electron/electron4⭐ 117644Always ensure cleanup code executes and avoid creating dangling promises in error handling scenarios. Use t...
-
consistent nullable returns
electron/electron4⭐ 117644Establish consistent patterns for nullable return values in APIs and document them clearly. Use `null` cons...
-
Avoid exposing sensitive APIs
electron/electron4⭐ 117644Do not enable configurations that expose Node.js or Electron APIs to untrusted web content in renderer proc...
-
Parallel branch traceability
elastic/elasticsearch4⭐ 73104When implementing algorithms with parallel processing branches, ensure proper traceability and data consist...
-
Exceptions for critical errors
elastic/elasticsearch4⭐ 73104Use exceptions rather than assertions for handling critical error conditions that need to be caught in prod...
-
Defensive null handling
elastic/elasticsearch4⭐ 73104Always handle null references and values defensively to prevent NullPointerExceptions and unexpected behavi...
-
Configure type serialization
elastic/elasticsearch4⭐ 73104When working with databases that exchange data with other systems, ensure proper serialization and deserial...
-
Clarity over uncertainty
elastic/elasticsearch4⭐ 73104Technical documentation should use precise language that clearly differentiates between product behavior an...
-
preserve serialization compatibility
duckdb/duckdb4⭐ 32061When making changes to serialized data structures, always preserve backward and forward compatibility to pr...
-
prefer settings over pragmas
duckdb/duckdb4⭐ 32061When implementing configuration options, prefer database settings over pragma functions to maintain consist...
-
optimize hot path performance
duckdb/duckdb4⭐ 32061Avoid expensive operations in frequently executed code paths by implementing performance optimizations such...
-
maintain API backward compatibility
duckdb/duckdb4⭐ 32061When evolving APIs, prioritize backward compatibility by creating new methods or overloads rather than modi...
-
Constructor configuration injection
duckdb/duckdb4⭐ 32061Prefer injecting configuration objects through constructors rather than passing them as ad-hoc parameters o...
-
comprehensive database testing
duckdb/duckdb4⭐ 32061Database tests should execute actual queries and verify results comprehensively, not just check query plans...
-
Use standardized logging pattern
stanfordnlp/dspy4⭐ 27813Always use the standardized logging pattern with module-level loggers instead of print statements or direct...
-
Optional dependency management
stanfordnlp/dspy4⭐ 27813Avoid including optional or provider-specific dependencies in the main dependency list. Dependencies should...
-
Configuration context consistency
drizzle-team/drizzle-orm4⭐ 29461Ensure configuration names, values, and settings accurately reflect their intended context and usage. Confi...
-
Prevent N+1 queries
django/django4⭐ 84182The N+1 query problem is one of the most common performance bottlenecks in Django applications. This occurs...
-
Optimize computational complexity
django/django4⭐ 84182Identify and reduce computational complexity in your code by minimizing redundant operations and simplifyin...
-
Measure before optimizing
django/django4⭐ 84182Always measure performance impact before implementing optimizations and focus on changes with meaningful be...
-
Defend against nulls
django/django4⭐ 84182Always use defensive programming techniques when handling potentially null or empty values to avoid runtime...
-
Use dynamic configuration access
discourse/discourse4⭐ 44898Always access configuration values through proper service APIs rather than hardcoding them or using unrelia...
-
Safe setting modifications
discourse/discourse4⭐ 44898When modifying site settings during operations like imports, jobs, or plugin initialization, implement prop...
-
Include contextual log information
discourse/discourse4⭐ 44898Log messages should include sufficient context to make them useful for debugging, monitoring, and audit tra...
-
Consistent null safety patterns
discourse/discourse4⭐ 44898Apply null safety operators consistently throughout your code to prevent runtime errors and improve readabi...
-
Avoid N+1 queries
discourse/discourse4⭐ 44898Prevent N+1 query performance issues by batching database operations instead of making individual queries w...
-
API parameter handling
discourse/discourse4⭐ 44898Ensure consistent and safe handling of parameters and data across API endpoints. This includes using proper...
-
API parameter clarity
discourse/discourse4⭐ 44898Design API parameters with clear naming, structured formats, and intuitive interfaces that are easy for cli...
-
Validate access controls
langgenius/dify4⭐ 114231Always implement comprehensive validation for access control mechanisms to prevent unauthorized access and ...
-
Name by semantic purpose
langgenius/dify4⭐ 114231Choose names that reflect the semantic purpose and meaning rather than implementation details or arbitrary ...
-
Validate operation permissions
denoland/deno4⭐ 103714Ensure appropriate permission checks are implemented before performing security-sensitive operations that a...
-
Use appropriate error types
denoland/deno4⭐ 103714Functions should use specific, appropriate error handling mechanisms rather than generic or brittle approac...
-
prefer safe optional returns
denoland/deno4⭐ 103714When designing APIs and handling potentially missing or unavailable values, prefer returning optional types...
-
explicit dependency configuration
denoland/deno4⭐ 103714Ensure dependency configurations are explicit and predictable to avoid confusion and unexpected build behav...
-
defensive null handling
denoland/deno4⭐ 103714Use defensive programming patterns to prevent null-related issues before they occur. This includes creating...
-
Use modern API methods
deeplearning4j/deeplearning4j4⭐ 14036When implementing algorithms with numerical libraries like ND4J, always prefer the most direct and type-saf...
-
Minimize object allocations
deeplearning4j/deeplearning4j4⭐ 14036Avoid creating unnecessary temporary objects or arrays which can impact performance through increased garba...
-
Keep configurations current
deeplearning4j/deeplearning4j4⭐ 14036Ensure all configuration elements (dependencies, build settings, preprocessor flags) are up-to-date, docume...
-
Fail fast clearly
deeplearning4j/deeplearning4j4⭐ 14036Detect and report errors as early as possible with detailed context to prevent silent failures and aid debu...
-
Document AI APIs completely
deeplearning4j/deeplearning4j4⭐ 14036When developing AI libraries and tools, provide comprehensive and accurate API documentation that helps use...
-
Cross-platform algorithm optimization
deeplearning4j/deeplearning4j4⭐ 14036When implementing algorithms that need to execute efficiently across different platforms, consider both com...
-
Configurable resource locations
deeplearning4j/deeplearning4j4⭐ 14036Always make file paths, temporary directories, and resource locations configurable with reasonable defaults...
-
Compare floating-point safely
deeplearning4j/deeplearning4j4⭐ 14036When implementing numerical algorithms, never compare floating-point values directly for equality due to pr...
-
Use precise networking terminology
cypress-io/cypress4⭐ 48850When writing error messages or documentation related to network requests and cross-origin policies, use pre...
-
prefer existence over truthiness
cypress-io/cypress4⭐ 48850Use explicit existence checks instead of truthiness checks when dealing with object properties, null/undefi...
-
meaningful test assertions
cypress-io/cypress4⭐ 48850Write tests that verify specific behavior and outcomes rather than relying on weak assertions like snapshot...
-
GraphQL mutation design
cypress-io/cypress4⭐ 48850Design GraphQL mutations to return meaningful objects rather than simple booleans, and use simple ID parame...
-
Environment variable handling
cypress-io/cypress4⭐ 48850Environment variables should be properly validated, parsed, and documented with clear override mechanisms. ...
-
Choose appropriate log levels
cypress-io/cypress4⭐ 48850Select log levels based on the intended audience and actionability of the message. Use `debug` for internal...
-
Default None not empty
crewaiinc/crewai4⭐ 33945Always use `None` as the default value for optional parameters and class attributes instead of empty collec...
-
Pause tracking during side-effects
vuejs/core4⭐ 50769When executing side-effects in reactive systems (like event handlers, cleanup functions, or async operation...
-
Optimize common search paths
vuejs/core4⭐ 50769Implement dedicated fast paths for common search patterns while maintaining a complete fallback path for ed...
-
log complete error objects
adonisjs/core4⭐ 18071Always log complete error objects rather than just error messages to preserve stack traces, error codes, an...
-
Guarantee cleanup execution
vuejs/core4⭐ 50769When implementing features that require cleanup or state restoration, always use try-finally blocks to ensu...
-
Consistent documentation language
home-assistant/core4⭐ 80450Maintain consistency in wording, formatting, and specificity across all documentation strings to improve re...
-
Batch operations efficiently
home-assistant/core4⭐ 80450Collect and execute similar operations together rather than performing them individually to reduce overhead...
-
API documentation consistency
home-assistant/core4⭐ 80450Ensure all API-related descriptions, field names, and documentation accurately reflect the terminology and ...
-
Working configuration examples
continuedev/continue4⭐ 27819Configuration examples should be complete, accurate, and ready to use without modification. This applies to...
-
Safe property access
continuedev/continue4⭐ 27819Always use proper null safety patterns when accessing properties that might be null or undefined. This prev...
-
Prevent broken interactions
continuedev/continue4⭐ 27819Ensure UI elements' visual state (e.g., disabled, active) always matches their actual behavior. When an ele...
-
Prevent async deadlocks
continuedev/continue4⭐ 27819Avoid circular dependencies in asynchronous code paths that can lead to deadlocks or indefinite blocking. W...
-
Maintain API compatibility
continuedev/continue4⭐ 27819When modifying existing APIs, ensure backward compatibility to prevent runtime failures and minimize migrat...
-
Write deterministic test assertions
docker/compose4⭐ 35858Tests should be deterministic and explicit in their assertions to ensure reliability and maintainability. F...
-
Wrap and check errors
docker/compose4⭐ 35858Always wrap errors with meaningful context and use typed error checking instead of string matching. This he...
-
Use standard API fields
docker/compose4⭐ 35858When designing APIs or interfaces, prioritize using existing standard fields and patterns from established ...
-
Use API options pattern
docker/compose4⭐ 35858Design API methods using options objects instead of multiple parameters. This pattern provides better exten...
-
Prevent unintended CI behaviors
docker/compose4⭐ 35858Ensure CI/CD pipelines maintain predictable and reliable behavior by avoiding changes that introduce unexpe...
-
Prevent sensitive data exposure
docker/compose4⭐ 35858Implement comprehensive checks to prevent accidental exposure of sensitive data through multiple vectors in...
-
Keep code structure flat
docker/compose4⭐ 35858Maintain code readability by minimizing nesting depth and using appropriate control structures. Prefer flat...
-
consistent formatting choices
docker/compose4⭐ 35858Maintain consistent formatting and style choices throughout your codebase to improve readability and mainta...
-
Configuration documentation clarity
docker/compose4⭐ 35858Ensure configuration documentation clearly and accurately describes environment variables, command-line fla...
-
use logging over print
comfyanonymous/ComfyUI4⭐ 83726Replace all `print()` statements with appropriate logging calls using Python's built-in logging module. Thi...
-
optimize computational efficiency
comfyanonymous/ComfyUI4⭐ 83726Implement memoization and guard clauses to eliminate redundant computations and improve algorithmic perform...
-
explicit null handling strategies
comfyanonymous/ComfyUI4⭐ 83726Functions and APIs should employ explicit strategies for handling null/None values rather than leaving null...
-
Document complex code
comfyanonymous/ComfyUI4⭐ 83726Add explanatory comments or docstrings for complex, specialized, or non-obvious code that may not be immedi...
-
Semantic naming patterns
openai/codex4⭐ 31275Use names that clearly convey purpose and maintain consistency across related components. Avoid generic ide...
-
Prefer specific identifiers
openai/codex4⭐ 31275Always use specific, descriptive names for identifiers rather than generic terms. Names should clearly indi...
-
Organize code top down
openai/codex4⭐ 31275Structure code files with a clear top-down organization, placing primary functions and important declaratio...
-
Minimize blocking operations
openai/codex4⭐ 31275When writing concurrent code, minimize blocking operations to maintain responsiveness and prevent performan...
-
Leverage style tools
openai/codex4⭐ 31275Maintain consistent code style by using and respecting the project's established formatting tools and patte...
-
Avoid hard-coded configuration
openai/codex4⭐ 31275Make scripts and applications flexible by avoiding hard-coded configuration values. Instead, allow users to...
-
Strategic telemetry implementation
cline/cline4⭐ 48299Implement telemetry collection strategically to ensure system reliability and meaningful data capture. Plac...
-
Avoid generic suffixes
cline/cline4⭐ 48299Avoid using generic suffixes like "Response", "Result", or "Request" in type names, especially for non-requ...
-
Setting declaration practices
ClickHouse/ClickHouse4⭐ 42425Always declare settings before using them and optimize access patterns for performance. Settings must be pr...
-
Documentation precision standards
ClickHouse/ClickHouse4⭐ 42425Ensure API documentation uses precise type specifications, proper formatting, and clear language to improve...
-
Write actionable documentation
snyk/cli4⭐ 5178Documentation should be written in active voice with concrete examples and clear context. Avoid passive con...
-
Use centralized configuration access
snyk/cli4⭐ 5178Always access configuration values through the configuration object rather than direct helper functions or ...
-
Optimize variable declarations
snyk/cli4⭐ 5178Declare variables close to their usage point and choose appropriate types to improve code readability and r...
-
debug logging reliability
snyk/cli4⭐ 5178Ensure debug logging behaves correctly by only activating when debug flags are explicitly enabled, while pr...
-
avoid hardcoded configuration values
snyk/cli4⭐ 5178Replace hardcoded URLs, ports, file paths, and environment-specific strings with configurable parameters. H...
-
Use strict test doubles
chef/chef4⭐ 7860Always use strict test doubles (instance_double, class_double) instead of basic doubles or OpenStruct in te...
-
Standardize installation directory paths
chef/chef4⭐ 7860Maintain consistent and separate installation paths for different build types to prevent conflicts and impr...
-
Secure network operations
chef/chef4⭐ 7860When performing network operations, prioritize security and configurability to ensure robustness across dif...
-
Document configuration decisions
chef/chef4⭐ 7860Add clear comments explaining the rationale behind configuration decisions, especially for workarounds, com...
-
Document configuration completely
chef/chef4⭐ 7860Always provide complete documentation for configuration options, including defaults, override methods, and ...
-
Use pytest best practices
bridgecrewio/checkov4⭐ 7668Adopt modern pytest features to create maintainable, isolated, and comprehensive tests. This includes: 1. ...
-
Preserve API compatibility
bridgecrewio/checkov4⭐ 7668When modifying existing APIs, function signatures, or return structures, always maintain backward compatibi...
-
Precise configuration validation
bridgecrewio/checkov4⭐ 7667Ensure configuration validation logic accurately reflects security intentions and best practices. When writ...
-
Provide error feedback
calcom/cal.com4⭐ 37732Always provide clear user feedback when errors occur or operations fail, rather than allowing silent failur...
-
Prefer early returns
calcom/cal.com4⭐ 37732Use early returns and guard clauses instead of nested if-else statements to improve code readability and re...
-
optimize iteration patterns
calcom/cal.com4⭐ 37732Minimize computational complexity by optimizing iteration patterns and data processing flows. Apply early f...
-
Configuration access patterns
calcom/cal.com4⭐ 37732Ensure configuration data is accessed through proper service layers with dependency injection rather than d...
-
Avoid redundant operations
calcom/cal.com4⭐ 37732Identify and eliminate duplicate or inefficient operations that waste computational resources. Common patte...
-
Avoid generic naming
calcom/cal.com4⭐ 37732Choose specific, descriptive names over generic ones for all identifiers including variables, functions, co...
-
Use consistent test patterns
oven-sh/bun4⭐ 79093Standardize testing by leveraging established patterns and helper functions throughout your test suite. Ext...
-
Consistent descriptive identifiers
oven-sh/bun4⭐ 79093Use camelCase for all variables, parameters, methods, and functions in JavaScript/TypeScript code to mainta...
-
Clear accurate documentation
oven-sh/bun4⭐ 79093Documentation should be both technically accurate and contextually helpful for developers. Comments and JSD...
-
Always await promises
oven-sh/bun4⭐ 79093Consistently use the `await` keyword when working with Promise-returning functions to ensure proper executi...
-
validate LLM reliability
browser-use/browser-use4⭐ 69139Always validate LLM capabilities before deployment and implement robust handling for unreliable responses. ...
-
Simplify complex implementations
browser-use/browser-use4⭐ 69139Replace verbose, complex code structures with simpler, more readable alternatives. Prefer existing methods ...
-
optimize CI performance
browser-use/browser-use4⭐ 69139Structure CI workflows to minimize execution time and resource usage through strategic job organization, ca...
-
avoid external test dependencies
browser-use/browser-use4⭐ 69139Tests should not rely on external URLs, live websites, or internet connectivity to ensure reliability, cons...
-
Structured environment configuration
Homebrew/brew4⭐ 44168Use structured environment variable handling with explicit validation instead of directly accessing ENV has...
-
Correct GitHub Actions annotations
Homebrew/brew4⭐ 44168When using GitHub Actions workflow commands for annotations, always include double colons in the syntax (::...
-
Avoid variable name abbreviations
Homebrew/brew4⭐ 44168Use complete, descriptive variable names instead of abbreviations to enhance code readability and maintaina...
-
Structure for readability
boto/boto34⭐ 9417Prioritize code readability by structuring code in a way that makes it easy to understand at a glance. This...
-
Isolate concurrent resources
boto/boto34⭐ 9417Create separate instances of non-thread-safe resources for each thread or process in concurrent application...
-
Consistent region configuration
boto/boto34⭐ 9417Always maintain consistency in region configurations throughout your application. Instead of hardcoding end...
-
Expose essential configurations
better-auth/better-auth4⭐ 19651Carefully evaluate which configuration options should be exposed to users versus kept internal. Not all con...
-
derive from session context
better-auth/better-auth4⭐ 19651Always derive sensitive identifiers and permissions from the authenticated session context rather than acce...
-
validate feature configurations
bazelbuild/bazel4⭐ 24489Always validate that required features are enabled before using feature-dependent functionality. Feature fl...
-
preserve exception causes
bazelbuild/bazel4⭐ 24489When catching an exception and re-throwing a different exception type, always preserve the original excepti...
-
Ensure documentation completeness
bazelbuild/bazel4⭐ 24489All code elements should have sufficient documentation to understand their purpose, usage, and context. Thi...
-
build action separation
bazelbuild/bazel4⭐ 24489Keep build actions focused on their core responsibility and move complex logic to appropriate abstraction l...
-
Write deterministic tests
Azure/azure-sdk-for-net4⭐ 5809Tests should be deterministic, reliable, and isolated from external dependencies to ensure consistent resul...
-
User-friendly configuration values
Azure/azure-sdk-for-net4⭐ 5809Prefer intuitive, user-friendly values for configuration options over technical "magic strings" or codes th...
-
Standardize environment variables
Azure/azure-sdk-for-net4⭐ 5809Ensure environment variable names are consistently spelled, properly referenced, and follow established nam...
-
Externalize configuration values
Azure/azure-sdk-for-net4⭐ 5809Store configuration values (URLs, demands, pool names) in centralized variables rather than hardcoding them...
-
Use Option combinators
tokio-rs/axum4⭐ 22100Instead of verbose conditional logic, prefer Rust's Option combinators like map, and_then, and filter for h...
-
Structure errors for safety
tokio-rs/axum4⭐ 22100Create specific error types with appropriate status codes while ensuring sensitive details are logged but n...
-
Minimize memory allocation overhead
tokio-rs/axum4⭐ 22100Optimize performance by minimizing unnecessary memory allocations and using allocation-efficient APIs. Key ...
-
Lock carefully in async
tokio-rs/axum4⭐ 22100When using locks in async code, follow critical guidelines to avoid deadlocks. Never hold std::sync::Mutex ...
-
Handle protocol headers properly
tokio-rs/axum4⭐ 22100When implementing network services, especially proxies and protocol handlers, proper HTTP header management...
-
Validate security-critical inputs
axios/axios4⭐ 107000Always validate and sanitize user-supplied inputs before using them in security-sensitive operations. This ...
-
Robust Axios Usage in TypeScript
axios/axios4⭐ 107000This review focuses on ensuring robust and type-safe usage of the Axios library in TypeScript codebases. Ke...
-
Proper Error Handling in Axios TypeScript Code
axios/axios4⭐ 107000As a code reviewer, it is important to ensure that Axios-based TypeScript code properly handles and propaga...
-
Extract for better readability
axios/axios4⭐ 107000Complex expressions and repeated code should be extracted into well-named variables to improve readability ...
-
Maintain consistent formatting
aws/aws-sdk-js4⭐ 7628Enhance code readability and maintainability by applying consistent formatting practices throughout your co...
-
Validate untrusted inputs
argoproj/argo-cd4⭐ 20149Always validate and sanitize user-provided inputs to prevent injection attacks, particularly path traversal...
-
Simplify code readability
argoproj/argo-cd4⭐ 20149Prioritize code readability by using clearer control structures, extracting complex expressions into descri...
-
optimize algorithmic complexity
argoproj/argo-cd4⭐ 20149Always consider computational complexity and performance when implementing algorithms. Look for opportuniti...
-
explicit security controls
argoproj/argo-cd4⭐ 20149Security configurations should use explicit controls and secure defaults rather than implicit permissions o...
-
document network requirements
argoproj/argo-cd4⭐ 20149When documenting network-dependent features, explicitly specify all network configuration requirements incl...
-
design extensible APIs
argoproj/argo-cd4⭐ 20149When designing APIs, prioritize extensibility and backwards compatibility over convenience. Avoid modifying...
-
Ensure proper async context
appwrite/appwrite4⭐ 51959Always wrap asynchronous operations (await, suspend functions, try-await) in the appropriate language-speci...
-
Cypress test isolation
appwrite/appwrite4⭐ 51959Ensure end-to-end tests are properly isolated and follow best practices for reliability. Tests should avoid...
-
Use semantic naming
ant-design/ant-design4⭐ 95882Choose semantic, non-redundant names that clearly express intent and context. Remove unnecessary prefixes w...
-
Update deprecated demo APIs
ant-design/ant-design4⭐ 95882Documentation, demos, and example code should always use current, non-deprecated APIs instead of showing de...
-
Test organization standards
ant-design/ant-design4⭐ 95882Write tests that are well-organized, maintainable, and reflect real usage patterns. Test names should descr...
-
Handle optional values safely
ant-design/ant-design4⭐ 95882Always provide safe defaults or fallbacks when working with optional or potentially undefined values. Avoid...
-
Deprecated API documentation
ant-design/ant-design4⭐ 95882When documenting deprecated APIs, follow consistent practices to provide clear guidance to developers while...
-
Use specific descriptive names
angular/angular4⭐ 98611Choose specific, meaningful names that clearly communicate purpose rather than generic or ambiguous alterna...
-
Guard nullable value access
angular/angular4⭐ 98611Always use appropriate guards or type checks before accessing potentially null or undefined values. Prefer ...
-
Configuration opt-in safety
angular/angular4⭐ 98611When introducing new configuration options or making changes that could be disruptive, make them opt-in by ...
-
Choose appropriate presentation formats
angular/angular4⭐ 98611Select the most effective format for presenting different types of information in documentation. Use tables...
-
Choose appropriate algorithms
angular/angular4⭐ 98611Select algorithms and data structures that match the problem domain and access patterns rather than using c...
-
Avoid reactive over-engineering
angular/angular4⭐ 98611Choose the simplest React primitive that meets your requirements rather than reaching for complex reactive ...
-
async resource cleanup
angular/angular4⭐ 98611Always ensure proper cleanup of asynchronous resources (subscriptions, timeouts, event listeners) to preven...
-
Platform-specific API documentation
alacritty/alacritty4⭐ 59675The provided discussions focus on terminal emulator documentation and configuration issues, but do not cont...
-
consistent error handling
alacritty/alacritty4⭐ 59675Maintain uniform error handling patterns throughout the codebase. Avoid mixing different error handling app...
-
Safe constraint modification sequence
apache/airflow4⭐ 40858When modifying constraints in database migrations, follow a safe sequence of operations to prevent integrit...
-
Parameterize similar tests
apache/airflow4⭐ 40858Write parameterized tests instead of using for loops or duplicating test code for similar test cases. Using...
-
Optimize collection processing patterns
apache/airflow4⭐ 40858Use Python's built-in efficient collection processing methods instead of manual implementations. This reduc...
-
Leverage backend API capabilities
apache/airflow4⭐ 40858When consuming APIs in frontend applications, utilize the backend capabilities rather than reimplementing e...
-
Explicit version constraints
apache/airflow4⭐ 40858Always specify explicit version constraints for dependencies in configuration files (like pyproject.toml), ...
-
Explicit over implicit configuration
apache/airflow4⭐ 40858Always prefer explicit configuration parameters over inferring behavior from indirect sources like image ta...
-
Ensure deterministic queries
apache/airflow4⭐ 40858Build SQLAlchemy queries that are both efficient and deterministic to prevent unpredictable results and imp...
-
Document public API boundaries
apache/airflow4⭐ 40858Clearly define and document the boundaries between public and internal APIs to guide developers on proper i...
-
Context-rich log messages
apache/airflow4⭐ 40858Ensure log messages provide clear context about what happened, potential consequences, and actionable infor...
-
Consistent technical term translation
apache/airflow4⭐ 40858When localizing an application, maintain consistent conventions for technical terms while respecting langua...
-
Component reuse first
apache/airflow4⭐ 40858Always prioritize reusing existing components before creating new ones. This practice improves codebase con...
-
Handle errors gracefully
Aider-AI/aider