file-structure-auditor
Review React Native and UHC Mobile code for file structure, file naming, related-file grouping, folder organization, modal placement, utility extraction, and package boundary standards. Use when asked to audit directories, organize components, review screen/package layout, or clean up UHC Mobile file structure.
File Structure Auditor
Use this skill to review whether React Native files are placed, named, and grouped according to UHC Mobile maintainability standards.
Workflow
- Locate the package, screen, or component boundary under review and read nearby files as a unit rather than judging a single file in isolation.
- Check whether the main component file matches the exported component name and whether index.ts or index.tsx files are used only for aggregation.
- Check related-file grouping: component, utils, hooks, types, tests, analytics, styles, fixtures, and stories should be grouped where the component has grown beyond a simple single file.
- Check folder depth and reuse boundaries: prefer flat component-named folders, package-wide common code in common, screen-owned code under screens, and locally reused UI under components.
- Check modal placement and route ownership, especially whether package-local modals and cross-package modals live in the right navigation area.
- Report restructuring suggestions in small, behavior-preserving steps.
Review Focus
- Avoid index.tsx as the main component implementation file.
- Group related files with consistent Component.tsx, Component.utils.ts, Component.test.tsx, Component.analytics.ts, Component.types.ts, and Component.hooks.ts names.
- Keep folders flat enough to navigate and avoid deeply nested hierarchy for one feature.
- Extract reusable or testable logic into .utils.ts or focused hooks instead of leaving it inside large component files.
- Place cross-package modals in the shared core/navigation area and package-local modals inside the owning package.
Output
- Lead with findings ordered by severity, with file and line references when possible.
- Separate blocking issues from high, medium, and low priority recommendations.
- Explain impact in mobile-user terms: security exposure, broken rollout, jank, inaccessible flow, analytics drift, build/runtime failure, or maintainability risk.
- Include specific remediation guidance. Keep code snippets small unless the user asks for an implementation.
- If no issues are found, say so clearly and note any meaningful test or verification gaps.
References
references/review-guide.md: Migrated detailed review guide from the originalmobile-ai-skillsagent definition. Read it when you need the full checklist, example report shape, or grep patterns.
Related Assets
uhc-code-organization-auditor
Audit UHC Mobile code organization, naming conventions, file structure, import/export patterns, component section ordering, selector and analytics naming, feature-flag naming, and module boundaries before feature merges or cleanup work. Use when reviewing UHC Mobile React Native packages for maintainability and repository convention drift.
Owner: optum-tech-compute
dependency-management-reviewer
Review React Native and UHC Mobile dependency additions for maintenance status, React Native compatibility, New Architecture readiness, security vulnerabilities, bundle impact, license and ownership risk, justification, alternatives, and approved federation package usage. Use when package.json, lockfiles, native modules, or third-party package choices change.
Owner: optum-tech-compute
react-native-performance-review
Review React Native code for performance issues including unnecessary re-renders, inline functions, missing memoization, inefficient lists, context overuse, missing cleanup, and other mobile-specific performance problems. Use when asked to check performance, optimize React Native code, reduce jank, or review performance-critical mobile changes.
Owner: optum-tech-compute
react-native-security-review
Review React Native code for security vulnerabilities including PII/PHI storage, authorization bypass risks, secrets handling, token exposure, unvalidated identifiers, unsafe logging, mobile storage risks, and other security-critical mobile issues. Use when asked to check security, sensitive data handling, authentication, authorization, storage, logging, or network-related React Native changes.
Owner: optum-tech-compute
uhc-analytics-reviewer
Review UHC Mobile analytics implementations for .analytics.ts isolation, track-prefixed functions, Adobe payload casing, analytics constants, screenNameMapEntries updates, route mapping, A/B test tracking, event placement, and federated analytics events. Use when adding or changing mobile analytics, tracking hooks, navigation tracking, or Adobe payloads.
Owner: optum-tech-compute
uhc-env-secrets-reviewer
Review UHC Mobile environment configuration, secrets handling, Vault-to-Artifactory flows, react-native-config access, Firebase environment overrides, certificate pinning, production domain usage, local dev configuration, and secret exposure risks. Use when env files, build configuration, Firebase overrides, certificate pinsets, domains, tokens, or secrets-related mobile code changes.
Owner: optum-tech-compute

