Loading...
Loading...
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 skill4agent add lv416e/dotfiles repository-analyzer# 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 10Explore 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)package.jsonpackage-lock.jsonyarn.lockpnpm-lock.yamlrequirements.txtpyproject.tomlPipfilepoetry.lockCargo.tomlCargo.lockGemfileGemfile.lockgo.modgo.sumcomposer.jsoncomposer.lockMakefileCMakeLists.txt.nvmrc.ruby-version.tool-versions.prettierrc.eslintrcrustfmt.toml.eslintrcpylint.rc.rubocop.ymltsconfig.jsonmypy.iniDockerfiledocker-compose.yml.github/workflows/.gitlab-ci.yml.circleci/terraform/cloudformation/k8s/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 configurationsUse 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")Use Context7's get-library-docs with topics:
- "configuration best practices"
- "project structure"
- "common patterns"
- "performance optimization"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 strategiesExplore 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# 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
### 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.chezmoi.toml.tmplchezmoi.toml.tmpl.agepwd