Skip to content

NocodeMrLi/mini-program-engineering-skill-suite / skills/mini-program-architecture-skill

mini-program-architecture-skill

Verified

Translate a confirmed mini-program product specification or bounded feature into an implementable architecture covering modules, pages, components, services, canonical state sources, data models, interfaces, permissions, failures, caching, concurrency, idempotency, migration, rollback, external dependencies, and architecture decision records. Use when users ask how to structure a mini program, design data or APIs, divide frontend and cloud responsibilities, evolve an existing system safely, or prepare implementation after product semantics are stable. Preserves product meaning, current repository constraints, user-owned changes, and verifiable acceptance behavior rather than redesigning the product for technical convenience.

assets/architecture-decision-record.md

View on GitHub
# 小程序架构决策记录(ADR)模板

## 决策摘要

- 标题:
- 状态:proposed / confirmed / superseded
- 日期:
- 适用范围:

## 输入与约束

- 已确认产品语义:
- 不可改变项:
- 当前项目事实:
- 质量目标:
- 未知项与假设:

## 模块与依赖

| 层或模块 | 职责 | 输入/输出 | 依赖 | 所有者 |
| --- | --- | --- | --- | --- |
| 页面/组件/领域服务/平台适配 |  |  |  |  |

## 状态与数据

| 事实 | 规范状态源 | 派生状态或缓存 | 刷新/同步 | 生命周期 |
| --- | --- | --- | --- | --- |
|  |  |  |  |  |

- 数据模型与版本:
- 敏感字段与最小化:
- 权威数据关系:

### 云端状态与配置(未触发时标 N/A)

- 权威三态与首次/恢复路由:
- 配置组必填项、整组禁用与部分配置 fail-closed:
- 互斥 provider 与选择依据:
- 导入/迁移、运行时接线和 health 的同源配置:

## 接口、权限与失败

| 操作 | 契约 | 身份/权限 | 幂等与并发 | 失败/重试/降级 | 可观察证据 |
| --- | --- | --- | --- | --- | --- |
|  |  |  |  |  |  |

### 高风险写入与秘密(未触发时标 N/A)

| 场景 | 存储层不变量 | 幂等键/请求摘要/赢家结果 | 作用域来源 | 秘密持久化 | 负例 |
| --- | --- | --- | --- | --- | --- |
| 一次性写入/创建/私有读写 |  |  |  |  |  |

### 外部服务有效结果事务(未触发时标 N/A)

- 请求到达 / 服务返回 / 结果有效 / 产品提交四层证据:
- 成功态与扣减门禁:
- 失败不扣减、重试和晚到结果处理:

## 演进与恢复

- 兼容和迁移顺序:
- 灰度或开关:
- 回滚条件:
- 失败恢复路径:

## 决策

- 采用方案与理由:
- 替代方案及未采用原因:
- 代价和风险:
- 重新评估触发条件:

## 实施与验证交接

- 允许影响的模块:
- 实施顺序与门禁:
- 对应产品验收行为:
- 未验证项:
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall