Methodologygeneric

new-user

Create an admin user in Medusa

medusajs/medusa-agent-skills
View source

Install

npx skills add https://github.com/medusajs/medusa-agent-skills --skill new-user

Use with your agent

ClaudeCursorOpenAIGemini

Install the new-user skill, then use it as build context. Run: npx skills add https://github.com/medusajs/medusa-agent-skills --skill new-user. Then read the installed skill.md and follow its guidance to build or refactor my project.

Create Admin User

Create a new admin user in Medusa with the specified email and password.

The user will provide two arguments:

  • First argument: email address
  • Second argument: password

For example: /medusa-dev:user [email protected] supersecret

Use the Bash tool to execute the command npx medusa user -e <email> -p <password>, replacing <email> with the first argument and <password> with the second argument.

Report the results to the user, including:

  • Confirmation that the admin user was created successfully
  • The email address of the created user
  • Any errors that occurred
  • Next steps (e.g., logging in to the admin dashboard)