template-repo

template-repo is a cursor rule for Cursor from BOXELS/cursor-rules. It costs 461 tokens per session, scanned A, original, MIT.

A set of Cursor editor rules for publishing a reusable project template, not for building an application. Its placeholders are intentionally left blank for people who copy the template into a new project.

In plain words
What is it for?
Use it when maintaining or copying the Cursor rules template and when deciding which files and commands belong in the template repository.
Why use it?
It prevents maintainers from accidentally filling template placeholders, running setup commands, or adding application code to the template repository. This keeps the shipped starter files reusable.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit Use it when maintaining or copying the Cursor rules template and when deciding which files and commands belong in the template repository.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/boxels/cursor-rules/template-repo
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.

Clone the repo
git clone --depth 1 https://github.com/BOXELS/cursor-rules

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 template-repo

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/boxels/cursor-rules/template-repo"><img src="https://agentmods.dev/badge/rules/boxels/cursor-rules/template-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 461 This file is loaded in full into every session.
When invoked 461 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.00461 $0.00461
Opus 5 $0.00230 $0.00230
Sonnet 5 $0.00092 $0.00092
Haiku 4.5 $0.00046 $0.00046

Measured today against content hash cb6001d42c00, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, from the pricing page.

Security

Grade A, and why

template-repo 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 today.

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/template-repo.mdc · 29 lines

What it actually says

Template repository

This repo publishes the Cursor .cursor/ starter template. It is not an application.

The shipped product is these eight files: global-rules.mdc, models.mdc, product.mdc, tech.mdc, security.mdc, design.mdc, structure.mdc, and documentation.mdc. Their [bracketed placeholders] are intentional. This file is maintainer-only — do not copy it into downstream projects.

Do not

  • Do not replace placeholders in the eight shipped files except when authoring the template (changing the prompt, adding an example, fixing a guardrail).
  • Do not run /setup-rules here. That interview fills placeholders and would destroy the template. If the user types it anyway, the skill asks whether they are maintaining the template or converting a clone into a new project — wait for that answer.
  • Do not add app scaffolding (src/, app/, APIs, databases, UI kits, env files, hosting config) unless the user explicitly wants a demo.
  • Do not treat the product/tech/structure placeholders as this repo's stack. Those describe a future consumer app.

Do

  • Copiers take the eight rules, both skills, and AGENTS.md — not this file.
  • Treat README.md, .cursor/skills/, AGENTS.md, and this file as the maintainer surface.
  • Keep the eight shipped files stack-agnostic. Examples in brackets are options, not this repo's stack.
  • When a change affects how copies are used, update README.md in the same change.

Hard-tier work here: the /setup-rules interview, rule frontmatter (.mdc, alwaysApply, globs), skill contracts, and AGENTS.md. Everyday-tier: README copy, wording, single-file template tweaks.

The other eight always-on rules still load. This file wins on identity.

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. today First seen · 29 lines · 461 tokens per session scan A cb6001d42c00

Subscribe to this mod's changes

template-repo is a cursor rule published in the GitHub repository BOXELS/cursor-rules (6 stars, last pushed yesterday), licensed MIT. It adds 461 tokens to every session, about $0.0023 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-09-16.