AI Rules
Coding standards and convention rules for AI coding agents across 88 technology stacks. Enforce best practices with copy-paste rule sets.
1006 total items
.csproj File Conventions
Write clean .csproj files — use SDK-style format, organize package references, set proper metadata for libraries, and leverage Directory.Build.props for shared settings.
.gitignore Best Practices
Comprehensive .gitignore rules to prevent committing secrets, build artifacts, OS files, IDE configurations, and other files that don't belong in version control.
.snyk Ignore Policy Standards
Enforce standards for Snyk ignore entries — every ignored vulnerability must have a documented reason, expiration date, and compensating controls in the .snyk policy file.
.sops.yaml Configuration Standards
Configure SOPS with a .sops.yaml file for automatic encryption rules — define creation rules per file pattern, specify KMS keys per environment, and enforce encrypted_regex for partial encryption.
.zshrc Organization Standards
Enforce a structured, modular .zshrc configuration with logical sections, sourced files, startup performance targets, and consistent formatting.
AI Context Inclusion Rules
Define what files and information to include in AI coding tool context — priority ordering, exclusion patterns, and token budget allocation for optimal code generation results.
AI Output Format Standards
Standardize how AI coding tools format their output — file path headers, code block language tags, import ordering, and response structure for predictable, copy-paste-ready results.
AI Prompt Structure Standards
Enforce consistent prompt structure across AI coding tools — role definitions, constraint formatting, output specifications, and example inclusion for reliable AI-assisted development.
Alert Rule Standards
Enforce standards for Grafana alert rules — naming conventions, severity labels, for-duration requirements, runbook annotations, and notification routing rules.
Always Enable Strict Mode
Every Bash script must begin with strict mode flags — set -euo pipefail — to catch errors early, prevent undefined variable usage, and propagate pipeline failures.
Always Preview Before Deploying
Every Pulumi deployment must be preceded by a preview. CI/CD pipelines must run 'pulumi preview' on pull requests and require approval before 'pulumi up' on production stacks.
Always Quote Variables and Substitutions
Every variable expansion and command substitution in Bash must be double-quoted to prevent word splitting, glob expansion, and catastrophic bugs with filenames containing spaces.
Always Run Containers as Non-Root
Enforce non-root user execution in all Docker containers — create dedicated users, set proper file ownership, and configure runtime security to prevent privilege escalation.
Always Set Resource Requests and Limits
Every container in a Kubernetes pod specification must define CPU and memory requests and limits to ensure predictable scheduling, prevent resource starvation, and enable cluster autoscaling.
API Integration Rules
Standards for integrating Ollama's REST API into applications — health checks, error handling, timeout configuration, streaming patterns, and request parameter validation.
API Token Security Rules
Security rules for HuggingFace API tokens — storage, rotation, permission scoping, environment variable usage, and preventing token exposure in code and logs.
Assertion Best Practices
Standardize Playwright assertion patterns — use web-first assertions with auto-retry, avoid manual waits, and prefer user-visible state checks over DOM property inspection.
Authentication Method Configuration
Configure Vault authentication methods properly — prefer machine identity (AppRole, Kubernetes, AWS IAM) over static tokens, set appropriate TTLs, and enforce MFA for human operators.
authorized_keys Security Standards
Standards for managing authorized_keys files — key restrictions, command forcing, environment options, source IP limits, and regular audit requirements.
Azure Resource Group Naming & Organization
Standardize Azure resource group naming, location selection, and resource organization — group by lifecycle, tag consistently, and enforce naming patterns across subscriptions.
Ban the 'any' Type
Never use 'any' in TypeScript code — use unknown for truly unknown types, generics for flexible functions, union types for multiple options, and proper type narrowing instead.
Base Image Selection Standards
Define approved base images for container builds — prefer minimal images (Alpine, Distroless), pin versions by digest, and require regular updates to reduce vulnerability surface.
Baseline Management Policy
Define standards for Checkov baseline usage — when baselines are required, how to manage baseline files, and the process for reducing baseline findings over time.
Branch Naming Conventions
Standardize Git branch naming patterns with type prefixes, kebab-case formatting, and issue references for consistent, scannable repository navigation.