From d17545bd0533768d068ab6b4f48542563601a032 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 11 Jun 2025 02:33:23 +0400 Subject: [PATCH] docs: add extra check for agents to run tests and linting before finishing --- .cursor/rules/always-test-before-summary.mdc | 6 ++++++ AI_INSTRUCTIONS.md | 1 + 2 files changed, 7 insertions(+) create mode 100644 .cursor/rules/always-test-before-summary.mdc diff --git a/.cursor/rules/always-test-before-summary.mdc b/.cursor/rules/always-test-before-summary.mdc new file mode 100644 index 0000000..1b279e5 --- /dev/null +++ b/.cursor/rules/always-test-before-summary.mdc @@ -0,0 +1,6 @@ +--- +description: +globs: +alwaysApply: true +--- +Before finishing the task and showing summary, always run "pnpm format && pnpm lint && pnpm test" at the root of the project to ensure that you don't finish with broken application. \ No newline at end of file diff --git a/AI_INSTRUCTIONS.md b/AI_INSTRUCTIONS.md index cd3ccc9..a9e999f 100644 --- a/AI_INSTRUCTIONS.md +++ b/AI_INSTRUCTIONS.md @@ -3,3 +3,4 @@ - After your changes, instead of running specific tests or linting specific files, run "pnpm format && pnpm lint && pnpm test". It means that you first format the code, then lint it, then test it, so that no part is broken after your changes. - Don't leave comments that don't add value - Do not duplicate code unless you have a very good reason to do so. It is important that the same logic is not duplicated multiple times +- Before finishing the task and showing summary, always run "pnpm format && pnpm lint && pnpm test" at the root of the project to ensure that you don't finish with broken application.