360 Secure SkillHub
360 安全技能中心

Backend Requirements Handoff

该 Skill 指导把前端页面所需的数据、用户操作、UI 状态、权限和业务规则整理成后端需求讨论文档,默认写入需求文档目录,也可直接输出 Markdown。它不规定接口端点、字段名、数据库或实现细节,并列出待确认问题与决策记录。

bovinphang
bovinphang
热度 46.72
最近更新 2026-09-26 22:50:44
分类:开发依赖:纯提示词应用场景:API 集成 / 工作流 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add fec-backend-requirements-handoff
Metadata
name
fec-backend-requirements-handoff
description
Use when frontend work needs to communicate data, action, state, permission, validation, or business-rule needs to backend teams without dictating endpoint design, field names, database shape, or implementation details; Chinese triggers include front-end and back-end requirements handover, back-end requirements, API requirements clarification, data requirements description.

Handover of front-end and back-end requirements

Purpose

Organize the data, actions, status, and questions required for front-end pages and interactions into discussion-ready requirements for the back-end.

Procedure

  1. Clarify the functional context
  • Describe what the page, process, or component is, what type of user it is intended for, and the success status of the user completing the task.
    • If there are existing designs, routes, user stories, or permission roles, use them as sources of truth first.
  1. Describe front-end display requirements

    • List information to be displayed by screen or component, relationships between information, sorting/filtering/pagination requirements and visibility rules.
    • Use business language to describe "what needs to be displayed" and do not specify endpoints, field names, DTOs, database tables or response nested structures in advance.
  2. Describe user actions and results

    • List the actions the user can perform, expected results, success feedback, failure feedback and whether optimistic updates are needed.
    • Mark behaviors that affect the UI such as idempotence, undo, confirm, dangerous operations, batch operations, or long task progress.
  3. Complete status and business rules

    • Override the status of loading, empty, error, partial, permission denied, expired, conflict, offline and retrying.
    • Document permissions, lifecycle, amounts/timezones/enumerations, validations, editable conditions, and boundary rules that affect the UI.
  4. Output discussion document

    • By default, it is written to docs/backend-requirements/<feature-name>.md; if the warehouse already has a requirements document directory, the existing location will be used.
    • Documentation includes Context, Screens/Components, Data Needs, User Actions, UI States, Business Rules, Uncertainties, Questions for Backend and Decision Log.
    • If the user only needs chat replies, they can directly output Markdown with the same structure without creating a file.

Constraints

  • Does not specify URLs, HTTP methods, field names, database schema, cache implementation, or service splitting for the backend.
  • Don't write front-end guesses into facts; uncertain business rules must go into Uncertainties or Questions.
  • Errors, empty states, permissions and partial data are not ignored; these states determine the quality of interface collaboration.
  • Do not expose internal error stacks, database fields, or sensitive implementation details to the UI.
  • Does not duplicate the API integration process: This skill describes the requirements, client boundaries, type sources and error mapping implementation should be handled in subsequent implementation phases.

Expected Output

Produce a back-end requirements handover description from a front-end perspective, clearly describing what data and behaviors the UI requires, which rules still need to be confirmed, and subsequent issues that need to be decided jointly by the front-end and back-end.