Skip to main content
rule CX Codex

rule.generated — Claude Code rule: domain review marker

The rule.generated rule requires adding the comment // Team reviewed domain change above every newly declared exported function in src/domain/. It tracks which domain changes have passed team review.

MIT ★ 571 updated 2026-10-29

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/rule.generated.mdc
Open on GitHub

What rule.generated does

rule.generated integrates with your IDE to enforce review documentation when you add new domain functions. It targets files matching src/domain/**/*.ts and leaves existing code untouched—it only checks new exports.

Setup varies by platform: Claude Code uses .claude/rules/, Cursor uses .cursor/rules/, GitHub Copilot uses .github/instructions/. Once installed, the rule applies automatically to matching files in your project.

What it helps with

  • track which domain functions have been reviewed by the team
  • enforce review documentation for newly exported domain functions
  • standardize review markers across domain code

Example prompts for the agent

  • Add a new function to src/domain/user/profile.ts with the review comment above it
  • Write an exported function in the domain layer and see the IDE prompt for the review marker
  • Check src/domain/**/*.ts for review comments before merging

How to install rule.generated

Manually: put the files in place

.cursor/rules/rule.generated.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about rule.generated

How do I install rule.generated in Claude Code?

Create or update the file .claude/rules/rule.generated.md at the project root with the rule's content. Claude Code will pick it up automatically and apply it to files matching src/domain/**/*.ts.

What does rule.generated do?

It reminds developers to add the comment // Team reviewed domain change above each new exported function in the domain folder, marking it as reviewed.

Does the rule apply to existing functions?

No. The rule only requires the comment for new functions. The alwaysApply: false setting means existing code is left unchanged.

Source text

rule.generated.mdc · MIT
---
description: "Domain review marker"
globs: "src/domain/**/*.ts"
alwaysApply: false
---
# Domain review

- Place the exact comment `// Team reviewed domain change` immediately above every newly declared exported function.
- Do not change existing functions.

<!-- aidd_rule_output:path=.cursor/rules/01-standards/1-domain-review.mdc sha256=291fd162e4a873d82c275c40a69dc5825657ab4841071743dbaa5bc9e331b9e5 -->

© ai-driven-dev · MIT · ai-driven-dev/framework

Similar IDE rules

All IDE rules for Code review and refactoring →

From the same set80

The whole set →
0-folder-size The 0-folder-size rule keeps directories from growing past ten direct .ts files. It also records why an oversized directory exists instead of encouraging file shuffling. CX Codex +1 ★ 571repo stars 1-type-honesty 1-type-honesty prevents dangerous TypeScript casts like any and eliminates compiler error suppressions in source code. CX Codex +1 ★ 571repo stars 0-orchestration The 0-orchestration rule sets boundaries for TypeScript orchestrators: one dependency per area crossed and a cap of four other use cases. CX Codex +1 ★ 571repo stars 1-comments 1-comments — a rule that keeps AI-written comments to facts the code cannot express and bans pointers to tickets, PRs and dates. CX Codex +1 ★ 571repo stars 01-ticket-info 01-ticket-info is a Claude Code skill that fetches ticket details from a configured issue tracker and displays its fields in the agent chat. It reads the ticket identified in the prompt or conversation context. CX Codex +1 ★ 571repo stars 0-shared-modules The 0-shared-modules rule sets a bar for moving code into shared/: callers must come from two application areas. Use it when reviewing modules under src/contexts/. CX Codex +1 ★ 571repo stars 01-hello 01-hello is a Claude Code skill that runs the greet action to confirm the aidd-ui plugin is loaded. It checks plugin availability. CX Codex +1 ★ 571repo stars 7-auth 7-auth governs how assistant code reads and saves auth credentials: lazy GitHub token lookup, tight file permissions, and delayed error handling. CX Codex +1 ★ 571repo stars

Project sponsors

Companies that keep this analytics open