backend-dev

Automate Sourcelin backend controller, service, mapper, and DTO/VO updates.

9|2|Updated May 18, 2026
One-click install
npx skills add https://github.com/SourceLin/sourcelin-cloud-blog --skill backend-dev-sourcelin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev
Source: https://github.com/SourceLin/sourcelin-cloud-blog/tree/main/skills/backend-dev
Command: npx skills add https://github.com/SourceLin/sourcelin-cloud-blog --skill backend-dev-sourcelin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sourcelin 后端开发涉及频繁添加或修改后端控制器、服务、Mapper、DTO/VO、异常处理以及微服务接口。本技能提供一个面向 Sourcelin 后端开发的系统化工作流程,帮助团队按约束实现高质量的后端能力。

Core Features & Use Cases

  • 新增或修改后端 Controller、Service、Mapper、DTO/VO、异常处理和公共能力,确保分层设计和一致的接口契约。
  • 支持对 sourcelin-gateway、sourcelin-auth、sourcelin-modules、sourcelin-common、sourcelin-api 等模块的变更,涵盖 REST 接口、业务逻辑、Mapper XML、SQL/文档等。
  • 指导代码治理、模块边界、Feign 协议遵循,以及与现有工程的无缝整合。

Quick Start

在 Sourcelin 项目中按需新增或修改后端接口、业务服务和数据访问组件,并通过 Maven 验证构建与单元测试。

Frequently Asked Questions about backend-dev

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

FAQPage Schema
How do I add a new REST endpoint and business logic in a layered microservices architecture?

To add a REST endpoint in layered microservices, you need to generate or update controllers, services, mappers, and DTO/VOs. This workflow enforces code changes to follow layered architecture and include necessary data mappings and exception handling.

What is the correct way to handle DTO and VO mappings when adding a backend service?

Handling DTO and VO mappings requires creating specific data transfer objects and value objects to maintain interface contracts. The process enforces code changes to include necessary DTO/VOs and mappers, ensuring consistent data mapping across microservices.

How do I modify Sourcelin gateway and auth modules to implement new microservice interfaces?

Modifying Sourcelin gateway and auth modules involves applying changes to sourcelin-gateway and sourcelin-auth to implement new microservice interfaces. The workflow supports modifying these modules to enforce Feign protocol compliance and seamless integration.

Does this backend development workflow support Maven builds and unit tests validation?

Yes, this backend development workflow supports Maven builds and unit tests validation. It enforces code changes across controllers, services, and mappers to pass Maven builds and tests before integration into the existing engineering project.

Why do I need to generate Mapper XML files when updating backend data access components?

You need to generate Mapper XML files when updating backend data access components to define SQL queries and document mappings. This ensures the data access layer integrates correctly with the service layer and passes required Maven build validations.

What's the best way to ensure consistent exception handling across distributed microservices?

The best way to ensure consistent exception handling across distributed microservices is to enforce a systematic workflow that includes standard exception components. This approach guarantees code changes follow layered architecture and maintain unified error responses.