francescovallone/serinus/serinus-application-bootstrap

Claude Code and agent skill by francescovallone/serinus

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when creating or updating a Serinus app entrypoint, bootstrapping with serinus.createApplication() or serinus.createMinimalApplication(), configuring host/port, globalPrefix, versioning, or adding global hooks, pipes, and exception filters before serve().

Install

npx vskill@latest install francescovallone/serinus/serinus-application-bootstrap

SKILL.md

Serinus Application Bootstrap

Guidelines

  • Prefer serinus.createApplication(entrypoint: AppModule()) for normal Serinus apps built from modules, controllers, and providers.
  • Use serinus.createMinimalApplication() only when the app is intentionally route-first and dynamically configured.
  • Keep bootstrap asynchronous: create the app, apply configuration, then await app.serve().
  • Set app.globalPrefix and app.versioning after the app is created and before serve().
  • Use app.use(...) only for global Hook, Pipe, and ExceptionFilter instances. Do not pass Middleware to app.use().
  • When setting host or port, remember Serinus still honors HOST and PORT environment variables and uses them when present.
  • Keep the entrypoint module small. Put features in imported modules instead of growing one root module indefinitely.

Prefer This Pattern

dart
import 'package:serinus/serinus.dart';
import 'app_module.dart';
Future<void> main() async {
final app = await serinus.createApplication(
entrypoint: AppModule(),
host: '0.0.0.0',
port: 3000,
);
app.globalPrefix = '/api';
app.use(CorsHook());
await app.serve();
}

Avoid

  • Do not build application features directly in main() if they belong in a module or provider.
  • Do not register route middlewares through app.use(). Middlewares belong in Module.configure() or minimal-app helpers.
  • Do not call serve() before applying global configuration.

When Editing Existing Bootstrap Code

  • Preserve whether the app is using createApplication() or createMinimalApplication() unless the user explicitly wants an architectural change.
  • Preserve existing host, port, compression, raw body, or security context options unless the task requires changing them.
  • If the app already imports specialized modules like WsModule() or SseModule(), keep bootstrap focused on startup concerns rather than feature wiring.

References

  • references/bootstrap-and-app-config.md for bootstrap, global prefix, and versioning patterns.
  • references/model-provider.md for typed model conversion and modelProvider integration.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
108
Repository forks
11
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/francescovallone/serinus/serinus-application-bootstrap/badge)](https://verified-skill.com/skills/francescovallone/serinus/serinus-application-bootstrap)

Something wrong with this skill or its page? Tell us.