/echonext:echonext-clifrom echonext
Scaffolds EchoNext projects and generates code (domain, handler, service, model, DTO, middleware, OpenAPI, GraphQL, WebSocket, upload). Runs dev server with hot reload, builds, tests, and manages database migrations.
Ships in echonext. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The echonext CLI (a Cobra app under cmd/echonext-cli) scaffolds projects,
generates code from templates, runs a hot-reload dev server, builds, tests, and
drives Atlas database migrations. Prefer the generators over hand-writing
boilerplate — they emit code in the framework's conventional layout.
echonext binaryEvery command below needs the CLI on PATH. Check for it first, and install it
when it is missing — do not report the commands as unavailable:
command -v echonext
To install, prefer the script: it builds the binary, renames echonext-cli to
echonext, and reports whether the install directory is on PATH.
curl -sSL https://raw.githubusercontent.com/abdussamadbello/echonext/main/install.sh | bash
On Windows, use iwr -useb https://raw.githubusercontent.com/abdussamadbello/echonext/main/install.ps1 | iex.
To install with the Go toolchain instead, note that the binary is named
echonext-cli and must be linked or invoked under that name:
go install github.com/abdussamadbello/echonext/cmd/echonext-cli@latest
ln -sf "$(go env GOPATH)/bin/echonext-cli" "$(go env GOPATH)/bin/echonext"
EchoNext v1.5.0 requires Go 1.26 or newer. Verify with go version before
installing, and report the mismatch rather than proceeding if the toolchain is older.
echonext init <name> # create a new project
echonext init <name> -t microservice # template: standard|minimal|microservice|monolith
echonext init <name> -m github.com/me/app # set the Go module name
echonext dev # dev server with hot reload
echonext test # run tests (pass extra go flags after --, e.g. -- -run TestX)
echonext build # production build
echonext docs # generate project documentation
echonext generate <kind> [name]| Command | Generates |
|---|---|
generate domain <name> | A complete domain: model + service + handler + DTO |
generate handler <name> | HTTP handler boilerplate |
generate service <name> | Business-logic service |
generate model <name> | GORM model |
generate dto <name> | Request/response DTOs |
generate middleware <name> | Custom middleware |
generate otel | OpenTelemetry instrumentation setup |
generate openapi <spec-file> | Code from an OpenAPI spec |
generate graphql | GraphQL boilerplate (gqlgen) |
generate websocket <name> | WebSocket handler boilerplate |
generate upload <name> | File-upload handler boilerplate |
For adding a feature/resource, start with generate domain — see the
echonext-domain skill. For OpenAPI/auth details see
echonext-openapi-security; for the integration generators see
echonext-integrations.
echonext db <command> (Atlas)echonext db init # initialize Atlas migration setup
echonext db migrate # apply pending migrations
echonext db migrate:status # show migration status
echonext db migrate:new <name> # create a new empty migration file
echonext db migrate:diff <name> # generate a migration from model/schema changes
echonext db migrate:down # roll back migrations
echonext db migrate:lint # lint migrations for issues
echonext db schema:inspect # inspect the current database schema
echonext db seed # seed the database with sample data
See the echonext-database skill for how models and the Repository[T]
pattern relate to these migration commands.
echonext init creates a new project; echonext db init initializes
Atlas migrations inside an existing project — they are different commands.echonext dev) watches for changes and rebuilds; use it
instead of go run while iterating.generate domain/model, regenerate migrations with
db migrate:diff <name> so the schema tracks your Go models.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub abdussamadbello/echonext --plugin echonext9 skills in this plugin
/echonext-databaseWork with EchoNext's database layer: GORM models, the generic Repository[T] pattern from pkg/contrib/database, and Atlas migrations/seeds via the CLI. Use when defining models, querying/persisting data, or creating and applying migrations in an echonext project./echonext-domainScaffold and wire up a complete EchoNext domain (model + service + handler + DTO) following the framework's conventional layout. Use when adding a new resource, feature, or entity to an echonext project (e.g. "add a users endpoint", "create a products domain")./echonext-handlersWrite and register type-safe EchoNext HTTP handlers, request structs, and routes. Use when adding, editing, or debugging an echonext handler function, a request/response struct, validation tags, or a route registration (GET/POST/PUT/PATCH/DELETE)./echonext-integrationsAdd WebSocket, GraphQL, or file-upload endpoints to an EchoNext app. Use when building real-time/WebSocket handlers (Hub pattern), wiring a gqlgen GraphQL schema, or accepting multipart file uploads with validation./echonext-middleware-configRegister, order and write EchoNext middleware, and load application configuration. Use when adding middleware (auth, CORS, logging, request IDs, metrics, tracing) to an echonext app or group, writing a custom echo.MiddlewareFunc, or loading config from YAML/env with the contrib config package./echonext-openapi-securityConfigure EchoNext's auto-generated OpenAPI spec and authentication. Use when setting API metadata (title/servers/contact), serving the OpenAPI JSON or Swagger UI, or adding auth (bearer/JWT, API key, OAuth2, OpenID Connect) via security schemes and per-route or global security requirements.Other plugins' skills for the same job