mobile-app-structure
/mobile-app-structure
Opisuje układ folderów funkcji, konwencję states/ i zasady przepływu danych w aplikacji mobilnej Agenta (web/mobile), przy tworzeniu i przenoszeniu plików oraz podłączaniu danych do komponentów.
- Autor
- Agenta-AI ↗
- Repozytorium
- agenta ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Opisuje układ folderów funkcji, konwencję states/ i zasady przepływu danych w aplikacji mobilnej Agenta (web/mobile), przy tworzeniu i przenoszeniu plików oraz podłączaniu danych do komponentów.
Oryginalny opis (EN)
Feature-folder layout, states/ convention, and data-flow rules for the Agenta mobile app (web/mobile). Use when creating or moving files under web/mobile, deciding where a component lives, adding a new feature or screen, or wiring data into mobile components.
Jak działa
- Layout
- Rules
- Adding a new feature (checklist)
Podgląd SKILL.md
---
name: mobile-app-structure
description: Feature-folder layout, states/ convention, and data-flow rules for the Agenta mobile app (web/mobile). Use when creating or moving files under web/mobile, deciding where a component lives, adding a new feature or screen, or wiring data into mobile components.
---
# Mobile app structure
The source of truth for how code is organized in `web/mobile`. Load it before
creating any file there.
## Layout
```text
web/mobile/
src/
pages/ # Pages Router route shells ONLY — no logic, no layout JSX
features/
<feature>/ # e.g. sessions/, chat/, agents/, settings/, nav/
<Component>.tsx # one component per file, named export = file name
use<Thing>.ts # feature hooks and plain .ts helpers sit beside the components
states/ # designed states for this feature
<X>Skeleton.tsx # mirrors the final layout geometry (no shift on swap)
<X>Empty.tsx # designed empty state with a call to action
<X>Error.tsx # error + retry affordance; preserves user input
components/ # app-wide shells: AgentaLogo, ContentRail, PageTitle,
# ScreenScaffold, StatusTag
ui/ # local shadcn registry components (see mobile-shadcn-conventions)
lib/ # cn util, motion presets, api glue, context resolution
styles/ # globals.css, theme.generated.css (generated)
scripts/ # generate-shadcn-tokens.ts (token bridge)
```
## Rules
- **Pages are thin shells.** A page file resolves route params and renders one
feature screen component. Anything else belongs in `features/`.
- **One component per file.** No secondary exported components; small private
helpers inside a file are fine if they never leave it. The one tolerated
exception is a feature's grouped states file (`ChatStates.tsx`,
`HomeStates.tsx`, `ObservabilityStates.tsx`, `OrganizationStates.tsx`), which
exports a few small state components together. New states get their own file.
- **Every data-bearing component has designed states.** Before writing the
happy path, create the `states/` siblings (skeleton, empty, error). A screen
is not done if any of its states is a browser default or an unstyled string.
Features with no data-bearing screens of their own (`app/`, `context/`,
`nav/`) have no `states/` folder.
- **Data flow:** components get data via hooks from `@agenta/*` packages
(`@agenta/entities`, `@agenta/shared`, `@agenta/chat`, `@agenta/sessions`, ...)
or thin fetchers in `lib/`. Many screens compose ready-made UI from the
`@agenta/*-ui` packages; check there before building a surface from scratch. NEVER import `@/oss/*`, `@agenta/oss`, `@agenta/ee` — the mobile
app has zero app-layer imports (lint enforces this).
- **No provider fleet.** `_app.tsx` stays minimal and mounts
`features/app/AppProviders.tsx` (query client, jotai store, context sync,
auth gate, entity modals). Add a provider only when a concrete feature needs it,
scoped as narrowly as possible.
## Adding a new feature (checklist)
1. Create `src/features/<feature>/` with the screen component.
2. Create `states/` siblings for every data-bearing component.
3. Add the route shell in `src/pages/` that renders the screen.
4. Use `useMotionPresets()` for any transitions (see mobile-motion-patterns).
5. `pnpm --filter @agenta/mobile lint && pnpm --filter @agenta/mobile types:check`.
Wersje
W bazie nie ma innych skilli o nazwie mobile-app-structure.
Migawka bazy z 13.11.2026 · wersja paczki 0887ba76656b (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90mobile-shadcn-conventions
Pilnuje konwencji dodawania komponentów shadcn/ui, motywu kolorów i budowy czatu w aplikacji mobilnej Agenta. - 100touch-app
Przygotowuje projekt architektury aplikacji mobilnej: wybór platformy, nawigacja, zarządzanie stanem, warstwa danych i kluczowe ekrany. - 100touch-app
Przygotowuje projekt architektury aplikacji mobilnej: wybór platformy, nawigacja, zarządzanie stanem, warstwa danych i kluczowe ekrany. - 100add-feature
Prowadzi przez dodanie nowej funkcji UI w aplikacji nvcf-ui: struktura folderów, routing, ładowanie danych, lazy-loading, testy i lista kontrolna ukończenia. - 100output-dev-folder-structure
Opisuje konwencje struktury folderów workflow w Output SDK przy tworzeniu nowych workflow i porządkowaniu plików. - 100touch-feature
Przygotowuje specyfikację funkcji mobilnej: historyjka użytkownika, podejście techniczne, podział na komponenty, uwarunkowania platform i przypadki brzegowe.