Skip to content
Back to skills

Name Microservice

ASecurity

How to choose the hostname of a new Microbus microservice. Referenced by the add-microservice and add-sql-microservice scaffolding skills (and, through their delegation to add-microservice, by add-python-microservice and import-openapi-microservice). Consult it whenever a microservice's hostname is being chosen.

  • 172 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
researchpythonsqlexpressgitapi

Works with

  • api

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add microbus-io/fabric --skill name-microservice --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Name Microservice?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Name Microservice
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/microbus-io-name-microservice/badge)](https://www.skillsdirectory.com/skills/microbus-io-name-microservice)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: name-microservice
description: How to choose the hostname of a new Microbus microservice. Referenced by the add-microservice and add-sql-microservice scaffolding skills (and, through their delegation to add-microservice, by add-python-microservice and import-openapi-microservice). Consult it whenever a microservice's hostname is being chosen.
---

A microservice's hostname is its unique address on the bus. It expresses where the microservice sits in the
system's domain hierarchy, not what kind of operations it performs.

## The convention

Compose the hostname from dotted segments in the form `myservice.mydomain.myapp.mycompany`, ordered most-specific
first. Only `myservice` is required; each trailing segment is optional and included only when it earns its place:

- **`myservice`** (required) - names what the microservice does. When a microservice is dedicated to a single role,
  fold the role word into this segment rather than making it a separate dotted segment: `usersui` for a UI,
  `orderscrud` for a CRUD store, `planneragent` for an agent. A separate `.ui` or `.agent` segment would read as a
  domain and is wrong - the hostname carries domain, not operation type.
- **`mydomain`** (optional) - groups microservices that belong to the same domain under a shared suffix, relating
  them to each other. Omit it for small projects; add deeper levels (`myservice.mysubdomain.mydomain`) when finer
  grouping helps.
- **`myapp`** (optional) - the application name, isolating one app from other apps that share a single NATS cluster.
  Omit it when a single app owns the cluster.
- **`mycompany`** (optional) - a trailing company suffix, used only for microservices meant to be consumed by other
  companies. Omit it for microservices internal to a single company's project.

Only letters `a-z`, digits `0-9`, hyphens `-`, and the dot `.` separator are allowed, and the hostname must be
unique across the application.

## Deriving the hostname in this repository

Derive the segments from the module path up to and including the project name. For module path
`github.com/mycompany/myproject/some/path/myservice`, the hostname is `myservice.path.some.myproject` - the
directories under the project supply the domain and app grouping, and the company segment is dropped because the
services are internal.

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.