Add Extra Code Context
What is Code Context?
Common Code Context examples
Performance and architecture decisions
Our data-export-service repository is our nightly batch processor for archived data. We intentionally avoid database indexes here because the tables are append-only and indexes would slow down our bulk insert operations.Tool-specific exceptions
Debug logging and console.log statements are acceptable in our troubleshooting-utils repository as these are CLI tools designed for debugging production issues.Relaxed standards for internal tools
For data migration scripts in the migrations/ folder, we exceed line count limits multiple times. This is acceptable as these are one-time scripts. We also don't enforce strict error handling in internal-facing scripts because our team knows how to use them.Import conventions
Wildcard imports (import * as) are acceptable when importing from our @company/ui-components library as we intentionally export all components as a single namespace.Documentation requirements
Relaxed JSDoc requirements apply to internal helper functions in the utils/ folder. Full documentation is only required for exported public APIs.Performance optimizations
How to Add Extra Code Context


Code Context vs Custom Code Rules
Use Code Context when:
Use Custom Code Rules when:
Use feedback to generate Code Context
Last updated
Was this helpful?