Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Umbrella Dotnet Scaffold Client Data

ASecurity

Scaffold a client-side HTTP data service implementing an existing IManage<Name>Service interface, following the Umbrella GenericHttpDataService pattern. Registers the service in the client project and updates the server DI from AddScoped to ReplaceScoped.

8 stars
0 votes
0 copies
0 views
Added 9/22/2026
toolsapi

Works with

cliapi

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add umbrella-libraries/Umbrella --skill umbrella-dotnet-scaffold-client-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Umbrella Dotnet Scaffold Client Data?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Umbrella Dotnet Scaffold Client Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/umbrella-libraries-umbrella-dotnet-scaffold-client-data-umbrella/badge)](https://www.skillsdirectory.com/skills/umbrella-libraries-umbrella-dotnet-scaffold-client-data-umbrella)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: umbrella-dotnet-scaffold-client-data
description: 'Scaffold a client-side HTTP data service implementing an existing IManage<Name>Service interface, following the Umbrella GenericHttpDataService pattern. Registers the service in the client project and updates the server DI from AddScoped to ReplaceScoped.'
---

# Scaffold Client Data Service

## Purpose

Add a client-side HTTP data service to `Web\<AppName>.Web.Client.Data\Services\` that implements an existing `IManage<Name>Service` interface using `GenericHttpDataService`. This is the transport layer that Blazor client components use to call the API — the same interface that `Manage<Name>ControllerService` implements on the server side.

**Prerequisite:** `umbrella-dotnet-scaffold-api-data-service-controller` must have run first. The service interface (`IManage<Name>Service`) and server controller service (`Manage<Name>ControllerService`) must already exist.

This skill also updates the server DI registration from `AddScoped` to `ReplaceScoped`, so the server continues to use the direct-repository implementation while the client uses this HTTP implementation.

## Discovery (read these before writing anything)

1. Read 2–3 existing client data services in `Web\<AppName>.Web.Client.Data\Services\` to confirm naming conventions, usings, and the exact `ApiUrl` format used (e.g. `"api/ManageIndustry"`).
2. Read `Web\<AppName>.Web.Client.Data\IServiceCollectionExtensions.cs` to see where to add the `AddScoped` registration and how existing services are registered.
3. Read `Web\<AppName>.Web.Server\IServiceCollectionExtensions.cs` — find the `// Controller Services` section to confirm the current registration for `IManage<Name>Service` and whether it is already `ReplaceScoped`.

---

## Step 1 -- Create the client data service

**File:** `Web\<AppName>.Web.Client.Data\Services\Manage<Name>Service.cs`

```csharp
using <AppName>.Web.Client.Data.Services.Abstractions;
using <AppName>.Web.Shared.Models.Api.Manage<Name>;
using Umbrella.Utilities.Data.Pagination;
using Umbrella.Utilities.DataAnnotations.Abstractions;
using Umbrella.Utilities.Http.Abstractions;

namespace <AppName>.Web.Client.Data.Services;

internal sealed class Manage<Name>Service : GenericHttpDataService<
    Manage<Name>Model,
    int,
    SlimManage<Name>Model,
    PaginatedResultModel<SlimManage<Name>Model>,
    CreateManage<Name>Model,
    CreateManage<Name>ResultModel,
    UpdateManage<Name>Model,
    UpdateManage<Name>ResultModel>, IManage<Name>Service
{
    public Manage<Name>Service(
        ILogger<Manage<Name>Service> logger,
        IGenericHttpService httpService,
        IGenericHttpServiceUtility httpServiceUtility,
        IUmbrellaValidator validator)
        : base(logger, httpService, httpServiceUtility, validator)
    {
    }

    protected override string ApiUrl => "api/Manage<Name>";
}
```

**Rules:**
- `internal sealed class` — the service is resolved via the interface; it never needs to be referenced directly outside this assembly.
- `GenericHttpDataService` generic params in order (8 total): `TModel`, `TIdentifier`, `TSlimModel`, `TPaginatedResultModel`, `TCreateModel`, `TCreateResultModel`, `TUpdateModel`, `TUpdateResultModel`. Note `TModel` comes first (same order as `IGenericDataService`).
- `ApiUrl` must match the controller's route: `[Route("api/[controller]")]` resolves to `"api/Manage<Name>"` — verify against the existing controller.
- No additional overrides are needed unless an endpoint uses a non-standard URL segment. Check existing client services to confirm.

---

## Step 2 -- Register in client DI

**File:** `Web\<AppName>.Web.Client.Data\IServiceCollectionExtensions.cs`

Add one line in alphabetical order among the other `AddScoped` service registrations. Preserve unrelated registration order and formatting; do not turn this focused scaffold into a wholesale reordering of an existing section.

```csharp
_ = services.AddScoped<IManage<Name>Service, Manage<Name>Service>();
```

---

## Step 3 -- Update server DI registration

**File:** `Web\<AppName>.Web.Server\IServiceCollectionExtensions.cs`

Find the existing `AddScoped<IManage<Name>Service, Manage<Name>ControllerService>()` line added by `umbrella-dotnet-scaffold-api-data-service-controller` and change it to `ReplaceScoped`:

```csharp
// Before:
_ = services.AddScoped<IManage<Name>Service, Manage<Name>ControllerService>();

// After:
_ = services.ReplaceScoped<IManage<Name>Service, Manage<Name>ControllerService>();
```

This ensures that at server runtime the client's `AddScoped` registration (loaded when the server bootstraps the client services for SSR pre-rendering) is replaced by the direct-repository implementation.

If the server registration is already `ReplaceScoped`, skip this step.

---

## Analyzer compatibility

Before finishing, read `.ai-shared\bundles\umbrella\analyzer-compatibility.md` and build the affected projects with their installed analyzers enabled. Treat diagnostics introduced by the generated or changed code as defects in this workflow.

## Verification

1. The client service is `internal sealed class` inheriting `GenericHttpDataService` with 8 type params in the correct order (same as `IGenericDataService`).
2. `ApiUrl` matches the controller route — confirm against the existing controller file.
3. `AddScoped<IManage<Name>Service, Manage<Name>Service>()` is present in `Web.Client.Data.IServiceCollectionExtensions.cs`.
4. The server registration for `IManage<Name>Service` is now `ReplaceScoped` (not `AddScoped`).
5. The implementation imports the namespaces that own `IUmbrellaValidator`, `IGenericHttpService`, and `IGenericHttpServiceUtility`; do not rely on project-specific global usings unless discovery confirms them.

Attribution

umbrella-librariesumbrella-libraries
View sourceMore from umbrella-libraries →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

813271 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1066600 votes
View all in tools →