ui-scaffold

ui-scaffold is a skill for Claude Code, Codex from srnichols/plan-forge. It costs 68 tokens per session (1,962 once invoked), scanned A, original, MIT.

A scaffold for adding a new page to a Blazor Server application, a .NET web app that renders interactive components. It creates the service layer, page markup and code, data-transfer object, validation, error handling, and a bUnit component test.

In plain words
What is it for?
Use it to add forms or CRUD pages for entities such as clients, invoices, or time entries while following layered architecture and Fluent UI conventions.
Why use it?
It prevents new pages from putting database access directly in the UI or shipping without tests, validation, error handling, and accessibility considerations.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/srnichols/plan-forge/ui-scaffold
Any agent
npx skills add srnichols/plan-forge --skill ui-scaffold
Clone the repo
git clone --depth 1 https://github.com/srnichols/plan-forge

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/srnichols/plan-forge/ui-scaffold.svg)](https://agentmods.dev/skills/srnichols/plan-forge/ui-scaffold)
Your own site
<a href="https://agentmods.dev/skills/srnichols/plan-forge/ui-scaffold"><img src="https://agentmods.dev/badge/skills/srnichols/plan-forge/ui-scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,962 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00068 $0.01962
Opus 5 $0.00034 $0.00981
Sonnet 5 $0.00014 $0.00392
Haiku 4.5 $0.00007 $0.00196

Measured 2d ago against content hash b8ba6db93894, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ui-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 2d 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.

presets/dotnet/.github/skills/ui-scaffold/SKILL.md · 178 lines

How it starts

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

UI Scaffold Skill (Blazor + Fluent UI)

Trigger

"Scaffold a Clients page" / "Add a UI for invoices" / "Create a Blazor form for time entries" / /ui-scaffold Clients --crud

Why This Skill Exists

A naïve scaffold produces a .razor file that injects the DbContext, queries directly, and ships with no tests, no error UI, no accessibility. That's vibe-coded UI — exactly what Plan-Forge exists to prevent. This skill enforces the layered architecture from architecture-principles.instructions.md and the component discipline from blazor-fluent-ui.instructions.md on every new page.

Preconditions (verify before scaffolding)

  1. The project is a Blazor Server app (or Blazor United host) on .NET 8+
  2. Microsoft.FluentUI.AspNetCore.Components is referenced in the Web project
  3. The entity model exists in a Core/Domain project (e.g., TimeTracker.Core/Models/Client.cs)
  4. .github/instructions/blazor-fluent-ui.instructions.md is present (loaded by setup)

If any precondition fails, stop and surface the gap — do not scaffold against an incompatible project.

Steps

1. Confirm Scope

Read the entity model and any existing service for the same entity.

read_file path: src/<Project>.Core/Models/<Entity>.cs
file_search query: src/**/Services/I<Entity>Service.cs

If a service already exists, scaffold the UI against it. If not, scaffold the service interface first (Step 2). Do not let the page reach into the DbContext even temporarily — every shortcut becomes permanent.

2. Service Layer (if missing)

Generate or update:

  • src/<Api or Web>/Services/I<Entity>Service.cs — interface with GetAllAsync(CancellationToken), GetByIdAsync(Guid, CancellationToken), plus CreateAsync/UpdateAsync/DeleteAsync for --crud mode.
  • src/<Api or Web>/Services/<Entity>Service.cs — implementation that takes DbContext (or repository) via constructor injection.

Register the service in Program.cs:

builder.Services.AddScoped<IClientService, ClientService>();

Read the full file on GitHub · 178 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. 2d ago First seen · 178 lines · 68 tokens per session scan A b8ba6db93894

Subscribe to this mod's changes

ui-scaffold is a skill published in the GitHub repository srnichols/plan-forge (5 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 1,962 once invoked, about $0.0003 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.