Skip to content
Back to skills

Scaffold

BSecurity

appforge phase 2. Generates a new mini app with new-app.mjs - official create-expo-app and create-next-app, then the appforge overlay (monorepo, packages/core, EN/FR i18n, dev harness, site-only website) - fits it to the plan and boots it on the simulator.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
developmenttypescriptshellbashnextjsnodegit

Security analysis

B84/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 30, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Scaffold?

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

Security grade badge for Scaffold
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/mrasoahaingo-scaffold/badge)](https://www.skillsdirectory.com/skills/mrasoahaingo-scaffold)

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: scaffold
description: appforge phase 2. Generates a new mini app with new-app.mjs - official create-expo-app and create-next-app, then the appforge overlay (monorepo, packages/core, EN/FR i18n, dev harness, site-only website) - fits it to the plan and boots it on the simulator.
disable-model-invocation: true
---

# Phase 2: skeleton

`new-app.mjs` runs the official inits (`create-expo-app` blank-typescript, `create-next-app`), so the Expo SDK, Next.js and their boilerplate are always those of the day, with no version frozen in the plugin. It then lays the **overlay** (`${CLAUDE_PLUGIN_ROOT}/templates/overlay/`) on top, and merges configuration as declared in `templates/overlay.json`. The overlay brings only what the inits don't:
- the configuration traps solved on Fastkind: pnpm monorepo with flat `node_modules`, Metro for the monorepo, NativeWind with its `lightningcss` pin, an embedded font (Inter), a build that keeps the dev harness out of production;
- `packages/core` with the i18n mechanism;
- the dev harness and its fixtures;
- a site-only Next.js website with legal pages;
- the image and screenshot scripts, `AGENTS.md`, `docs/I18N.md`.

Expo packages are installed with `expo install`, so their versions match the SDK the init produced. This phase is a script run plus a few edits, not a copy job.

## Steps

1. **Generate**:

   ```bash
   node ${CLAUDE_PLUGIN_ROOT}/scripts/new-app.mjs --name "<Name>" --slug <slug> \
     --bundle <bundle_prefix>.<slug> --dest <projects>/<slug> \
     --tagline-en "<one sentence>" --tagline-fr "<one sentence>" --email <contact email>
   ```

   - **Run it in the background, never in a foreground shell call.** The install step (`pnpm install`, the `expo install` groups, then the `pnpm add` groups) can take more than 10 minutes on a cold pnpm store, and a foreground shell call is cut at 10 minutes at most: the script dies but its `pnpm` keeps running alone. In herdr: `hc run --bg --no-notify --name <slug>-gen --cwd <projects> -- node …`, then `hc wait <slug>-gen` and `hc read <slug>-gen --lines 60`. Otherwise, the Bash tool's `run_in_background`, with its output sent to a log file you read when it ends.
   - **Never rerun into a folder where a run may still be working**, and never empty that folder to rerun. The script refuses to start while a `node` or `pnpm` process still has its working directory in the destination, and names it: wait for it, or kill it, then rerun into a **new** temporary folder.
   - The plan (`docs/PLAN.md`) and log (`docs/FORGE.md`) from phase 1 were written in `<projects>/<slug>/docs/`. If the folder already exists for that reason, generate into a temporary folder and move its content in, keeping `docs/`.
   - Without a contact email yet, omit `--email`: the legal pages show a highlighted placeholder.
   - The script announces each step (init, prune, overlay, install, git); a failure names its step. If a new Expo or Next major changed what the inits produce, fix `templates/overlay.json` (or the overlay file it points to) once, in the plugin, rather than patching the app by hand. Report it in the phase report.

2. **Fit to the plan**:
   - `AGENTS.md`: the app's tone rule, its banned words in both languages, and the main path (open → gesture).
   - `docs/I18N.md`: the tone and the glossary.
   - `apps/mobile/src/theme.ts` and `global.css`: the palette from the art direction, if already decided. Phase 4 can do it otherwise.
   - Remove the example rule (`packages/core/src/streak.ts`) if the app has no streak, or adapt it.
   - Widget or Live Activity planned: follow `apps/mobile/src/widgets/README.md` now, so the native project is generated once.

3. **Check**: `new-app.mjs` has installed everything; run `pnpm check`, and `npx expo-doctor` in `apps/mobile`.

4. **Boot**, in `apps/mobile`:

   ```bash
   export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
   pnpm exec expo prebuild -p ios
   pnpm exec expo run:ios --device <udid of the <slug>-check simulator> --port <free port>
   ```

   Create a dedicated `<slug>-check` simulator (`xcrun simctl create`) and never touch other projects' simulators. Port 8081 is often taken by another project: see `sim`.

5. **Docs**: add a line to `<projects_index>` (profile), if it exists.

6. **First commit**: "<Name>: skeleton". If the profile has `git_remote_pattern`, add the remote; never push without being asked.

7. **Hand back to forge** to start the long waits in the background: the early EAS build and submit (`ship` steps 1 to 4), and the placeholder website (`site` step 5).

## Done when

- `pnpm check` passes.
- The app boots on `<slug>-check` and shows its home screen in English, then in French with `EXPO_PUBLIC_LOCALE=fr`. Verify with one screenshot per language.
- `grep -rn '__[A-Z_]*__'` finds only `__DEV__`.
- 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.