Communitygithub.com

alfathafp/portofolio-web-design

Bonnes pratiques React Native et Expo pour créer des applications mobiles performantes. À utiliser lors de la construction de composants React Native, de l'optimisation des performances de listes, de l'implémentation d'animations ou du travail avec des modules natifs. Déclenchement sur des tâches impliquant React Native, Expo, les performances mobiles ou les API de plateforme native.

Qu'est-ce que portofolio-web-design ?

Ce skill rassemble un ensemble complet de bonnes pratiques et de règles pour le développement d'applications mobiles avec React Native et Expo. Il couvre des domaines critiques tels que les performances de listes (en recommandant FlashList), les animations (optimisation avec Reanimated), la navigation (préférence pour les navigateurs natifs), les motifs d'interface utilisateur (utilisation d'expo-image, Pressable, modales natives), la gestion d'état (minimisation des abonnements et motif dispatcher), le rendu (bon usage des composants Text), la configuration monorepo et d'autres configurations spécifiques. Organisé par priorité (de CRITIQUE à FAIBLE), chaque règle fournit des explications courtes, des exemples de code incorrect et correct, et des références supplémentaires. Il est conçu pour être utilisé avec Claude Code, Cursor ou tout autre agent IA afin de guider automatiquement le développeur vers les meilleures décisions architecturales et d'optimisation. Le document principal est `AGENTS.md`, et les fichiers de règles individuelles se trouvent dans le dossier `rules/`. Ce skill est particulièrement utile pour les tâches axées sur React Native, Expo, les performances mobiles et les API natives.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/vercel-react-native-skills

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Compétences React Native

Ensemble complet de bonnes pratiques pour les applications React Native et Expo. Contient des règles couvrant plusieurs catégories de performances, d'animations, de motifs d'interface utilisateur et d'optimisations spécifiques à la plateforme.

Quand appliquer

Consultez ces directives lorsque :

  • Vous construisez des applications React Native ou Expo
  • Vous optimisez les performances des listes et du défilement
  • Vous implémentez des animations avec Reanimated
  • Vous travaillez avec des images et des médias
  • Vous configurez des modules natifs ou des polices
  • Vous structurez des projets monorepo avec des dépendances natives

Catégories de règles par priorité

PrioritéCatégorieImpactPréfixe
1Performances listesCRITIQUElist-performance-
2AnimationÉLEVÉanimation-
3NavigationÉLEVÉnavigation-
4Motifs UIÉLEVÉui-
5Gestion d'étatMOYENreact-state-
6RenduMOYENrendering-
7MonorepoMOYENmonorepo-
8ConfigurationFAIBLEfonts-, imports-

Référence rapide

1. Performances des listes (CRITIQUE)

  • list-performance-virtualize - Utiliser FlashList pour les grandes listes
  • list-performance-item-memo - Mémoïser les composants d'éléments de liste
  • list-performance-callbacks - Stabiliser les références de rappels
  • list-performance-inline-objects - Éviter les objets de style en ligne
  • list-performance-function-references - Extraire les fonctions en dehors du rendu
  • list-performance-images - Optimiser les images dans les listes
  • list-performance-item-expensive - Déplacer le travail coûteux hors des éléments
  • list-performance-item-types - Utiliser des types d'éléments pour les listes hétérogènes

2. Animation (ÉLEVÉ)

  • animation-gpu-properties - Animer uniquement transform et opacity
  • animation-derived-value - Utiliser useDerivedValue pour les animations calculées
  • animation-gesture-detector-press - Utiliser Gesture.Tap au lieu de Pressable

3. Navigation (ÉLEVÉ)

  • navigation-native-navigators - Utiliser la pile native et les onglets natifs plutôt que les navigateurs JS

4. Motifs UI (ÉLEVÉ)

  • ui-expo-image - Utiliser expo-image pour toutes les images
  • ui-image-gallery - Utiliser Galeria pour les visionneuses d'images
  • ui-pressable - Utiliser Pressable plutôt que TouchableOpacity
  • ui-safe-area-scroll - Gérer les zones de sécurité dans les ScrollViews
  • ui-scrollview-content-inset - Utiliser contentInset pour les en-têtes
  • ui-menus - Utiliser les menus contextuels natifs
  • ui-native-modals - Utiliser les modales natives lorsque c'est possible
  • ui-measure-views - Utiliser onLayout, pas measure()
  • ui-styling - Utiliser StyleSheet.create ou Nativewind

5. Gestion d'état (MOYEN)

  • react-state-minimize - Minimiser les abonnements d'état
  • react-state-dispatcher - Utiliser le motif dispatcher pour les rappels
  • react-state-fallback - Afficher un contenu de repli au premier rendu
  • react-compiler-destructure-functions - Déstructurer pour le compilateur React
  • react-compiler-reanimated-shared-values - Gérer les valeurs partagées avec le compilateur

6. Rendu (MOYEN)

  • rendering-text-in-text-component - Encapsuler le texte dans des composants Text
  • rendering-no-falsy-and - Éviter l'opérateur falsy && pour le rendu conditionnel

7. Monorepo (MOYEN)

  • monorepo-native-deps-in-app - Conserver les dépendances natives dans le package de l'application
  • monorepo-single-dependency-versions - Utiliser des versions uniques entre les packages

8. Configuration (FAIBLE)

  • fonts-config-plugin - Utiliser des plugins de configuration pour les polices personnalisées
  • imports-design-system-folder - Organiser les importations du système de design
  • js-hoist-intl - Remonter la création d'objets Intl

Comment utiliser

Lisez les fichiers de règles individuels pour des explications détaillées et des exemples de code :

rules/list-performance-virtualize.md
rules/animation-gpu-properties.md

Chaque fichier de règle contient :

  • Une brève explication de son importance
  • Un exemple de code incorrect avec explication
  • Un exemple de code correct avec explication
  • Contexte supplémentaire et références

Document complet compilé

Pour le guide complet avec toutes les règles développées : AGENTS.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

Skills associés