new-app

A command that creates the initial files and repository for a new app in a development folder, after collecting its purpose, audience, technology, language, and deployment details.

In plain words
What is it for?
Use it to start a portfolio app, set up Git, document the project, and decide whether it should be deployed or added to a portfolio hub.
Why use it?
It gives a new project a consistent starting structure and checks for naming and repository conflicts before creating it.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/w2ur/claude-code-setup/new-app
Clone the repo
git clone --depth 1 https://github.com/w2ur/claude-code-setup
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.01368
Opus 5 $0.00008 $0.00684
Sonnet 5 $0.00003 $0.00274
Haiku 4.5 $0.00002 $0.00137

Measured 2d ago against content hash 3a0fed2771d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

new-app scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/new-app.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create a new portfolio app named $0 in ~/Dev/$0.

Validation

  1. Name format: $0 must be kebab-case. If it contains uppercase, spaces, or underscores, reject and ask for a corrected name.
  2. Name collision: check if ~/Dev/$0 already exists. If yes, abort.
  3. GitHub collision: run gh repo view {github-username}/$0 2>/dev/null — if the repo already exists, warn.

Information Gathering

Before scaffolding, ask the owner:

  1. What does this app do? (one paragraph)
  2. Who is it for? (public / family / personal)
  3. Preferred stack? (or "you choose")
  4. User-facing language? (French / English / Bilingual)
  5. Deploy target? (Netlify / Vercel / Cloudflare / local-only for now)
  6. Should it get a tile on the hub ({portfolio-site-url})? If yes, get a one-line French tagline, one-line English tagline, and (if it's a real project the hub would feature, not a personal-only tool) a facts line for each language.

Scaffold

Using the answers above, create:

Repository setup

mkdir -p ~/Dev/$0
cd ~/Dev/$0
git init

CLAUDE.md

Create covering: project overview, tech stack, dev/build commands, deployment, and any conventions that override or extend the global CLAUDE.md. Include:

  • Project overview from the owner's description
  • Tech stack from chosen stack
  • User-facing language
  • Development commands (npm install && npm run dev, or equivalent)
  • Deployment info

README.md

Write a real README (not boilerplate) with:

  • Project description
  • Tech stack
  • How to run locally
  • Deployment setup
  • Layer 2 frontmatter (per portfolio-conventions) at the very top of the file:
    ---
    name: [Display Name]
    tagline_fr: "[one-line FR tagline]"
    tagline_en: "[one-line EN tagline]"
    facts_fr: "[facts line, only if the app will get a hub tile]"
    facts_en: "[facts line, only if the app will get a hub tile]"
    ---
    
    If the owner only gave one language's tagline (question 6), write only that tagline_* key — do not invent a translation nobody asked for. Omit facts_* entirely for apps that won't get a hub tile.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 129 lines · 16 tokens per session scan A 3a0fed2771d1

Subscribe to this mod's changes

new-app is a command published in the GitHub repository w2ur/claude-code-setup (2 stars, last pushed 9d ago), licensed MIT. It adds 16 tokens to every session and 1,368 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.