A GEMINI.md configuration file template for TypeScript projects that sets coding standards, architecture patterns, testing conventions, and git workflow.
# Project: [PROJECT NAME] ## General Instructions - All code must be TypeScript with strict mode enabled - Use functional programming patterns where practical - Prefer composition over inheritance - Every exported function must have JSDoc documentation - No `any` types — use `unknown` with type guards instead - Prefer `const` assertions and template literal types for string unions ## Code Style - 2 spaces for indentation - Single quotes for strings - No semicolons (rely on ASI) - Prefer arrow functions for callbacks - Use named exports, not default exports - File naming: kebab-case (e.g., `user-service.ts`) ## Architecture - Follow the repository pattern for data access - Use dependency injection via constructor parameters - Keep business logic in pure functions separate from I/O - Error handling: use Result types, not try/catch for expected failures ## Testing - Test files colocated with source: `*.test.ts` - Use describe/it blocks with descriptive names - One assertion per test when possible - Mock at the boundary, not inside business logic ## Git - Conventional commits: feat, fix, chore, docs, refactor, test - One logical change per commit - PR description must explain WHY, not just WHAT
System instructions for Gemini API to produce reliable JSON structured output with schema validation, enum constraints, and grounding.
A Gemini Gem for code review with priority-rated findings (Must Fix/Should Fix/Consider), security checks, and constructive feedback approach.
A GEMINI.md configuration for Next.js 15 App Router projects covering Server Components, data fetching patterns, and performance best practices.
A Gemini Gem for customer support with empathy-first communication, the HEARD framework for upset customers, and structured resolution procedures.
A structured template for Gemini API system instructions covering identity, behavioral rules, output format, grounding, and safety guidelines.
A Gemini Gem for content strategy that connects content plans to business metrics with SEO-informed topic prioritization and distribution strategy.