Token导航 LogoToken导航

Agent Skill · 研究检索

repository-analyzer(存储库分析器)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

repository-analyzer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 58,150。

总安装 420周安装 17GitHub Stars 3下载 132核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:repository-analyzer(存储库分析器)
来源仓库:https://github.com/lv416e/dotfiles
仓库路径:skills/repository-analyzer
安装命令:
npx skills add https://github.com/lv416e/dotfiles --skill repository-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lv416e/dotfiles --skill repository-analyzer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

repository-analyzer 用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项。通过 npx skills add 命令从指定仓库安装并使用。

涉及写入操作时需确认 token 权限、目标仓库范围和用户授权。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/repository-analyzer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/lv416e/dotfiles --skill repository-analyzer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

repository-analyzer 怎么安装?

在终端执行 npx skills add https://github.com/lv416e/dotfiles --skill repository-analyzer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

repository-analyzer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

repository-analyzer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

repository-analyzer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

repository-analyzer 用的人多吗?

公开数据是累计安装 420 次,近一周安装 17 次,下载 132 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

repository-analyzer 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
repository-analyzer

存储库分析器 · 本页

4203需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Repository Analyzer Skill

This skill provides a systematic approach to analyzing any code repository through multi-source investigation and critical evaluation.

Purpose

Enable Claude to perform thorough repository analysis by:

  1. Exploring codebase structure and organization using Explore agents
  2. Identifying technology stack and dependencies
  3. Researching best practices via web search
  4. Fetching authoritative documentation via Context7
  5. Evaluating configuration quality and completeness
  6. Assessing documentation and maintainability
  7. Providing actionable recommendations

When to Use This Skill

Activate this skill when users request:

  • "Analyze this repository"
  • "Audit the codebase"
  • "Report on this repository's structure"
  • "Investigate the current repository"
  • "What technologies does this repo use?"
  • "Review the repository configuration"
  • "Assess the documentation quality"

Analysis Framework

Phase 1: Repository Discovery & Scoping

Identify Repository Context:

  1. 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
  2. Initial Structure Assessment

- Use Explore agent with "medium" thoroughness - Identify root-level files and directories - Locate key configuration files - Determine primary language(s)

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)

Phase 2: Technology Stack Analysis

Identify All Technologies:

  1. Programming Languages

- Analyze file extensions - Check language-specific config files - Determine primary vs. secondary languages

  1. Package Managers & Dependencies

- Node.js: package.json, package-lock.json, yarn.lock, pnpm-lock.yaml - Python: requirements.txt, pyproject.toml, Pipfile, poetry.lock - Rust: Cargo.toml, Cargo.lock - Ruby: Gemfile, Gemfile.lock - Go: go.mod, go.sum - PHP: composer.json, composer.lock - Other: Makefile, CMakeLists.txt, etc.

  1. Frameworks & Libraries

- Read package manager files - Identify major dependencies - Categorize: frontend, backend, testing, tooling

  1. Development Tools

- Version managers: .nvmrc, .ruby-version, .tool-versions - Formatters: .prettierrc, .eslintrc, rustfmt.toml - Linters: .eslintrc, pylint.rc, .rubocop.yml - Type checkers: tsconfig.json, mypy.ini

  1. Infrastructure & Deployment

- Docker: Dockerfile, docker-compose.yml - CI/CD: .github/workflows/, .gitlab-ci.yml, .circleci/ - Cloud: 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

Phase 3: Context7 Documentation Research

Research Identified Technologies:

For each major technology/library identified in Phase 2:

  1. 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")
  2. Fetch Documentation Use Context7's get-library-docs with topics: - "configuration best practices" - "project structure" - "common patterns" - "performance optimization"
  3. Compare Against Best Practices

- How does the repository's usage align with official recommendations? - Are there deprecated patterns being used? - Are there missed optimization opportunities?

Phase 4: Web Search for Best Practices

Research Industry Standards:

  1. General Repository Practices

