Agent SkillsGabrielMartinMoran/mind › clean-architecture

clean-architecture

GitHub

基于Robert C. Martin的整洁架构原则,提供系统设计与代码重构指南。用于确保分层解耦、依赖方向正确及业务逻辑隔离,提升软件可维护性与测试性。

.agents/skills/clean-architecture/SKILL.md GabrielMartinMoran/mind

Trigger Scenarios

设计新软件系统或模块结构 审查代码以发现架构违规 重构耦合紧密的系统以实现关注点分离

Install

npx skills add GabrielMartinMoran/mind --skill clean-architecture -g -y
More Options

Non-standard path

npx skills add https://github.com/GabrielMartinMoran/mind/tree/main/.agents/skills/clean-architecture -g -y

Use without installing

npx skills use GabrielMartinMoran/mind@clean-architecture

指定 Agent (Claude Code)

npx skills add GabrielMartinMoran/mind --skill clean-architecture -a claude-code -g -y

安装 repo 全部 skill

npx skills add GabrielMartinMoran/mind --all -g -y

预览 repo 内 skill

npx skills add GabrielMartinMoran/mind --list

SKILL.md

Frontmatter
{
    "name": "clean-architecture",
    "description": "Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture."
}

Clean Architecture Best Practices

Comprehensive guide to Clean Architecture principles for designing maintainable, testable software systems. Based on Robert C. Martin's "Clean Architecture: A Craftsman's Guide to Software Structure and Design." Contains 42 rules across 8 categories, prioritized by architectural impact.

When to Apply

Reference these guidelines when:

  • Designing new software systems or modules
  • Structuring dependencies between layers
  • Defining boundaries between business logic and infrastructure
  • Reviewing code for architectural violations
  • Refactoring coupled systems toward cleaner structure

Rule Categories by Priority

Priority Category Impact Prefix
1 Dependency Direction CRITICAL dep-
2 Entity Design CRITICAL entity-
3 Use Case Isolation HIGH usecase-
4 Component Cohesion HIGH comp-
5 Boundary Definition MEDIUM-HIGH bound-
6 Interface Adapters MEDIUM adapt-
7 Framework Isolation MEDIUM frame-
8 Testing Architecture LOW-MEDIUM test-

Quick Reference

1. Dependency Direction (CRITICAL)

2. Entity Design (CRITICAL)

3. Use Case Isolation (HIGH)

4. Component Cohesion (HIGH)

5. Boundary Definition (MEDIUM-HIGH)

6. Interface Adapters (MEDIUM)

7. Framework Isolation (MEDIUM)

8. Testing Architecture (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information

Version History

  • a98472b Current 2026-07-25 04:18

Same Skill Collection

.agents/skills/clean-code/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md
.agents/skills/bun-development/SKILL.md

Metadata

Files
0
Version
a98472b
Hash
788c4865
Indexed
2026-07-25 04:18

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 22:33
浙ICP备14020137号-1 $Map of visitor$