Skip to main content

agentic-component-optimization

Analyze and optimize packages/agentic/components as a whole when repeated patterns, dependency direction, or extraction boundaries cross components.

소스 정보

저장소
microsoft/fluentui-react-native
최근 소스 활동
2026년 10월 23일 22:33
감지된 SKILL.md 언어
영어
스타
1,446
포크
179

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
agentic-component-optimization
description
Analyze and optimize packages/agentic/components as a whole when repeated patterns, dependency direction, or extraction boundaries cross components.
license
MIT
# Agentic component optimization Use this skill when a change is about the package as a system, not a single component fix. It helps decide whether repeated code belongs in `src/common`, `@fluentui-react-native/framework-base`, or `@fluentui-react-native/design/styling`, and whether a primitive or helper should exist at all. ## Read first 1. Read the [package instructions](../../../packages/agentic/components/AGENTS.md) and the [source boundaries reference](../../../packages/agentic/components/references/source-boundaries.md). 2. Read the [higher-order component](../../../packages/agentic/components/references/higher-order-components.md) or [primitive](../../../packages/agentic/components/references/primitives.md) reference and the colocated `SPEC.md` or `CONTRACT.md` files for the affected area. 3. Inspect the canonical implementations: `packages/agentic/components/src/components/button` and `packages/agentic/components/src/primitives/icon`. ## Audit checklist ### 1. Dependency direction Apply the [source boundaries](../../../packages/agentic/components/references/source-boundaries.md#source-boundaries): production dependencies, where generalizable hooks and styling helpers belong, and what stays in `src/common`. ### 2. Repetition and ownership Look for repeated: - types and discriminated unions - constants and default tables - state routines and prop normalization - slot wiring or subtree assembly - primitive behaviors or structural contracts Prefer extraction only when the repeated shape is stable and shared across multiple components. ### 3. Validate extraction payoff Before extracting, confirm that the change: - reduces repeated logic without widening public APIs - preserves component-qualified exports and call sites - improves dependency direction instead of hiding it - keeps the resulting abstraction smaller than the duplication it replaces ### 4. Do-not-extract criteria Do not extract when the code is: - one-off component behavior - a styling decision that belongs in the owning component - a public prop contract or display-specific variant - a thin wrapper around a single native element - easier to read in place than through another helper ## Output Return a short recommendation with: - what to keep local - what to move to shared package/common code - whether the extraction is worth doing now - any public API or dependency risks If the work is just a tiny component edit, stop at the component instructions and do not run a whole-package audit.
GitHub에서 보기