본문으로 건너뛰기
cccskills
무료GitHub에 공개

app-analyzer-optimizer

Deeply analyzes application architecture and structure to perform audit, bottleneck detection, and code/performance optimization / Mempelajari arsitektur dan struktur aplikasi secara mendalam untuk melakukan audit, deteksi bottleneck, serta optimasi performa dan kode.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug스타 114(GitHub 114 + cccskills 0)
연동 도구RedisGemini

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md8.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

App Analyzer & Optimizer (2026 Edition)

English | Bahasa Indonesia


<a name="english"></a>

English

Orchestration & Integration

  • Upstream & Lifecycle: zero-to-prod-orchestrator (Phase 5 Optimization & Phase 6 QA), brainstorming, session-memory-manager.
  • AST & Codebase Graph: living-codebase-ast-graph (circular dependency & module size analysis), scalability-clean-code (code smell & God class refactoring).
  • Performance & Vitals: performance-web-vitals (Core Web Vitals LCP/INP profiling), production-ready-hardener (bundle audits & pre-flight hardening).
  • Database & Backend Profiling: database-orm-expert (N+1 query & index profiling), coderabbit (automated AI code review).

Description

Deep application analysis and optimization skill. Performs architectural audits, bottleneck detection, bundle analysis, database query profiling, and AI-assisted code review across Next.js, React, Node.js, Go, Python, and Rust applications.

Trigger Conditions

  • Auditing an existing codebase for architectural issues or technical debt.
  • Detecting performance bottlenecks (slow API routes, large bundles, N+1 queries).
  • Analyzing bundle size and suggesting code splitting opportunities.
  • Reviewing code quality (complexity, duplication, dead code).
  • Using AI-assisted tools to accelerate code review and analysis.

Analysis Protocol (5 Phases)

Phase 1: Architecture Discovery

# Map the entire project structure
find . -type f -name "*.ts" -o -name "*.tsx" -o -name "*.go" | head -100
# Count lines per file (find largest files)
find . -name "*.ts" -exec wc -l {} + | sort -rn | head -20
# Find circular dependencies (TypeScript/JS)
npx madge --circular --extensions ts,tsx src/

Phase 2: Bundle Analysis (Next.js / Vite)

# Next.js bundle analyzer
ANALYZE=true next build

# Or install dedicated tool
npx @next/bundle-analyzer

# Vite bundle visualization
npx vite-bundle-visualizer

# Check for duplicate dependencies
npx depcheck
npx bundle-phobia-cli check package.json

Key bundle red flags:

  • Any single chunk > 500KB (uncompressed).
  • Importing entire libraries (import _ from 'lodash' vs import debounce from 'lodash/debounce').
  • Moment.js (replace with date-fns or Temporal).
  • node_modules leaking into client bundle.

Phase 3: Database Query Analysis

-- PostgreSQL: Find slow queries
SELECT query, mean_exec_time, calls, total_exec_time
FROM pg_stat_statements
ORDER BY mean_exec_time DESC
LIMIT 20;

-- Find missing indexes (sequential scans on large tables)
SELECT schemaname, tablename, attname, n_distinct, correlation
FROM pg_stats
WHERE tablename = 'your_table'
ORDER BY n_distinct DESC;

-- Detect N+1 queries: Enable query logging
-- In Drizzle:
const db = drizzle(client, { logger: true });
-- In Prisma:
DATABASE_URL="...?connection_limit=5" prisma studio

Phase 4: AI-Assisted Code Review

Use AI tools to accelerate analysis:

ToolPurpose
CodeRabbitAutomated PR review, pattern detection
Sourcegraph CodyCodebase-wide semantic search and explanation
GitHub CopilotInline suggestions and refactoring
Cursor / WindsurfAI IDE with full-repo context

AI review prompts for Gemini Agent:

Analyze all files in src/features/ and identify:
1. Functions longer than 30 lines
2. Duplicated business logic across files
3. Missing error handling in async functions
4. Components that directly call APIs (violating separation of concerns)

Phase 5: Performance Profiling

Frontend (React / Next.js):

# React DevTools Profiler — identify render bottlenecks
# Chrome DevTools > Performance tab > Record interaction

# Lighthouse CI — automated CWV tracking
npm install -g @lhci/cli
lhci autorun

Backend (Node.js):

# Built-in Node.js profiler
node --prof server.js
node --prof-process isolate-*.log > processed.txt

# Clinic.js — flamegraph, bubble chart, doctor
npm install -g clinic
clinic doctor -- node server.js
clinic flame -- node server.js

Go:

# Built-in pprof profiler
go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30
go tool pprof -http=:8080 profile.out

Common Bottleneck Patterns & Fixes

