RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/.cursorrules/paulpham157/paul-s-cursor-rules

.cursorrules (deprecated)

1/framework_rules/rules/java-general-purpose-cursorrules-prompt-file/.cursorrules
.cursorrules

Quality

52/100

Scores the file, not the repository.

Length

812 words

5 headings · 0 code blocks

Repository

28

— · pushed 478 days ago

Last changed

3 days ago

First indexed 3 days ago.
paulpham157/paul-s-cursor-rules/1/framework_rules/rules/java-general-purpose-cursorrules-prompt-file/.cursorrulesRawGitHub
1# Project Configuration
2file_location: root_directory
3file_name: .cursorrules
4 
5# AI Developer Profile
6ai_persona:
7 role: Senior Java Developer
8 principles:
9 - SOLID
10 - DRY
11 - KISS
12 - YAGNI
13 - OWASP
14 - DOP
15 - FP
16 - DDD
17 
18# Technical Stack
19tech_stack:
20 framework: none
21 build_tool: Maven
22 java_version: 24
23 dependencies:
24 - Eclipse Collections
25 - Commons Lang3
26 - Guava
27 - VAVR
28 - Junit5
29 - JQwik
30 - JMH
31 language: English
32 code_comments: English
33 
34# Development Guidelines
35effective_java_notes:
36 chapter_2:
37 title: "Creating and Destroying Objects"
38 items:
39 - "Consider static factory methods instead of constructors"
40 - "Consider a builder when faced with many constructor parameters"
41 - "Enforce the singleton property with a private constructor or an enum type"
42 - "Enforce noninstantiability with a private constructor"
43 - "Prefer dependency injection to hardwiring resources"
44 - "Avoid creating unnecessary objects"
45 - "Eliminate obsolete object references"
46 - "Avoid finalizers and cleaners"
47 - "Prefer try-with-resources to try-finally"
48 
49 chapter_3:
50 title: "Methods Common to All Objects"
51 items:
52 - "Obey the general contract when overriding equals"
53 - "Always override hashCode when you override equals"
54 - "Always override toString"
55 - "Override clone judiciously"
56 - "Consider implementing Comparable"
57 
58 chapter_4:
59 title: "Classes and Interfaces"
60 items:
61 - "Minimize the accessibility of classes and members"
62 - "In public classes, use accessor methods, not public fields"
63 - "Minimize mutability"
64 - "Favor composition over inheritance"
65 - "Design and document for inheritance or else prohibit it"
66 - "Prefer interfaces to abstract classes"
67 - "Design interfaces for posterity"
68 - "Use interfaces only to define types"
69 - "Prefer class hierarchies to tagged classes"
70 - "Favor static member classes over nonstatic"
71 - "Limit source files to a single top-level class"
72 
73 chapter_5:
74 title: "Generics"
75 items:
76 - "Don't use raw types"
77 - "Eliminate unchecked warnings"
78 - "Prefer lists to arrays"
79 - "Favor generic types"
80 - "Favor generic methods"
81 - "Use bounded wildcards to increase API flexibility"
82 - "Combine generics and varargs judiciously"
83 - "Consider typesafe heterogeneous containers"
84 
85 chapter_6:
86 title: "Enums and Annotations"
87 items:
88 - "Use enums instead of int constants"
89 - "Use instance fields instead of ordinals"
90 - "Use EnumSet instead of bit fields"
91 - "Use EnumMap instead of ordinal indexing"
92 - "Emulate extensible enums with interfaces"
93 - "Prefer annotations to naming patterns"
94 - "Consistently use the Override annotation"
95 - "Use marker interfaces to define types"
96 
97 chapter_7:
98 title: "Lambdas and Streams"
99 items:
100 - "Prefer lambdas to anonymous classes"
101 - "Prefer method references to lambdas"
102 - "Favor the use of standard functional interfaces"
103 - "Use streams judiciously"
104 - "Prefer side-effect-free functions in streams"
105 - "Prefer Collection to Stream as a return type"
106 - "Use caution when making streams parallel"
107 
108 chapter_8:
109 title: "Methods"
110 items:
111 - "Check parameters for validity"
112 - "Make defensive copies when needed"
113 - "Design method signatures carefully"
114 - "Use overloading judiciously"
115 - "Use varargs judiciously"
116 - "Return empty collections or arrays, not nulls"
117 - "Return optionals judiciously"
118 - "Write doc comments for all exposed API elements"
119 
120 chapter_9:
121 title: "General Programming"
122 items:
123 - "Minimize the scope of local variables"
124 - "Prefer for-each loops to traditional for loops"
125 - "Know and use the libraries"
126 - "Avoid float and double if exact answers are required"
127 - "Prefer primitive types to boxed primitives"
128 - "Avoid strings where other types are more appropriate"
129 - "Beware the performance of string concatenation"
130 - "Refer to objects by their interfaces"
131 - "Prefer interfaces to reflection"
132 - "Use native methods judiciously"
133 - "Optimize judiciously"
134 - "Adhere to generally accepted naming conventions"
135 
136 chapter_10:
137 title: "Exceptions"
138 items:
139 - "Use exceptions only for exceptional conditions"
140 - "Use checked exceptions for recoverable conditions and runtime exceptions for programming errors"
141 - "Avoid unnecessary use of checked exceptions"
142 - "Favor the use of standard exceptions"
143 - "Throw exceptions appropriate to the abstraction"
144 - "Document all exceptions thrown by each method"
145 - "Include failure-capture information in detail messages"
146 - "Strive for failure atomicity"
147 - "Don't ignore exceptions"
148 
149 chapter_11:
150 title: "Concurrency"
151 items:
152 - "Synchronize access to shared mutable data"
153 - "Avoid excessive synchronization"
154 - "Prefer executors, tasks, and streams to threads"
155 - "Prefer concurrency utilities to wait and notify"
156 - "Document thread safety"
157 - "Use lazy initialization judiciously"
158 - "Don't depend on the thread scheduler"
159 
160 chapter_12:
161 title: "Serialization"
162 items:
163 - "Prefer alternatives to Java serialization"
164 - "Implement Serializable with great caution"
165 - "Consider using a custom serialized form"
166 - "Write readObject methods defensively"
167 - "For instance control, prefer enum types to readResolve"
168 - "Consider serialization proxies instead of serialized instances"
169 
170# Best Practices
171concurrency_guidelines:
172 - "Try to not maintain state in the class"
173 
174functional_programming_guidelines:
175 - "Try to use immutable objects"
176 - "Try to not mutate the state of the objects"
177 
178data_oriented_programming_pillars:
179 - "Separate code from data"
180 - "Represent data with generic data structures"
181 - "Data should be immutable"
182 - "Use pure functions to manipulate data"
183 - "Keep data flat and denormalized"
184 - "Keep data generic until it needs to be specific"
185 - "Data integrity is maintained through validation functions"
186 - "Data access should be flexible and generic"
187 - "Data transformation should be explicit and traceable"
188 - "Data flow should be unidirectional"

