Adding a new microservice

Scaffold a new microservice with doc.go, service.yaml, and code generation.

172|5|Updated Sep 9, 2022
One-click install
npx skills add https://github.com/microbus-io/fabric --skill adding-a-new-microservice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Adding a new microservice
Source: https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-microservice
Command: npx skills add https://github.com/microbus-io/fabric --skill adding-a-new-microservice

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a guided workflow to scaffold and initialize a new microservice project, reducing setup time and ensuring consistency across services.

Core Features & Use Cases

  • Guided scaffolding: Creates a new microservice directory, adds doc.go with a code-generation directive, and prepares initial project files.
  • Automated boilerplate: Generates the initial service.yaml and microservice file structure via the code generator.
  • Application wiring: Demonstrates how to wire the new microservice into the main application and outline future feature proposals.

Quick Start

Follow the sequence: create the new microservice directory, add doc.go with the code generation directive, run go generate to produce service.yaml and structure, fill in service.yaml's general section, run code generation again to finalize, and update main.go to register the new microservice. Then propose features in AGENTS.md.

Frequently Asked Questions about Adding a new microservice

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

FAQPage Schema
How do I scaffold a new microservice in Go?

Yes, you can initialize a microservice by adding doc.go with a code generation directive and running go generate to produce service.yaml and the directory structure.

How do I wire a newly scaffolded microservice into an existing application?

You wire a new microservice into the main application by updating main.go to register it, ensuring the scaffolded service is integrated after the initial code generation steps are complete.

What is the workflow for initializing a microservice with codegen?

The microservice initialization workflow uses code generation to define the directory structure, generate service.yaml, and create the skeleton, enforcing a reproducible setup across new projects.

Does scaffolding a microservice require manual service.yaml configuration?

Yes, after running the initial code generation to create service.yaml, you must manually fill in its general section before running code generation again to finalize the microservice.

What is the best way to ensure consistency when adding a new microservice?

Using an automated scaffolding workflow ensures consistency by generating standard boilerplate like doc.go, service.yaml, and the microservice skeleton, reducing manual setup time and errors.