All skills
neha avatar

/critical-rules

@e775372

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

This session only. Nothing lands on disk.

SKILL.md

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

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 alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a comprehensive security and stability checklist for React Native development. It contains no executable code, external dependencies, or malicious instructions.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

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

Last checked against GitHub yesterday.

Activeupdated 2 days 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