paperclip-hub: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from lacymorrow/paperclip-hub. It costs 1,753 tokens per session, scanned A, original, MIT.

Project instructions for a Next.js application using TypeScript, React, Tailwind CSS, authentication, content tools, and a database-backed starter setup. It also tells an agent to keep plans in an `ai.mdx` file and record completed work.

In plain words
What is it for?
Use it when planning or changing this Next.js codebase. It guides technology choices, authentication, UI components, configuration-based features, and recording implementation progress.
Why use it?
It gives contributors the project's technology choices and working conventions in one place. The planning rule helps another agent continue work without losing the previous steps.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is lacymorrow/paperclip-hub's own configuration. It tells Cursor how to work on paperclip-hub 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 paperclip-hub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lacymorrow/paperclip-hub. 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/lacymorrow/paperclip-hub/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/lacymorrow/paperclip-hub

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/cursorrules/github.svg)](https://agentmods.dev/rules/lacymorrow/paperclip-hub/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/cursorrules"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/cursorrules"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,753 This file is loaded in full into every session.
When invoked 1,753 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.01753 $0.01753
Opus 5.5 $0.00701 $0.00701
Sonnet 5.5 $0.00351 $0.00351
Haiku 4.5 $0.00175 $0.00175

Measured yesterday against content hash 4a71256d6d42, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules 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 yesterday.

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.

.cursorrules · 189 lines

How it starts

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

Shipkit Rules

You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.

This is a Next.js project using App Router, Shadcn/UI, Tailwind, Resend, Builder.io, Payload CMS v3, NextAuth/AuthJS v5, TypeScript, using Bun as the package manager.

Be aware of the latest versions of all libraries. Your plans should be documented into a ai.mdx file. Check to see if it exists. If it does, pick up where you left off. Mark completed steps with a checkbox. Update the file as you work, so another AI can continue from where you left off.

Shipkit is a premium starter boilerplate for Next.js that allows customers to opt in to features by adding environment variables.

For example, you may launch with no environment variables at all. Adding a database will enable features like payload CMS. Adding a builder.io API key will enable the builder.io integration.

Key Principles

  • Authentication uses NextAuth/AuthJS v5.
  • Authentication with credentials uses payload CMS user management.
  • Use the Shadcn/UI components and styles when possible. This means colors, fonts, spacing, border-radius, etc. are already set up.

Code sacred beliefs

  • Thou shalt Make files small and discrete. When possible keep files under 500 lines, if at all possible.
  • Thou shalt Write concise, technical TypeScript code with accurate examples.
  • Thou shalt Use functional and declarative programming patterns; avoid classes.
  • Thou shalt Prefer iteration and modularization over code duplication.
  • Thou shalt Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
  • Thou shalt Structure files: exported component, subcomponents, helpers, static content, types.
  • Thou shalt Use the simplest solution first and only add complexity when necessary.

React State Management

  • Avoid circular dependencies between state variables that can cause infinite update loops
  • Don't update state directly inside useEffect without dependencies or conditions
  • Don't use useState and useEffect when a single state update function would suffice
  • When synchronizing two state variables, use a single source of truth approach
  • For local storage integration, ensure state updates don't trigger unnecessary re-renders
  • Prefer unidirectional data flow: parent state flowing to children
  • When using multiple state variables that change together, consider useReducer
  • Carefully analyze effects to avoid unwanted side effects and re-renders
  • When a state update depends on previous state, always use the functional form (prev => ...)
  • For complex state transitions, implement dedicated state management functions rather than direct setters

Read the full file on GitHub · 189 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. yesterday First seen · 189 lines · 1,753 tokens per session scan A 4a71256d6d42

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository lacymorrow/paperclip-hub (15 stars, last pushed yesterday), licensed MIT. It adds 1,753 tokens to every session, about $0.0070 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-11-10.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorruleslacymorrow/paperclip-hubCursor rule15yesterdayMITA1,753Cursor
update-ai-sdkgiselles-ai/giselleCursor rule560yesterdayApache-2.0A11Cursor
functionsthedaviddias/llms-txt-hubCursor rule926yesterdaynoneA506Cursor
technical-stackKaelSensei/MagicAIBuilderCursor rule2todayMITA1,259Cursor
typescript-code-generation-rulesWebDevPeterGriffin/The-VibeCode-BibleCursor rule427d agononeA402Cursor
typescript-coding-styleWebDevPeterGriffin/The-VibeCode-BibleCursor rule427d agononeA128Cursor
react-and-typescript-general-rulesWebDevPeterGriffin/The-VibeCode-BibleCursor rule427d agononeA142Cursor