conventions
Skill0 starsChanged 7 months agoMITView on GitHub
Spring Boot 코드 컨벤션(커밋 형식·네이밍·패키지 구조). 모든 구현 전 필수 확인.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- MohammadShehadeh/agent-skillstheir own version, first seen Nov 1, 2026
- piomin/claude-ai-spring-boottheir own version, first seen Oct 25, 2026
- scottlivingston/claude-skillstheir own version, first seen Oct 25, 2026
- wuyining0130/c-roomtheir own version, first seen Oct 15, 2026
- philtzjp/skillstheir own version, first seen Oct 13, 2026
- kamenkurtev/ui-consistencytheir own version, first seen Oct 11, 2026
Used with
Projects with it also use review and release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- meteor/meteor★ 45ksame name
- piomin/claude-ai-spring-boot★ 1.4ksame name
- psenger/ai-agent-skills★ 10same name
- yyyyolo7a79-sketch/claude-conventions-skill★ 3same name
- MohammadShehadeh/agent-skills★ 2same name
- philtzjp/skills★ 2same name
- psenger/catholic-ai-skills★ 2same name
- stijnvanhulle/agents★ 2same name
- yacb2/aidex★ 2same name
- kamenkurtev/ui-consistency★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bstackSkill
- api-reviewSkill
- arch-guardSkill
- architectSkill
- auditSkill
- brainstormingSkill
- collaborationSkill
- investigateSkill
- metricsSkill
- observabilitySkill
- perfSkill
- persistenceSkill
- securitySkill
- shipSkill
- specSkill
- spring-coreSkill
- subagent-drivenSkill
- testSkill
- writing-plansSkill
- writing-skillsSkill
The file
Files
/conventions — Spring Boot 코드 컨벤션
구현 전 반드시 확인. 코드 리뷰·신규 기능·리팩토링 포함 모든 코드 작업에 적용.
커밋 컨벤션
형식
type(scope): 제목
- 본문 줄 1 (선택)
- 본문 줄 2- 제목: 명령형, 마침표 없음
- 본문: 최대 5줄, 개괄식(
-불릿). 변경 이유나 주요 내용이 자명하면 생략
type
| type | 사용 |
feat | 새 기능 |
fix | 버그 수정 |
refactor | 기능 변화 없는 구조 개선 |
chore | 빌드·설정·의존성 변경 |
docs | 문서·주석 |
test | 테스트 추가·수정 |
커밋 단위
- 하나의 커밋에 모든 변경을 뭉치지 않는다
- 도메인·레이어·의미 단위로 커밋을 나눈다
- 지나치게 잘게 쪼개지도 않는다 — 한 흐름에서 함께 변경되는 파일은 하나의 커밋으로 묶는다
# ✅ 좋은 예 — 의미 단위로 분리
feat(cs): Cs 엔티티에 orderClaim FK 추가 및 Flyway 마이그레이션
feat(order): OrderClaimCompletionManager 오케스트레이터 구현
feat(order): ClaimRefundStrategy + Registry 구현
# ❌ 나쁜 예 — 전체를 하나로
feat(order): OrderClaim 처리완료 기능 구현 (CS/환불/상태전이 전체)@Transactional 규칙
클래스 레벨에 @Transactional(readOnly = true) 선언, write 메서드에만 @Transactional 개별 추가.
@Service
@Transactional(readOnly = true) // 클래스 레벨 디폴트
@RequiredArgsConstructor
public class FooService {
public Foo getOne(Long id) { ... } // readOnly 상속 — 어노테이션 생략
@Transactional // write → 명시
public void update(Long id) { ... }
}@Service, @Component 싱글톤 모두 동일하게 적용.
전략 패턴 — Registry로 감싸기
전략 구현체 목록(List<Strategy>)을 직접 주입하지 않는다.
반드시 *Registry 컴포넌트로 감싸고, 외부에는 도메인 행위 메서드만 노출한다.
// ✅ Registry 패턴
@Component
@RequiredArgsConstructor
public class ClaimRefundStrategyRegistry {
private final List<ClaimRefundStrategy> strategies;
private ClaimRefundStrategy get(OrderClaimType type) { // 내부 resolve — private
return strategies.stream()
.filter(s -> s.supports(type))
.findFirst()
.orElseThrow(() -> new IllegalStateException(
type.name() + "을(를) 지원하는 전략이 없습니다."));
}
public void refund(OrderClaim orderClaim, RefundEstimate estimate) { // 도메인 행위만 노출
get(orderClaim.getOrderClaimType()).refund(orderClaim, estimate);
}
}
// ✅ 호출부 — Registry만 주입
@Service
public class SomeManager {
private final ClaimRefundStrategyRegistry claimRefundStrategyRegistry;
}
// ❌ List<Strategy> 직접 주입
@Service
public class SomeManager {
private final List<ClaimRefundStrategy> strategies; // 금지
}규칙 요약:
- Registry는
@Component, 전략 목록은private final List<Strategy>로 Spring이 자동 수집 get(discriminator)메서드는private— resolve 로직 은닉- 공개 메서드는 도메인 언어로 명명 (
refund,cancel,send등)
Repository 접근 규칙
상위 Service / Component는 타 도메인 Repository에 직접 접근하지 않는다. 반드시 해당 Repository를 소유한 Service를 통해 접근한다.
// ✅
@Service
public class OrderCompletionManager {
private final CsService csService; // CsRepository의 소유 서비스
}
// ❌
@Service
public class OrderCompletionManager {
private final CsRepository csRepository; // 타 도메인 Repository 직접 주입 금지
}생성자 주입
@RequiredArgsConstructor + private final 필드. @Autowired 필드 주입 금지.
@Service
@RequiredArgsConstructor
public class OrderService {
private final OrderRepository orderRepository;
private final PaymentGateway paymentGateway;
}enum 포맷 규칙
enum 선언 직후 첫 줄을 비우지 않는다.
// ✅
public enum FeeRuleType {
AMOUNT_FREE,
RATE,
}
// ❌
public enum FeeRuleType {
AMOUNT_FREE,
RATE,
}외부 API 호출과 트랜잭션
@Transactional 블록 안에서 외부 HTTP 호출(PG, SMS, 이메일 등)을 하지 않는다.
커밋 이후 콜백(@TransactionalEventListener) 또는 트랜잭션 외부 메서드로 분리한다.
// ✅
@Transactional
public void placeOrder(OrderCommand cmd) {
Order order = orderRepository.save(Order.of(cmd));
applicationEventPublisher.publishEvent(new OrderPlacedEvent(order.getId()));
}
@TransactionalEventListener(phase = AFTER_COMMIT)
public void sendConfirmationEmail(OrderPlacedEvent event) {
emailClient.send(...); // 트랜잭션 커밋 후 실행
}
// ❌
@Transactional
public void placeOrder(OrderCommand cmd) {
Order order = orderRepository.save(Order.of(cmd));
emailClient.send(...); // 롤백 시 이메일은 이미 발송됨
}프로젝트별 추가 컨벤션
bstack을 사용하는 각 프로젝트의 CLAUDE.md 또는 프로젝트 전용 /conventions 스킬에 추가 규칙을 정의한다.
(예: 멀티모듈 엔티티 동기화 정책, Flyway 버전 관리, 프로젝트 표준 예외 클래스 등)
역할 네이밍 (DDD/Clean Architecture)
docs/NAMING.md 가 단일 소스. 핵심 원칙만:
*UseCase— InputPort interface. 1 operation 1 class.*Command/*Query— Application 층 입력 record.*Service(구현체) — UseCase 구현, package-private 권장.*RepositoryAdapter— domain port 구현. JPA*Entity≠ domainEntity.*Controller— HTTP 어댑터. UseCase interface 만 알면 됨.*Request/*Response— HTTP API DTO (interfaces 층).*RequestMapper— Request→Command, Result→Response 변환.
Manager / Helper / Util 접미사 금지 — 책임이 불명확.
패키지 구조·의존 방향·레퍼런스 레포: docs/NAMING.md.
References
- docs/STYLE_GUIDE.md — 원칙 (Karpathy 4 + 동료 협업 + 정량)
- docs/NAMING.md — DDD/Clean Architecture 역할 명명 + 패키지 구조 + 레퍼런스 레포
- docs/RED_FLAGS.md — 안티패턴
- docs/LAYER_RULES.md — 레이어 규칙
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

