Index of every page on this site: llms.txt
All skills
neha avatar

/critical-rules

@eb9f097
Run it yourself

Non-negotiable React Native crash and secret checks. Use on every change, and only on lines the diff touches.

Use this Skill: https://skilld.dev/gh/neha/rn-developer-skills/critical-rules

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈31 tokens for metadata: the name and description. ≈549 when used: this file.

Description uses 1.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈126 characters, or 1.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Critical Rules

Applicability

  • Platforms: iOS and Android
  • React Native: 0.76+ (New Architecture interop assumed unless a checklist item says otherwise)

When to Use

  • On every React Native change, on the lines the diff touches
  • Before merging any code that renders text, calls hooks, or logs

Loading and error UI, form preservation, and network retries live in the focused skills. Open those only when the diff touches them.

Severity

Every check below is merge-blocking, and only when the offending line is in the diff.

Guidance

File a finding only on a line this diff adds or edits.

Crashes

  • Never render undefined, null, NaN, or objects as JSX text (crashes Android)
  • {count && <Text>} avoided — a count of 0 is falsy and the text node is wrong; use count > 0 &&
  • Hooks are not called conditionally or inside loops
  • Components are not defined inside other components
  • State is not updated after unmount

Incorrect:

{count && <Text>{count} items</Text>}

Correct:

{count > 0 && <Text>{count} items</Text>}

Secrets

  • No secrets, API keys, or tokens hardcoded in the diff
  • No names, emails, or payment data logged to the console or a crash report from the diff

Owned elsewhere

Open the other skill only when the diff touches that concern. Do not re-check it here.

Pitfalls

  • A pre-existing {count && <Text>} on a line the diff does not touch is not a must-fix for this change.
  • Text rendered from 0 is owned by this skill. Do not file it again from another skill.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts9d3 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    The skill provides a set of best-practice guidelines for reviewing React Native code for common crash patterns and hardcoded secrets. It contains no executable scripts, network requests, or sensitive file access.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

Signed by skilld at eb9f097. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago
version
2.1.0
platforms
[
  "ios",
  "android"
]
react-native-version
0.76+
Other metadata
tags
[
  "react-native",
  "safety",
  "crashes",
  "data-loss"
]

README badge

README badge for neha/rn-developer-skills/critical-rules