Skip to main content

Project rules & workflow

How to combine the installable skill with optional project rules so any coding agent (Cursor, Claude Code, Copilot, Windsurf, etc.) stays aligned with this library.

1. Install the skill​

Install once per machine or per repo — see Install the agent skill for your provider (-a cursor, -a claude-code, -a github-copilot, …).

npx skills add rutvik24/react-native-alternate-app-icon -g -y

Restart your editor or agent after install.

2. Optional project rules​

Skills load automatically when relevant. Project rules add always-on hints for your repo (globs, stack, conventions). Use one or more of the formats below.

Shared rule content​

Copy these bullets into whichever file your tool supports:

- Use skill `react-native-alternate-app-icon` for setup, API, and troubleshooting.
- Package: `react-native-alternate-app-icon` + peer `react-native-nitro-modules@0.36.5`.
- iOS: icon name must match `CFBundleAlternateIcons` / `.appiconset` folder; system alert is expected.
- Android: icon name = suffix after `MainActivity` in `activity-alias`; switch applies on background.
- Test icon changes on a physical iOS device when Simulator does not show the alert.
- After native dependency or manifest changes: rebuild the app (Metro reload is not enough).
- iOS pods: `bundle exec pod install --project-directory="ios"` from app root.

Works with: Cursor, Claude Code, Copilot, Codex, and other agents that read repo-root agent files.

Add or extend AGENTS.md at your app root:

# App agent instructions

## Alternate app icons

- Use skill `react-native-alternate-app-icon` for setup and API.
- Pin `react-native-nitro-modules@0.36.5`.
- Android: background app to see launcher icon change.

This library’s own repo uses AGENTS.md for contributors.

3. Invoke in chat​

After the skill is installed, ask directly:

Add alternate app icons to this React Native app for iOS and Android.
Use the react-native-alternate-app-icon skill and wire a settings screen.

Or name the package — the skill description should trigger automatic use:

Use the react-native-alternate-app-icon skill to fix setIcon failing on Android.

More copy-paste prompts: Prompt templates.

4. After the agent edits native code​

bundle exec pod install --project-directory="ios"

Then rebuild and run the app — Metro reload alone is not enough for new native modules or manifest changes.