BottleneckSymptomFix
N+1 queriesDB calls proportional to list lengthAdd .include() / JOIN or DataLoader
Missing indexesSlow queries on filtered columnsCREATE INDEX CONCURRENTLY
Unoptimized imagesLarge LCP, slow page loadNext.js <Image>, WebP, lazy loading
Over-fetchingFetching full objects when only 1 field neededSelect specific columns
No paginationFetching entire tablesAdd LIMIT/OFFSET or cursor pagination
Blocking main threadHigh INP, unresponsive UIuseTransition, web workers
No cachingSame data fetched repeatedlyRedis, React Query staleTime, HTTP cache
Bundle bloatLarge JS payloadTree-shaking, code splitting, lazy imports

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

  • Hulu & Siklus Hidup: zero-to-prod-orchestrator (Optimasi Fase 5 & QA Fase 6), brainstorming, session-memory-manager.
  • AST & Graf Basis Kode: living-codebase-ast-graph (dependensi sirkular & analisis ukuran modul), scalability-clean-code (refaktor code smell & God class).
  • Performa & Web Vitals: performance-web-vitals (profiling Core Web Vitals LCP/INP), production-ready-hardener (audit bundle & pengerasan pra-rilis).
  • Profiling Database & Backend: database-orm-expert (query N+1 & profiling indeks), coderabbit (code review AI otomatis).

Deskripsi

Skill analisis dan optimasi aplikasi mendalam. Melakukan audit arsitektur, deteksi bottleneck, analisis bundle, profiling query database, dan code review berbantuan AI di aplikasi Next.js, React, Node.js, Go, Python, dan Rust.

Kondisi Pemicu

  • Mengaudit codebase yang ada untuk masalah arsitektur atau hutang teknis.
  • Mendeteksi bottleneck performa (rute API lambat, bundle besar, query N+1).
  • Menganalisis ukuran bundle dan menyarankan peluang code splitting.
  • Meninjau kualitas kode (kompleksitas, duplikasi, kode mati).
  • Menggunakan tool berbantuan AI untuk mempercepat code review dan analisis.

Protokol Analisis (5 Fase)

Fase 1: Penemuan Arsitektur

Petakan seluruh struktur proyek, hitung baris per file untuk menemukan file terbesar, dan deteksi dependensi circular dengan npx madge --circular.

Fase 2: Analisis Bundle (Next.js / Vite)

Gunakan ANALYZE=true next build atau npx vite-bundle-visualizer. Tanda bahaya bundle: chunk tunggal > 500KB, mengimpor library penuh, Moment.js, atau node_modules yang bocor ke bundle klien.

Fase 3: Analisis Query Database

Gunakan pg_stat_statements untuk menemukan query lambat. Cari scan sequential pada tabel besar (tanda indeks yang hilang). Aktifkan logging query di Drizzle/Prisma untuk mendeteksi pola N+1.

Fase 4: Code Review Berbantuan AI

Gunakan CodeRabbit untuk review PR otomatis, Sourcegraph Cody untuk pencarian semantik seluruh codebase, dan Gemini Agent dengan prompt analisis spesifik untuk menemukan fungsi panjang, logika bisnis yang diduplikasi, dan error handling yang hilang.

Fase 5: Profiling Performa

  • Frontend: React DevTools Profiler, Lighthouse CI.
  • Backend Node.js: node --prof, Clinic.js untuk flamegraph.
  • Go: go tool pprof untuk CPU dan memory profiling.

Pola Bottleneck Umum & Perbaikan

BottleneckGejalaPerbaikan
Query N+1Panggilan DB proporsional dengan panjang daftarTambahkan .include() / JOIN atau DataLoader
Indeks yang hilangQuery lambat pada kolom yang difilterCREATE INDEX CONCURRENTLY
Gambar tidak dioptimalkanLCP besar, halaman lambatNext.js <Image>, WebP, lazy loading
Over-fetchingMengambil objek penuh saat hanya 1 field dibutuhkanPilih kolom spesifik
Tanpa paginasiMengambil seluruh tabelTambahkan LIMIT/OFFSET atau cursor pagination
Memblokir thread utamaINP tinggi, UI tidak responsifuseTransition, web workers
Tanpa cachingData yang sama diambil berulang kaliRedis, React Query staleTime, HTTP cache
Bundle membengkakPayload JS besarTree-shaking, code splitting, lazy imports

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1142026년 10월 27일 업데이트

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1142026년 10월 27일 업데이트

Web accessibility testing with axe-core, Playwright, and WCAG 2.2 / Pengujian aksesibilitas web axe-core, Playwright, dan WCAG 2.2.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1142026년 10월 27일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1142026년 10월 27일 업데이트

Model cascading & complexity-scored routing (Grok, Gemini, Claude) / Routing kaskade model & scoring kompleksitas (Grok, Gemini, Claude).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1142026년 10월 27일 업데이트

Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1142026년 10월 27일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고