- Web search: "[primary language] project structure best practices 2025" - Web search: "[framework] application architecture patterns" - Web search: "dotfiles management best practices" (if applicable)

  1. Technology-Specific Patterns

- Web search: "[technology] configuration optimization" - Web search: "[framework] performance best practices" - Web search: "[tool] common mistakes to avoid"

  1. Security & Maintenance

- Web search: "[language] security best practices" - Web search: "dependency management [package manager]" - Web search: "CI/CD pipeline optimization"

Phase 5: Configuration Deep Dive

Analyze Key Configuration Files:

  1. Read Critical Configs

- Use Read tool for important configuration files - Check for: - Version pinning vs. version ranges - Security configurations - Performance settings - Environment-specific configurations - Secret management

  1. Evaluate Configuration Quality

- Completeness: Are all necessary configs present? - Consistency: Do configs align across the project? - Documentation: Are configs well-commented? - Security: Are secrets properly handled? - Maintainability: Are configs modular and DRY?

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

Phase 6: Documentation Assessment

Evaluate Documentation Quality:

  1. Existence Check

- README.md at root - CONTRIBUTING.md - LICENSE - CHANGELOG.md - docs/ directory - API documentation - Code comments - Type annotations/JSDoc

  1. Quality Assessment

- README.md: - Clear project description? - Installation instructions? - Usage examples? - Configuration guide? - Contribution guidelines? - License information? - Code Documentation: - Function/method documentation? - Complex logic explained? - Type signatures/annotations? - Examples provided?

  1. Documentation Gaps

- Identify missing documentation - Note outdated information - Flag confusing sections

Phase 7: Code Quality & Patterns

Analyze Code Organization:

  1. Directory Structure

- Is structure logical and consistent? - Are concerns properly separated? - Is there clear separation of layers? - Are naming conventions followed?

  1. Code Patterns

- Identify architectural patterns - Check for anti-patterns - Assess modularity - Evaluate reusability

  1. Testing Strategy

- Test files location and organization - Test coverage indicators - Testing frameworks used - CI test automation

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

Phase 8: Dependencies & Security

Audit Dependencies:

  1. Dependency Health

- Count total dependencies - Identify outdated packages - Check for security vulnerabilities - Assess dependency tree depth

  1. Version Management

- Are versions locked properly? - Overly restrictive version constraints? - Too loose version ranges?

  1. License Compliance

- What licenses are dependencies using? - Any licensing conflicts? - Attribution requirements met?

Phase 9: CI/CD & DevOps

Evaluate Automation:

  1. CI/CD Pipeline

- What tests run automatically? - Deployment automation level? - Code quality checks? - Security scanning?

  1. Development Workflow

- Pre-commit hooks? - Code review process? - Branch protection? - Release process?

  1. Infrastructure as Code

- Environment reproducibility? - Configuration management? - Deployment consistency?

Phase 10: Synthesis & Reporting

Generate Comprehensive Report:

Report Structure

# 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

Execution Strategy

Parallel vs Sequential

Run in Parallel (when possible):

  • Multiple Explore agent investigations (different aspects)
  • Web searches for different technologies
  • Context7 lookups for multiple libraries

Run Sequentially (when needed):

  1. Discovery first (need to know structure)
  2. Technology identification second (need to know what to research)
  3. Deep dives third (need context from earlier phases)
  4. Synthesis last (need all information)

Time Management

Estimated Duration:

  • Small repository (< 100 files): 10-15 minutes
  • Medium repository (100-1000 files): 15-30 minutes
  • Large repository (> 1000 files): 30-60 minutes

Optimization:

  • Use Explore agent efficiently (right thoroughness level)
  • Don't read every file - sample strategically
  • Focus on high-impact findings
  • Prioritize actionable insights

Thoroughness Levels

Quick Audit (10 min):

  • Phase 1-3 only
  • Basic structure, tech stack, major issues

