RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/agency-ai-solutions/nextjs-firebase-ai-coding-template

Cursor rule

back/.cursor/rules/folder-structure.mdc
Cursor rules

Quality

52/100

Scores the file, not the repository.

Length

205 words

5 headings · 0 code blocks

Repository

47

— · pushed 336 days ago

Last changed

3 days ago

First indexed 3 days ago.
agency-ai-solutions/nextjs-firebase-ai-coding-template/back/.cursor/rules/folder-structure.mdcRawGitHub
1---
2globs: back/**
3alwaysApply: false
4---
5 
6# Python Firebase Functions - Broker Architecture
7 
8This project follows the broker architecture pattern for Firebase Functions.
9 
10## Folder Structure
11 
12### `src/` - Source Code
13 
14#### Core Components
15 
16- **brokers/** - Message/event handling layer
17 
18 - **callable/** - Client-callable functions (Firebase callable functions)
19 - **https/** - HTTP endpoints (REST APIs)
20 - **triggered/** - Event-triggered functions (Firestore/Storage triggers)
21 
22- **documents/** - DocumentBase classes
23 
24 - Each document class represents a Firestore collection
25 - All Firestore operations MUST go through these classes
26 - Never access Firestore directly
27 
28- **models/** - Type definitions
29 
30 - **firestore_types.py** - Pydantic models for Firestore documents
31 - **function_types.py** - Request/response types for functions
32 - **util_types.py** - Utility types and enums
33 
34- **services/** - Business logic
35 
36 - Orchestrate operations across multiple documents
37 - Complex workflows and business rules
38 
39- **factories/** - Object creation
40 
41 - Create documents from various sources (CSV, JSON, templates)
42 - Batch operations
43 
44- **shared/** - Shared components
45 
46 - **Db.py** - Database singleton with ProjectDb class
47 - **DocumentBase.py** - Base document class
48 
49- **util/** - Utility functions
50 
51 - Authentication helpers
52 - CORS handling
53 - Logging
54 
55- **exceptions/** - Custom exceptions
56 - Project-specific error classes
57 
58### `tests/` - Test Suite
59 
60- **integration/** - End-to-end tests
61- **unit/** - Component tests
62- **util/** - Test utilities
63 

Sections

  • Python Firebase Functions - Broker Architecture
  • Folder Structure
  • `src/` - Source Code
  • `tests/` - Test Suite

What it covers

testarchitecture

Stack — with the evidence

python

(0.80)

node

(0.70)

react

(0.70)

nextjs

(0.70)

flask

(0.70)

pytest

(0.70)

eslint

(0.70)

typescript

(0.60)

javascript

(0.50)

Glob targeting

  • back/**

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
agency-ai-solutions
Language
—
License
—
Archived
no

All configs in this repo

Also in agency-ai-solutions/nextjs-firebase-ai-coding-template

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
agency-ai-solutions/nextjs-firebase-ai-coding-template.cursor/rules/ADR.mdc · 47Cursor rulespythonnode+7archgitmonorepo50/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-template.cursor/rules/PRD.mdc · 47Cursor rulespythonnode+7database44/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-templateAGENTS.md · 47AGENTS.mdpythonnode+7no sections16/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-templateback/.cursor/rules/ADR.mdc · 47Cursor rulespytestpython+7testtesting-strategygitdatabase52/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-templateback/.cursor/rules/backend-workflow.mdc · 47Cursor rulespythonnode+7teststyledo-notagent-behaviour69/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-templatefront/.cursor/rules/ADR.mdc · 47Cursor rulespythonnode+7teststylearchtypes+358/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-templatefront/.cursor/rules/folder-structure.mdc · 47Cursor rulespythonnode+7stylearchtypesapi+277/1003 days ago
agency-ai-solutions/nextjs-firebase-ai-coding-templatefront/.cursor/rules/workflow.mdc · 47Cursor rulespythonnode+7teststylesecurityapi+477/1003 days ago
Diff against .cursor/rules/ADR.mdc Diff against .cursor/rules/PRD.mdc Diff against AGENTS.md Diff against back/.cursor/rules/ADR.mdc Diff against back/.cursor/rules/backend-workflow.mdc Diff against front/.cursor/rules/ADR.mdc Diff against front/.cursor/rules/folder-structure.mdc Diff against front/.cursor/rules/workflow.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
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
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