agentsclimarketplace

Aspnet core service workflow

Skill gaelic-ghost/socket/plugins/dotnet-skills/skills/aspnet-core-service-workflow

Plan, build, and validate ASP.NET Core service surfaces for F#, C#, or mixed .NET solutions using explicit project ownership, configuration, endpoints, tests, and dotnet CLI validation.From its SKILL.md

Install
npx -y skills add gaelic-ghost/socket --skill aspnet-core-service-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.6 KB, 884 tokens by cl100k_base, as published. Nobody here has run it

ASP.NET Core Service Workflow

Purpose

Build or modify an ASP.NET Core service with clear ownership, configuration, endpoints, tests, and validation.

The practical decision is what the service exposes, which project owns the HTTP host, where domain logic lives, how configuration reaches the app, and how tests prove behavior without turning the whole service into a fragile integration fixture.

When To Use

  • Use this skill when adding or changing an ASP.NET Core API or service.
  • Use this skill when deciding whether a .NET project should be a web service or a library consumed by one.
  • Use this skill when adding endpoints, middleware, configuration, dependency injection, or service tests.
  • Use this skill after dotnet:choose-project-shape has identified an ASP.NET Core service shape.

Source Check

Use repo-local .NET files, checked-out dependency sources, Dash MCP or Dash HTTP for installed .NET docsets, and then official Microsoft documentation when Dash/local coverage is missing or stale:

Planning Workflow

  1. Inspect project shape:
    • web project
    • domain library
    • test project
    • config files
    • existing endpoints
    • existing hosting style
  2. Identify the service job:
    • HTTP API
    • local service
    • webhook receiver
    • background worker plus HTTP health surface
    • internal admin tool
  3. Choose language and boundary:
    • F# service
    • C# service
    • C# host with F# domain library
    • F# host with C# infrastructure library
  4. Keep domain logic outside endpoint handlers when it has real behavior.
  5. Keep configuration explicit and environment-safe.
  6. Add tests at the smallest useful level.
  7. Validate with dotnet build and dotnet test.

F# Service Notes

For F# services:

  • keep endpoint functions small
  • model request and response data clearly
  • keep domain transformations in modules that can be tested without the HTTP host
  • be explicit at task/async boundaries
  • preserve .fsproj file ordering

C# Service Notes

For C# services:

  • keep nullable request/response contracts clear
  • avoid overbuilding service classes for one endpoint
  • use dependency injection for real external dependencies, not as decoration
  • keep middleware and endpoint registration readable
  • respect analyzers and warnings-as-errors

Configuration And Secrets

Do not commit secrets.

For local development, follow repo conventions first. If none exist, recommend committed safe defaults and ignored local overrides rather than hard-coded secrets. Explain which settings are required for the app to start and which settings are optional.

Testing

Choose the smallest test that proves the behavior:

  • pure domain test for business rules
  • endpoint-level test for routing, validation, or response shape
  • integration test for host/config/middleware behavior

Do not run live external services as ordinary unit tests unless the repo already has an isolated test harness for that purpose.

Output Shape

Return:

  1. Service shape: host project, domain project, and test project.
  2. Language boundary: F#, C#, or mixed.
  3. Endpoint behavior: routes, inputs, outputs, and errors.
  4. Configuration: required settings and local override behavior.
  5. Tests: level and command.
  6. Validation: exact dotnet commands and results.

Guardrails

  • Do not add a new service layer without naming the real duplication or testability issue it removes.
  • Do not put significant business rules directly inside endpoint registration.
  • Do not commit secrets or machine-local configuration.
  • Do not make ASP.NET Core the default .NET app shape when a library or CLI would fit better.
  • Do not ignore F# compile ordering or C# nullable/analyzer settings.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,736. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.