RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/thangaram611/second-brain

Cursor rule

.cursor/rules/backend.mdc

Backend conventions for server, core, and packages

Cursor rules

Quality

31/100

Scores the file, not the repository.

Length

84 words

1 headings · 0 code blocks

Repository

0

— · pushed 32 days ago

Last changed

3 days ago

First indexed 3 days ago.
thangaram611/second-brain/.cursor/rules/backend.mdcRawGitHub
1---
2description: "Backend conventions for server, core, and packages"
3patterns: ["packages/**/*.ts", "apps/server/**/*.ts", "apps/relay/**/*.ts", "tools/**/*.ts"]
4mode: always
5---
6 
7## Backend Rules
8 
9- Use Drizzle ORM for all database queries (schema in packages/core/src/schema/)
10- Validate request bodies with Zod schemas
11- Relations have unique constraint on (sourceId, targetId, type)
12- Use `createOrGet` for idempotent relation creation
13- Entity CRUD goes through Brain facade (packages/core/src/brain.ts)
14- MCP tools in packages/mcp-server/src/tools/ (read-tools.ts, write-tools.ts, pipeline-tools.ts)
15- REST routes in apps/server/src/routes/
16- Always broadcast WebSocket events after entity/relation mutations
17- Error responses: { error: string } with appropriate HTTP status
18- SQLite WAL mode is always enabled
19 

Sections

  • Backend Rules

What it covers

do-not

Stack — with the evidence

typescript

(1.00)

node

(1.00)

turborepo

(1.00)

eslint

(1.00)

react

(0.70)

express

(0.70)

drizzle

(0.70)

tailwind

(0.70)

vite

(0.70)

vitest

(0.70)

javascript

(0.60)

monorepo

(0.60)

pnpm

(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
thangaram611
Language
—
License
—
Archived
no

All configs in this repo

Also in thangaram611/second-brain

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
thangaram611/second-brain.clinerules/01-project.md · 0Cline rulestypescriptnode+12setuptestmonorepodo-not65/1003 days ago
thangaram611/second-brain.clinerules/02-conventions.md · 0Cline rulestypescriptnode+12teststyledo-not40/1003 days ago
thangaram611/second-brain.clinerules/03-backend.md · 0Cline rulestypescriptnode+12styledatabase37/1003 days ago
thangaram611/second-brain.clinerules/04-frontend.md · 0Cline rulestypescriptnode+12style28/1003 days ago
thangaram611/second-brain.clinerules/05-testing.md · 0Cline rulestypescriptnode+12testdo-not35/1003 days ago
thangaram611/second-brain.clinerules/06-data-model.md · 0Cline rulestypescriptnode+12types25/1003 days ago
thangaram611/second-brain.cursor/rules/data-model.mdc · 0Cursor rulestypescriptnode+12types30/1003 days ago
thangaram611/second-brain.cursor/rules/frontend.mdc · 0Cursor rulestypescriptnode+12do-not31/1003 days ago
thangaram611/second-brain.cursor/rules/project.mdc · 0Cursor rulestypescriptnode+12testdo-notagent-behaviour50/1003 days ago
thangaram611/second-brain.cursor/rules/testing.mdc · 0Cursor rulestypescriptnode+12testdo-not27/1003 days ago
thangaram611/second-brain.github/copilot-instructions.md · 0Copilot instructionstypescriptnode+12setupteststylearch+496/1003 days ago
thangaram611/second-brain.windsurfrules · 0Windsurf rulestypescriptnode+12setupteststylearch+475/1003 days ago
thangaram611/second-brainAGENTS.md · 0AGENTS.mdtypescriptnode+12setupteststyletypes+374/1003 days ago
thangaram611/second-brainCLAUDE.md · 0CLAUDE.mdtypescriptnode+12agent-behaviour16/1003 days ago
thangaram611/second-brainapps/relay/AGENTS.md · 0AGENTS.mdtypescriptnode+12monorepoagent-behaviour33/1003 days ago
thangaram611/second-brainapps/server/AGENTS.md · 0AGENTS.mdtypescriptnode+12styleapimonorepoagent-behaviour56/1003 days ago
thangaram611/second-brainapps/ui/AGENTS.md · 0AGENTS.mdtypescriptnode+12styleuimonorepoagent-behaviour56/1003 days ago
thangaram611/second-brainpackages/collectors/AGENTS.md · 0AGENTS.mdtypescriptnode+12agent-behaviour52/1003 days ago
thangaram611/second-brainpackages/core/AGENTS.md · 0AGENTS.mdtypescriptnode+12testtypesdatabaseagent-behaviour62/1003 days ago
thangaram611/second-brainpackages/ingestion/AGENTS.md · 0AGENTS.mdtypescriptnode+12styleagent-behaviour48/1003 days ago
Diff against .clinerules/01-project.md Diff against .clinerules/02-conventions.md Diff against .clinerules/03-backend.md Diff against .clinerules/04-frontend.md Diff against .clinerules/05-testing.md Diff against .clinerules/06-data-model.md Diff against .cursor/rules/data-model.mdc Diff against .cursor/rules/frontend.mdc Diff against .cursor/rules/project.mdc Diff against .cursor/rules/testing.mdc Diff against .github/copilot-instructions.md Diff against .windsurfrules Diff against AGENTS.md Diff against CLAUDE.md Diff against apps/relay/AGENTS.md Diff against apps/server/AGENTS.md Diff against apps/ui/AGENTS.md Diff against packages/collectors/AGENTS.md Diff against packages/core/AGENTS.md Diff against packages/ingestion/AGENTS.md

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
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/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
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