novacore-backend-architecture

Enforce NovaCore Spring Boot layered architecture and DTO usage in Java code.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/manhdung3010/novacore --skill novacore-backend-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: novacore-backend-architecture
Source: https://github.com/manhdung3010/novacore/tree/main/.cursor/skills/novacore-backend-architecture
Command: npx skills add https://github.com/manhdung3010/novacore --skill novacore-backend-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures adherence to the NovaCore Spring Boot backend architecture, promoting clean code, consistent patterns, and maintainability across the project.

Core Features & Use Cases

  • Layered Architecture Enforcement: Guarantees separation between controller, service, repository, and domain layers.
  • Standardized Error Handling: Promotes the use of ErrorCode and shared exception types for consistent API responses.
  • DTO Pattern Adherence: Ensures entities are never directly exposed to controllers, maintaining API contract integrity.
  • Use Case: When developing a new feature, this skill guides the developer to correctly structure new classes within their respective layers (e.g., placing a new data access method in repository and business logic in service), ensuring consistency with existing code.

Quick Start

Use the novacore-backend-architecture skill to review the structure of a new controller class.

Frequently Asked Questions about novacore-backend-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce clean Java backend architecture in a Spring Boot project?

To enforce clean Java backend architecture in a Spring Boot project, separate controller, service, repository, and domain layers while ensuring consistent DTO usage and shared error handling conventions. This prevents direct entity exposure and maintains API contract integrity.

Why should I use DTOs instead of entities in Spring Boot controllers?

Using DTOs instead of entities in Spring Boot controllers maintains API contract integrity and enforces clean layered architecture. DTO pattern adherence ensures that database entities are never directly exposed to controllers, keeping API responses consistent and secure.

What is the best way to standardize error handling in a Spring Boot backend?

The best way to standardize error handling in a Spring Boot backend is to use shared exception types and specific ErrorCode objects. This promotes consistent API responses across the project and ensures maintainable error tracking throughout all architectural layers.

How do I structure a new feature using domain-driven design in Java?

To structure a new feature using domain-driven design in Java, place data access methods in the repository layer and business logic in the service layer. Maintain strict separation between controller, service, repository, and domain layers to ensure project consistency.

Does this architecture skill apply to Java code outside the novacore repository path?

No, this architecture skill applies specifically to Java code within the novacore repository, particularly under src/main/java/com/novacore. It enforces project-specific patterns for API endpoints, business logic, persistence, and domain modeling within that scope.