Skip to content
Back to skills

Build

ASecurity

appforge phase 3. Builds the MVP - tested rules in packages/core, single-gesture screen, local storage, summary, journal, widget and Live Activity, fixtures for every state, checked on screen.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentgoswiftreactnextjsspringdatabase

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add mrasoahaingo/appforge --skill build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mrasoahaingo-build/badge)](https://www.skillsdirectory.com/skills/mrasoahaingo-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build
description: appforge phase 3. Builds the MVP - tested rules in packages/core, single-gesture screen, local storage, summary, journal, widget and Live Activity, fixtures for every state, checked on screen.
disable-model-invocation: true
---

# Phase 3: build

Fastkind's order (its "3-day execution plan"): the offline core first, then what adds value; the optional account comes after the audit (phase 7).

## Skills to load

- `expo:expo-overview` first; it points to `expo:expo-router`, `expo:expo-ui` (SwiftUI widgets), `animate-expo` and `expo:expo-native-ui`.
- `/ask-emil` (Emil Kowalski) for interface and motion craft; `apple-design` for springs, gestures and materials.
- `tdd` for the rules in `packages/core`.

## Steps

1. **The core** (`packages/core`): each product rule in a module, with its tests.
   - In Fastkind: `phases`, `fasts`, `stats` (streak, forgiveness, time bank), `rhythm`, `achievements`, `goals`, `format`, `widget`, `live-activity`.
   - Time is computed from timestamps.
   - Done when: `pnpm test` covers every rule, edge cases included (midnight, time zones, very long durations, empty history).

2. **The main screen**: the single gesture, at the bottom under the thumb, with a preselected setting.
   - **Decide the reward rule with the user before coding it**: what earns, and what stopping early does. When the reward is time inside a commitment the user chose (a blocker, a focus or fasting session), only a session that reaches its chosen end counts; ending early stays possible but deliberate (a 2-second hold) and earns nothing, takes nothing away, never shows a "0". Otherwise tap-then-end farms progress. Show the promise during the session ("Grows 3 h at 9:00 PM").
   - An accidental tap: an undo in the first minute only where nothing was promised yet. An undo that erases the first session sends the mascot back to its first stage and reads as a bug: not for commitment apps. When a control confuses the user, look for the rule behind it before changing the control.
   - Haptics on detents and main buttons.
   - The first tap already earns something (a "Day 1" badge).

3. **Storage**: Zustand persisted in AsyncStorage (one key per month if history grows), IDs generated on the device, `updatedAt` on every change. The main screen does not depend on hydration.

4. **What adds value**:
   - an end summary that says what was earned;
   - a journal or time bank that never empties, with milestones and badges;
   - time corrections;
   - guidance or precaution screens if the subject touches health.
   - No screen shows zero: a tile at zero disappears.

5. **Widget and Live Activity**, if the app has a state that lasts:
   - built with `expo-widgets` and `@expo/ui`;
   - follow `apps/mobile/src/widgets/README.md` (from the overlay): no `null` in props, isolated environment, loaded on demand, only show what stays true for hours;
   - iOS limit: 8 hours in the Dynamic Island, then 4 more on the Lock Screen;
   - a setting to turn it off.

6. **Notifications**: local, off by default, requested by the user; no nagging.

7. **Fixtures and harness** (see `sim`):
   - one fixture per state in `src/dev/fixtures.ts`: empty, first tap, in progress (each milestone), idle, forgiveness, extreme cases, a 400-entry history;
   - `?do=…` actions;
   - the table of links in the `README.md`.

8. **Check every state on screen**, in both languages, with screenshots (`sim`), and fix whatever overflows.

9. **Native behaviours that broke on Grassling** (each one shipped to TestFlight before it was caught):
   - **The screen's clock**: a `useNow(interval)` read before a tap makes the new session look "not started yet" until the next tick (up to the interval: "the button does nothing"). Refresh `now` when the data changes (`useNow(interval, locks)`).
   - **A slow first call** (Screen Time's authorization, any OS sheet): a spinner on the button after 150 ms and repeated taps ignored; each tap started a new request.
   - **No sheet on a sheet** (Apple's HIG): screens opened from a sheet (settings from the garden) are pushed inside it (a nested `Stack` in `app/<sheet>/_layout.tsx`, a "‹ Back" key, edge swipe).
   - **Press and hold that opens a sheet**: use a native long press (Gesture Handler `useLongPressGesture`), not `Pressable`'s `onLongPress`. With the responder, the sheet opens over a touch React Native still holds, and its first tap is ignored ("OK needs two taps"). Two buttons swapped at the same place in the tree get their own `key`.
   - **Screen Time** (FamilyControls, ManagedSettings, DeviceActivity): block from the app only, never again from the monitor's `intervalDidStart` (iOS wakes it seconds late: after an "end" it blocks again and nothing lifts it); on every catch-up (launch, foreground, every minute), lift any shield left on when no session runs. Test lock → end at once → open a picked app on a real iPhone: the simulator refuses Family Controls.

10. **A real iPhone, now, when the core needs one** (Screen Time, Bluetooth, background audio, HealthKit: the `pitch` 24-hour check lists it). The simulator cannot run it, and on Grassling every such bug was found only after TestFlight, a build each.
   - A Release build signed for development on the user's iPhone: `xcodebuild -workspace … -configuration Release -destination id=<device> -allowProvisioningUpdates build`, then `xcrun devicectl device install app --device <device> …` (the user's Apple account added in Xcode; see `lessons.md`).
   - A 5-minute checklist for the user, one line per step and what must happen (Screen Time: first tap → Apple's sheet → picker → the lock shows at once; open a picked app → shield; "Unlock 15 min"; end the session at once → the app opens; leave a short session to end with the app closed). Ask for a screen recording when something looks off: read it frame by frame (`ffmpeg -vf fps=1`).
   - Fix, reinstall, recheck before moving to phase 4. Record the outcome in the log.

## Parallelism

In Fastkind, two forks worked while the main thread did the mobile app: "Supabase database + core tests" and "Next.js website".

Split the same way when the scope allows, with non-overlapping write scopes spelled out in the prompt: see the autonomy rules in `forge`.

## Done when

- Every fixture has been captured and looked at in English and in French, at least once on a small screen (iPhone SE) or with very large text.
- When the core needs a real iPhone: its checklist passed on the user's iPhone (step 10).
- `pnpm check` green.
- Commit done.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.