scaffold-project

scaffold-project is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 20 tokens per session (1,246 once invoked), scanned A, original, MIT.

A starter-project generator for Vite, a tool that builds web projects. It creates either a plain TypeScript app, a Lit web-component app, or a publishable library skeleton.

In plain words
What is it for?
Use it to create a new Vite project, optionally configure library builds and TypeScript declarations, and add a minimal Vitest testing setup.
Why use it?
It removes repetitive setup work and provides the basic files and dependencies needed to begin development.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Good fit Use it to create a new Vite project, optionally configure library builds and TypeScript declarations, and add a minimal Vitest testing setup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/scaffold-project
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/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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 scaffold-project

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/scaffold-project.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/scaffold-project)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/scaffold-project"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/scaffold-project.svg" alt="Measured on agentmods" 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 1,246 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.01246
Opus 5 $0.00010 $0.00623
Sonnet 5 $0.00004 $0.00249
Haiku 4.5 $0.00002 $0.00125

Measured 4d ago against content hash 715103ad2ba1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scaffold-project 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 4d 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.

.claude/commands/vite/scaffold-project.md · 179 lines

How it starts

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

Scaffold Vite Project

You are an expert Vite build engineer. Vite has no component model of its own — the closest analog to "generate a component" is scaffolding a new project from an official template, or generating a library skeleton wired for build.lib + vite-plugin-dts.

Scope framework-agnostic uniquement. Pour Vite en tant que dev-server React/Vue/Angular/Svelte, voir le tooling.md de ce stack.

ARGUMENTS

$ARGUMENTS

  • project-name: Directory/package name for the new project (kebab-case)
  • --template=<template>: vanilla-ts (default) or lit-ts
  • --lib: Scaffold a publishable library skeleton instead of an app (adds build.lib + vite-plugin-dts)

MISSION

  1. Run npm create vite@latest non-interactively with the requested template
  2. Install dependencies
  3. If --lib is passed, rewrite vite.config.ts for library mode and add vite-plugin-dts
  4. Add a minimal Vitest setup
  5. Report the created structure and next steps

APP SCAFFOLD (default)

# Vanilla TypeScript SPA
npm create vite@latest <project-name> -- --template vanilla-ts

# Lit + TypeScript (Web Components, still framework-agnostic — no app framework runtime)
npm create vite@latest <project-name> -- --template lit-ts

cd <project-name>
npm install

Resulting Structure (vanilla-ts)

<project-name>/
├── index.html
├── package.json
├── tsconfig.json
├── vite.config.ts        # generated by scaffold-project when --lib is not set; add manually otherwise
├── public/
│   └── vite.svg
└── src/
    ├── main.ts
    ├── style.css
    ├── counter.ts
    └── typescript.svg

LIBRARY SCAFFOLD (--lib)

Start from vanilla-ts, then add library-mode config:

npm create vite@latest <project-name> -- --template vanilla-ts
cd <project-name>
npm install
npm install -D vite-plugin-dts
// vite.config.ts
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'

export default defineConfig({
  plugins: [
    dts({
      include: ['src'],
      rollupTypes: true,
    }),
  ],
  build: {
    lib: {
      entry: 'src/index.ts',
      name: 'MyLib',
      formats: ['es', 'cjs'],
      fileName: (format) => `my-lib.${format === 'es' ? 'js' : 'cjs'}`,
    },
    rollupOptions: {
      // Externalize peer dependencies that consumers must provide
      external: [],
    },
  },
})

Read the full file on GitHub · 179 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. 4d ago First seen · 179 lines · 20 tokens per session scan A 715103ad2ba1

Subscribe to this mod's changes

scaffold-project is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 5d ago), licensed MIT. It adds 20 tokens to every session and 1,246 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-09-03.