Borrowing it
Nothing to install: this file belongs to rios0rios0/guide. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rios0rios0/guide/main/.github/workflows/generate-ai-rules/commands/scaffold-frontend-project.mdgit clone --depth 1 https://github.com/rios0rios0/guideWrote 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.
[](https://agentmods.dev/commands/rios0rios0/guide/scaffold-frontend-project)<a href="https://agentmods.dev/commands/rios0rios0/guide/scaffold-frontend-project"><img src="https://agentmods.dev/badge/commands/rios0rios0/guide/scaffold-frontend-project.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01094 |
| Opus 5 | $0.00000 | $0.00547 |
| Sonnet 5 | $0.00000 | $0.00219 |
| Haiku 4.5 | $0.00000 | $0.00109 |
Grade A, and why
scaffold-frontend-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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scaffold a new frontend project following the 5-layer Clean Architecture (Domain, Service, Infrastructure, Presentation, Main).
For architecture details, refer to the Frontend Design section of the Architecture rule. For TypeScript standards, refer to the JavaScript rule. For testing patterns, refer to the Testing rule. For Makefile setup, refer to the CI/CD rule.
5-Layer Architecture
Domain (most abstract -- entities and contracts)
^
Service (API and external service communication)
^
Infrastructure (technology-specific implementations)
^
Presentation (views and UI components)
^
Main (DI wiring, providers -- "dirty" layer)
Dependencies ALWAYS point towards Domain. Main is the only layer that knows about all others.
Directory Structure
src/
├── domain/
│ ├── entities/
│ │ └── user.ts
│ └── contracts/
│ └── user_repository.ts
├── service/
│ └── user_service.ts
├── infrastructure/
│ └── http_user_repository.ts
├── presentation/
│ ├── components/
│ │ └── user_list.tsx
│ ├── pages/
│ │ └── users_page.tsx
│ └── hooks/
│ └── use_users.ts
├── main/
│ ├── providers/
│ │ └── user_provider.tsx
│ ├── di/
│ │ └── container.ts
│ └── app.tsx
└── index.tsx
Step-by-Step
1. Create the Domain layer -- entities and repository contracts
// src/domain/entities/user.ts
export interface User {
id: string;
name: string;
email: string;
}
// src/domain/contracts/user_repository.ts
import { User } from '../entities/user';
export interface UserRepository {
findAll(): Promise<User[]>;
findById(id: string): Promise<User | null>;
}
2. Create the Service layer
// src/service/user_service.ts
import { User } from '../domain/entities/user';
import { UserRepository } from '../domain/contracts/user_repository';
export class UserService {
constructor(private readonly repository: UserRepository) {}
async listUsers(): Promise<User[]> {
return this.repository.findAll();
}
}
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.
- 7d ago First seen · 169 lines · 0 tokens per session scan A 37badb3aeeff
scaffold-frontend-project is a command published in the GitHub repository rios0rios0/guide (2 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,094 tokens. 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.
Other commands, from other repositories
design-import
Scaffolds React components from a Claude Design handoff bundle and stops at files on disk: no stories, no tests, no pull request. Use when handed a claude.ai/design URL or a local bundle file; when that same scaffold should carry on through test generation, browser verification and an opened PR, run /ork:design-ship…
react-router-client-loader
Do this in a clientLoader and use loaderData to render the component. DO NOT create mock data, new interfaces, or mock data loader functions. Instead, assume loaderData has all of the data you need to render the component.
pn-frontend-redo
Audit-driven frontend remediation on an existing app — baseline audit, slice plan, sequential UI slices with maker-checker gates, preflight, deliver. Use instead of pn-program for same-repo sequential surfaces (Home → fight → chrome). Not for greenfield (pn-design) or parallel vertical slices (pn-program).
pn-audit-a11y
Surgical frontend accessibility audit — WCAG contrast, keyboard navigation, ARIA roles, focus management, and screen-reader compatibility. Standalone or chained by pn-frontend-audit.
pn-audit-layout
Surgical frontend layout audit — spacing tokens, grid consistency, component rhythm, and responsive behavior. Standalone or chained by pn-frontend-audit.
ui-test
A UI review command that changes an interface to match a design and then checks the result in a real browser.