new-service

Generate .NET microservice boilerplate code and configuration files.

Updated Jul 3, 2025
One-click install
npx skills add https://github.com/HiveSpaceTeam/hivespace.microservice --skill new-service-hivespaceteam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-service
Source: https://github.com/HiveSpaceTeam/hivespace.microservice/tree/main/.agent-source/skills/new-service
Command: npx skills add https://github.com/HiveSpaceTeam/hivespace.microservice --skill new-service-hivespaceteam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotnet, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for a structured approach to creating new microservices, offering automation and guidance to speed up the process and ensure best practices are followed.

Core Features & Use Cases

  • Microservice Creation: Automates the generation of microservice boilerplate code and configuration files.
  • Service Scaffolding: Offers pre-defined templates for different service types (Full and Lite).
  • Post-Scaffold Steps: Provides clear instructions for completing the creation process, including error code setup, connection string configuration, and project verification.
  • Use Case: When a user wants to add a new microservice to their project, this Skill simplifies the setup by automating many of the manual steps involved.

Quick Start

To create a new Full Service microservice named 'OrderService', run: 'new-service --create-service OrderService --type Full'

Frequently Asked Questions about new-service

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate microservice creation and scaffolding in .NET?

Automating microservice creation in .NET is done by running a scaffold script that generates boilerplate code and configuration files. You execute the command with parameters specifying the service name and template type, such as Full or Lite.

What is the best way to scaffold a new .NET microservice?

Scaffolding a new .NET microservice is best handled by an automation script that applies pre-defined templates for service types. This generates the necessary boilerplate code, ensuring structured setup and adherence to best practices without manual file creation.

Do I need PowerShell and .NET SDK to scaffold microservices?

Yes, you need PowerShell to execute the scaffold script and the .NET SDK 8.0.411 or higher as a prerequisite. These tools provide the execution environment and runtime framework required to generate and configure the microservice boilerplate.

What steps are required after scaffolding a new microservice?

Post-scaffolding steps involve configuring error codes, setting up database connection strings, and verifying the generated project. These actions complete the microservice setup and ensure the boilerplate code is correctly integrated into the .NET environment.

Can I generate a Lite microservice template instead of a Full Service?

Yes, you can generate a Lite microservice template by specifying the type parameter in the creation command. The scaffolding tool offers both Full and Lite pre-defined templates to match different architectural requirements.

Why use an automation script for microservice boilerplate instead of manual setup?

Using an automation script for microservice boilerplate eliminates manual configuration errors and speeds up development. It provides a structured approach to service creation by standardizing boilerplate code generation and ensuring consistent best practices across microservices.