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.
curl -O https://raw.githubusercontent.com/crypticsaiyan/githubwrapped/main/.cursor/architecture/architecture.mdcgit clone --depth 1 https://github.com/crypticsaiyan/githubwrappedWrote 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.
[](https://agentmods.dev/rules/crypticsaiyan/githubwrapped/architecture)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
/srcfolder (recommended) - Familiar pattern for most developers/stepsfolder - 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
.stepbefore language extension
Python
- Use snake_case for filenames:
data_processor_step.py - Include
_stepbefore language extension
Global
- Match handler names to config names
- Use descriptive, action-oriented names
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.
- 2mo ago First seen · 193 lines · 1,351 tokens per session scan A 1765f8cf9285
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.
architecture compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| architecturecrypticsaiyan/githubwrapped | Cursor rule | 5 | 10mo ago | MIT | A | 1,351 | Cursor |
| ci-cd-workflowsmondaycom/vibe | Cursor rule | 693 | yesterday | none | A | 0 | Cursor |
| project-contextvypdev/copilot | Cursor rule | 3 | yesterday | MIT | A | 279 | Cursor |
| code-conventionsvypdev/copilot | Cursor rule | 3 | yesterday | MIT | A | 0 | Cursor |
| task-summarylaaibaQasim/productivity-kit | Cursor rule | 4 | 6mo ago | MIT | A | 488 | Cursor |
| mintlifyTheSethRose/Copilot-Skills | Cursor rule | 3 | 11mo ago | MIT | B | 2,203 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 185k | 8d ago | MIT | A | 604 | Cursor |