Urgent.News

What's breaking now, across thousands of outlets.

Tech

Turn Your Cursor Rules Into One Root AGENTS.md

Most of my repos still have Cursor rules in some form. Sometimes a dusty .cursorrules at the root. Sometimes a pile of .mdc files under .cursor/rules/ . Sometimes rules I typed in the UI and never exported. That is fine for Cursor. It is annoying when the same repo also needs a short brief at the root — AGENTS.md , or CLAUDE.md if that is what the team agreed on. Those files do not appear by…

Many of the reporter's repositories still contain Cursor rules in various forms, such as a dusty .cursorrules file at the root, or a collection of .mdc files under .cursor/rules/. Some rules are even typed directly in the UI and never exported. While Cursor handles these rules well, the reporter finds it annoying that the same repository also requires a root file like AGENTS.md or CLAUDE.md. These files do not appear automatically and often end up with multiple versions that differ slightly.

The reporter's solution to this issue is a simple workflow. First, gather the existing information from the repositories. This includes the text in .cursorrules if available, the useful bits from .cursor/rules/*.mdc, and any build/test/do not edit notes you would share with a new hire. It is essential to copy paths and commands exactly, as they should remain unchanged under the matching heading. If a converter rewrites these into vaguer English, discard that output.

Next, organize the gathered information into the same headings every time. The reporter uses eight sections for this process, which includes project overview, coding conventions, architecture constraints, do/don't guidelines, file and folder scope, PR and commit expectations, testing, and any other relevant information. If no information is available for a particular section, leave it as "Not specified."

Then, combine the content into a single source of truth file, depending on the tool that will open the repository. The reporter suggests using AGENTS.md for a common shared root brief, CLAUDE.md for when that is the house standard, and a shorter version for a one-off local brief. This way, there is only one source of truth for what the team has said, and the format can be flipped depending on the runner.

Finally, commit the root file so that a fresh clone receives the same brief. Keep UI-only or Cursor-only tips under .cursor/rules/, as other tools do not need Cursor UI preferences. The reporter provides a raw paste example and a sorted root file as examples of how the content should be structured. This approach ensures that the root file is short enough to skim, with do/don't guidelines in bullet form, test and lint commands copy-pasteable, and path globs matching the real tree structure.

Finally, the reporter reminds teammates that the root file should be checked in, short, and kept current, while Cursor-only details should remain under .cursor/rules/.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

What makes a batch file rename safe to undo?

An Undo button is useful only if the application still knows what happened to each file—and can explain when going back is no longer possible. I build RenamerX, a desktop file renamer.

  • RenamerX shows original, proposed names and destination together
  • Preview catches mistakes early, like wrong dates or names
  • Undo requires mapping original to applied paths and operation outcomes

How Do You Pick the Cover Frame for a Hit the Road Dude Clip? A Sharpness-and-Exposure Picker With ffmpeg and NumPy

When you post a Hit the Road Dude clip, the State Property meme where a driver at a pickup window repeats "State?" and sends someone off, the cover frame decides whether anyone taps it.

  • Sharpness determined by Laplacian variance of blurred frames
  • Exposure assessed by mean brightness and crushed pixel share
  • Frames from clip edges avoided, top timestamps printed for final decision

Rounding is a business rule: what your fee calculation actually charges

A fee calculator is mostly arithmetic, and the arithmetic is mostly correct. The part that produces support tickets is the last step: rounding. It looks like formatting.

  • Rounding is a business rule, not a technical choice
  • Store rounding mode as data, use Decimal end-to-end
  • Test tie cases, negative scenarios, and reconciliation

More from Tuesday 10 November →