소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill object-calisthenics명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | object-calisthenics |
| description | Object Calisthenics — 9 rules for encapsulation and OOP simplicity. |
9 rules for better object-oriented code. Apply as many as the project's context justifies — they are constraints, not commandments.
Each method should have at most one if, for, while nesting level. Extract deeper logic into private methods.
// Bad
function processOrders($orders) {
foreach ($orders as $order) {
if ($order->isActive()) {
foreach ($order->items as $item) {
// logic here
}
}
}
}
// Good
function processOrders($orders) {
foreach ($orders as $order) {
$this->processActiveOrder($order);
}
}
else KeywordUse early returns, guard clauses, or strategy pattern instead.
// Bad
if ($user->isAdmin()) {
return $this->adminView();
} else {
return $this->guestView();
}
// Good
if ($user->isAdmin()) {
return $this->adminView();
}
return $this->guestView();
Primitives that have behavior or validation belong in a Value Object.
// Bad: string passed around, validated in multiple places
function sendEmail(string $email) { ... }
// Good: validation lives in the Value Object
function sendEmail(Email $email) { ... }
Apply when the primitive has: validation rules, formatting, or business meaning.
A class that contains a collection should have no other instance variables.
// Bad: array mixed with other data
class Order {
private array $items;
private string $status;
}
// Good: collection has its own class
class OrderItems {
private array $items;
public function totalPrice(): Money { ... }
public function count(): int { ... }
}
Don't chain calls through multiple objects. Talk only to your immediate neighbors.
// Bad: violates LoD
$city = $order->getCustomer()->getAddress()->getCity();
// Good: ask, don't reach
$city = $order->customerCity();
Names should be clear and complete. Abbreviations hide intent.
// Bad
$ord, $usr, $mgr, $calc
// Good
$order, $user, $manager, $calculator
If a name is too long, the class might be doing too much.
If a class grows beyond this, extract responsibilities.
Classes with fewer instance variables have stronger cohesion. This forces decomposition into smaller, focused objects.
// Bad
class Customer {
private string $name;
private string $email;
private string $street;
private string $city;
private string $country;
}
// Good
class Customer {
private Name $name;
private Email $email;
private Address $address;
}
Don't expose internals. Tell objects to do things rather than asking for their data.
// Bad: asking for data, processing outside the object
$discount = $product->getPrice() * $product->getDiscountRate();
// Good: tell the object to calculate its own discount
$discount = $product->calculateDiscount();
Start with Rules 1, 2, and 6 — they have the highest impact with the least resistance.
Rules 3, 4, and 8 are most valuable in domain-heavy code (business logic, entities, value objects).
Rules 5, 7, and 9 guide long-term architecture — apply gradually.
In code reviews, flag violations by rule number: [OC-Rule-2] Else clause can be removed with early return.