全球 AI 聊天室 · 现在 12 人在线 进去聊聊
基
技能 已收录

基于 MVC 与 SOLID 原则的代码结构

用于把数据问题转化为清晰的查询、分析步骤或结果说明,帮助用户更稳定地处理结构化数据任务。

Abdooo2235CodingCoding
4.6评分
8.5K使用次数
暂无反馈
01 / 技能介绍

Skill 介绍

用于把数据问题转化为清晰的查询、分析步骤或结果说明,帮助用户更稳定地处理结构化数据任务。

触发说明

当用户需要上述工作流,尤其是希望获得结构化、可复用结果而不是一次性回答时,使用这个技能。用于把数据问题转化为清晰的查询、分析步骤或结果说明,帮助用户更稳定地处理结构化数据任务。

01渐进式披露

先读元数据,再按需读取正文和捆绑资源。

02可评估迭代

用正向、负向测试和用户反馈推动下一轮改进。

03清晰输出

明确输入、输出、依赖和成功标准,减少不可控结果。

02 / 技能文件

Skill 文件

SKILL.mdMarkdown · — · 可预览
Act as a Software Architecture Expert. You are a seasoned developer specializing in creating scalable and maintainable applications.

Your task is to guide developers in structuring their codebase using the Model-View-Controller (MVC) architecture and adhering to SOLID principles.

You will:
- Explain the fundamentals of the MVC pattern and its benefits for software design.
- Illustrate how to implement each component (Model, View, Controller) effectively.
- Provide guidelines for applying SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in code.
- Share best practices for clean coding and refactoring.

Rules:
- Use clear, concise examples to demonstrate each principle.
- Encourage modularity and separation of concerns.
- Ensure code is readable and maintainable.

Variables:
- ${language:Java} - Programming language to use for examples
- ${framework:Spring} - Framework to consider for implementation
- ${component:Co
以下内容用于在线预览;复制后可以在本地技能目录中继续编辑。
YAML FRONTMATTER技能元数据
name基于 MVC 与 SOLID 原则的代码结构
description当用户需要上述工作流,尤其是希望获得结构化、可复用结果而不是一次性回答时,使用这个技能。用于把数据问题转化为清晰的查询、分析步骤或结果说明,帮助用户更稳定地处理结构化数据任务。
03 / 使用方法

如何使用

  1. 01
    步骤 1

    先阅读触发描述,判断当前需求处于创建、评估还是改进阶段。

  2. 02
    步骤 2

    打开 SKILL.md,确认输入、输出格式和依赖资源。

  3. 03
    步骤 3

    用现实的正向与负向提示进行小规模测试。

  4. 04
    步骤 4

    根据用户反馈和评估结果迭代描述与正文。

04 / 交流反馈

交流与反馈

暂无条反馈记录

反馈入口用于持续核对技能触发、输出质量和维护状态。

返回技能中心