본문으로 건너뛰기
Skillpedia
일반 코딩81k · #1456

agent-code-analyzer

하는 일

이 스킬은 코드의 품질, 성능, 보안 문제를 검토합니다. 출시나 리팩터링 전에 폭넓은 분석이 필요한 개발자를 위한 기능입니다.

사용하는 경우

  • ✓사용자가 품질이나 보안 문제를 위해 코드를 검토해 달라고 요청할 때.
  • ✓사용자가 성능 병목이나 코드 복잡도를 찾고 싶을 때.
  • ✓사용자가 의존성이나 기술 부채 분석을 원하는 경우.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-code-analyzer/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-code-analyzer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Static Analysis

    • Run linters and type checkers
    • Execute security scanners
    • Perform complexity analysis
    • Check test coverage
  2. Pattern Recognition

    • Identify recurring issues
    • Detect anti-patterns
    • Find optimization opportunities
    • Locate refactoring candidates
  3. 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

자주 묻는 질문

보안 취약점을 검사할 수 있나요?

네. 스킬의 기능에 보안 취약점 스캔이 포함되어 있습니다.

아키텍처도 검사하나요?

네. 아키텍처 패턴 분석이 포함되어 있습니다.

코드를 바꾸나요?

스킬은 결과와 개선 제안을 보고하는 분석 에이전트입니다.

상세 정보

작성자의 원본 설명

Agent skill for code-analyzer - invoke with $agent-code-analyzer

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1456
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