agentleFS
jimmypocockjimmypocock/cursor-rules/.cursor/rules/expo.mdc

cursor-rules / rules

Cursor rule8 starsChanged 19 months agoMITView on GitHub

Expo Development Standards

The file

Show its rules and text

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

45 rules. About 0 are common, 44 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈44

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use app.json/app.config.js for configuration

    line 17
  2. Distinctive:

    Use Expo CLI for development

    line 27
  3. Distinctive:

    Use Expo Go for rapid development

    line 30
  4. Distinctive:

    Create custom development clients when needed

    line 32
  5. Distinctive:

    Use proper publishing workflows

    line 33
  6. Distinctive:

    Use EAS Build for production builds

    line 37
  7. Distinctive:

    Use EAS Submit for store submissions

    line 41
  8. Distinctive:

    Use EAS Metadata for store listings

    line 44
  9. Distinctive:

    Use Expo SDK modules appropriately

    line 47
  10. Distinctive:

    Use Expo Router for navigation when appropriate

    line 49
  11. Distinctive:

    Use Expo's notification system properly

    line 51
  12. Distinctive:

    Use Expo's asset system for resources

    line 54
  13. Distinctive:

    Use Expo Auth Session appropriately

    line 58
  14. Distinctive:

    Create proper authentication state management

    line 61
  15. Distinctive:

    Create proper authentication UI flows

    line 64
  16. Distinctive:

    Use Expo Router or React Navigation

    line 67
  17. Distinctive:

    Use proper stack management

    line 72
  18. Distinctive:

    Create appropriate transition animations

    line 73
  19. Distinctive:

    Use Expo's asset system for images and fonts

    line 77
  20. Distinctive:

    Create proper asset preloading

    line 80
  21. Distinctive:

    Use Expo Image for optimized images

    line 81
  22. Distinctive:

    Use asset bundling appropriately

    line 84
  23. Distinctive:

    Use Hermes engine for improved performance

    line 88
  24. Distinctive:

    Create optimized list rendering

    line 90
  25. Distinctive:

    Use proper image optimization

    line 91
  26. Distinctive:

    Use performance monitoring tools

    line 94
  27. Distinctive:

    Create proper version management

    line 99
  28. Distinctive:

    Use proper update rollout strategies

    line 100
  29. Distinctive:

    Create appropriate user communication for updates

    line 103
  30. Distinctive:

    Use proper update event handling

    line 104
  31. Distinctive:

    Create appropriate sync mechanisms

    line 108
  32. Distinctive:

    Use proper conflict resolution strategies

    line 109
  33. Distinctive:

    Use proper network state detection

    line 112
  34. Distinctive:

    Create resilient API interactions

    line 113
  35. Distinctive:

    Use Expo's testing tools

    line 117
  36. Distinctive:

    Create component tests with Testing Library

    line 119
  37. Distinctive:

    Use Jest for test running

    line 120
  38. Distinctive:

    Create proper test fixtures

    line 122
  39. Distinctive:

    Use proper mocking strategies

    line 123
  40. Distinctive:

    Use proper versioning for releases

    line 127
  41. Distinctive:

    Create proper release notes

    line 131
  42. Distinctive:

    Use proper release management workflows

    line 134
  43. Distinctive:

    Use secure storage for sensitive data

    line 138
  44. Distinctive:

    Create appropriate permission handling

    line 141
  45. Distinctive:

    Use proper certificate pinning

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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
expo.mdc
---
description: Expo Development Standards
globs: 
alwaysApply: false
---
---
Description: Expo Development Standards
Globs: **/*.tsx, **/*.jsx, **/*.ts, **/*.js, **/expo.config.js, **/app.json
---

# Expo Development Standards
@base.mdc
@typescript.mdc
@react-native.mdc

## Project Configuration
- Use app.json/app.config.js for configuration
- Implement proper versioning strategy
- Configure proper app identifiers
- Set up splash screen and app icon properly
- Configure proper orientation settings
- Implement proper permissions handling
- Set up proper navigation structure
- Configure build settings appropriately

## Expo Workflow
- Use Expo CLI for development
- Implement proper environment variables
- Configure development build correctly
- Use Expo Go for rapid development
- Implement proper production builds
- Create custom development clients when needed
- Use proper publishing workflows
- Implement proper version control with Expo

## EAS (Expo Application Services)
- Use EAS Build for production builds
- Implement EAS Update for over-the-air updates
- Configure proper EAS profiles
- Set up appropriate build triggers
- Use EAS Submit for store submissions
- Implement proper environment secrets
- Configure proper build cache settings
- Use EAS Metadata for store listings

## Expo Libraries
- Use Expo SDK modules appropriately
- Implement proper module version compatibility
- Use Expo Router for navigation when appropriate
- Implement proper media handling with Expo
- Use Expo's notification system properly
- Implement proper authentication with Expo Auth
- Configure Expo FileSystem for storage
- Use Expo's asset system for resources

## Authentication
- Implement secure authentication flows
- Use Expo Auth Session appropriately
- Configure proper auth providers
- Implement secure token storage
- Create proper authentication state management
- Implement proper session management
- Configure proper authentication error handling
- Create proper authentication UI flows

## Navigation
- Use Expo Router or React Navigation
- Implement proper deep linking
- Configure proper navigation state persistence
- Create type-safe navigation
- Implement proper navigation guards
- Use proper stack management
- Create appropriate transition animations
- Implement proper navigation context

## Asset Management
- Use Expo's asset system for images and fonts
- Implement proper asset caching
- Configure appropriate asset loading strategies
- Create proper asset preloading
- Use Expo Image for optimized images
- Implement proper image resizing
- Configure proper font loading
- Use asset bundling appropriately

## Performance
- Optimize JavaScript bundle size
- Use Hermes engine for improved performance
- Implement proper memory management
- Create optimized list rendering
- Use proper image optimization
- Implement appropriate caching strategies
- Configure proper native module optimization
- Use performance monitoring tools

## Over-the-Air Updates
- Implement proper OTA update strategies
- Configure update channels appropriately
- Create proper version management
- Use proper update rollout strategies
- Implement proper update testing
- Configure proper rollback mechanisms
- Create appropriate user communication for updates
- Use proper update event handling

## Offline Support
- Implement proper offline data storage
- Create appropriate sync mechanisms
- Use proper conflict resolution strategies
- Implement proper offline UI states
- Configure appropriate retry mechanisms
- Use proper network state detection
- Create resilient API interactions
- Implement proper error handling for offline scenarios

## Testing
- Use Expo's testing tools
- Implement unit tests for business logic
- Create component tests with Testing Library
- Use Jest for test running
- Implement end-to-end tests
- Create proper test fixtures
- Use proper mocking strategies
- Implement proper CI/CD for testing

## Publishing
- Use proper versioning for releases
- Implement appropriate release channels
- Configure proper production builds
- Use EAS Submit for store submissions
- Create proper release notes
- Implement appropriate store listing assets
- Configure proper beta testing
- Use proper release management workflows

## Security
- Implement proper environment variable handling
- Use secure storage for sensitive data
- Configure proper API security
- Implement proper authentication
- Create appropriate permission handling
- Use proper certificate pinning
- Implement security monitoring
- Configure proper data encryption

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.