Skip to content

Homework 2: Rules#2

Open
TiSer wants to merge 5 commits intokoldovsky:masterfrom
TiSer:master
Open

Homework 2: Rules#2
TiSer wants to merge 5 commits intokoldovsky:masterfrom
TiSer:master

Conversation

@TiSer
Copy link
Copy Markdown

@TiSer TiSer commented Apr 6, 2026

Day 2: Workshop Assignment

Учасник:

Чеклист

  • Мінімум 6 правил у .cursor/rules/ (кожне з секцією "How to verify")
  • Мінімум 2 custom commands у .cursor/commands/
  • A/B валідація — задокументовано тестовий сценарій, обидва результати та висновок
  • AGENTS.md — заповнений повністю (контекст проєкту, команди, архітектура, конвенції)
  • yarn build проходить успішно

Бонус (необов'язково)

  • Налаштовано MCP-сервер (GitHub, Context7 або Browser) — скріншот або опис використання
  • Згенеровано reference-skill через npx repomix --skill-generate
  • .cursorrules — legacy-формат правил для Cursor

Нотатки

Summary by CodeRabbit

Примітки до випуску

  • Documentation

    • Додано докладні керівництва: локальний запуск розробки, режим перегляду тестів, повна перевірка як у CI, а також загальні інструкції для автоматизованих агентів.
    • Додано набір правил та настанов для i18n, тестування, безпеки, відновлення даних та архітектури проекту.
  • Chores

    • Впроваджено конвенції та захисні правила для ключових пакетів і шляхів.
    • Додано конфігурацію для MCP-сервера.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 6, 2026

Warning

Rate limit exceeded

@TiSer has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 19 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 19 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8642d8e4-6b2a-4a2c-8b65-bfaa42e85d38

📥 Commits

Reviewing files that changed from the base of the PR and between 5c5980c and 9d20d07.

📒 Files selected for processing (1)
  • .cursor/rules/conventions.mdc

Walkthrough

Додано набір документації та правил Cursor й загальний довідник для репозиторію: три командні гайди (start-dev, test-watch, verify-ci), декілька .mdc правил для архітектури, безпеки, тестування, i18n, data-restore, пакунків math/element, захищених файлів, а також AGENTS.md і .cursor/mcp.json — всі зміни документаційні. ✅

Changes

Cohort / File(s) Summary
Cursor Commands
/.cursor/commands/start-dev.md, /.cursor/commands/test-watch.md, /.cursor/commands/verify-ci.md
Нові інструкції для локальної розробки: запуск Vite dev‑сервера (yarn start), запуск Vitest у watch та single‑run режимах, і повний "verify like CI" workflow через yarn test:all.
Cursor Rules – Project & Conventions
/.cursor/rules/project-architecture.mdc, /.cursor/rules/conventions.mdc
Правила архітектури й конвенцій: обов'язкове використання actionManager, Canvas 2D‑рендеринг, TypeScript strict‑практики; React — функціональні компоненти, іменовані експорти, специфіка іменування пропсів.
Cursor Rules – Domain-specific
/.cursor/rules/packages-element-math.mdc, /.cursor/rules/excalidraw-app.mdc, /.cursor/rules/data-restore.mdc, /.cursor/rules/i18n-locales.mdc
Обмеження й верифікація для модулів: math/element без React, правила для excalidraw‑app, вимоги до data‑restore (валидація/безпека), i18n з en.json як джерелом істини.
Cursor Rules – Safety & Testing
/.cursor/rules/security.mdc, /.cursor/rules/do-not-touch.mdc, /.cursor/rules/testing.mdc
Безпекові правила та захищені шляхи; заборона eval/небезпечних патернів; тестові конвенції (Vitest, jsdom, canvas mocks) і процедури перевірки.
Repository Guide & Config
AGENTS.md, /.cursor/mcp.json
Глобальний довідник для асистентів/контрибуторів з описом монорепо, команд, ризикових файлів та MCP‑сервер конфігурацією. ⚠️ перевірити URL MCP сервера перед використанням.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 6 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning Заголовок PR не відповідає вимогам формату: очікується 'Day 2: — Workshop Assignment' або подібний описовий формат, отримано 'Homework 2: Rules'. Перейменуйте PR на формат 'Day 2: <ім'я-учасника> — Workshop Assignment' або 'Homework 2: <ім'я-учасника> — Правила Cursor' з явним указанням учасника та типу завдання.
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Minimum 6 Rules ✅ Passed PR включає 9 файлів правил (більше за мінімум 6), кожен з clear description та секцією 'How to verify' з реальними командами. Присутній security.mdc, 8 з 9 використовують globs для модульного скопінування. Вміст дотичний до Excalidraw контексту.
Minimum 2 Custom Commands ✅ Passed PR містить 3 custom command файли в .cursor/commands/ (мінімум 2 потрібен): start-dev.md, test-watch.md, verify-ci.md з практичними інструкціями для Excalidraw.
A/B Validation Document ✅ Passed ✅ A/B validation документ знайдений у ./dev-docs/ab-validation-rules.md з усіма 5 обов'язковими елементами. Правило оновлене для вирівнювання з фактичною кодовою базою.
Agents.Md Complete ✅ Passed ✅ Файл AGENTS.md присутній у корені репозиторію із 182 рядками та 14 добре структурованими розділами, які покривають всі 7 вимагаємих секцій: Project Overview, Tech Stack, Project Structure, Key Commands, Architecture, Conventions та Do-Not-Touch/Constraints.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.cursor/rules/conventions.mdc:
- Around line 9-15: There is a contradiction: one rule mandates "Props
interface: {ComponentName}Props" while another says "Prefer type over
interface"; unify by replacing the "Props interface: `{ComponentName}Props`"
rule with a requirement that props be declared as a type alias (e.g., "Props
type alias: `{ComponentName}Props`") so it aligns with "Prefer `type` over
`interface`"; update any examples and documentation text in the same file
(references to {ComponentName}Props) to show a `type` alias and ensure the
wording consistently uses "type" across the TypeScript section.

In @.cursor/rules/security.mdc:
- Around line 8-22: Add an explicit rule forbidding bypassing or disabling
end-to-end collaboration encryption and prohibiting changes to Firebase security
rules without a dedicated security review; update the "Secrets and config"
section (and/or add a new "Collaboration & Firebase" subsection) to include two
bullets: one requiring all collaboration traffic to use E2E encryption (no
local/temporary backdoors, config flags, or plaintext fallbacks) and another
requiring any edits to Firebase security rules to go through an explicit
security/architectural review and approval process before merging.

In @.cursor/rules/testing.mdc:
- Around line 2-3: Зазначення scope в описі правила (поле description) не
відповідає фактичному набору файлів в globs: description = "Vitest tests and
test helpers for this monorepo" але globs = "packages/**/…", що охоплює лише
packages; виправте невідповідність у файлі .cursor/rules/testing.mdc або
звузивши description (наприклад вказати "Vitest tests and test helpers in
packages") або розширивши globs щоб охопити весь монорепо (додати відповідні
корені, напр. **/*.test.ts, **/tests/**) — відредагуйте відповідні поля
description або globs в тому файлі, зберігаючи формат ключів exactly as-is.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ffb4cf5f-cb38-419e-8f62-b75eb8c8e763

📥 Commits

Reviewing files that changed from the base of the PR and between 63f111c and 69af78f.

⛔ Files ignored due to path filters (11)
  • CLAUDE.md is excluded by none and included by none
  • dev-docs/ab-validation-rules.md is excluded by none and included by none
  • onboarding-docs/01-quickstart.mdx is excluded by none and included by none
  • onboarding-docs/02-repo-tour.mdx is excluded by none and included by none
  • onboarding-docs/03-development-workflow.mdx is excluded by none and included by none
  • onboarding-docs/04-quality.mdx is excluded by none and included by none
  • onboarding-docs/05-making-changes.mdx is excluded by none and included by none
  • onboarding-docs/06-troubleshooting.mdx is excluded by none and included by none
  • onboarding-docs/07-glossary.mdx is excluded by none and included by none
  • onboarding-docs/08-token-estimates.mdx is excluded by none and included by none
  • onboarding-docs/README.mdx is excluded by none and included by none
📒 Files selected for processing (13)
  • .cursor/commands/start-dev.md
  • .cursor/commands/test-watch.md
  • .cursor/commands/verify-ci.md
  • .cursor/rules/conventions.mdc
  • .cursor/rules/data-restore.mdc
  • .cursor/rules/do-not-touch.mdc
  • .cursor/rules/excalidraw-app.mdc
  • .cursor/rules/i18n-locales.mdc
  • .cursor/rules/packages-element-math.mdc
  • .cursor/rules/project-architecture.mdc
  • .cursor/rules/security.mdc
  • .cursor/rules/testing.mdc
  • AGENTS.md

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.cursor/rules/conventions.mdc:
- Around line 6-15: The current "Code Conventions" section is too generic;
update the block under "## Components" / "## TypeScript" to add 1–2
Excalidraw-specific rules: e.g., require explicit guidance for packages under
the `@excalidraw` scope (how to import/limit cross-package dependencies and naming
for shared utils) and an editor-state rule for persist/restore (e.g.,
canonicalize serialization, versioning, and where to keep ephemeral vs.
persistent editor state). Reference the existing items like
`{ComponentName}Props`, "Named exports only", and `import type { X } from "..."`
when adding these Excalidraw-specific clarifications so they live alongside the
generic conventions.
- Line 10: The rule text "Named exports only" is not verifiable because the
ESLint rule import/no-default-export is not enabled and the verification steps
don't specify how to run linting; update the rule doc's "How to verify" section
to either (A) instruct running the exact command that runs ESLint (the yarn
test:code script) and list the required ESLint rule import/no-default-export, or
(B) enable import/no-default-export in the project's ESLint config and then
document that yarn test:code (or the explicit eslint command) will fail on
default exports; make sure the doc references the rule name
import/no-default-export and the test script yarn test:code and that the "How to
verify" section contains the exact command to reproduce the check.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0b54bde6-30cc-4f40-98a6-e853636d2f51

📥 Commits

Reviewing files that changed from the base of the PR and between 9eeea7a and 5c5980c.

📒 Files selected for processing (3)
  • .cursor/rules/conventions.mdc
  • .cursor/rules/security.mdc
  • .cursor/rules/testing.mdc

Add package-boundary guidance and explicit verification for the named-exports rule so CodeRabbit concerns are fully actionable.

Made-with: Cursor
@koldovsky
Copy link
Copy Markdown
Owner

Approved

MyroslavFilippov added a commit to MyroslavFilippov/is-02-rules that referenced this pull request Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants