typescript-scaffold

typescript-scaffold is a command for Claude Code from HermeticOrmus/LibreUIUX-Claude-Code. It costs 14 tokens per session (2,347 once invoked), scanned A, original, MIT.

A command for creating a new TypeScript project with a selected application structure and modern development tools. It supports project types such as Next.js, React with Vite, Node.js APIs, libraries, and command-line tools.

In plain words
What is it for?
Use it to scaffold frontend applications, full-stack applications, backend services, reusable packages, and command-line programs. The setup includes package management, type safety, testing, and build configuration.
Why use it?
It removes the repetitive work of creating folders, dependency configuration, build settings, and testing setup from scratch. It also provides a consistent starting structure for different kinds of TypeScript projects.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the javascript-typescript plugin — 4 skills, 1 command, 2 agents shipped together

Good fit Use it to scaffold frontend applications, full-stack applications, backend services, reusable packages, and command-line programs. The setup includes package management, type safety, testing, and build configuration.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libreuiux-claude-code/typescript-scaffold
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/HermeticOrmus/LibreUIUX-Claude-Code

Made for: Claude Code.

Or install javascript-typescript, the plugin that ships this one along with the rest of its 4 skills, 1 command, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/typescript-scaffold/github.svg)](https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/typescript-scaffold)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/typescript-scaffold"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/typescript-scaffold/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 typescript-scaffold

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/typescript-scaffold"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/typescript-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,347 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.00014 $0.02347
Opus 5.5 $0.00006 $0.00939
Sonnet 5.5 $0.00003 $0.00469
Haiku 4.5 $0.00001 $0.00235

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

Security

Grade A, and why

typescript-scaffold 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 18d 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:

plugins/javascript-typescript/commands/typescript-scaffold.md · 352 lines

How it starts

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

TypeScript Project Scaffolding

You are a TypeScript project architecture expert specializing in scaffolding production-ready Node.js and frontend applications. Generate complete project structures with modern tooling (pnpm, Vite, Next.js), type safety, testing setup, and configuration following current best practices.

Context

The user needs automated TypeScript project scaffolding that creates consistent, type-safe applications with proper structure, dependency management, testing, and build tooling. Focus on modern TypeScript patterns and scalable architecture.

Requirements

$ARGUMENTS

Instructions

1. Analyze Project Type

Determine the project type from user requirements:

  • Next.js: Full-stack React applications, SSR/SSG, API routes
  • React + Vite: SPA applications, component libraries
  • Node.js API: Express/Fastify backends, microservices
  • Library: Reusable packages, utilities, tools
  • CLI: Command-line tools, automation scripts

2. Initialize Project with pnpm

# Install pnpm if needed
npm install -g pnpm

# Initialize project
mkdir project-name && cd project-name
pnpm init

# Initialize git
git init
echo "node_modules/" >> .gitignore
echo "dist/" >> .gitignore
echo ".env" >> .gitignore

3. Generate Next.js Project Structure

# Create Next.js project with TypeScript
pnpm create next-app@latest . --typescript --tailwind --app --src-dir --import-alias "@/*"
nextjs-project/
├── package.json
├── tsconfig.json
├── next.config.js
├── .env.example
├── src/
│   ├── app/
│   │   ├── layout.tsx
│   │   ├── page.tsx
│   │   ├── api/
│   │   │   └── health/
│   │   │       └── route.ts
│   │   └── (routes)/
│   │       └── dashboard/
│   │           └── page.tsx
│   ├── components/
│   │   ├── ui/
│   │   │   ├── Button.tsx
│   │   │   └── Card.tsx
│   │   └── layout/
│   │       ├── Header.tsx
│   │       └── Footer.tsx
│   ├── lib/
│   │   ├── api.ts
│   │   ├── utils.ts
│   │   └── types.ts
│   └── hooks/
│       ├── useAuth.ts
│       └── useFetch.ts
└── tests/
    ├── setup.ts
    └── components/
        └── Button.test.tsx

Read the full file on GitHub · 352 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. 18d ago Changed · +5 lines · +14 tokens per session a35709187f70
  2. 29d ago First seen · 347 lines · 0 tokens per session scan A b6fe21500713

Subscribe to this mod's changes

typescript-scaffold is a command published in the GitHub repository HermeticOrmus/LibreUIUX-Claude-Code (115 stars, last pushed 14d ago), licensed MIT. It adds 14 tokens to every session and 2,347 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-09-20.