dx-expert

Enforce React Native Expo developer experience principles for clean, maintainable code.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/AgustinOberg/dx-expert-skill --skill dx-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dx-expert
Source: https://github.com/AgustinOberg/dx-expert-skill/tree/main
Command: npx skills add https://github.com/AgustinOberg/dx-expert-skill --skill dx-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces best practices in React Native Expo development, ensuring cleaner, more maintainable, and performant code by guiding AI agents away from common anti-patterns.

Core Features & Use Cases

  • Enforces SRP: Separates state logic (hooks) from rendering logic (components).
  • Promotes Hook Architecture: Encourages small, focused hooks, each in its own file, with single object arguments.
  • Guides Component Design: Advocates for the Compound Component Pattern, avoiding boolean props and promoting composition.
  • Optimizes Memoization: Discourages useCallback and guides useMemo usage.
  • Ensures UX Polish: Reminds developers about keyboard handling, loading/error/empty states, safe areas, and touch targets.
  • Prioritizes Expo Router: Encourages native Expo Router features for navigation and routing.
  • Use Case: When refactoring a complex component that mixes state management and UI rendering, this Skill will guide the AI to break it down into smaller, reusable hooks and components following the Single Responsibility Principle and Compound Component Pattern.

Quick Start

Use the dx-expert skill to refactor the provided component to adhere to the Single Responsibility Principle and Compound Component Pattern.

Frequently Asked Questions about dx-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor a React Native Expo component to follow the Single Responsibility Principle?

To refactor a React Native Expo component for the Single Responsibility Principle, separate state logic into focused hooks and rendering logic into distinct components. This division enforces clean, maintainable code by ensuring each module handles only one specific concern.

When should I avoid using useEffect and useCallback in React Native?

Avoid using useEffect for derived state and discourage useCallback usage in React Native to optimize memoization. Prioritize useMemo and component composition over unnecessary hooks to write clean, performant code.

What is the Compound Component Pattern in React Native and how does it improve code quality?

The Compound Component Pattern in React Native improves code quality by composing smaller, reusable components instead of relying on complex boolean props. This approach ensures cleaner component design, better maintainability, and more flexible UI rendering.

Can I use Expo Router for navigation and routing in my React Native project?

Yes, you can and should use Expo Router for navigation and routing in React Native projects. Prioritizing native Expo Router features ensures better navigation handling and aligns with developer experience best practices.

How do I ensure UX polish for loading and error states in React Native Expo?

To ensure UX polish in React Native Expo, always implement loading, error, and empty states. Additionally, handle keyboard interactions, respect safe areas, and maintain adequate touch target sizes for a complete user experience.