Standard Analysis (30 min):

  • Phase 1-6
  • Complete overview with recommendations

Deep Audit (60 min):

  • All phases
  • Comprehensive analysis with detailed recommendations

Custom Focus: Ask user what aspects to prioritize if time is limited.

Special Repository Types

Dotfiles Repository (like chezmoi)

Focus on:

  • File organization and chezmoi-specific patterns
  • Template usage and variable management
  • Secret management (age encryption, 1Password integration)
  • Cross-platform compatibility
  • Backup and restore strategies
  • Documentation for setup

Key Files:

  • .chezmoi.toml.tmpl, chezmoi.toml
  • Template files (.tmpl extension)
  • Encrypted files (.age extension)
  • Scripts and hooks
  • README and setup guides

Monorepo

Focus on:

  • Package/workspace organization
  • Shared dependencies management
  • Build orchestration
  • Independent deployments
  • Code sharing patterns

Library/Package

Focus on:

  • API design and documentation
  • Versioning strategy
  • Breaking changes handling
  • Examples and usage guides
  • Publishing workflow

Web Application

Focus on:

  • Frontend/backend separation
  • State management
  • Routing structure
  • API design
  • Performance optimization
  • Security headers and practices

Quality Checklist

Before finalizing the report, verify:

  • All major directories explored
  • All configuration files identified
  • Technology stack fully documented
  • Context7 consulted for major technologies
  • Web research conducted for best practices
  • Specific, actionable recommendations provided
  • Evidence cited for all claims
  • Quick wins identified
  • Critical issues highlighted
  • Report is well-structured and readable

Usage Examples

Example 1: Analyze Current Repository

User: "Analyze this repository"

Claude:

  1. Runs pwd to get location
  2. Launches Explore agent (Phase 1)
  3. Identifies it's a chezmoi dotfiles repo
  4. Launches Phase 2 exploration for tech stack
  5. Uses Context7 for chezmoi documentation
  6. Web searches for dotfiles best practices
  7. Analyzes configuration quality
  8. Generates comprehensive report

Example 2: Focus on Security

User: "Audit the security configuration of this repository"

Claude:

  1. Focuses on Phase 5 (Configuration) and Phase 8 (Security)
  2. Searches for secret management patterns
  3. Checks for exposed credentials
  4. Evaluates dependency vulnerabilities
  5. Reviews CI/CD security
  6. Provides security-focused report

Example 3: Technology Stack Report

User: "What technologies does this repository use?"

Claude:

  1. Runs Phase 2 (Technology Stack Analysis)
  2. Uses Explore agent to find all config files
  3. Parses package managers files
  4. Uses Context7 to get documentation for major libraries
  5. Provides structured technology report

Tips for Effective Analysis

  1. Start Broad, Then Deep

- Get the big picture first - Then drill into specifics

  1. Let Explore Agent Do the Work

- Don't manually grep every file - Use appropriate thoroughness level - Multiple focused explorations > one massive exploration

  1. Context7 for Authority

- Official documentation is most reliable - Use for major frameworks/libraries - Compare repo's usage against official recommendations

  1. Web Search for Trends

- Industry best practices - Common pitfalls - Recent developments (2025 standards)

  1. Be Actionable

- Every finding should have a recommendation - Prioritize by impact and effort - Provide specific steps, not vague advice

  1. Be Honest

- Acknowledge what you don't know - State confidence levels - Suggest areas for human expert review

Notes

  • Scope Management: For very large repositories, ask user to specify focus areas
  • Permissions: Some operations may require user approval (file reads, web searches)
  • Time Awareness: Inform user of estimated duration upfront
  • Iteration: Offer to deep-dive into specific areas after initial report
  • Export: Offer to save report as markdown file in repository

平台分布

Codex

35.08%
按下载量换算46

Claude

32.89%
按下载量换算43

Cursor

20.3%
按下载量换算27

Gemini CLI

9.35%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills