All skills
alffei avatar

/spec-architect

@07df2cb
by Andrew Chenalffei/skill_share68 stars
17

专业的系统架构师技能。用于将模糊的功能想法转化为通过审批的工程级文档(需求 -> 设计 -> 任务)。当用户想要“设计”、“规划”或“spec”新功能时激活。

Use this Skill: https://skilld.dev/gh/alffei/skill_share/spec-architect

This session only. Nothing lands on disk.

resourcesdesign_tpl.md

≈430 tokens on demand. Your agent reads this file only when SKILL.md points to it.

{Feature Name} 技术设计文档

1. 系统概要 (System Summary)

简述实现该功能的核心技术路线。说明该功能将如何集成到现有项目中,涉及哪些模块的改动。

2. 决策记录 (Decision Rationale)

  • 原方案选择: 简述对比过的方案及最终选择本方案的原因(如:性能、复用性、降低耦合等)。
  • 权衡 (Trade-offs): 说明为了实现当前设计所做的折中(如:牺牲了一定的灵活性以换取更快的开发速度)。

3. 详细设计 (Detailed Design)

3.1 逻辑流程 (Logic Flow)

使用 Mermaid 语法描述核心业务流程。

graph TD
    A[开始] --> B{判断条件}
    B -- 是 --> C[执行操作]
    B -- 否 --> D[返回错误]

3.2 目录与模块结构 (Structure)

  • src/components/...: 新增/修改的 UI 组件。
  • src/hooks/...: 封装的业务逻辑。
  • src/lib/...: 工具函数或配置。

3.3 数据模型 (Data Models)

/**
 * 核心 Interface / Type 定义
 */
export interface {FeatureName}Data {
  id: string;
  createdAt: Date;
  // ...
}

3.4 交互接口 (APIs / Props)

  • Props 定义: 列出关键组件的 Props 及其类型。
  • API Endpoints: 如果涉及后端,注明路径、方法、Input/Output Schema。

4. 安全性与异常处理 (Security & Error Handling)

  • 防御性编程: 如何处理非法输入、网络故障、并发冲突?
  • 权限校验: 是否需要登录、角色校验?

5. 验证方案 (Verification Plan)

  • 自动化测试: 需要覆盖哪些关键路径(单元测试、集成测试)?
  • 手动验证: 执行哪些步骤可以快速验证功能闭环?

Source: SKILL.md on GitHub

1 alert7mo4 checks · Risk CRITICAL
  • Gen Agent Trust Hub7mo

    The spec-architect skill is a template-driven documentation tool for software planning. It does not contain any executable code, external dependencies, or network-active functions, and it operates entirely on local text files.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: LOW · No issues

  • Runlayer7mo

    3 files scanned · No issues

Signed by skilld at 07df2cb. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago

README badge

README badge for alffei/skill_share/spec-architect