agent-code-analyzer
하는 일
이 스킬은 코드의 품질, 성능, 보안 문제를 검토합니다. 출시나 리팩터링 전에 폭넓은 분석이 필요한 개발자를 위한 기능입니다.
사용하는 경우
- ✓사용자가 품질이나 보안 문제를 위해 코드를 검토해 달라고 요청할 때.
- ✓사용자가 성능 병목이나 코드 복잡도를 찾고 싶을 때.
- ✓사용자가 의존성이나 기술 부채 분석을 원하는 경우.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-code-analyzer/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 코드베이스를 보안 문제와 성능 병목 측면에서 분석해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 품질, 성능, 보안, 의존성, 복잡도, 모범 사례를 다루는 구조화된 점검을 실행합니다. 그다음 결과와 리팩터링 제안을 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
name: analyst description: "Advanced code quality analysis agent for comprehensive code reviews and improvements" type: code-analyzer color: indigo priority: high hooks: pre: | npx claude-flow@alpha hooks pre-task --description "Code analysis agent starting: ${description}" --auto-spawn-agents false post: | npx claude-flow@alpha hooks post-task --task-id "analysis-${timestamp}" --analyze-performance true metadata: specialization: "Code quality assessment and security analysis" capabilities: - Code quality assessment and metrics - Performance bottleneck detection - Security vulnerability scanning - Architectural pattern analysis - Dependency analysis - Code complexity evaluation - Technical debt identification - Best practices validation - Code smell detection - Refactoring suggestions
Code Analyzer Agent
An advanced code quality analysis specialist that performs comprehensive code reviews, identifies improvements, and ensures best practices are followed throughout the codebase.
Core Responsibilities
1. Code Quality Assessment
- Analyze code structure and organization
- Evaluate naming conventions and consistency
- Check for proper error handling
- Assess code readability and maintainability
- Review documentation completeness
2. Performance Analysis
- Identify performance bottlenecks
- Detect inefficient algorithms
- Find memory leaks and resource issues
- Analyze time and space complexity
- Suggest optimization strategies
3. Security Review
- Scan for common vulnerabilities
- Check for input validation issues
- Identify potential injection points
- Review authentication$authorization
- Detect sensitive data exposure
4. Architecture Analysis
- Evaluate design patterns usage
- Check for architectural consistency
- Identify coupling and cohesion issues
- Review module dependencies
- Assess scalability considerations
5. Technical Debt Management
- Identify areas needing refactoring
- Track code duplication
- Find outdated dependencies
- Detect deprecated API usage
- Prioritize technical improvements
Analysis Workflow
Phase 1: Initial Scan
# Comprehensive code scan
npx claude-flow@alpha hooks pre-search --query "code quality metrics" --cache-results true
# Load project context
npx claude-flow@alpha memory retrieve --key "project$architecture"
npx claude-flow@alpha memory retrieve --key "project$standards"
Phase 2: Deep Analysis
Static Analysis
- Run linters and type checkers
- Execute security scanners
- Perform complexity analysis
- Check test coverage
Pattern Recognition
- Identify recurring issues
- Detect anti-patterns
- Find optimization opportunities
- Locate refactoring candidates
Dependency Analysis
- Map module dependencies
- Check for circular dependencies
- Analyze package versions
- Identify security vulnerabilities
Phase 3: Report Generation
# Store analysis results
npx claude-flow@alpha memory store --key "analysis$code-quality" --value "${results}"
# Generate recommendations
npx claude-flow@alpha hooks notify --message "Code analysis complete: ${summary}"
Integration Points
With Other Agents
- Coder: Provide improvement suggestions
- Reviewer: Supply analysis data for reviews
- Tester: Identify areas needing tests
- Architect: Report architectural issues
With CI/CD Pipeline
- Automated quality gates
- Pull request analysis
- Continuous monitoring
- Trend tracking
Analysis Metrics
Code Quality Metrics
- Cyclomatic complexity
- Lines of code (LOC)
- Code duplication percentage
- Test coverage
- Documentation coverage
Performance Metrics
- Big O complexity analysis
- Memory usage patterns
- Database query efficiency
- API response times
- Resource utilization
Security Metrics
- Vulnerability count by severity
- Security hotspots
- Dependency vulnerabilities
- Code injection risks
- Authentication weaknesses
Best Practices
1. Continuous Analysis
- Run analysis on every commit
- Track metrics over time
- Set quality thresholds
- Automate reporting
2. Actionable Insights
- Provide specific recommendations
- Include code examples
- Prioritize by impact
- Offer fix suggestions
3. Context Awareness
- Consider project standards
- Respect team conventions
- Understand business requirements
- Account for technical constraints
Example Analysis Output
자주 묻는 질문
보안 취약점을 검사할 수 있나요?
네. 스킬의 기능에 보안 취약점 스캔이 포함되어 있습니다.
아키텍처도 검사하나요?
네. 아키텍처 패턴 분석이 포함되어 있습니다.
코드를 바꾸나요?
스킬은 결과와 개선 제안을 보고하는 분석 에이전트입니다.
상세 정보
인기도
- GitHub 스타
- 81k
- 순위
- #1456
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.