RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/magdazelena/primer

Cursor rule

.cursor/rules/strapi-backend.mdc
Cursor rules

Quality

68/100

Scores the file, not the repository.

Length

163 words

7 headings · 0 code blocks

Repository

3

— · pushed 158 days ago

Last changed

3 days ago

First indexed 3 days ago.
magdazelena/primer/.cursor/rules/strapi-backend.mdcRawGitHub
1---
2globs: apps/backend/**/*.ts,packages/strapi-plugin-*/**/*.ts
3---
4 
5# Strapi Backend Conventions
6 
7## Project Structure
8 
9Follow Strapi's recommended structure in [apps/backend/src/](mdc:apps/backend/src/):
10 
11- **API**: [apps/backend/src/api/](mdc:apps/backend/src/api/) - Content types and controllers
12- **Components**: [apps/backend/src/components/](mdc:apps/backend/src/components/) - Reusable components
13- **Extensions**: [apps/backend/src/extensions/](mdc:apps/backend/src/extensions/) - Strapi extensions
14- **Admin**: [apps/backend/src/admin/](mdc:apps/backend/src/admin/) - Admin panel customizations
15 
16## File Naming Conventions
17 
18- **Controllers**: `*.controller.ts`
19- **Services**: `*.service.ts`
20- **Content Types**: `*.json` (schema files)
21- **Policies**: `*.policy.ts`
22- **Middlewares**: `*.middleware.ts`
23 
24## Content Type Structure
25 
26Each content type should have:
27- `content-types/[name]/schema.json` - Schema definition
28- `content-types/[name]/lifecycles.ts` - Lifecycle hooks
29- `api/[name]/controllers/[name].controller.ts` - Controller
30- `api/[name]/services/[name].service.ts` - Service
31 
32## Plugin Development
33 
34For custom plugins in [packages/strapi-plugin-*/](mdc:packages/strapi-plugin-status-manager/):
35 
36- **Server**: `server/src/` - Backend logic
37- **Admin**: `admin/src/` - Frontend components
38- **Package**: Follow `@primer/strapi-plugin-*` naming
39- **Exports**: Use proper package.json exports for Strapi 5
40 
41## Configuration
42 
43- Use TypeScript configs in [apps/backend/config/](mdc:apps/backend/config/)
44- Environment-specific configs in `config/env/`
45- Plugin configuration in [apps/backend/config/plugins.ts](mdc:apps/backend/config/plugins.ts)
46 
47## Database
48 
49- Use SQLite for development (better-sqlite3)
50- Migrations in [apps/backend/database/migrations/](mdc:apps/backend/database/migrations/)
51- Seed data management with `yarn seed` and `yarn export`

Commands it names

  • yarn seed
  • yarn export

Sections

  • Strapi Backend Conventions
  • Project Structure
  • File Naming Conventions
  • Content Type Structure
  • Plugin Development
  • Configuration
  • Database

What it covers

code-stylearchitecturetypesdatabase

Stack — with the evidence

node

(1.00)

nextjs

(1.00)

turborepo

(1.00)

react

(0.70)

tailwind

(0.70)

jest

(0.70)

cypress

(0.70)

eslint

(0.70)

typescript

(0.60)

javascript

(0.60)

monorepo

(0.60)

github-actions

(0.60)

Glob targeting

  • apps/backend/**/*.ts
  • packages/strapi-plugin-*/**/*.ts

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

All configs in this repo

Also in magdazelena/primer

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
magdazelena/primer.cursor/rules/agents.mdc · 3Cursor rulesnodenextjs+10no sections48/1003 days ago
magdazelena/primer.cursor/rules/code-quality.mdc · 3Cursor rulesnodenextjs+10lint-formatstyletypesperformance+273/1003 days ago
magdazelena/primer.cursor/rules/memory.mdc · 3Cursor rulesnodenextjs+10styleperformancedo-notagent-behaviour61/1003 days ago
magdazelena/primer.cursor/rules/monorepo-management.mdc · 3Cursor rulesnodenextjs+10buildtestlint-formatstyle+579/1003 days ago
magdazelena/primer.cursor/rules/nextjs-frontend.mdc · 3Cursor rulesnodenextjs+10teststylearchapi+172/1003 days ago
magdazelena/primer.cursor/rules/project-structure.mdc · 3Cursor rulesnodenextjs+10testlint-formatarchmonorepo71/1003 days ago
magdazelena/primer.cursor/rules/strapi-plugin-development.mdc · 3Cursor rulesnodenextjs+10buildtestarchagent-behaviour85/1003 days ago
magdazelena/primer.cursor/rules/testing-conventions.mdc · 3Cursor rulesnodenextjs+10teststyletesting-strategyapi+173/1003 days ago
magdazelena/primer.cursor/rules/typescript-conventions.mdc · 3Cursor rulesnodenextjs+10lint-formatstyletypesdo-not65/1003 days ago
Diff against .cursor/rules/agents.mdc Diff against .cursor/rules/code-quality.mdc Diff against .cursor/rules/memory.mdc Diff against .cursor/rules/monorepo-management.mdc Diff against .cursor/rules/nextjs-frontend.mdc Diff against .cursor/rules/project-structure.mdc Diff against .cursor/rules/strapi-plugin-development.mdc Diff against .cursor/rules/testing-conventions.mdc Diff against .cursor/rules/typescript-conventions.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/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
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