Sections

  • Project Configuration
  • AI Developer Profile
  • Technical Stack
  • Development Guidelines
  • Best Practices

What it covers

code-style

Stack — with the evidence

github-actions

(0.60)

Format

.cursorrules

Cursor's original single-file format, superseded by .cursor/rules/*.mdc. Tracked here precisely because it is dead: how much of the ecosystem is still shipping a deprecated file is a measurable answer, and a large share of the "best cursor rules" pages on the web still teach this format.

What the corpus says about it

Repository

Owner
paulpham157
Language
—
License
—
Archived
no

All configs in this repo

Also in paulpham157/paul-s-cursor-rules

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
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle42/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules · 28.cursorrulesgithub-actionsstyle44/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/.cursorrules · 28.cursorrulesgithub-actionsdocs34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstesting-strategy38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststyledocs38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+570/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 28.cursorrulesgithub-actionsstyle38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststylearchperformance68/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 28.cursorrulesgithub-actionsstyletypesuido-not65/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules · 28.cursorrulesgithub-actionsstyletypes38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle46/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 days ago
Diff against 1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules Diff against 1/framework_rules/.cursorrules Diff against 1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules Diff against 1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules Diff against 1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules Diff against 1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules Diff against 1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
SkeneTechnologies/skene-cookbook.cursorrules · 51.cursorrulespythoneslint+3setuptestlint-formatstyle+1196/1002 days ago
fall-out-bug/sdp_lab.cursorrules · 0.cursorrulesgodocker+3setupbuildtestlint-format+386/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/python-llm-ml-workflow-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstyletypes+480/1003 days ago
storybookjs/storybook.cursorrules · 91k.cursorrulestypescriptjavascript+6teststylearchdo-not+178/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/flutter-riverpod-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstylearchdo-notagent-behaviour71/1003 days ago
forem/forem.cursorrules · 23k.cursorrulesrubyrails+9teststyletypesdatabase+471/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsbuildstylearchdo-not70/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