A GEMINI.md configuration for Python data science projects covering code organization, data handling, modeling best practices, and notebook standards.
# Project: [PROJECT NAME] ## Data Science Project ## General Instructions - Python 3.11+ with type hints on all function signatures - Use numpy docstring format for all public functions - Prefer pandas for tabular data, polars for performance-critical paths - Use pathlib.Path instead of string paths - All data transformations should be reproducible (set random seeds, log parameters) ## Code Organization - `src/` — source code modules - `notebooks/` — exploration only, never production code - `data/raw/` — immutable original data (never modify) - `data/processed/` — cleaned/transformed data - `models/` — trained model artifacts - `tests/` — unit and integration tests ## Data Handling - Never hardcode file paths — use config or environment variables - Log data shape and basic stats at each transformation step - Validate data schema on load (use pandera or pydantic) - Document all assumptions about data quality ## Modeling - Always establish a baseline model before complex approaches - Track experiments with MLflow or Weights & Biases - Report metrics with confidence intervals, not point estimates - Include feature importance in model outputs ## Notebooks - Clear narrative flow: question → data → analysis → conclusion - Each cell should have a purpose (no "scratch" cells in committed notebooks) - Use markdown headers to structure the story - Display data shapes after transformations
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.