본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

ohos-react-native-performance

code-sunbo 제작

Web & Frontend Development
636clawskills.sh가 보고한 다운로드 수
1조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

OpenHarmony React Native performance static checks and optimization.

설명

이 스킬이 하는 일

Static-check rules for React Native on OpenHarmony (RNOH), derived from the official ohos_react_native performance-optimization documentation. Covers render optimization, bundle configuration, RNAbility lifecycle, TurboModule threading, and list performance. Rules are categorized by priority from critical render issues to medium-impact list handling.

General React Native performance guides don't cover OpenHarmony-specific concerns like bundle-harmony, HBC compilation, BiSheng compiler options, or RNAbility lifecycle, so this skill fills that gap without requiring manual doc lookup.

사용 시점

  • Reviewing RNOH code for unnecessary re-renders before a release
  • Configuring Hermes bytecode and Release builds for a production bundle
  • Auditing TurboModule implementations to ensure heavy work runs on worker threads
  • Checking RNAbility lifecycle hooks are wired to onPageShow/onPageHide correctly
  • Enforcing stable list keys across a team codebase via code review rules

예시 워크플로

입력

User asks: review this RNOH component for performance issues

에이전트
  1. 1

    Check for setState calls where new value equals current state (rnoh-render-avoid-same-state)

  2. 2

    Check if functional components or class components lack React.memo or PureComponent (rnoh-render-pure-memo)

  3. 3

    Check if callbacks or prop objects are recreated on each render instead of being stable references (rnoh-render-props-once)

  4. 4

    Check if multiple setState calls could be merged into one (rnoh-render-merge-setstate)

  5. 5

    Check list items for missing or index-based keys (rnoh-list-key)

출력

Annotated list of rule violations with rule IDs and fix suggestions

설치

clawhub install code-sunbo/ohos-react-native-performance

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크