UI Add

VerifiedCaution

Add a frontend app to an existing workstream using a SPEC-PROVIDER starter pack.

Sby Skills Guide Bot
DevelopmentIntermediate
7/28/2026
Claude Code
#nextjs#scaffolding#monorepo#starter-pack#frontend

Recommended for

Automated summary

Adds a Next.js frontend app to an existing workstream by scaffolding it from a starter pack using the SPEC-PROVIDER pattern.

Strengths

  • Validates the app name, workstream, starter pack and directory collision before writing anything
  • Automatically allocates a free port in the 4100–4199 range by scanning docker-compose.dev.yml
  • Patches topology.yaml idempotently with a frontend service entry wired from the backend
  • Offers a --dry-run mode to preview every write without changing files

Limitations

  • Does not edit docker-compose.dev.yml, so the service block must be added by hand
  • Does not install dependencies or initialize shadcn/Tailwind
  • Only one starter pack (nextjs-app) in v1, and no cloud wiring for Vercel or Fly.io
When to use it

Use it when a workstream already exists but needs a new UI, such as a payment page or an admin panel.

When not to use it

Avoid it for greenfield projects, for non-Next.js frameworks, or when you expect a fully wired and deployable stack out of the box.

Security analysis

Caution
Quality score88/100

The skill is for legitimate scaffolding and configuration updates, with no signs of destructive commands, exfiltration, obfuscation, or safety disabling. However, it does instruct running local scripts and starter-pack installers that write files and modify topology config, so it warrants caution rather than safe.

Findings
  • •Instructs execution of a repo-local tool `./agency/tools/ui-add $ARGUMENTS`, which can scaffold files and modify configuration.
  • •The tool invokes a starter pack `install.sh`, giving third-party starter-pack code execution risk if the pack is untrusted.
  • •Default behavior writes files and patches `agency/config/topology.yaml`; `--dry-run` is optional rather than default.
How this analysis is made

Examples

Preview a payment UI scaffold
/ui-add payments-ui --workstream payments --dry-run
Add an admin panel on a fixed port
/ui-add admin --workstream ops --port 4150
Add a marketing app with a custom base path
/ui-add marketing --workstream marketing --base-path /mkt

description: Add a frontend app (Next.js) to an existing workstream using a SPEC-PROVIDER starter pack

UI Add

Add a frontend app to an existing workstream. Fills the gap where a workstream exists but needs a new UI — a payment UI for the payments workstream, an admin panel for ops, etc.

Uses the SPEC-PROVIDER pattern: the SPEC is the skill invocation (name + workstream + port), the PROVIDER is the starter pack at claude/starter-packs/<type>/.

Arguments

  • $ARGUMENTS: <name> — kebab-case app name (becomes apps/<name>/). Followed by:
    • --workstream <ws> — existing workstream name [required]
    • --type <provider> — starter pack [default: nextjs-app]
    • --port <num> — host port [default: next free in 4100–4199]
    • --base-path <path> — Next.js basePath [default: /<name>]
    • --dry-run — preview all writes without making changes

Examples

/ui-add payments-ui --workstream payments --dry-run
/ui-add admin --workstream ops --port 4150
/ui-add marketing --workstream marketing --base-path /mkt

What it does

  1. Validates name (kebab-case, not reserved), workstream (exists), starter pack (exists), no collision (apps/<name>/ must not exist)
  2. Allocates a free port in the frontend range (4100–4199) by scanning docker-compose.dev.yml, unless --port is provided
  3. Invokes the starter pack's install.sh which scaffolds the app files
  4. Updates agency/config/topology.yaml — adds a frontend service entry with wires_from: [backend]
  5. Reports next steps (e.g. pnpm install, pnpm dev — actual commands depend on your configured package manager)

What it does NOT do (v1)

  • Does not edit docker-compose.dev.yml — add the service block manually if needed for the full stack
  • Does not install deps (run your package manager's install at repo root, e.g. pnpm install)
  • Does not init shadcn/Tailwind (uses @of/ui workspace package instead)
  • Does not wire Vercel / Fly.io (cloud providers are separate)
  • Does not update agency.yaml

Idempotency

  • Safe to re-run on --dry-run
  • Refuses to write over existing files (non-zero exit if apps/<name>/ exists)
  • Topology patch is idempotent: reports "already present" if the service is in topology.yaml with matching fields

Available starter packs

  • nextjs-app (v1 default) — Next.js 16 + React 19 + @of/ui workspace, Dockerfile, basePath: /<name>

Instructions

Step 1: Parse and validate

Run ./agency/tools/ui-add $ARGUMENTS and relay the output.

The tool handles validation. If it fails, relay the error verbatim.

Step 2: Report

On success, the tool prints a "Next steps" block. Relay it to the user.

Step 3: Report changed files

List the files the scaffold created/modified so the principal can review before committing. Do NOT auto-commit — commit policy is the principal's decision, consistent with /workstream-create which ends at a report + hand-off.

Changed files for a non-dry-run:

  • apps/<name>/ (new directory, 9 files)
  • agency/config/topology.yaml (modified — new frontend entry)

The principal decides whether to run /iteration-complete immediately, extend docker-compose.dev.yml to include the new app first, or fold the scaffold into a larger iteration.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/ui-add-ms47vpq3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/ui-add-ms47vpq3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ui-add-ms47vpq3/download' --output '.skill-downloads/ui-add-ms47vpq3/SKILL.md.part' && mv '.skill-downloads/ui-add-ms47vpq3/SKILL.md.part' '.skill-downloads/ui-add-ms47vpq3/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/ui-add-ms47vpq3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills