single-responsibility-principle
✓클래스, 모듈, 함수를 생성하거나 수정할 때 사용합니다. 기존 코드에 기능을 추가해야 한다는 압박감을 느낄 때 사용하세요. 클래스를 변경해야 할 여러 가지 이유가 있는 경우 사용합니다.
SKILL.md
Every module, class, or function should have responsibility over a single part of functionality. If you can describe what a class does using "AND", it has too many responsibilities.
Describe your class in one sentence. If it contains "AND", split it.
| "Handles user authentication" | ✅ Single responsibility | | "Handles authentication AND sends emails" | ❌ Two responsibilities | | "Manages orders AND processes payments AND tracks inventory" | ❌ Three responsibilities |
클래스, 모듈, 함수를 생성하거나 수정할 때 사용합니다. 기존 코드에 기능을 추가해야 한다는 압박감을 느낄 때 사용하세요. 클래스를 변경해야 할 여러 가지 이유가 있는 경우 사용합니다. 출처: yanko-belov/code-craft.
인용 가능한 정보
AI/검색 인용용 안정적인 필드와 명령어.
- 설치 명령어
npx skills add https://github.com/yanko-belov/code-craft --skill single-responsibility-principle- 카테고리
- </>개발 도구
- 인증됨
- ✓
- 최초 등록
- 2026-02-12
- 업데이트
- 2026-02-18
빠른 답변
single-responsibility-principle이란?
클래스, 모듈, 함수를 생성하거나 수정할 때 사용합니다. 기존 코드에 기능을 추가해야 한다는 압박감을 느낄 때 사용하세요. 클래스를 변경해야 할 여러 가지 이유가 있는 경우 사용합니다. 출처: yanko-belov/code-craft.
single-responsibility-principle 설치 방법은?
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/yanko-belov/code-craft --skill single-responsibility-principle 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다
소스 저장소는 어디인가요?
https://github.com/yanko-belov/code-craft
상세
- 카테고리
- </>개발 도구
- 출처
- skills.sh
- 최초 등록
- 2026-02-12