From 2f7424d50fcb65fa2436e8cf5f4c18224f307247 Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Sun, 19 Apr 2026 12:38:51 +0300 Subject: [PATCH] update rules --- .gitignore | 4 +++- AGENTS.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ CLAUDE.md | 11 +++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 AGENTS.md create mode 100644 CLAUDE.md diff --git a/.gitignore b/.gitignore index add57be..b63c7f9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +.idea/.idea.GymLogAI/.idea/indexLayout.xml +.idea/.idea.GymLogAI/.idea/vcs.xml diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..4df6db8 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,50 @@ +# AGENTS.md + +Shared rules for all AI agents working in this repository. + +## Tech Stack + +- **.NET 10.0** — ASP.NET Core minimal APIs +- **C#** — primary language +- **Docker / Docker Compose** — containerization + +## Commands + +```bash +# Build +dotnet build + +# Run (development) +dotnet run --project GymLogAI.API/ + +# Run with HTTPS profile +dotnet run --project GymLogAI.API/ --launch-profile https + +# Docker Compose +docker compose -f compose.yaml up --build +``` + +No test project exists yet. When one is added, the command will be `dotnet test`. + +## Project Structure + +``` +GymLogAI.sln +GymLogAI.API/ + Program.cs # entry point, minimal API endpoint registration + appsettings*.json # environment-specific config + Dockerfile # multi-stage build (SDK 10 → Runtime 10) +compose.yaml # Docker Compose orchestration +``` + +## Architecture + +- Minimal API pattern — endpoints registered directly in `Program.cs` +- Ports: HTTP 5202 (local), HTTPS 7225 (local); 8080/8081 inside Docker +- OpenAPI enabled via `Microsoft.AspNetCore.OpenApi` + +## Conventions + +- Keep endpoints in `Program.cs` until the project grows enough to warrant endpoint groups or controllers +- Use records for DTOs +- Follow existing `appsettings.json` / `appsettings.Development.json` split for environment config diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..b94f862 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,11 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +> All shared rules (commands, architecture, conventions) live in [AGENTS.md](AGENTS.md) and apply here as well. + +## Claude Code–Specific Notes + +- This is a greenfield project — the `WeatherForecast` endpoint in `Program.cs` is a template placeholder and can be replaced entirely. +- There is no database, auth, or domain layer yet; add these incrementally as features are defined. +- REST Client test file: `GymLogAI.API/GymLogAI.API.http` — keep it updated when endpoints change.