> spring-boot-deployment
Standards for GraalVM Native Images, Docker, and Graceful Shutdown. Use when deploying Spring Boot apps as GraalVM native images, containers, or configuring shutdown. (triggers: Dockerfile, compose.yml, docker-layer, native-image, graceful-shutdown)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/spring-boot-deployment?format=md"Spring Boot Deployment Standards
Priority: P0
Implementation Guidelines
GraalVM Native Images (AOT)
- Use Case: Serverless/CLI tools requiring instant startup.
- Constraints: Register reflection via Runtime Hints. Libraries must be compatible.
- Build: Use
bootBuildImage(Gradle) orspring-boot:build-image(Maven).
Containerization (Docker)
- Layered JAR: Use standard Layered JAR support to optimize caching.
- Security: Run as non-root user (
nobodyorappuser). - Memory: Set JVM limits proportional to container (
-XX:+UseContainerSupport).
Graceful Shutdown
- Enable:
server.shutdown=graceful(default 30s timeout). - Process: Stops accepting new requests, processes active ones.
Anti-Patterns
- Fat JAR:
**No Fat JARs in Docker**: Use layers. - Root User:
**No Root**: Use restricted user. - Baked Config:
**No Baked Secrets**: Use Env/ConfigMaps.
References
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)