Skip to Content
ARCUI
v2 · 2.0.0 · LatestAI-assisted development

Agent workflow

A source-first workflow for AI coding agents working with ARCUI.

A reliable ARCUI agent workflow should be narrow, version-aware, and verifiable.

Give this to your coding agent

A compact source-first instruction for ARCUI work.

Use the ARCUI version installed in this project as the source of truth.
Read AGENTS.md when present, then ai/SKILL.md, ai/INDEX.md, and only the references or patterns relevant to the task.
Verify exact public props, types, and imports against the installed react-native-arc-ui declarations.
Keep semantic/structural state in React and frame-level visual state in Reanimated.
Prefer documented ARCUI components, tone, typed colors, and tokens before building equivalent controls from primitives.
Respect accessibility semantics, Reduced Motion, and public package boundaries.
Do not invent props, components, deep imports, or internal APIs.

1. Confirm the installed ARCUI version

Use the application's actual dependency/package metadata rather than assuming the latest website version.

The installed version determines which ai/ guidance and declarations describe the application correctly.

2. Read the packaged instructions

Read AGENTS.md when present, then load ai/SKILL.md before writing code.

This establishes the architecture expectations that should survive across individual component tasks: state ownership, tokens, animation, accessibility, package boundaries, and validation.

3. Route through ai/INDEX.md

Choose only the references and patterns relevant to the current task.

Examples:

build a controlled form
-> forms-and-inputs.md
-> patterns/forms.md

add grouped selection
-> selection.md
-> patterns/state-and-controls.md

add a bottom sheet + toast
-> overlays.md
-> patterns/overlays-and-feedback.md

match a screenshot
-> image-to-interface.md
-> composition.md
-> relevant component reference

4. Verify the installed public contract

Check the package root declarations before committing to exact props or exported types.

import {
  Button,
  Select,
  type ISelect,
} from "react-native-arc-ui";

import { ARCUIMock } from "react-native-arc-ui/testing";

Do not deep-import implementation files from src, dist/components, or other private paths.

5. Choose semantics before styling

Map application intent to the ARCUI primitive that already owns it:

action                  -> Button
boolean selection       -> Checkbox / Toggle
exclusive selection     -> Radio + SelectionGroup
controlled options      -> Select
continuous value        -> Slider
anchored menu           -> Dropdown
controlled sheet        -> Modal
global transient message-> showToast
global dialog decision  -> showDialog

If ARCUI does not own the semantic concept, use normal React Native composition rather than inventing an ARCUI primitive.

6. Preserve ownership boundaries

Before implementing, identify which values are semantic React state and which values are continuous visual state.

selected tab       -> React
modal visible      -> React
form value         -> React
slider visual drag -> Reanimated internally
press feedback     -> Reanimated internally
theme interpolation-> Reanimated SharedValue

Do not replace controlled application state with SharedValues just to avoid renders.

7. Apply tokens, accessibility, and motion rules

Before calling the task complete, check:

  • system-wide design decisions use tokens rather than repeated literals;
  • local exceptions use documented props/native escape hatches;
  • semantic tone and typed colors slots are checked before replacing ARCUI controls with custom primitives;
  • accessible role/name/state matches the real behavior;
  • reusable ARCUI-owned strings stay localizable;
  • Reduced Motion is respected by custom animation;
  • manually ARCUI-scaled text is not double-scaled.

8. Validate the result

At minimum:

typecheck
lint
controlled state paths
light/dark/system theme behavior
large-font layout
Reduced Motion where relevant
runtime interaction paths

For overlay or gesture-heavy work, validate the actual runtime rather than relying only on static code review.

AI guidance improves the starting point. It does not replace runtime evidence.

On this page