new-app

new-app is a command for Claude Code from w2ur/claude-code-setup. It costs 16 tokens per session (1,812 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/w2ur/claude-code-setup/new-app
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.

Clone the repo
git clone --depth 1 https://github.com/w2ur/claude-code-setup

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-app

README.md
[![agentmods](https://agentmods.dev/badge/commands/w2ur/claude-code-setup/new-app/github.svg)](https://agentmods.dev/commands/w2ur/claude-code-setup/new-app)
Your own site
<a href="https://agentmods.dev/commands/w2ur/claude-code-setup/new-app"><img src="https://agentmods.dev/badge/commands/w2ur/claude-code-setup/new-app/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-app

Your own site · 80×15
<a href="https://agentmods.dev/commands/w2ur/claude-code-setup/new-app"><img src="https://agentmods.dev/badge/commands/w2ur/claude-code-setup/new-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00016 $0.01812
Opus 5.5 $0.00006 $0.00725
Sonnet 5.5 $0.00003 $0.00362
Haiku 4.5 $0.00002 $0.00181

Measured 6d ago against content hash 163c98035546, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 6d 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 · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 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.
  7. Design direction? (or I propose 2-3) If the owner has one, take it as given. Otherwise load the design-direction skill and run its steps 1-5 on the answers above (question 1 is the subject), and wait for the owner to pick one before scaffolding. Its step 6 (DESIGN.md) runs at scaffold time, below; its step 7 runs once there is a page to render. An app with no UI (CLI, script, library) may answer "none"; record that instead.

Scaffold

Using the answers above, create:

Repository setup

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

DESIGN.md

Unless question 7 was answered "none", write DESIGN.md at the repo root as the design-direction skill's step 6 says (from its references/design-md-template.md). If the owner gave a direction, fill the template from it. The CLAUDE.md "Design direction" section below is the pointer line that step 6 asks for.

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
  • A Design direction section from question 7 — later UI sessions read it instead of falling back on a model default. Write the chosen direction concretely, then the avoid-list and the trigger line; do not copy the skill's full list. The avoid-list is not written in this command: read ~/.claude/CLAUDE.md → "Design defaults" at scaffold time and copy its named list of patterns (the items after "Never default to") verbatim, so the new project holds its own self-contained copy of the current list:
    ## Design direction
    
    [Chosen direction in one or two sentences: palette, type, the one signature element.] The full direction is in `DESIGN.md`, this project's identity.
    
    Avoid unless this section asks for it: [the list, copied verbatim from ~/.claude/CLAUDE.md → Design defaults].
    
    **Before any UI or visual work here, load the `design-tells` skill** — it holds the full trap list. This section overrides it wherever they disagree.
    
    If question 7 was answered "none", write the section as a single line: No UI yet — before adding one, load the design-direction skill.

Read the full file on GitHub · 143 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. 6d ago Changed · +3 lines 163c98035546
  2. 21d ago Changed · +11 lines 611d3451163c
  3. 1mo 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 3d ago), licensed MIT. It adds 16 tokens to every session and 1,812 once invoked, about $0.0001 per session on Opus 5.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.