githubwrapped: Cursor rule for Cursor

.cursor/architecture/architecture.mdc

architecture is a cursor rule for Cursor from crypticsaiyan/githubwrapped. It costs 1,351 tokens per session, scanned A, original, MIT.

An architecture guide for Motia projects, a framework that discovers workflow steps from project files. It describes organizing API endpoints, event handlers, scheduled tasks, business logic, data access, and utilities under /src or /steps.

In plain words
What is it for?
Use it when deciding where to put Motia steps and supporting code, including APIs, event handlers, scheduled jobs, services, repositories, and utilities.
Why use it?
It gives a consistent place for each kind of code, making a Motia project easier to understand and maintain.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is crypticsaiyan/githubwrapped's own configuration. It tells Cursor how to work on githubwrapped itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything githubwrapped configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { authService } from '../services/auth'.

Reuse

Borrowing it

Nothing to install: this file belongs to crypticsaiyan/githubwrapped. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/crypticsaiyan/githubwrapped/main/.cursor/architecture/architecture.mdc
Clone the repo
git clone --depth 1 https://github.com/crypticsaiyan/githubwrapped

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architecture

README.md
[![agentmods](https://agentmods.dev/badge/rules/crypticsaiyan/githubwrapped/architecture/github.svg)](https://agentmods.dev/rules/crypticsaiyan/githubwrapped/architecture)
Your own site
<a href="https://agentmods.dev/rules/crypticsaiyan/githubwrapped/architecture"><img src="https://agentmods.dev/badge/rules/crypticsaiyan/githubwrapped/architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for architecture

Your own site · 80×15
<a href="https://agentmods.dev/rules/crypticsaiyan/githubwrapped/architecture"><img src="https://agentmods.dev/badge/rules/crypticsaiyan/githubwrapped/architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,351 This file is loaded in full into every session.
When invoked 1,351 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01351 $0.01351
Opus 5.5 $0.00540 $0.00540
Sonnet 5.5 $0.00270 $0.00270
Haiku 4.5 $0.00135 $0.00135

Measured 2mo ago against content hash 1765f8cf9285, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/architecture/architecture.mdc · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Architecture Guide

Overview

This guide covers the architecture and best practices for structuring Motia projects.

Key Takeaway: Motia automatically discovers steps from anywhere in your project. Modern projects use /src for a familiar structure that works seamlessly with Domain-Driven Design.

File Structure

Motia automatically discovers step files from your project. You can organize steps in either:

  • /src folder (recommended) - Familiar pattern for most developers
  • /steps folder - Traditional Motia pattern
  • Both folders simultaneously

Recommended Structure (using /src)

project/
├── src/
│   ├── api/           # API endpoints
│   │   ├── users.step.ts
│   │   └── orders.step.ts
│   ├── events/        # Event handlers
│   │   ├── order-processing.step.ts
│   │   └── notifications.step.ts
│   ├── cron/          # Scheduled tasks
│   │   └── cleanup.step.ts
│   ├── services/      # Business logic
│   ├── repositories/  # Data access
│   └── utils/         # Utilities
└── motia.config.ts

Alternative Structure (using /steps)

project/
├── steps/
│   ├── api/
│   │   └── users.step.ts
│   ├── events/
│   │   └── order-processing.step.ts
│   └── cron/
│       └── cleanup.step.ts
├── src/
│   ├── services/
│   └── utils/
└── motia.config.ts

Create subfolders within your chosen directory to organize related steps into logical groups (domains, features, or flows).

Why /src is recommended:

  • Familiar to developers from other frameworks (Next.js, NestJS, etc.)
  • Natural co-location with services, repositories, and utilities
  • Works seamlessly with Domain-Driven Design patterns
  • Cleaner project root with fewer top-level folders

Step Naming Conventions

Typescript

  • Use kebab-case for filenames: resource-processing.step.ts
  • Include .step before language extension

Python

  • Use snake_case for filenames: data_processor_step.py
  • Include _step before language extension

Global

  • Match handler names to config names
  • Use descriptive, action-oriented names

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 193 lines · 1,351 tokens per session scan A 1765f8cf9285

Subscribe to this mod's changes

architecture is a cursor rule published in the GitHub repository crypticsaiyan/githubwrapped (5 stars, last pushed 10mo ago), licensed MIT. It adds 1,351 tokens to every session, about $0.0054 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

architecture compared with cursor rules from other repositories

architecture next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecturecrypticsaiyan/githubwrappedCursor rule510mo agoMITA1,351Cursor
ci-cd-workflowsmondaycom/vibeCursor rule693yesterdaynoneA0Cursor
project-contextvypdev/copilotCursor rule3yesterdayMITA279Cursor
code-conventionsvypdev/copilotCursor rule3yesterdayMITA0Cursor
task-summarylaaibaQasim/productivity-kitCursor rule46mo agoMITA488Cursor
mintlifyTheSethRose/Copilot-SkillsCursor rule311mo agoMITB2,203Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor