perf
Skill0 starsChanged 7 months agoMITView on GitHub
N+1·HikariCP·비동기 smell·캐싱 성능 최적화. API 응답 지연·쿼리 폭주·Thread pool 고갈 시 사용.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- jisuzzzz/haechitheir own version, first seen Nov 8, 2026
- umararshad4/honey-stacktheir own version, first seen Nov 1, 2026
- jameskrupnik/indie-app-skillstheir own version, first seen Oct 15, 2026
- snowzhaozhj/claude-devtools-rstheir own version, first seen Oct 9, 2026
- alamenai/terraetheir own version, first seen Oct 8, 2026
- mik2win/foureyestheir own version, first seen Oct 8, 2026
Used with
Projects with it also use incident, refactor and 6 more.
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.
JkudjoSkillincident
Production incident response — structured triage, hypothesis tree, safe remediation, incident record
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 6 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 7 projects that use this
Microsoft AzureSkilldocs
Also in 4 projects that use this
Microsoft AzureSkilldesign
Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.
Also in 4 projects that use this
SentrySkillreview
Fixture review skill.
Also in 8 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- alamenai/terrae★ 245same name
- OutThisLife/brooklyn-skills★ 207same name
- zeuikli/claude-code-workspace★ 155same name
- microsoft/webui★ 100same name
- epicsagas/epic-harness★ 20same name
- jmylchreest/aide★ 19same name
- jisuzzzz/haechi★ 17same name
- QAInsights/perf-skills★ 16same name
- fullymiddleaged/Clawness★ 5same name
- umararshad4/honey-stack★ 5same name
9 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
- conventionsSkill
- investigateSkill
- metricsSkill
- observabilitySkill
- persistenceSkill
- securitySkill
- shipSkill
- specSkill
- spring-coreSkill
- subagent-drivenSkill
- testSkill
- writing-plansSkill
- writing-skillsSkill
The file
Files
/perf — 성능 최적화 스킬
N+1 쿼리 탐지, HikariCP 튜닝, 비동기 처리 smell, 캐싱 전략을 다룬다.
When to use
- API 응답 속도 저하
- 데이터베이스 쿼리 수가 비정상적으로 많음
- 부하 테스트 시 병목 발생
- N+1 쿼리 의심
- Thread pool 고갈 또는 커넥션 타임아웃
N+1 탐지 및 해결
탐지 방법
# application-local.yml — 개발 시 쿼리 카운트 확인
logging:
level:
org.hibernate.SQL: DEBUG
org.hibernate.orm.jdbc.bind: TRACE
# datasource-proxy 또는 p6spy로 쿼리 수 측정해결 패턴
// 문제 감지: 반복문 내 연관 접근
orders.stream().map(o -> o.getMember().getName()) // N+1
// 해결 1: Fetch Join
@Query("SELECT o FROM Order o JOIN FETCH o.member WHERE o.status = :s")
List<Order> findByStatusWithMember(@Param("s") OrderStatus s);
// 해결 2: DTO Projection (필요한 필드만)
@Query("SELECT new com.example.OrderSummary(o.id, m.name) FROM Order o JOIN o.member m")
List<OrderSummary> findAllSummaries();
// 해결 3: @BatchSize (컬렉션)
@BatchSize(size = 100)
@OneToMany(mappedBy = "order")
private List<OrderItem> items;HikariCP 튜닝
spring:
datasource:
hikari:
# 공식 공식: pool size = (core_count * 2) + effective_spindle_count
maximum-pool-size: 10 # CPU 4코어 기준
minimum-idle: 5
connection-timeout: 30000 # 30초 (커넥션 못 얻으면 예외)
idle-timeout: 600000 # 10분
max-lifetime: 1800000 # 30분 (DB 서버 timeout보다 짧게)
keepalive-time: 60000 # 1분 (idle 커넥션 유지)커넥션 풀 고갈 시 확인:
SELECT * FROM information_schema.processlist(MySQL)- 트랜잭션이 너무 오래 열려있지 않은지
@Transactional범위가 필요 이상으로 넓지 않은지
비동기 처리
@Configuration
@EnableAsync
public class AsyncConfig {
@Bean("taskExecutor")
public Executor taskExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(5);
executor.setMaxPoolSize(20);
executor.setQueueCapacity(100);
executor.setThreadNamePrefix("async-");
executor.setRejectedExecutionHandler(new CallerRunsPolicy());
executor.initialize();
return executor;
}
}
@Service
public class NotificationService {
@Async("taskExecutor")
public CompletableFuture<Void> sendEmail(String to, String body) {
// 비동기 실행
return CompletableFuture.completedFuture(null);
}
}비동기 smell:
@Async메서드에서@Transactional사용 시 새 트랜잭션으로 시작- self-invocation으로
@Async미적용 - 예외가 묻히는 경우
AsyncUncaughtExceptionHandler등록
캐싱 전략
@EnableCaching
@Configuration
public class CacheConfig {
// Spring Cache + Redis
@Bean
public CacheManager cacheManager(RedisConnectionFactory factory) {
RedisCacheConfiguration config = RedisCacheConfiguration.defaultCacheConfig()
.entryTtl(Duration.ofMinutes(10))
.serializeValuesWith(RedisSerializationContext.SerializationPair
.fromSerializer(new GenericJackson2JsonRedisSerializer()));
return RedisCacheManager.builder(factory)
.cacheDefaults(config)
.build();
}
}
@Service
public class ProductService {
@Cacheable(value = "products", key = "#id", unless = "#result == null")
public ProductDto getProduct(Long id) { ... }
@CacheEvict(value = "products", key = "#id")
@Transactional
public void updateProduct(Long id, UpdateProductCommand cmd) { ... }
}성능 측정 도구
# JVM 힙 분석
jmap -histo <pid>
# 쿼리 실행 계획 (MySQL)
EXPLAIN ANALYZE SELECT ...
# Spring Actuator metrics
GET /actuator/metrics/hikaricp.connections.active
GET /actuator/metrics/http.server.requestsReferences
- docs/STYLE_GUIDE.md — 원칙 (Karpathy 4 + 동료 협업 + 정량)
- 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.
Reviews can't be read right now.
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.

