project-structure

project-structure is a cursor rule for Cursor from maccman/ai-monorepo-scaffold. It costs 236 tokens per session, scanned A, original, MIT.

A guide to the folders and packages in a monorepo, which is one repository containing multiple applications and shared code packages.

In plain words
What is it for?
It is for navigating the Astro and React web app, tRPC API, Kysely database package, and shared utilities.
Why use it?
It helps developers understand where the frontend, API, database code, and shared utilities belong.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/maccman/ai-monorepo-scaffold/project-structure
Clone the repo
git clone --depth 1 https://github.com/maccman/ai-monorepo-scaffold

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 project-structure

README.md
[![agentmods](https://agentmods.dev/badge/rules/maccman/ai-monorepo-scaffold/project-structure.svg)](https://agentmods.dev/rules/maccman/ai-monorepo-scaffold/project-structure)
Your own site
<a href="https://agentmods.dev/rules/maccman/ai-monorepo-scaffold/project-structure"><img src="https://agentmods.dev/badge/rules/maccman/ai-monorepo-scaffold/project-structure.svg" alt="Measured on agentmods" height="20"></a>
Per session 236 This file is loaded in full into every session.
When invoked 236 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00236 $0.00236
Opus 5 $0.00118 $0.00118
Sonnet 5 $0.00047 $0.00047
Haiku 4.5 $0.00024 $0.00024

Measured 6d ago against content hash b2a12a49a16c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

project-structure 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 6d 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/rules/project-structure.mdc · 24 lines

What it actually says

Project Structure

This document outlines the structure of the monorepo, detailing the purpose of each package and application directory.

apps/

This directory contains the applications of the monorepo.

  • apps/web: This is the main frontend application, built with Astro and React. It includes all UI components, pages, layouts, and client-side logic.

packages/

This directory contains shared packages used by the applications.

  • packages/api: This package holds the tRPC API. It's responsible for defining API procedures, business logic, and type-safe communication between the client and server.

  • packages/db: This package manages all database-related concerns. It uses Kysely for type-safe query building and contains the database schema, migrations, and seeding scripts.

  • packages/utils: A collection of shared utility functions and types that are used across different packages and applications within the monorepo.

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. 6d ago First seen · 24 lines · 236 tokens per session scan A b2a12a49a16c

Subscribe to this mod's changes

project-structure is a cursor rule published in the GitHub repository maccman/ai-monorepo-scaffold (304 stars, last pushed 10mo ago), licensed MIT. It adds 236 tokens to every session, about $0.0012 per session on Opus 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-30.