en un clic
software-architecture
软件架构设计模式与最佳实践
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
软件架构设计模式与最佳实践
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
研究一个**已知的** GitHub 项目/repo,判断它对 LiYe Systems 的进化有没有可借鉴之处,产出定型的 evolution-recon 报告并归档到 recon-log。Use whenever the user gives a specific GitHub repo URL and asks to 研究/研读/消化/digest/study it, wants to know whether a project 对 LiYe / AGE / loamwise 有没有帮助/可借鉴/值得参考, asks "这个项目对我们有没有用", floats "看看 <repo> 有没有能学的", or types /github-digest — even if they never name the report format. This is the KNOWN-repo research step that sits UPSTREAM of github-scout (which DISCOVERS unknown repos) and source-intake (which INGESTS a chosen repo). Reach for it when the repo is already chosen and the real question is "is it worth our attention / what can LiYe learn". Do NOT use it to search/discover repos (that is github-scout) or to actually vendor/ingest a repo (that is source-intake).
Use when testing SFC v0.2 frontmatter compatibility.
Claude Skills 创建指南与最佳实践
SFC patched skill. Use when "ui-ux" is relevant.
内容研究与写作助手
视觉设计与艺术创作工具
| name | software-architecture |
| description | 软件架构设计模式与最佳实践 |
| domain | 00_Core_Utilities |
| category | meta |
| version | 1.0.0 |
| status | active |
| source | awesome-claude-skills |
| source_url | https://github.com/ComposioHQ/awesome-claude-skills |
| license | Apache-2.0 |
| skeleton | reference |
| triggers | {"commands":["/software-architecture"],"patterns":["software-architecture"]} |
| inputs | {"required":[],"optional":[]} |
| outputs | {"artifacts":["SKILL.md"]} |
| failure_modes | [{"symptom":"Missing required inputs or context","recovery":"Provide the missing info and retry"},{"symptom":"Unexpected tool/runtime failure","recovery":"Rerun with minimal steps; escalate after 3 failures"}] |
| verification | {"evidence_required":true,"how_to_verify":["node .claude/scripts/sfc_lint.mjs <skill_dir>"]} |
| governance | {"constitution":"_meta/governance/SKILL_CONSTITUTION_v0.1.md","policy":"_meta/policies/DEFAULT_SKILL_POLICY.md"} |
来源: ComposioHQ/awesome-claude-skills 适配: LiYe OS 三层架构
实现设计模式,包括 Clean Architecture、SOLID 原则、GoF 设计模式等软件设计最佳实践。
当需要架构设计指导时:
┌─────────────────────────────────────────┐
│ External Interfaces │
│ (UI, DB, Web, Devices, External APIs) │
├─────────────────────────────────────────┤
│ Interface Adapters │
│ (Controllers, Gateways, Presenters) │
├─────────────────────────────────────────┤
│ Application Layer │
│ (Use Cases, Services) │
├─────────────────────────────────────────┤
│ Domain Layer │
│ (Entities, Business Rules) │
└─────────────────────────────────────────┘
| 原则 | 含义 | 示例 |
|---|---|---|
| Single Responsibility | 单一职责 | 一个类只做一件事 |
| Open/Closed | 开闭原则 | 对扩展开放,对修改关闭 |
| Liskov Substitution | 里氏替换 | 子类可替换父类 |
| Interface Segregation | 接口隔离 | 细粒度接口 |
| Dependency Inversion | 依赖倒置 | 依赖抽象而非实现 |
创建型模式:
结构型模式:
行为型模式:
# ADR-001: 选择 PostgreSQL 作为主数据库
## 状态
已接受
## 背景
需要选择生产环境数据库...
## 决策
选择 PostgreSQL 因为...
## 后果
正面: ...
负面: ...
用户: 帮我设计一个电商后端的架构
Claude: [使用 software-architecture 设计分层结构、定义边界、选择模式]
用户: 这个模块太复杂了,帮我重构
Claude: [使用 software-architecture 识别问题、应用 SOLID、提取模式]
用户: 帮我评审这个项目的架构
Claude: [使用 software-architecture 检查依赖方向、职责划分、扩展性]
无外部依赖,纯方法论技能。
此技能被以下业务域引用:
本技能的原则与 LiYe OS 架构宪章一致:
Created: 2025-12-28 | Adapted for LiYe OS