RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/ThanhTrunggDEV/DontBeLazy

Cursor rule

.cursor/rules/common-code-review.mdc
Cursor rules

Quality

65/100

Scores the file, not the repository.

Length

553 words

14 headings · 1 code blocks

Repository

6

— · pushed 80 days ago

Last changed

3 days ago

First indexed 3 days ago.
ThanhTrunggDEV/DontBeLazy/.cursor/rules/common-code-review.mdcRawGitHub
1# Code Review Standards
2 
3## Purpose
4 
5Code review ensures quality, security, and maintainability before code is merged. This rule defines when and how to conduct code reviews.
6 
7## When to Review
8 
9**MANDATORY review triggers:**
10 
11- After writing or modifying code
12- Before any commit to shared branches
13- When security-sensitive code is changed (auth, payments, user data)
14- When architectural changes are made
15- Before merging pull requests
16 
17**Pre-Review Requirements:**
18 
19Before requesting review, ensure:
20 
21- All automated checks (CI/CD) are passing
22- Merge conflicts are resolved
23- Branch is up to date with target branch
24 
25## Review Checklist
26 
27Before marking code complete:
28 
29- [ ] Code is readable and well-named
30- [ ] Functions are focused (<50 lines)
31- [ ] Files are cohesive (<800 lines)
32- [ ] No deep nesting (>4 levels)
33- [ ] Errors are handled explicitly
34- [ ] No hardcoded secrets or credentials
35- [ ] No console.log or debug statements
36- [ ] Tests exist for new functionality
37- [ ] Test coverage meets 80% minimum
38 
39## Security Review Triggers
40 
41**STOP and use security-reviewer agent when:**
42 
43- Authentication or authorization code
44- User input handling
45- Database queries
46- File system operations
47- External API calls
48- Cryptographic operations
49- Payment or financial code
50 
51## Review Severity Levels
52 
53| Level | Meaning | Action |
54|-------|---------|--------|
55| CRITICAL | Security vulnerability or data loss risk | **BLOCK** - Must fix before merge |
56| HIGH | Bug or significant quality issue | **WARN** - Should fix before merge |
57| MEDIUM | Maintainability concern | **INFO** - Consider fixing |
58| LOW | Style or minor suggestion | **NOTE** - Optional |
59 
60## Agent Usage
61 
62Use these agents for code review:
63 
64| Agent | Purpose |
65|-------|---------|
66| **code-reviewer** | General code quality, patterns, best practices |
67| **security-reviewer** | Security vulnerabilities, OWASP Top 10 |
68| **typescript-reviewer** | TypeScript/JavaScript specific issues |
69| **python-reviewer** | Python specific issues |
70| **go-reviewer** | Go specific issues |
71| **rust-reviewer** | Rust specific issues |
72 
73## Review Workflow
74 
75```
761. Run git diff to understand changes
772. Check security checklist first
783. Review code quality checklist
794. Run relevant tests
805. Verify coverage >= 80%
816. Use appropriate agent for detailed review
82```
83 
84## Common Issues to Catch
85 
86### Security
87 
88- Hardcoded credentials (API keys, passwords, tokens)
89- SQL injection (string concatenation in queries)
90- XSS vulnerabilities (unescaped user input)
91- Path traversal (unsanitized file paths)
92- CSRF protection missing
93- Authentication bypasses
94 
95### Code Quality
96 
97- Large functions (>50 lines) - split into smaller
98- Large files (>800 lines) - extract modules
99- Deep nesting (>4 levels) - use early returns
100- Missing error handling - handle explicitly
101- Mutation patterns - prefer immutable operations
102- Missing tests - add test coverage
103 
104### Performance
105 
106- N+1 queries - use JOINs or batching
107- Missing pagination - add LIMIT to queries
108- Unbounded queries - add constraints
109- Missing caching - cache expensive operations
110 
111## Approval Criteria
112 
113- **Approve**: No CRITICAL or HIGH issues
114- **Warning**: Only HIGH issues (merge with caution)
115- **Block**: CRITICAL issues found
116 
117## Integration with Other Rules
118 
119This rule works with:
120 
121- [testing.md](testing.md) - Test coverage requirements
122- [security.md](security.md) - Security checklist
123- [git-workflow.md](git-workflow.md) - Commit standards
124- [agents.md](agents.md) - Agent delegation
125 

Sections

  • Code Review Standards
  • Purpose
  • When to Review
  • Review Checklist
  • Security Review Triggers
  • Review Severity Levels
  • Agent Usage
  • Review Workflow
  • Common Issues to Catch
  • Security
  • Code Quality
  • Performance
  • Approval Criteria
  • Integration with Other Rules

What it covers

code-styletesting-strategygit-prsecurityperformancedo-notagent-behaviour

Stack — with the evidence

javascript

(0.80)

csharp

(0.60)

dotnet

(0.60)

github-actions

(0.60)

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
ThanhTrunggDEV
Language
—
License
—
Archived
no

All configs in this repo

Also in ThanhTrunggDEV/DontBeLazy

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
ThanhTrunggDEV/DontBeLazy.cursor/rules/zh-agents.mdc · 6Cursor rulesjavascriptcsharp+2no sections50/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/zh-patterns.mdc · 6Cursor rulesjavascriptcsharp+2api30/1003 days ago
ThanhTrunggDEV/DontBeLazy.agent/AGENTS.md · 6AGENTS.mdjavascriptcsharp+2buildteststylearch+477/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/AGENTS.md · 6AGENTS.mdjavascriptcsharp+2buildteststylearch+477/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-agents.mdc · 6Cursor rulesjavascriptcsharp+2agent-behaviour50/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-coding-style.mdc · 6Cursor rulesjavascriptcsharp+2style54/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-development-workflow.mdc · 6Cursor rulesjavascriptcsharp+2gitagent-behaviour39/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-git-workflow.mdc · 6Cursor rulesjavascriptcsharp+2lint-formatgitagent-behaviour43/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-hooks.mdc · 6Cursor rulesjavascriptcsharp+2styletypessecuritydo-not36/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-patterns.mdc · 6Cursor rulesjavascriptcsharp+2lint-formatstyleapi52/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-performance.mdc · 6Cursor rulesjavascriptcsharp+2buildperformance48/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-security.mdc · 6Cursor rulesjavascriptcsharp+2security39/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/common-testing.mdc · 6Cursor rulesjavascriptcsharp+2testtesting-strategyagent-behaviour34/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-coding-style.mdc · 6Cursor rulesjavascriptcsharp+2lint-formatstyle52/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-hooks.mdc · 6Cursor rulesjavascriptcsharp+2buildlint-formatdeployment60/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-patterns.mdc · 6Cursor rulesjavascriptcsharp+2style54/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-security.mdc · 6Cursor rulesjavascriptcsharp+2securityperformancedo-not73/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-testing.mdc · 6Cursor rulesjavascriptcsharp+2testtesting-strategy55/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/csharp-coding-style.mdc · 6Cursor rulesjavascriptcsharp+2lint-formatstyletypes66/1003 days ago
ThanhTrunggDEV/DontBeLazy.cursor/rules/csharp-hooks.mdc · 6Cursor rulesjavascriptcsharp+2no sections33/1003 days ago
Diff against .cursor/rules/zh-agents.mdc Diff against .cursor/rules/zh-patterns.mdc Diff against .agent/AGENTS.md Diff against .cursor/AGENTS.md Diff against .cursor/rules/common-agents.mdc Diff against .cursor/rules/common-coding-style.mdc Diff against .cursor/rules/common-development-workflow.mdc Diff against .cursor/rules/common-git-workflow.mdc Diff against .cursor/rules/common-hooks.mdc Diff against .cursor/rules/common-patterns.mdc Diff against .cursor/rules/common-performance.mdc Diff against .cursor/rules/common-security.mdc Diff against .cursor/rules/common-testing.mdc Diff against .cursor/rules/cpp-coding-style.mdc Diff against .cursor/rules/cpp-hooks.mdc Diff against .cursor/rules/cpp-patterns.mdc Diff against .cursor/rules/cpp-security.mdc Diff against .cursor/rules/cpp-testing.mdc Diff against .cursor/rules/csharp-coding-style.mdc Diff against .cursor/rules/csharp-hooks.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack