agentleFS
software-mansionsoftware-mansion/react-native-enriched/.cursor/rules/argent.mdc

react-native-enriched / rules

Cursor rule1.4k starsChanged 4 days agoMITView on GitHub

Always-on Argent rules for driving, testing and profiling apps on simulators, emulators, phones, TVs and Chromium

  • Installs packages

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 4 mentionsJul 2026: 4 mentionsAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the software-mansion/react-native-enriched repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about software-mansion/react-native-enriched

The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 15

Talked about on GitHub and Bluesky (15 times).

On GitHub · 14

9 more on GitHub

On Bluesky · 1

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this argent.mdc into the rules it gives an agent

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    do not derive tap coordinates from screenshot pixels.

    line 8
  2. Very specific:

    use the platform the user named.

    line 9
  3. Distinctive:

    if tap fails twice, stop retrying and re-run a discovery tool

    line 10
  4. Very specific:

    Prefer mcp-tool calls over raw commands like xcrun or adb.

    line 11
  5. Very specific:

    prefer launch-app or open-url than tapping icons on home screen.

    line 13
  6. Very specific:

    If a task can require a saved e2e test, load argent-create-e2e (argent-qa-e2e for acceptance tests) before the first launch or in-app …

    line 14
  7. Very specific:

    Use the await-ui-element tool to block until the UI settles instead of polling using screenshot.

    line 17
  8. Distinctive:

    Run this check once per session.

    line 21
  9. Very specific:

    If unsure, run command -v argent.

    line 25
  10. Distinctive:

    If argent IS available, ignore the rest of this block and follow this rule normally.

    line 27
  11. Very specific:

    If argent is ABSENT, treat it as an expected state, not an error to retry.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
argent.mdc
---
description: Always-on Argent rules for driving, testing and profiling apps on simulators, emulators, phones, TVs and Chromium
alwaysApply: true
---

Argent - general rules:

- do not derive tap coordinates from screenshot pixels; use inspection tools that give coordinates
- use the platform the user named; otherwise prefer a device `list-devices` shows already running, and don't default to iOS; in a single-platform project boot that platform.
- if tap fails twice, stop retrying and re-run a discovery tool
- Prefer mcp-tool calls over raw commands like `xcrun` or `adb`; use them as fallback.
- Interaction tools return screenshot and element tree automatically; an identical earlier tree is named by its tree id, not repeated.
- prefer `launch-app` or `open-url` than tapping icons on home screen.
- If a task can require a saved e2e test, load `argent-create-e2e` (`argent-qa-e2e` for acceptance tests) before the first launch or in-app action; recording is not retroactive.
- Load the matching `argent-*` skill before React Native build/debug, profiling, a physical phone, a Mac app or a TV.
- Do not stop simulator servers when a task finishes: the next task reuses them. Call `stop-all-simulator-servers` when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services, with devices this session used. One tool-server is shared by every other agent, so unscoped call tears down their devices too. Never stop a Metro the user started unless they ask.
- Use the `await-ui-element` tool to block until the UI settles instead of polling using screenshot.
- The `argent` CLI manages the toolkit: `argent --help` lists commands, `argent --version` shows the installed version.

<availability_check>
Run this check once per session. Do not re-probe before later calls.
Confirm argent is available:

1. Are `mcp__argent__*` tools in your tool list? If none, argent is not available.
2. If unsure, run `command -v argent`. Non-zero exit = the CLI is not on PATH.

If argent IS available, ignore the rest of this block and follow this rule normally.

If argent is ABSENT, treat it as an expected state, not an error to retry. Do not call `mcp__argent__*` tools, do not run `argent` commands, do not attempt any argent workflow.
Tell the user once, and ask if you should continue without argent:

> Argent isn't installed in this environment. To enable the mobile/Chromium tooling this repo is configured for, run `npx @swmansion/argent@latest init -y` (or `npm i -g @swmansion/argent@latest && argent init -y`).

</availability_check>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.