Index of every page on this site: llms.txt
All skills
qiao-925 avatar

/architecture-governance

@50a1ee4
Run it yourself

架构治理能力单元,帮助 Agent 在架构评审、重构、新模块设计、分层边界调整、接口契约设计与项目初始化分析场景中,检查分层与依赖方向、变更影响面、接口契约与可替换性,避免跨层耦合、反向依赖与破坏性演进。关键词:架构治理、分层、依赖方向、影响面分析、接口契约、依赖注入、可插拔、重构。

Use this Skill: https://skilld.dev/gh/qiao-925/qiao-skills/architecture-governance

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesinterface-di-and-pluggability.md

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

接口契约、依赖注入与可插拔设计

1. 接口契约

  • 使用 Protocol 或 ABC 定义能力边界
  • 契约优先表达行为,不泄露具体实现细节
  • 契约变更默认要求向后兼容

2. 依赖注入

推荐方式

  • 构造函数注入(首选)
  • 工厂注入(创建时组装)

禁止方式

  • 业务代码直接 new 具体底层实现并长期耦合
  • 全局静态单例作为唯一依赖来源

3. 可插拔设计

  • 可替换能力通过工厂或注册表管理
  • 具体实现通过配置切换,不通过修改调用方逻辑切换
  • 插件扩展时保持主流程与扩展点解耦

4. 最小检查清单

  • 调用方依赖的是契约而非实现
  • 依赖通过注入组装
  • 新实现接入不需要修改主流程代码

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts7mo4 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    This skill provides architectural governance guidelines and templates for project analysis. It is primarily instructional and contains no malicious code, obfuscation, or high-risk automated actions. It mentions standard development commands (such as npm install or pip install) as optional templates for project initialization workflows.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: LOW · No issues

  • Runlayer8mo

    5 files scanned · No issues

Signed by skilld at 50a1ee4. 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
Other metadata
metadata
{
  "type": "declarative",
  "category": "engineering",
  "scope": "generic",
  "role": "skill-unit"
}

README badge

README badge for qiao-925/qiao-skills/architecture-governance