Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Anti-overengineering guide based on YAGNI. Use before adding an architectural pattern, during code review, or to challenge an overly complex implementation.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Read .claude/roles/architect.md — adopt this profile and follow all its rules.
This skill activates for:
"The best code is no code" - Solve problems with the minimum viable complexity.
YAGNI (You Aren't Gonna Need It)
↓
Pragmatic Architecture
↓
Progressive Enhancement
| Pattern | ✅ Apply When | ❌ Avoid When |
|---|---|---|
| Value Object | Complex business rules, invariants to protect | Simple data structures, basic formatting |
| Entity | Identity-based objects with lifecycle | Stateless operations, simple data transfer |
| Aggregate | Complex transactional boundaries | Single entity operations, simple CRUD |
| Service | Stateless business logic, orchestration | Simple transformations, UI-only logic |
| Repository | Complex data access, multiple sources | Simple API calls, single gateway sufficient |
| Use Case | Business workflow orchestration | Single service calls, simple operations |
{name: string, email: string}Before adding any pattern, ask:
1. Does current code fail to solve the problem?
└─ No → Don't add complexity
└─ Yes ↓
2. Is there actual business complexity?
└─ No → Use simpler approach
└─ Yes ↓
3. Will this pattern reduce overall complexity?
└─ No → Find simpler solution
└─ Yes ↓
4. Can you implement in <50 lines?
└─ Yes → Start simple, refactor later
└─ No → Pattern might be justified
// Simple service - clear responsibility, no premature abstraction
class ReviewActionDispatcher {
constructor(private readonly gateway: ReviewActionGateway) {}
async dispatch(action: ReviewAction, mrId: MergeRequestId): Promise<void> {
if (action.type === 'comment') return this.gateway.postComment(mrId, action.body);
if (action.type === 'resolve') return this.gateway.resolveThread(action.threadId);
}
}
// Unnecessary strategy hierarchy for two branches
abstract class AbstractReviewActionStrategy {
abstract execute(action: ReviewAction, mrId: MergeRequestId): Promise<void>;
}
class CommentActionStrategy extends AbstractReviewActionStrategy {
// 50+ lines wrapping a single postComment call
}
class ReviewActionStrategyFactory {
createStrategy(type: ReviewActionType): AbstractReviewActionStrategy {
// Complex factory for two simple options
}
}
// ❌ Over-engineered from start: class-as-value-object with manual validation
class MergeRequestIdValueObject {
constructor(private readonly value: string) {
this.assertValid();
}
private assertValid(): void { /* runtime check */ }
getValue(): string { return this.value; }
}
// ✅ Start simple: branded type (zero runtime cost) + boundary validation
type MergeRequestId = string & { readonly __brand: 'MergeRequestId' };
const isMergeRequestId = (value: string): value is MergeRequestId =>
/^[a-z0-9-]+$/.test(value);
"Architecture should scream the domain" - But don't force patterns where simple functions suffice.
"Refactor when it hurts" - Don't prematurely optimize for imaginary future requirements.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Clean Architecture (Uncle Bob) guide for this project. Use when creating modules, entities, use cases, presenters, controllers, gateways, guards, services. Contains tactical patterns and structure conventions.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Audit documentation for duplication, staleness, language issues, and verbosity. Read-only — produces an actionable report.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Local auto-review of modified code (no GitLab/GitHub). Runs 5 sequential audits and generates a local report. Ideal for validating code before creating a MR/PR.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Clean Code (Robert C. Martin) guide to produce and challenge code that is readable, durable, simple, and consistent. Covers naming, functions, comments, smells, and refactor heuristics. Complements `/solid` (SOLID principles) and `/anti-overengineering` (YAGNI/KISS). Activate during the REFACTOR phase of the TDD cycle and during implementation self-review.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Safe commit and push workflow. Creates a commit following conventions and pushes. Husky handles verifications (TypeScript, Biome, tests).
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.