Skip to content
项目

关于

帮助 AI 智能体运用 SOLID 原则、TDD 和整洁架构,编写达到资深工程师水准代码的技能。

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
+1
7天
+9
15天
+13
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Solid Skills

Professional software engineering skills for AI coding agents. Transforms code into senior-engineer quality software through SOLID principles, TDD, clean code practices, and professional software design.

Skills follow the Agent Skills format.

Available Skills

solid

Transform junior-level code into senior-engineer quality software. Primarily designed for TypeScript and NestJS projects, but applicable to any object-oriented codebase.

Use when:

  • Writing any code (features, fixes, utilities)
  • Refactoring existing code
  • Planning or designing architecture
  • Reviewing code quality
  • Debugging issues
  • Creating tests
  • Making design decisions

Core principles:

Principle Focus
TDD Red-Green-Refactor cycle, tests before code
SOLID Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
Clean Code Meaningful names, small functions, no comments needed
Design Patterns Creational, Structural, Behavioral patterns
Architecture Vertical slicing, dependency rule, clean architecture

Reference documentation included:

  • solid-principles.md - SOLID principles with TypeScript examples
  • tdd.md - Test-Driven Development practices
  • testing.md - Testing strategies and patterns
  • clean-code.md - Clean code guidelines
  • code-smells.md - Code smell detection and fixes
  • design-patterns.md - GoF patterns with examples
  • architecture.md - Clean architecture principles
  • object-design.md - Object stereotypes and responsibilities
  • complexity.md - Managing essential vs accidental complexity

Key features:

  • Enforces TDD workflow (write failing test first)
  • Detects and fixes code smells automatically
  • Applies SOLID principles to every class and function
  • Uses value objects for domain primitives (IDs, emails, money)
  • Follows Law of Demeter and Tell Don't Ask
  • Keeps methods under 10 lines, classes under 50 lines

Installation

npx skills add ramziddin/solid-skills

Usage

Skills are automatically available once installed. The agent will use them when relevant tasks are detected.

Examples:

  • "Implement a user registration feature"
  • "Refactor this service to follow SOLID principles"
  • "Review this code for quality issues"
  • "Add tests for this module"
  • "Design the architecture for a payment system"

Skill Structure

skills/
└── solid/
    ├── SKILL.md           # Main skill instructions
    └── references/        # Supporting documentation
        ├── solid-principles.md
        ├── tdd.md
        ├── testing.md
        ├── clean-code.md
        ├── code-smells.md
        ├── design-patterns.md
        ├── architecture.md
        ├── object-design.md
        └── complexity.md

Credits

License

MIT

探索相关项目

加载中…