refactor-design-report

针对已识别的技术问题、产品功能缺口、代码审查发现、架构隐患或前后端契约不一致等,生成专业且以代码为基础的改造或实施方案设计报告。适用于将缺陷、缺失防护、设计漏洞、API/UI 不匹配或期望行为变更,转化为详细的后端/前端/系统改造方案、持久化设计文档、实施计划、测试矩阵、发布计划或验收标准的场景。

仓库最近推送
GitHub Stars
136
Forks
20
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "refactor-design-report":https://skillpi.com/zh/skills/deepskill-b08fe1e8760c53ba6ea1171aaea8188f37fc4c6c28c3c9555079ffc45d776a2e。安装前核对上游来源和版本:https://github.com/penwyp/ClaudePreference。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

针对已识别的技术问题、产品功能缺口、代码审查发现、架构隐患或前后端契约不一致等,生成专业且以代码为基础的改造或实施方案设计报告。适用于将缺陷、缺失防护、设计漏洞、API/UI 不匹配或期望行为变更,转化为详细的后端/前端/系统改造方案、持久化设计文档、实施计划、测试矩阵、发布计划或验收标准的场景。

0 下载

介绍来源: third_party · penwyp · 0.0.1 参考来源

SkillPi 解读

能完成的任务
Produce a professional, code-grounded refactor or implementation design report from identified technical problems, product gaps, review findings, architecture concerns, or frontend-backend contract issues. Use when Codex is asked to turn bugs, missing protections, design gaps, API/UI mismatches, or desired behavior changes into a detailed backend/frontend/系统改造方案, persistent design document, implementation plan, test matrix, rollout plan, or acceptance criteria.
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: refactor-design-report
description: Produce a professional, code-grounded refactor or implementation design report from identified technical problems, product gaps, review findings, architecture concerns, or frontend-backend contract issues. Use when Codex is asked to turn bugs, missing protections, design gaps, API/UI mismatches, or desired behavior changes into a detailed backend/frontend/系统改造方案, persistent design document, implementation plan, test matrix, rollout plan, or acceptance criteria.

Refactor Design Report

Purpose

Create a durable engineering report that turns concrete problems into an executable design. Ground the report in the current code and contracts first, then describe the target model, backend changes, frontend changes, validation strategy, implementation order, and acceptance criteria.

Workflow

  1. Normalize the request.

    • Extract the concrete issues, desired behavior, affected user flows, and any stated constraints.
    • Separate current defects from desired future capabilities.
    • If the user says to persist the result, write a focused design document in the appropriate docs location; otherwise provide the report in the reply.
  2. Locate the real implementation.

    • Find entry points before designing: API definitions, handlers, service methods, data models, workflow runners, frontend request builders, UI components, tests, and docs.
    • Prefer real call paths over keyword-level guesses.
    • Identify what is already implemented, what is only documented, and what is missing.
  3. Define the target semantics.

    • Name the core concepts and states precisely.
    • State invariant rules as hard requirements, not suggestions.
    • Resolve ambiguous user-facing terms into exact technical meanings.
    • Decide which behavior belongs in backend hard validation, frontend guidance, workflow preflight, and tests.
  4. Design the backend.

    • Cover API/proto/schema changes, storage changes, service validation, workflow/runtime changes, error types, idempotency, locking, and retry behavior.
    • Put hard safety rules in backend paths that cannot be bypassed by the UI.
    • Include both precheck-time and execution-time validation when state can change between submit and execution.
  5. Design the frontend.

    • Cover UI state, available actions, disabled states, warnings, confirmations, request shape, response handling, and stale precheck protection.
    • Ensure user wording matches the actual backend semantics.
    • Prevent users from selecting impossible or unsafe combinations; still rely on backend validation as final authority.
  6. Define verification.

    • Include unit tests for pure rules.
    • Include service/integration tests for API behavior.
    • Include frontend tests for UI gating and user guidance.
    • Include E2E matrix cases for the highest-risk flows.
  7. Provide implementation order.

    • Sequence changes from contracts and data model through backend, frontend, generation, tests, and rollout.
    • Call out generated code, migrations, docs, and compatibility choices explicitly.

Report Format

Use this structure unless the user asks for a different format:

# <Short Design Title>

## Scope

Briefly state the problems being solved and the explicit constraints.

## Current State

Describe the current implementation with concrete evidence. Include file references when working in a local repository.

## Target Semantics

Define terms, invariants, state transitions, and user-visible meanings.

## Data Model And Contracts

Describe API, schema, storage, event, or protocol changes. Include example payloads when helpful.

## Backend Design

Describe validation rules, service flow, workflow/runtime changes, errors, locking, retries, and persistence.

## Frontend Design

Describe UI controls, dynamic options, copy, warnings, confirmations, request building, and response handling.

## Workflow / Runtime

Describe job phases, command generation, preflight checks, async behavior, and failure handling.

## Compatibility And Rollout

State whether backward compatibility is required. If not, say what can be deleted or replaced.

## Test Plan

List backend unit tests, service/API tests, frontend tests, and E2E matrix.

## Implementation Order

Give numbered steps that an engineer can execute.

## Acceptance Criteria

List observable conditions that must be true when the work is complete.

## Open Questions

Only include questions that block implementation or materially change the design.

Review Rules

  • Lead with findings and decisions, not background.
  • Do not invent product-specific facts. If a fact must come from code, inspect the code.
  • Distinguish confirmed evidence from inference.
  • Prefer backend hard validation for safety, frontend guidance for ergonomics, and workflow preflight for race-prone runtime state.
  • Do not hide known gaps. Label them as current gaps, target behavior, or out of scope.
  • Use concrete error names, request fields, state names, and test names when designing implementation details.
  • Avoid vague advice such as "add checks" or "improve UI"; specify where the check lives, what it reads, what it rejects, and how the user sees it.

Output Quality Bar

The report is complete when another engineer can implement from it without reconstructing the reasoning. It should include:

  • The exact current problem.
  • The exact target behavior.
  • Backend enforcement points.
  • Frontend user guidance and blocking behavior.
  • Contract and persistence changes.
  • Runtime race protections.
  • Tests that prove the behavior.
  • Clear acceptance criteria.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 直接解决工程团队在架构改造、前后端契约不一致等场景下的核心痛点
  • 提供从问题识别到实施落地的完整设计报告生成能力,显著提升技术方案设计效率
触发精准90/100

亮点

  • 触发场景描述精准完整,覆盖技术问题、产品缺口、代码审查、架构隐患等多种变体
  • 边界清晰,明确列举了 Codex 被要求转化的具体场景
结构规范90/100

亮点

  • 结构完整,包含 Purpose、Workflow、Report Format、Review Rules 和 Output Quality Bar
  • Workflow 提供 7 个清晰步骤,Report Format 给出完整设计报告模板
执行可靠90/100

亮点

  • 设计流程覆盖从问题识别到实施顺序的完整闭环,可靠性高
  • Review Rules 强调基于代码证据、区分确认与推断,体现良好的执行规范
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。