Using a coding agent is the best way of working with microservices, including the creation of new ones.
Start your coding agent, e.g.:
claude
Use a prompt similar to the following to create a new microservice.
HEY CLAUDE…
Create a new “stripe” microservice that will process credit card payments via Stripe. Place it under the @financial/ directory. Set its hostname to “stripe.financial.ex”.
Use prompts such as the following to add one feature at a time to the microservice:
HEY CLAUDE…
Add a config property that will hold the Stripe API key. Make it secret.
HEY CLAUDE…
Create a functional endpoint “CreateIntent” that accepts a credit card number, email, and a dollar amount as arguments, and calls the Stripe API to create an intent. If successful, it should return the transaction ID.