dr-jskill
Skill346 starsChanged 26 days agoApache-2.0View on GitHub
Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker. Use when creating Spring Boot projects, setting up Java microservices, or building enterprise applications with the Spring Framework.
- Reads credentials
- Installs packages
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 11 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Follow best practices for project structure and configuration
- Distinctive: line 35
Vanilla JavaScript: - No framework, pure ES6+ with Vite
- Very specific: line 62
Use the create-project-latest.mjs script to create a project with the latest Spring Boot version (automatically fetched):
- Very specific: line 73
Use the create-basic-project.mjs script to create a basic Spring Boot project with essential dependencies:
- Very specific: line 79
Use the create-web-project.mjs script to create a Spring Boot web application with web dependencies:
- Very specific: line 85
Use the create-fullstack-project.mjs script to create a comprehensive Spring Boot application with database, security, and web dependencies:
- Distinctive: line 92
When creating Spring Boot projects:
- Very specific: line 94
Use the latest Spring Boot version (currently 4.x) - the create-project-latest.mjs script automatically fetches it
- Distinctive: line 97
Use Spring Data JPA for database access
- Distinctive: line 98
Use PostgreSQL for database - see Database Best Practices for optimization
- Distinctive: line 99
Use properties files for configuration - see Configuration Best Practices
- Distinctive: line 103
Follow daily Git best practices for small branches, reviewed diffs, safe commits, pull requests, and worktrees - see Git Best Practices
- Very specific: line 104
Use spring-boot-docker-compose for automatic database startup during development - see Docker Guide
- Distinctive: line 105
Follow RESTful API design principles
- Distinctive: line 107
Use Maven for dependency management
- Distinctive: line 109
Add Spring Security only when needed - see Security Guide for best practices
- Very specific: line 119
For the AI agent: when working on Java files, prefer the lsp tool over grep/view/sed.
- Very specific: line 200
Use .properties files (not YAML), externalize secrets via environment variables, and leverage @ConfigurationProperties for type safety.
- Distinctive: line 223
All options include: Vite/CLI dev server with hot reload, Bootstrap 5.3+, SPA routing, and automatic build into the Spring Boot JAR.
- Very specific: line 225
When wiring the frontend-maven-plugin, bind the Node install, npm install, and npm run build executions to the generate-resources phase.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spring Boot skill that follows Julien Dubois' best practices.
Overview
This agent skill helps you create Spring Boot projects following Julien Dubois' best practices. It provides tools and scripts to quickly bootstrap Spring Boot applications using https://start.spring.io.
Recommended model: Dr JSkill works best with GPT-5.5.
Version Management
Centralized versions live in versions.json. All scripts read from it via scripts/lib/versions.mjs (JavaScript). Update this file to bump Java, Spring Boot fallback, Postgres, Node/npm, Testcontainers, etc.
Prerequisites
- Java 25 installed
- Node.js 24.x and NPM 11.x (for front-end development)
- Docker installed and running
Capabilities
- Generate Spring Boot projects with predefined configurations
- Support for various Spring Boot versions and dependencies
- Follow best practices for project structure and configuration
- Quick setup scripts for common use cases
- Docker support for containerized deployments
- Front-end development with multiple framework options:
- Vue.js 3 (default) - Progressive framework with Composition API
- React 19 - Popular library for building user interfaces
- Angular 22 - Full-featured framework with TypeScript
- Vanilla JavaScript - No framework, pure ES6+ with Vite
Usage
Using the Scripts
This skill includes cross-platform JavaScript (Node.js) scripts in the scripts/ directory that can be used to download pre-configured Spring Boot projects from start.spring.io. They work on Linux, macOS, and Windows.
Unified launcher (cross-platform):
node scripts/create-project my-app com.myco my-app com.myco.myapp 25 fullstack --output-dir /absolute/path/to/user/workspaceDirect invocation:
node scripts/create-project-latest.mjs my-app com.myco my-app com.myco.myapp 25 fullstack --output-dir /absolute/path/to/user/workspaceFlags supported:
--boot-version <x.y.z>/-BootVersion: override Spring Boot version--project-type basic|web|fullstack/-ProjectType--output-dir <absolute-path>: create the generated project folder under this directory
Output directory rule (important for Agent Skills): bundled scripts are run from the skill directory root. When the user asks to create an app, pass --output-dir with the user's current working directory from the agent session so the generated project folder is created in the user's workspace, not inside the dr-jskill skill folder. Only omit --output-dir when running Dr JSkill's own tests, where generating inside the skill checkout is intentional.
Tip: The
create-project-latestscript auto-resolves preferred Boot 4.x and falls back to the configuredspringBootFallbackif 4.x is not yet available. Override with--boot-versionif needed.
Latest Version Project ⭐
Use the create-project-latest.mjs script to create a project with the latest Spring Boot version (automatically fetched):
node scripts/create-project-latest.mjs my-app com.mycompany my-app com.mycompany.myapp 25 webProject types available:
basic- Minimal Spring Boot projectweb- Web application with REST API capabilitiesfullstack- Complete application with database; security is optional
Basic Spring Boot Project
Use the create-basic-project.mjs script to create a basic Spring Boot project with essential dependencies:
node scripts/create-basic-project.mjsWeb Application
Use the create-web-project.mjs script to create a Spring Boot web application with web dependencies:
node scripts/create-web-project.mjsFull-Stack Application
Use the create-fullstack-project.mjs script to create a comprehensive Spring Boot application with database, security, and web dependencies:
node scripts/create-fullstack-project.mjsBest Practices
When creating Spring Boot projects:
- Use the latest Spring Boot version (currently 4.x) - the
create-project-latest.mjsscript automatically fetches it - Review Spring Boot 4 critical considerations: See Spring Boot 4 Migration Guide for Jackson 3 annotations and TestContainers configuration
- Include Spring Boot Actuator for production-ready features
- Use Spring Data JPA for database access
- Use PostgreSQL for database - see Database Best Practices for optimization
- Use properties files for configuration - see Configuration Best Practices
- Set up foundational dotfiles:
.gitignore,.env.sample,.editorconfig,.gitattributes,.dockerignore, optional.vscode/,.devcontainer/- see Project Setup & Dotfiles- The
.envfile is the canonical location for local secrets; instruct users to copy.env.sample→.envand fill in real values - NEVER read or expose
.env: it contains real secrets — do notcat, view, or print its contents; only.env.sample(placeholder values) may be read or displayed
- The
- Follow daily Git best practices for small branches, reviewed diffs, safe commits, pull requests, and worktrees - see Git Best Practices
- Use
spring-boot-docker-composefor automatic database startup during development - see Docker Guide - Follow RESTful API design principles
- Configure proper logging with Logback - see Logging Best Practices
- Use Maven for dependency management
- Include Spring Boot DevTools for development productivity
- Add Spring Security only when needed - see Security Guide for best practices
- Configure Docker for containerized deployments - see Docker Guide
- Enable GraalVM native image support for faster startup - see GraalVM Guide
- Always ship a startup banner that prints access URLs when the app is ready - see Startup Banner
- The user must review changes before they are committed to git. Ask the user before initializing a Git repository, or running git commands.
Java Code Intelligence (JDTLS) ⭐
Generated projects integrate with the Eclipse JDT Language Server (JDTLS) so AI agents can navigate, refactor, and diagnose Java code semantically rather than with text search. The scripts ship a .github/lsp.json that wires JDTLS into GitHub Copilot CLI automatically.
For the AI agent: when working on Java files, prefer the lsp tool over grep/view/sed. It understands imports, generics, inheritance, and Javadoc.
| Task | Use |
| Find where a class/method is defined | lsp goToDefinition |
| Find callers before changing a signature | lsp findReferences or incomingCalls |
| Look up types, parameters, Javadoc | lsp hover |
| List symbols in a file | lsp documentSymbol |
| Search a class/method across the project | lsp workspaceSymbol |
| Rename safely across files | lsp rename (never sed) |
Check compile errors before ./mvnw verify | ide-get_diagnostics |
Preference order for Java work: lsp → grep with .java glob → view.
Install JDTLS once: brew install jdtls (or see JDTLS guide for other platforms). Full setup, gotchas, and editor integrations live in references/JDTLS.md.
Project Structure
The service layer is only included if it adds value (e.g. complex business logic). For simple CRUD applications, the controller can directly call the repository.
Generated projects follow the following recommended structure:
my-spring-boot-app/
├── .gitignore # Java + front-end + secrets (see references/PROJECT-SETUP.md)
├── .env.sample # Template for local env vars; .env is gitignored
├── .editorconfig # Consistent formatting across IDEs
├── .gitattributes # Normalize line endings, better diffs
├── .dockerignore # Slim Docker build contexts
├── .vscode/ # Optional editor recommendations
│ ├── extensions.json
│ └── settings.json
├── .devcontainer/ # Optional Dev Container (Java 25 + Node 24 + PostgreSQL)
│ ├── devcontainer.json
│ └── docker-compose.yml
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/example/app/
│ │ │ ├── Application.java
│ │ │ ├── config/
│ │ │ ├── controller/
│ │ │ ├── service/ # Only included if needed
│ │ │ ├── repository/
│ │ │ └── domain/
│ │ └── resources/
│ │ ├── static/ # Front-end web assets (HTML, CSS, JS)
│ │ │ ├── index.html
│ │ │ ├── css/
│ │ │ │ └── styles.css
│ │ │ ├── js/
│ │ │ │ └── app.js
│ │ │ └── images/
│ │ └── application.properties
│ └── test/
│ └── java/
│ └── com/example/app/
│ ├── config/
│ ├── controller/
│ ├── service/ # Only included if needed
│ ├── repository/
│ └── domain/
├── Dockerfile # JVM image (jlink runtime + distroless)
├── Dockerfile-aot # JVM + Spring AOT image
├── Dockerfile-native # GraalVM native image
├── Dockerfile-crac # CRaC (fast-restore) image
├── checkpoint-and-run.sh # CRaC entrypoint helper
├── compose.yaml # Dev database (spring-boot-docker-compose)
├── docker-compose.yml # Full stack with PostgreSQL (JVM)
├── docker-compose-aot.yml # Full stack with PostgreSQL (AOT)
├── docker-compose-native.yml # Full stack with PostgreSQL (native)
├── docker-compose-crac.yml # CRaC app (database-free)
├── pom.xml
└── README.mdDependencies
Generated projects include: Spring Web, Spring Data JPA, Spring Boot Actuator, DevTools, PostgreSQL, Validation, Docker Compose support, Test Starter with JUnit Jupiter (JUnit 6), and Testcontainers.
Configuration
Use .properties files (not YAML), externalize secrets via environment variables, and leverage @ConfigurationProperties for type safety. See the Configuration Guide for profiles, secrets management, and common patterns.
The .env file is the single local secret store — never read or print it; only .env.sample (placeholder values) may be shown.
For database optimization, see the Database Best Practices Guide.
Security (Optional)
Spring Security is optional - only add it when you need authentication or authorization. See the Security Guide for JWT, OAuth2, role-based access, and CORS configuration.
Testing
See the Testing Guide for unit tests (Mockito, @WebMvcTest), integration tests (TestContainers + @ServiceConnection), and Given-When-Then patterns with AssertJ.
Front-End Development
Choose a front-end framework:
- Vue.js 3 (default) ⭐ → Vue.js Guide
- React 19 → React Guide
- Angular 22 → Angular Guide
- Vanilla JavaScript (no framework) → Vanilla JS Guide
All options include: Vite/CLI dev server with hot reload, Bootstrap 5.3+, SPA routing, and automatic build into the Spring Boot JAR.
When wiring the frontend-maven-plugin, bind the Node install, npm install, and npm run build executions to the generate-resources phase. This makes ./mvnw spring-boot:run build the frontend before Spring Boot starts, instead of only building it during explicit package-oriented commands.
Non-interactive scaffolding (important for CI and AI agents). Two separate prompts must be silenced:
- npm's own "Ok to proceed?" install prompt — silence by placing
-ybefore the package name (flags after--go to the scaffolder, not to npm). Usenpm create -y vite@latest …ornpx --yes create-vite@latest ….- The scaffolder's own prompts — create-vite 9.x and Angular CLI 22 still pose interactive questions (e.g. "Use rolldown-vite?", analytics opt-in) that
-y/--yesdo not silence. The reliable fix is to close stdin: pipeecho |into the command so the scaffolder immediately sees EOF and accepts defaults.Canonical recipes:
- React / Vanilla:
echo | npx --yes create-vite@latest frontend --template react(or--template vanilla)- Vue:
npm create -y vue@latest frontend -- --router --pinia --vitest --eslint --prettier(create-vue does not pose extra prompts)- Angular:
echo | npx --yes @angular/cli@22 new frontend --style=css --ssr=false --skip-git --defaults --skip-install, thennpm installVue: normalize before the first
npm install(required).create-vuescaffoldsoxlintandeslint-plugin-oxlintpinned to mismatched minors, sonpm installfails with anERESOLVEpeer conflict — which fails thefrontend-maven-pluginstep and therefore the whole Maven build. Immediately after scaffolding, run:# Run from the Dr JSkill skill directory (that is where `scripts/` lives), # passing the path to the generated project's frontend/ directory. node scripts/normalize-vue-frontend.mjs /absolute/path/to/my-app/frontendIt drops the oxlint dual-linter, leaving the single ESLint pipeline, adds the
lint:checkscript that the Maven build runs, and pins existing Vue/Vite/test dependencies to the tested stable versions inversions.json. It is idempotent, and--checkreports without writing. See Vue.js Guide.Vitest + callback Vite config. If
vite.config.jsexportsdefineConfig(({ mode }) => ...), do not let the generatedvitest.config.jscallmergeConfig(viteConfig, ...). Resolve the callback first withviteConfig({ mode: 'test', command: 'serve' }); otherwise Vitest fails withCannot merge config in form of callback. See Vue.js Guide.
Docker Deployment
Spring Boot automatically manages Docker containers during development via spring-boot-docker-compose. For production, pick one of the four provided images: Dockerfile (JVM, jlink + distroless), Dockerfile-aot (JVM + Spring AOT), Dockerfile-native (GraalVM native), or Dockerfile-crac (CRaC fast-restore). See the Docker Guide for full setup, the matching Maven profiles, and deployment patterns.
GraalVM Native Images
Build native images via Docker (no local GraalVM needed) or locally with ./mvnw -Pnative -DskipTests package native:compile. See the GraalVM Guide for configuration, runtime hints, testing, and CI/CD integration.
Azure Deployment
Deploy to Azure Container Apps with an optional VNET-injected Azure Database for PostgreSQL Flexible Server. Uses GitHub Container Registry (GHCR) for image storage (pushed via GITHUB_TOKEN in CI, pulled by Container Apps using a stored PAT) and Container Apps secrets for the DB password — no secrets in source, env dumps, or shell history. Includes a GitHub Actions OIDC workflow, and supports both the JVM and GraalVM native image variants. See the Azure Deployment Guide.
Validation
| # | What | Command |
| 1 | Build backend | ./mvnw clean install |
| 2 | Unit tests | ./mvnw test |
| 3 | Integration tests | ./mvnw verify (uses Testcontainers 2 + @ServiceConnection) |
| 4 | Front-end dev server | cd frontend && npm run dev |
Run validation steps first. If anything fails, fix before proceeding.
Once the project is generated, go through the steps above to ensure that the generated project is fully functional and follows best practices. If any validation step fails, try to identify the issue and fix it before proceeding. This ensures that the generated project is of high quality and ready for development.
Additional Resources
Included Reference Guides
Core Spring Boot:
- Spring Boot 4 Migration Guide - Key changes from Spring Boot 3, Jackson 3 annotations
- Configuration Best Practices - Properties files, profiles, secrets management
- Logging Best Practices - Logback configuration and patterns
- Java Code Intelligence (JDTLS) - LSP-based navigation, refactoring, diagnostics
Data and Persistence:
- Database Best Practices - PostgreSQL and Hibernate optimization
Security (Optional):
- Security Guide - Spring Security, JWT, OAuth2, authentication patterns
Testing:
- Testing Guide - Unit and integration testing with TestContainers
Front-End Development:
- Vue.js Development Guide - Vue.js 3 with Vite (default)
- React Development Guide - React 19 with Vite
- Angular Development Guide - Angular 22 with Angular CLI
- Vanilla JS Development Guide - Pure ES6+ with Vite
Project Setup:
- Project Setup & Dotfiles -
.gitignore,.env.sample,.editorconfig,.gitattributes,.dockerignore,.devcontainer/ - Git Best Practices - daily Git workflow, branches, commits, pull requests, safe undo, stashing, and worktrees
Deployment:
- Docker Deployment Guide - Docker, Docker Compose, development automation
- GraalVM Native Images Guide - Docker-based native builds, optimization
- Azure Deployment Guide - Azure Container Apps, PostgreSQL Flexible Server, GitHub Container Registry (GHCR) image push/pull, Container Apps secrets for DB password, GitHub Actions OIDC
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

