Effect CommunityEC
Effect Community•8mo ago•
17 replies
CharLEE

Sharing Cursor Rules for Monorepos with Effect Microservices

Hi. I would like to share with you the Cursor rules I use in my monorepos that work great with the Effect microservices.
In my repos i always follow the same package pattern:
- apps
  - frontend - react router v7 app
- infrastructure - cdk
- e2e - for browser and apis
- packages
  - api1
  - api1-client
  - api2
  - api2-client
  - libs
  - and more see the screenshot

I haven't written many rules for the frontend yet, but the api setup is pretty neat, and i can say for example "create endpoint to get blog post page" and it will create a new lambda, update stores, tests, add e2e test, validate itself with tests and typecheck, update the cdk stack, and more.
It gets quite decent Effect code, it reuses logics, creates own Schemas and TaggedErrors.

Give them a try. Keep in mind that some stuff may be related to my setup so you may need to tweak for your own needs 😉 ow also i use the NX in my projects.
the actual rules in the Thread.
CleanShot_2025-05-25_at_13.09.35.png
Was this page helpful?