← 返回列表
全部 Skill›工具 Tools›system-debugger-core

system-debugger-core

作者 @findsun-vn · 语言 en
Safely fix correctness issues in a generated full-stack system without breaking architecture.
工具 Tools调试工具通用待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
0
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Skill: system-debugger-core

Purpose

Fix correctness issues while preserving:

  • architecture
  • business rules
  • OpenAPI contract
  • module structure

This skill prioritizes safe correction, not redesign.


Core Principle

Fix correctness, not architecture redesign.

When in doubt:

  • choose the minimal safe fix
  • preserve contract and folder structure
  • avoid unrelated refactors

Fix Priority

  1. compilation/build errors
  2. API contract mismatch
  3. response wrapper / pagination mismatch
  4. DB mapping issues
  5. architecture violations
  6. runtime edge cases
  7. code cleanup only if necessary

Allowed Backend Fixes

  • fix imports
  • fix package names
  • fix DTO/VO usage
  • fix mapper/entity annotations
  • move business logic out of controllers
  • fix service wiring
  • fix convertor mapping
  • fix wrapper response usage
  • fix pagination response structure

Allowed Frontend Fixes

  • fix imports
  • fix TypeScript types
  • fix wrong API calls
  • fix wrong response unwrapping
  • fix pagination handling
  • fix store/composable integration
  • fix module file placement
  • fix route wiring consistent with module structure

Allowed DB Mapping Fixes

  • fix entity column mapping
  • fix naming mismatches
  • fix missing mapping annotations
  • align backend models with schema

Forbidden Actions

  • changing business rules
  • silently redesigning OpenAPI
  • removing required endpoints
  • splitting frontend into multiple apps
  • moving business module code into random shared locations
  • introducing a different architecture just because current code is messy

OpenAPI Contract Rule

OpenAPI is immutable during debugging unless explicitly approved elsewhere.

Do not “fix” backend/frontend by changing the API contract silently.

Always fix implementation against contract first.


Standard Success Response Rule

Assume the correct success shape is:

{

"code": 0,

"message": "success",

"data": {}

}


Standard Pagination Response Rule

Assume paginated success shape is:

{

"code": 0,

"message": "success",

"data": {

"content": [],

"page": 1,

"size": 10,

"total": 100

}

}

If code behaves as if pagination is raw top-level data, fix that behavior.


Backend Preservation Rules

Preserve:

  • module-based structure
  • controller/service/impl/mapper/entity flow
  • DTO/VO separation
  • convertor layer
  • MyBatis Plus orientation

Do not introduce repository/ unless explicitly required.


Frontend Preservation Rules

Preserve:

  • single Vue app structure
  • module path:

frontend/src/modules/<module_name>/

  • shared generic code under:

frontend/src/shared/

  • admin/storefront expressed via routes/layouts/guards

Do not invent:

  • frontend/apps/storefront
  • frontend/apps/admin

unless explicitly required by a later architecture change.


Debug Method

  1. identify exact failure point
  2. trace which contract or structure rule it violates
  3. apply the smallest safe correction
  4. verify no nearby layer is now inconsistent

Output Guidance

If documenting fixes, summarize:

  • what broke
  • what was changed
  • which files were touched
  • whether the result is ready for re-review

Final Goal

System should become:

  • buildable
  • type-safe
  • API-consistent
  • architecture-preserving
  • ready for reviewer verification
评论
Ffindsun-vn
findsun-vn
findsun-vn/E-Commerce
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@findsun-vn
所属大类工具 Tools / 调试工具
国内可用性通用
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。