ui-scaffold

ui-scaffold is a skill for Claude Code from srnichols/plan-forge. It costs 68 tokens per session (1,967 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 Code

Written for Claude Code: argument-hint in frontmatter.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/srnichols/plan-forge/ui-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.

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.

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/github.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/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 ui-scaffold

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,967 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.00068 $0.01967
Opus 5.5 $0.00027 $0.00787
Sonnet 5.5 $0.00014 $0.00393
Haiku 4.5 $0.00007 $0.00197

Measured 1mo ago against content hash 2b1109ffef1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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 10+
  2. Microsoft.FluentUI.AspNetCore.Components 4.14.x 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. 1mo ago Changed 2b1109ffef1a
  2. 2mo 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 (6 stars, last pushed 26d ago), licensed MIT. It adds 68 tokens to every session and 1,967 once invoked, about $0.0003 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-03.

Related

ui-scaffold compared with skills from other repositories

ui-scaffold next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-scaffoldsrnichols/plan-forgeSkill626d agoMITA68Claude Code
aspiremanagedcode/dotnet-skillsSkill52716d agoMITA145Claude Code, Codex
microsoft-agent-frameworkmanagedcode/dotnet-skillsSkill52716d agoMITA138Claude Code, Codex
wpfmanagedcode/dotnet-skillsSkill52716d agoMITA122Claude Code, Codex
mcpmanagedcode/dotnet-skillsSkill52716d agoMITA123Claude Code, Codex
microsoft-extensions-aimanagedcode/dotnet-skillsSkill52716d agoMITA128Claude Code, Codex
migrate-xunit-to-mstestmanagedcode/dotnet-skillsSkill52716d agoMITA141Claude Code, Codex