build-app

build-app is a command for Claude Code from solanabr/solana-ai-kit. It costs 20 tokens per session (598 once invoked), scanned A, original, MIT.

A build command for web applications made with Next.js, React, Vite, Create React App, or Node.js. It detects the project type and package manager, then installs dependencies before continuing the build process.

In plain words
What is it for?
Use it to prepare and build a web client, including projects using npm, pnpm, Yarn, or Bun, with further steps for environment setup and application checks.
Why use it?
It removes the need to manually identify the framework and package manager before preparing a web project.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to prepare and build a web client, including projects using npm, pnpm, Yarn, or Bun, with further steps for environment setup and application checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/solana-ai-kit/build-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/solanabr/solana-ai-kit

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 build-app

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/build-app/github.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/build-app)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/build-app"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/build-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 build-app

Your own site · 80×15
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/build-app"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/build-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 598 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.00020 $0.00598
Opus 5.5 $0.00008 $0.00239
Sonnet 5.5 $0.00004 $0.00120
Haiku 4.5 $0.00002 $0.00060

Measured 1mo ago against content hash b3a9e1c1060f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-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 1mo 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • build-app — 91% identical, 339 lines differ
  • build-app — 91% identical, 339 lines differ
.claude/commands/build-app.md · 29 lines

How it starts

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

Build the web client in $ARGUMENTS (default: the app directory whose package.json has a build script) for the cluster its program is deployed on. Current client patterns: frontend.md.

Steps

  1. Install with the package manager that owns the lockfile (pnpm-lock.yaml, yarn.lock, bun.lock/bun.lockb, package-lock.json), in frozen mode (npm ci, pnpm install --frozen-lockfile).
  2. Env: if .env.local is missing, copy it from .env.example without overwriting anything. Check that the program ID and RPC URL match the target cluster (compare with .program-id-devnet / .program-id-mainnet written by /deploy). If the program interface changed, regenerate the client first with /generate-idl-client.
  3. Type-check with tsc --noEmit: Vite builds do not type-check, next build does. Run the lint script if there is one.
  4. Build with <pm> run build. Output: .next/ (Next.js), dist/ (Vite), build/ (CRA).
  5. Verify: no *.map files in the production output unless intended; note the largest JS chunks; preview with <pm> run start (Next.js) or <pm> run preview (Vite).

Failure fixes

  • Buffer is not defined (Vite): add vite-plugin-node-polyfills with nodePolyfills({ include: ['buffer'] }). web3.js 1.x, the Anchor TS client (@anchor-lang/core) and wallet-adapter need it; @solana/kit does not.
  • window is not defined or hydration errors (Next.js): wallet and web3 code belongs in 'use client' leaf components.
  • Env var undefined in the browser: client-side vars need the NEXT_PUBLIC_ or VITE_ prefix, and a rebuild, because they are inlined at build time.
  • Oversized bundle: lazy-load wallet UI and heavy SDKs; drop @solana/wallet-adapter-wallets bundles, since Wallet Standard wallets register themselves; prefer @solana/kit over web3.js 1.x for new code.

Guardrails

  • Every NEXT_PUBLIC_ / VITE_ value ships in the bundle. Keep RPC URLs that embed an API key (Helius and similar) behind a server route.

Read the full file on GitHub · 29 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. 1mo ago Changed · -305 lines · +7 tokens per session scan C → A b3a9e1c1060f
  2. 1mo ago Changed da421faf3192
  3. 1mo ago First seen · 334 lines · 13 tokens per session scan C e4f2f0bd6940

Subscribe to this mod's changes

build-app is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 598 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-30.