{"name":"gemini-md","title":"GEMINI.md template","description":"A GEMINI.md template for Gemini CLI with commands, layout and rules for a project, plus how imports, global context and AGENTS.md fit in.","category":"agents","updated":"2026-11-30","url":"https://sniptide.com/templates/gemini-md","files":[{"name":"GEMINI.md","language":"markdown","content":"# Project context\n\nThis is a FastAPI service with a Postgres database. Python 3.13, dependencies managed with uv.\n\n## Commands\n\n- Install: `uv sync`\n- Start the database: `docker compose up -d --wait`\n- Run the API: `uv run fastapi dev app/main.py`, then open `http://127.0.0.1:8000/docs`\n- Check your work: `uv run ruff check .`, `uv run ruff format --check .` and `uv run pytest`\n\nRun all three checks before you say a task is done, and report any that fail.\n\n## Layout\n\n- `app/routers/` holds one module per resource. Routes stay thin and call services.\n- `app/services/` holds business logic. Services take a database session as an argument.\n- `app/models.py` holds SQLAlchemy models. Schema changes need an Alembic migration.\n- `tests/` mirrors `app/`.\n\n## Rules\n\n- Type every function signature. Use Pydantic models for request and response bodies.\n- Read configuration from `app/settings.py`, never from `os.environ` directly.\n- Create migrations with `uv run alembic revision --autogenerate -m \"<change>\"` and read the\n  generated file before you keep it.\n- Do not edit files in `alembic/versions/` that are already on the main branch.\n- Ask before adding a dependency, deleting files or running commands that change the database\n  outside the test container.\n\n## Style\n\n@docs/style.md\n"}]}