RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/carrot-foundation/middle-earth

Cursor rule

.cursor/rules/code-preservation.mdc

Code preservation rules - never delete or revert code without explicit approval

Cursor rules

Quality

32/100

Scores the file, not the repository.

Length

114 words

4 headings · 0 code blocks

Repository

0

— · pushed 4 days ago

Last changed

3 days ago

First indexed 3 days ago.
carrot-foundation/middle-earth/.cursor/rules/code-preservation.mdcRawGitHub
1---
2description: 'Code preservation rules - never delete or revert code without explicit approval'
3globs:
4 - '*'
5alwaysApply: true
6---
7 
8# Code preservation
9 
10## Core principle
11 
12Never delete, revert, or discard code without explicit user approval. When fixing bugs or resolving conflicts, preserve all existing changes.
13 
14## Requirements
15 
16- **Minimal changes**: Fix only what is broken.
17- **Root cause**: Address the underlying issue, not symptoms.
18- **No collateral damage**: Do not modify unrelated code.
19- **Preserve existing changes**: Never discard work in progress.
20 
21## When modifying code
22 
23- Before deleting any code, explain why and get approval.
24- When resolving merge conflicts, preserve both sides when possible.
25- When fixing test failures, fix the test or the code — do not delete either.
26- When refactoring, preserve behavior; rename instead of delete when practical.
27 

Sections

  • Code preservation
  • Core principle
  • Requirements
  • When modifying code

What it covers

do-not

Stack — with the evidence

typescript

(1.00)

node

(1.00)

nx

(1.00)

jest

(1.00)

eslint

(1.00)

react

(0.70)

nextjs

(0.70)

vitest

(0.70)

aws

(0.70)

javascript

(0.60)

monorepo

(0.60)

pnpm

(0.60)

terraform

(0.60)

github-actions

(0.60)

Glob targeting

  • *

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
carrot-foundation
Language
—
License
—
Archived
no

All configs in this repo

Also in carrot-foundation/middle-earth

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
carrot-foundation/middle-earth.cursor/rules/bmad.mdc · 0Cursor rulestypescriptnode+12gitdo-not51/1003 days ago
carrot-foundation/middle-earth.cursor/rules/branch-naming.mdc · 0Cursor rulestypescriptnode+12lint-formatstylegitdo-not45/1003 days ago
carrot-foundation/middle-earth.cursor/rules/code-comments.mdc · 0Cursor rulestypescriptnode+12styletypesdocs48/1003 days ago
carrot-foundation/middle-earth.cursor/rules/code-style.mdc · 0Cursor rulestypescriptnode+12lint-formatstylearchdependencies+156/1003 days ago
carrot-foundation/middle-earth.cursor/rules/commit.mdc · 0Cursor rulestypescriptnode+12testlint-formattypesgit58/1003 days ago
carrot-foundation/middle-earth.cursor/rules/documentation.mdc · 0Cursor rulestypescriptnode+12lint-formatstylearchdocs42/1003 days ago
carrot-foundation/middle-earth.cursor/rules/pull-request-description.mdc · 0Cursor rulestypescriptnode+12git39/1003 days ago
carrot-foundation/middle-earth.cursor/rules/pull-request.mdc · 0Cursor rulestypescriptnode+12lint-formatgitagent-behaviour69/1003 days ago
carrot-foundation/middle-earth.cursor/rules/testing.mdc · 0Cursor rulestypescriptnode+12teststyletesting-strategy73/1003 days ago
carrot-foundation/middle-earth.cursor/rules/typescript.mdc · 0Cursor rulestypescriptnode+12buildlint-formatstylearch+159/1003 days ago
carrot-foundation/middle-earthAGENTS.md · 0AGENTS.mdtypescriptnode+12setupbuildtestlint-format+797/1003 days ago
carrot-foundation/middle-earthCLAUDE.md · 0CLAUDE.mdtypescriptnode+12setupbuildtestlint-format+697/1003 days ago
Diff against .cursor/rules/bmad.mdc Diff against .cursor/rules/branch-naming.mdc Diff against .cursor/rules/code-comments.mdc Diff against .cursor/rules/code-style.mdc Diff against .cursor/rules/commit.mdc Diff against .cursor/rules/documentation.mdc Diff against .cursor/rules/pull-request-description.mdc Diff against .cursor/rules/pull-request.mdc Diff against .cursor/rules/testing.mdc Diff against .cursor/rules/typescript.mdc Diff against AGENTS.md Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack