legacy-project-tech-design
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "legacy-project-tech-design" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5050343bd1af827a932eec089caed0084daf740943881dab5637a2682269028d. Verify the upstream source and version against https://skillhub.cn/skills/user_58db46fb/legacy-project-tech-design before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Converts issues, tickets, verbal descriptions, or chat logs into technical review design proposals grounded in the current state of a legacy project. Intended for new feature requirements analysis, legacy feature extensions, cross-layer impact analysis, and for drafting plans before changes to facades/RPC, SQL, configuration, messaging, scheduled jobs, or external dependencies.
Introduction source: third_party · user_58db46fb · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: legacy-project-tech-design
description: 将 Issue、工单、口头描述或聊天记录转换为基于老项目现状的研发评审技术方案。用于新功能需求分析、老功能扩展、跨层改动影响分析,以及 facade/RPC、SQL、配置、消息、定时任务、外部依赖变更前的方案梳理。老项目研发评审技术方案
目标
把模糊需求转换为可进入研发评审的技术方案。输出必须基于当前项目事实,回答:为什么改、改哪里、怎么改、影响谁、风险是什么、哪些点必须确认。
本 skill 不替代项目规则。涉及具体项目时,先遵守该项目的入口文档、模块边界、设计先行和验证要求。
核心原则
- 先锚定现状,再生成方案。
- 默认最小可控改动,不默认重构。
- 区分已确认事实、合理推断和待确认问题。
- 找不到现有实现时,写明检索路径和未定位结论,不脑补。
- 涉及 facade/RPC、SQL、配置、消息、定时任务、外部系统时,必须单独分析影响。
- 方案必须能被研发评审,避免只写概念、愿景或泛泛建议。
输入处理
用户输入可以是 Issue、工单、口头描述、聊天记录或一句需求。先提炼:
- 需求来源
- 原始描述
- 目标
- 触发场景
- 验收标准
- 已知限制
- 可能涉及模块
- 本次非目标
如果缺少以下任一信息,先追问一个最关键问题,不要直接写最终方案:
- 目标是什么:本次要改变什么业务行为。
- 触发场景是什么:谁在什么入口、什么条件下触发。
- 验收标准是什么:做到什么程度算完成。
如果只有细节缺失,可以继续查项目现状,并在方案中标为待确认。
工作流
1. 需求澄清
先确认本轮目标、范围、非目标、步骤顺序,以及用户是否只讨论不执行。若用户明确指定顺序,严格按顺序推进。
输出一个简短需求理解:
- 本次目标
- 本次不做
- 关键不确定点
- 需要用户确认的问题
2. 现状定位
在写方案前,必须查找与需求相关的项目事实。按项目技术栈选择合适线索:
- 入口:Controller、API、页面入口、任务入口、消息消费入口
- 契约:facade/RPC 接口、HTTP API、DTO、枚举、错误码、状态码
- 编排:Service、Manager、Processor、Domain Service、Job、Listener
- 数据:表结构、DO/Entity、Mapper、Repository、SQL/XML、迁移脚本
- 配置:properties/yaml、配置中心 key、开关、灰度、限流、超时
- 外部依赖:三方接口、内部系统、SDK、消息主题、缓存、定时任务
- 测试:单测、集成测试、回归用例、Mock/Stubs
- 文档:README、docs、历史设计文档、接口文档、上线说明
记录现状时必须区分:
- 已定位:文件、类、方法、表、配置、接口
- 未定位:查找过但没有发现的内容
- 推断:基于命名、调用链或历史文档得到的判断
3. 影响面分析
至少检查以下影响面:
- 接口兼容性
- facade/RPC 调用方和消费方
- 老数据和存量状态
- SQL 查询、写入、事务、索引和慢查询风险
- 配置默认值、开关、灰度、回滚
- 消息、定时任务、异步补偿、幂等
- 权限、数据隔离、审计、风控
- 缓存一致性和失效策略
- 上下游系统联调
- 测试和回归范围
4. 方案生成
优先输出最小改动方案。必要时给出备选方案,但必须说明取舍:
- 推荐方案是什么
- 为什么选择它
- 不推荐方案是什么
- 不推荐原因是什么
- 是否需要分阶段上线
- 如何回滚或降级
5. 评审前检查
最终方案必须包含:
- 已确认事实
- 合理推断
- 待确认问题
- 改动范围
- 风险
- 验证计划
如果关键事实没有定位到,不要把方案写成确定结论;应输出“受限方案”并标明阻塞点。
facade/RPC 规则
本 skill 中的 facade 指老项目中用于跨系统或跨应用调用的 RPC 服务接口契约,类似 Dubbo 接口,不等同于普通应用层门面模式。
当需求可能涉及 facade/RPC 时,必须单独检查:
- 是否新增、修改或废弃 RPC 接口
- 接口方法签名是否变化
- 请求 DTO 是否新增、删除、改名、改类型
- 响应 DTO 是否兼容老调用方
- 枚举、状态码、错误码是否已有约定
- 是否存在多调用方、多版本或灰度调用
- 是否需要同步更新接口文档、测试桩、消费者适配
- 是否存在超时、重试、幂等、降级、限流要求
- 是否需要联调计划和回归清单
只要涉及 facade/RPC,就默认视为高风险变更;方案必须写明兼容策略和调用方影响。
SQL 与数据规则
涉及 SQL、表结构或数据修复时,必须检查:
- 是否读写老表或核心表
- 是否影响历史数据语义
- 是否需要数据迁移、补偿或回填
- 是否需要新增索引或调整查询条件
- 是否存在事务边界变化
- 是否需要幂等保护
- 是否需要线上灰度、回滚 SQL 或人工核对
- 是否存在分页、排序、锁表、慢查询风险
不得只写“修改 SQL”或“新增字段”;必须说明数据兼容和验证方式。
配置规则
涉及配置时,必须检查:
- 配置 key、默认值和生效范围
- 是否区分环境、商户、渠道、灰度人群
- 配置缺失时的行为
- 配置变更是否支持热更新
- 是否需要回滚开关
- 是否需要运维或值班手册说明
输出模板
# 技术方案:<标题>
## 1. 背景与目标
- 需求来源:
- 当前问题:
- 本次目标:
- 本次非目标:
## 2. 需求理解
- 触发场景:
- 业务规则:
- 验收标准:
- 异常场景:
- 待确认问题:
## 3. 现状分析
- 已确认事实:
- 现有入口:
- 现有调用链:
- 现有数据模型:
- 现有 facade/RPC:
- 现有 SQL/配置/消息/定时任务:
- 未定位内容:
- 合理推断:
## 4. 改动范围
- 接口/API:
- facade/RPC:
- 业务逻辑:
- 持久化/SQL:
- 配置:
- 消息/定时任务/异步:
- 外部依赖:
- 测试:
## 5. 方案设计
- 推荐方案:
- 核心流程:
- 数据变更:
- 接口变更:
- facade/RPC 兼容策略:
- 配置策略:
- 灰度/降级/回滚:
- 不推荐方案与原因:
## 6. 影响分析
- 老数据影响:
- 存量功能影响:
- 调用方/上下游影响:
- 性能影响:
- 安全/权限/审计影响:
- 运维影响:
## 7. 风险与待确认
- 技术风险:
- 业务风险:
- 联调风险:
- 待产品确认:
- 待研发确认:
- 待测试关注:
## 8. 验证计划
- 单元测试:
- 集成测试:
- 回归测试:
- 数据验证:
- 联调验证:
- 上线后观察:
输出要求
- 使用中文输出。
- 结论要具体到文件、类、方法、接口、表、配置或模块;无法具体时说明原因。
- 不要把“可能”“建议”包装成事实。
- 不要为了显得完整而扩大改动范围。
- 不要跳过待确认问题;研发评审材料允许暴露未知,不允许伪装确定。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决老项目需求模糊、技术方案不清晰的痛点,适用于新功能分析、老功能扩展、跨层改动等高频研发场景
- 具有明确的实用价值和广泛受众,显著提升研发评审效率
Highlights
- description 清晰完整,覆盖多种输入形式(Issue、工单、口头描述等)和典型使用场景
- 触发词精准,边界清晰,无歧义
Highlights
- 结构完整,包含目标、原则、工作流、专项规则和输出模板
- 步骤清晰,有明确的出口条件和端到端示例,frontmatter 完整
Areas to improve
-
工具来源不明 Reported severity: Minor
Skill 强调现状定位和代码检索,但未明确说明依赖的具体工具或方法
Recommendation: 建议补充说明现状定位阶段使用的工具或检索方法,如代码搜索工具、文档系统等
Highlights
- 强调基于现状定位、最小改动、风险识别和待确认问题暴露
- 方案设计包含兼容性、灰度、回滚等机制,可靠性高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.