·implement-repository-pattern
{}

implement-repository-pattern

创建遵循清洁架构的存储库,并在域层和实施中使用协议 在基础设施层。添加新数据访问层、创建数据库交互时使用, 实现持久性,或者需要存储/检索域模型。强制执行协议/ABC 模式 具有 ServiceResult、ManagedResource 生命周期和适当的层分离。触发“创建 X 的存储库”、“为 Y 实现数据访问”、“添加持久层”或“存储/检索 域模型”。

4安装·0热度·@dawiddutoit

安装

$npx skills add https://github.com/dawiddutoit/custom-claude --skill implement-repository-pattern

如何安装 implement-repository-pattern

通过命令行快速安装 implement-repository-pattern AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill implement-repository-pattern
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Works with Python files in domain/repositories/ and infrastructure/ directories. Implement Repository Pattern

Create repositories following Clean Architecture principles with Protocol (domain layer) and Implementation (infrastructure layer) separation. Ensures proper dependency inversion, ServiceResult return types, and resource lifecycle management.

Result: ✅ Repository with Protocol + Implementation ready for dependency injection

创建遵循清洁架构的存储库,并在域层和实施中使用协议 在基础设施层。添加新数据访问层、创建数据库交互时使用, 实现持久性,或者需要存储/检索域模型。强制执行协议/ABC 模式 具有 ServiceResult、ManagedResource 生命周期和适当的层分离。触发“创建 X 的存储库”、“为 Y 实现数据访问”、“添加持久层”或“存储/检索 域模型”。 来源:dawiddutoit/custom-claude。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dawiddutoit/custom-claude --skill implement-repository-pattern
分类
{}数据分析
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from dawiddutoit/custom-claude

快速解答

什么是 implement-repository-pattern?

创建遵循清洁架构的存储库,并在域层和实施中使用协议 在基础设施层。添加新数据访问层、创建数据库交互时使用, 实现持久性,或者需要存储/检索域模型。强制执行协议/ABC 模式 具有 ServiceResult、ManagedResource 生命周期和适当的层分离。触发“创建 X 的存储库”、“为 Y 实现数据访问”、“添加持久层”或“存储/检索 域模型”。 来源:dawiddutoit/custom-claude。

如何安装 implement-repository-pattern?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill implement-repository-pattern 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dawiddutoit/custom-claude