From dd75c9fee5ae46fc40888cc2d83290de801d5ad2 Mon Sep 17 00:00:00 2001 From: yasmoradi Date: Wed, 22 Jul 2026 16:33:27 +0200 Subject: [PATCH] Add Cursor rules and Aspire-aware AGENTS.md commands to the template #13 --- .gitignore | 2 -- .../Bit.Boilerplate/.cursor/rules/agents.mdc | 10 ++++++++++ src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md | 5 +++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/Templates/Boilerplate/Bit.Boilerplate/.cursor/rules/agents.mdc diff --git a/.gitignore b/.gitignore index 85aabc07d8..716dd7160a 100644 --- a/.gitignore +++ b/.gitignore @@ -225,8 +225,6 @@ ModelManifest.xml #kiro .kiro -#cursor -.cursor profile.arm.json diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/.cursor/rules/agents.mdc b/src/Templates/Boilerplate/Bit.Boilerplate/.cursor/rules/agents.mdc new file mode 100644 index 0000000000..71034ff26d --- /dev/null +++ b/src/Templates/Boilerplate/Bit.Boilerplate/.cursor/rules/agents.mdc @@ -0,0 +1,10 @@ +--- +description: Project coding conventions, structure and behavioral directives +alwaysApply: true +--- + +# Cursor Rules + +This project uses @AGENTS.md (at the repository root) as the single source of truth for all coding conventions, project structure, technology stack, and behavioral directives. + +**Before performing any task, read the full content of `/AGENTS.md`.** diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md b/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md index bce85b004b..e56387e1a1 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md +++ b/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md @@ -67,8 +67,13 @@ Before implementing any changes, you **MUST** complete the following: ## 4. Critical Command Reference + +- **Build the project**: Run `dotnet build` in Boilerplate.Server.AppHost project root directory. +- **Run the project**: Run `dotnet watch` in Boilerplate.Server.AppHost project root directory. If needed, you may use the Playwright MCP tools to interact with the running UI to validate things (navigate, click, fill forms, take screenshots), and use `browser_evaluate` to run in-page JavaScript to accelerate the process (e.g. quickly locating elements, extracting data, or asserting state). + - **Build the project**: Run `dotnet build` in Boilerplate.Server.Web project root directory. - **Run the project**: Run `dotnet watch` in Boilerplate.Server.Web project root directory. If needed, you may use the Playwright MCP tools to interact with the running UI to validate things (navigate, click, fill forms, take screenshots), and use `browser_evaluate` to run in-page JavaScript to accelerate the process (e.g. quickly locating elements, extracting data, or asserting state). + - **Run tests**: Run `dotnet test` in Boilerplate.Tests project root directory. - **Add new migrations**: Run `dotnet ef migrations add --output-dir Data/Migrations --verbose` in Boilerplate.Server.Api project root directory. - **Generate Resx C# code**: Run `dotnet build -t:PrepareResources` in Boilerplate.Shared project root directory.