dot_claude/skills/repository-analyzer/SKILL.md
Comprehensive repository analysis using Explore agents, web search, and Context7 to investigate codebase structure, technology stack, configuration, documentation quality, and provide actionable insights. Use this skill when asked to analyze, audit, investigate, or report on a repository or codebase. | Exploreエージェント、Web検索、Context7を用いた包括的なリポジトリ分析。コードベース構造、技術スタック、設定、ドキュメント品質を調査し、実用的な洞察を提供。リポジトリやコードベースの分析、監査、調査、レポート作成を依頼された場合に使用。
npx skillsauth add lv416e/dotfiles repository-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides a systematic approach to analyzing any code repository through multi-source investigation and critical evaluation.
Enable Claude to perform thorough repository analysis by:
Activate this skill when users request:
Identify Repository Context:
Location & Scope
# Determine working directory
pwd
# Check if it's a git repository
git rev-parse --show-toplevel
# Get repository metadata
git remote -v
git log --oneline -n 10
Initial Structure Assessment
Prompt for Explore Agent (Phase 1):
Explore the repository at [path] with medium thoroughness.
Find and report:
1. Directory structure (major folders and their purposes)
2. Configuration files (package.json, Cargo.toml, pyproject.toml, etc.)
3. Primary programming languages (by file extensions)
4. Entry points (main files, executables)
5. Documentation files (README, docs/, etc.)
6. Build/deployment files (Dockerfile, Makefile, CI configs)
Identify All Technologies:
Programming Languages
Package Managers & Dependencies
package.json, package-lock.json, yarn.lock, pnpm-lock.yamlrequirements.txt, pyproject.toml, Pipfile, poetry.lockCargo.toml, Cargo.lockGemfile, Gemfile.lockgo.mod, go.sumcomposer.json, composer.lockMakefile, CMakeLists.txt, etc.Frameworks & Libraries
Development Tools
.nvmrc, .ruby-version, .tool-versions.prettierrc, .eslintrc, rustfmt.toml.eslintrc, pylint.rc, .rubocop.ymltsconfig.json, mypy.iniInfrastructure & Deployment
Dockerfile, docker-compose.yml.github/workflows/, .gitlab-ci.yml, .circleci/terraform/, cloudformation/, k8s/Prompt for Explore Agent (Phase 2):
Explore the repository for technology stack identification with very thorough mode.
Search for and analyze:
1. All package manager files (package.json, Cargo.toml, requirements.txt, etc.)
2. Configuration files for development tools
3. Docker and containerization files
4. CI/CD pipeline configurations
5. Infrastructure as code files
6. Build system files
For each found file, provide:
- File path
- Type/purpose
- Key dependencies or configurations
Research Identified Technologies:
For each major technology/library identified in Phase 2:
Resolve Library IDs
Use Context7's resolve-library-id for:
- Major frameworks (e.g., "next.js", "react", "vue")
- Key libraries (e.g., "axios", "lodash", "sqlalchemy")
- Development tools (e.g., "vitest", "eslint", "prettier")
Fetch Documentation
Use Context7's get-library-docs with topics:
- "configuration best practices"
- "project structure"
- "common patterns"
- "performance optimization"
Compare Against Best Practices
Research Industry Standards:
General Repository Practices
Technology-Specific Patterns
Security & Maintenance
Analyze Key Configuration Files:
Read Critical Configs
Evaluate Configuration Quality
Prompt for Explore Agent (Phase 5):
Explore configuration files in depth with very thorough mode.
Focus on:
1. Environment configuration (.env templates, config files)
2. Secret management patterns
3. Build configuration optimization
4. Development vs production configs
5. Version locking strategies
Evaluate Documentation Quality:
Existence Check
Quality Assessment
README.md:
Code Documentation:
Documentation Gaps
Analyze Code Organization:
Directory Structure
Code Patterns
Testing Strategy
Prompt for Explore Agent (Phase 7):
Explore code organization and patterns with very thorough mode.
Analyze:
1. Directory structure and naming conventions
2. Test files and testing strategy
3. Shared/common code organization
4. Configuration management patterns
5. Error handling approaches
6. Logging and monitoring setup
Audit Dependencies:
Dependency Health
Version Management
License Compliance
Evaluate Automation:
CI/CD Pipeline
Development Workflow
Infrastructure as Code
Generate Comprehensive Report:
# Repository Analysis Report: [Repository Name]
## Executive Summary
**Repository:** [Name/Path]
**Primary Language:** [Language]
**Main Framework/Purpose:** [Description]
**Overall Health Score:** [X/10]
**Key Findings:**
- [Finding 1]
- [Finding 2]
- [Finding 3]
**Critical Issues:** [Count]
**Recommendations:** [Count]
---
## 1. Repository Overview
### Basic Information
- **Location:** [Path]
- **Git Remote:** [URL if available]
- **Last Updated:** [Date]
- **Total Files:** [Count]
- **Total Lines:** [Estimate]
### Purpose & Scope
[Description of what this repository does]
---
## 2. Technology Stack
### Programming Languages
| Language | Percentage | Files | Purpose |
|----------|-----------|-------|---------|
| [Lang] | [X%] | [N] | [Desc] |
### Major Dependencies
**Production:**
- [Dependency 1] ([version]) - [Purpose]
- [Dependency 2] ([version]) - [Purpose]
**Development:**
- [Dependency 1] ([version]) - [Purpose]
- [Dependency 2] ([version]) - [Purpose]
### Frameworks & Tools
- **Frontend:** [Frameworks]
- **Backend:** [Frameworks]
- **Testing:** [Frameworks]
- **Build Tools:** [Tools]
- **CI/CD:** [Tools]
---
## 3. Repository Structure
### Directory Organization
repository/ ├── [dir1]/ # [Purpose] ├── [dir2]/ # [Purpose] └── [dir3]/ # [Purpose]
### Key Files
- `[file1]` - [Purpose]
- `[file2]` - [Purpose]
**Structure Assessment:** [Evaluation]
---
## 4. Configuration Analysis
### Configuration Files Found
- [Config file 1] - [Quality: Good/Fair/Poor]
- [Config file 2] - [Quality: Good/Fair/Poor]
### Configuration Quality
**Strengths:**
- [Strength 1]
- [Strength 2]
**Weaknesses:**
- [Weakness 1]
- [Weakness 2]
### Secret Management
[Assessment of how secrets are handled]
---
## 5. Documentation Quality
### Existing Documentation
- [x] README.md - [Quality score]
- [ ] CONTRIBUTING.md - [Missing/Present]
- [x] Code comments - [Quality score]
### Documentation Assessment
**Coverage:** [X/10]
**Quality:** [X/10]
**Maintainability:** [X/10]
**Gaps Identified:**
1. [Gap 1]
2. [Gap 2]
---
## 6. Code Quality & Patterns
### Architectural Patterns
[Identified patterns and their appropriateness]
### Code Organization
**Rating:** [X/10]
**Strengths:**
- [Strength 1]
**Concerns:**
- [Concern 1]
### Testing Strategy
- **Test Coverage:** [Estimated %]
- **Test Frameworks:** [Frameworks]
- **CI Integration:** [Yes/No]
---
## 7. Dependencies & Security
### Dependency Health
- **Total Dependencies:** [Count]
- **Outdated:** [Count]
- **Security Vulnerabilities:** [Count]
### Dependency Management
[Assessment of version locking, update strategy]
---
## 8. DevOps & Automation
### CI/CD Pipeline
[Description of automation setup]
**Automated Checks:**
- [ ] Tests
- [ ] Linting
- [ ] Security scanning
- [ ] Build verification
### Development Workflow
[Description of git workflow, hooks, etc.]
---
## 9. Best Practices Comparison
### Alignment with Industry Standards
| Practice | Current | Recommended | Gap |
|----------|---------|-------------|-----|
| [Practice 1] | [Status] | [Standard] | [Description] |
| [Practice 2] | [Status] | [Standard] | [Description] |
### Context7 Insights
[Findings from official documentation comparison]
### Web Research Findings
[Insights from industry best practices research]
---
## 10. Recommendations
### Critical (Fix Immediately)
1. **[Issue]**
- **Impact:** [High/Medium/Low]
- **Effort:** [High/Medium/Low]
- **Action:** [Specific steps]
### Important (Fix Soon)
1. **[Issue]**
- **Impact:** [High/Medium/Low]
- **Effort:** [High/Medium/Low]
- **Action:** [Specific steps]
### Nice to Have (Consider)
1. **[Issue]**
- **Impact:** [High/Medium/Low]
- **Effort:** [High/Medium/Low]
- **Action:** [Specific steps]
---
## 11. Quick Wins
[List of easy improvements with high impact]
1. [Quick win 1] - [Estimated time: Xm]
2. [Quick win 2] - [Estimated time: Xm]
---
## 12. Technical Debt Assessment
**Overall Technical Debt:** [High/Medium/Low]
**Areas of Concern:**
1. [Area 1]
2. [Area 2]
**Suggested Refactoring:**
1. [Refactoring 1]
2. [Refactoring 2]
---
## 13. Maintainability Score
| Aspect | Score | Notes |
|--------|-------|-------|
| Code Organization | [X/10] | [Notes] |
| Documentation | [X/10] | [Notes] |
| Testing | [X/10] | [Notes] |
| Configuration | [X/10] | [Notes] |
| Dependencies | [X/10] | [Notes] |
| **Overall** | **[X/10]** | |
---
## 14. Research Sources
### Context7 Documentation Consulted
- [Library 1] - [Topic]
- [Library 2] - [Topic]
### Web Research Conducted
- [Search query 1] - [Key finding]
- [Search query 2] - [Key finding]
### Explore Agent Investigations
- [Investigation 1] - [Finding]
- [Investigation 2] - [Finding]
---
## 15. Next Steps
### Immediate Actions
1. [Action 1]
2. [Action 2]
### Short-term (1-2 weeks)
1. [Action 1]
2. [Action 2]
### Long-term (1-3 months)
1. [Action 1]
2. [Action 2]
---
## Appendix
### Full Technology List
[Complete list of all technologies found]
### All Configuration Files
[Complete list with brief descriptions]
### Dependency Tree
[If relevant and not too large]
---
**Report Generated:** [Date]
**Analysis Duration:** [Estimated time]
**Claude Skills Used:** repository-analyzer, deep-research (if applicable)
**Tools Used:** Explore agent, Context7, WebSearch, Read, Grep, Glob
Run in Parallel (when possible):
Run Sequentially (when needed):
Estimated Duration:
Optimization:
Quick Audit (10 min):
Standard Analysis (30 min):
Deep Audit (60 min):
Custom Focus: Ask user what aspects to prioritize if time is limited.
Focus on:
Key Files:
.chezmoi.toml.tmpl, chezmoi.toml.tmpl extension).age extension)Focus on:
Focus on:
Focus on:
Before finalizing the report, verify:
User: "Analyze this repository"
Claude:
pwd to get locationUser: "Audit the security configuration of this repository"
Claude:
User: "What technologies does this repository use?"
Claude:
Start Broad, Then Deep
Let Explore Agent Do the Work
Context7 for Authority
Web Search for Trends
Be Actionable
Be Honest
development
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization | 新しいスキルの作成、既存スキルの編集、またはデプロイ前にスキルが機能するか検証する際に使用 - プロセスドキュメントにTDDを適用し、記述前にサブエージェントでテストし、合理化に対して堅牢になるまで反復
development
Use when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file paths, complete code examples, and verification steps assuming engineer has minimal domain knowledge | 設計が完了し、コードベースの知識がゼロのエンジニア向けに詳細な実装タスクが必要な場合に使用 - 正確なファイルパス、完全なコード例、検証ステップを含む包括的な実装計画を作成。エンジニアの領域知識が最小限であることを前提
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.