repo-analyzer
Use when the user mentions "analyzing a project", "analyzing a repository", "analyzing GitHub", "project analysis", "source code analysis", "architecture…
Skill by ntk148v
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ntk148v-repo-analyzer
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/repo-analyzer
What's inside
- Skill name
repo-analyzer- Description
- Use when the user mentions "analyzing a project", "analyzing a repository", "analyzing GitHub", "project analysis", "source code analysis", "architecture analysis", "code analysis", "studying this project", "studying this framework", "seeing how this library is implemented", "comparing two projects", "project evaluation", "framework evaluation"
- License
- MIT
- Instructions
- 281 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/analysis-guide.md, references/module-analysis-guide.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# In-depth Git project analysis skills
We provide in-depth analysis of open-source projects and generate professional architecture reports. These reports offer profound technical insights, enabling readers to understand business problems, master architectural design, and develop their own critical thinking.
## When to Use
- Analyze the architecture and design of open source projects
- Compare the design differences between two similar projects
- In-depth study of the implementation ideas of a framework or library
## When NOT to Use
- Simple code issues or debugging
- Single file analysis or code review
- No code modifications required at the architectural level
## Output Language
The default language is Chinese. If the user asks a question in another language, the language used will be the same.
## Core Principles
### 1. Prioritize Business Perspective
Start with "What problem does this project solve?", not "What functions are in this file?"
| Don't | Yes |
| ----- | --- |
The `handleRequest(ctx)` function accepts a Context parameter... After a request comes in, the system will go through three stages: authentication, rate limiting, and route distribution...
| `interface MessageQueue { push(); pop() }` | Modules are decoupled through message queues; producers only need to post messages, and consumers pull messages according to priority.
### 2. Controlling the level of abstraction: Talking about design, not code.
By default, descriptions are presented at the design pattern and architecture level; **raw code is not shown unless absolutely necessary**. The focus is on the process, logic, and design principles, expressed using architecture diagrams (Mermaid), flowcharts, and tables, rather than code snippets. Code is only shown when the design is exceptionally ingenious, the project has a unique original concept, or the implementation is a core selling point, and in such cases, it must first be explained in natural language.
### 3. Global Associations
Every local analysis must be connected to the overall project design philosophy—this is the key difference between "code specifications" and "architectural analysis." See the global connections section in [analysis-guide.md](references/analysis-guide.md) for details.
### 4. Inspirational Writing
The goal is to **learn something and stimulate thinking**, not just provide a code manual. It's like a senior engineer explaining something on a whiteboard—with viewpoints, reasoning, and comparisons. See the inspirational writing section of [analysis-guide.md](references/analysis-guide.md) for details.
### 5. In-depth Insight: Why > What (Mandatory)
Every design decision must be explained in terms of motivation, trade-offs, and the costs of alternatives. Describing "what" is just the starting point; explaining "why" is where the value of the analysis lies. Every core module and the overall architecture must answer:
Why design it this way? It's not just about "what pattern was used," but rather "why it's suitable for this scenario."
What would happen if we didn't do it this way? The cost of the alternative.
- **Gap with industry best practices?** Areas of leadership and room for improvement.
- **If you were to redesign it?** Demonstrate a deeper understanding.
- **A systematic design philosophy?** A style that runs throughout the project (e.g., "convention over configuration," "zero-cost abstraction")
Example:
> ❌ The routing system uses a middleware pattern and supports chained calls.
>
> ✅ The routing system opted for an onion model instead of a linear pipeline. While linear pipelines are simpler to implement, the onion model allows each middleware to handle both request and response phases simultaneously—crucial for logging, timing, and error recovery. Express initially chose a linear model but later had to resort to various hacks to handle post-response logic; Koa learned from this experience and switched to the onion model. If I were to redesign it, I would consider adding middleware dependency declarations so the framework can automatically sort them—this is what Fastify does, avoiding hidden bugs caused by order.
### Supplementary Requirements
- **Code as the Standard** — All conclusions are supported by code, clearly marked with `file path` or `file path:line number range`. Vague descriptions are prohibited.
- **Human Touch** — Like a senior engineer giving an onboarding session to a new colleague, incorporate subjective evaluations and suggestions, avoiding AI-sounding clichés.
- **Focus on Key Points, Briefly Cover Secondary Aspects** — In-depth analysis of core innovations, with general utility functions briefly mentioned.
- **Critical Thinking** — Compare with industry practices, point out real problems, and do not shy away from shortcomings. See [analysis-guide.md](references/analysis-guide.md)
- **Fluent and Easy-to-Understand Writing** — The overall writing style should be fluent and natural, allowing even novice engineers to understand and learn from it. Avoid overly academic language or piling up jargon.
- **Avoid a rambling, disjointed account** — Each module should demonstrate in-depth detail, avoiding brief mentions or superficial discussions. If appropriate, each module should be accompanied by a corresponding Mermaid architecture diagram, ensuring readers are inspired and grasp the essence of the design.
## Analyzing Workflow
**Flexibility Principle:** All stages and sections below are advisory guidelines, not a checklist that must be strictly followed. The agent should make dynamic decisions based on the characteristics of the project being analyzed—if a stage or step is not relevant to the current project, it can be skipped or simplified. The quality of the final report is paramount.
### Phase 1: Project Acquisition and Initialization
1. Parse user input (supports `owner/repo`, GitHub/GitLab/Gitee URL, local path, project name)
2. Create a workspace: Create a directory `repo-analyses/${REPO_NAME}-{YYYYMMDD}` in the user's home directory as `$WORK_DIR` (cross-platform: macOS/Linux use `$HOME`, Windows use `$USERPROFILE` or `$HOME`).
3. If the user provides a local path, skip the clone step; otherwise, clone the repository using `git clone --depth=1`.
4. Obtain basic metadata (Star, Fork, Contributors, Code Statistics)
### Phase 2: Project Scale Assessment and Analysis Model Selection
1. **Count the number of valid lines of code** (excluding skippable code), and list the distribution by module.
- Code definitions can be skipped: test code, build/deployment configuration (Dockerfile, CI yaml, etc.), automatically generated code (protobuf generation, lock files, etc.), and sample/documentation code.
- Use tools like `find` + `wc -l` or `cloc` to perform statistics, grouping by top-level directory.
2. **Report code size to users**, using AskUserQuestion to allow users to select analytics modes:
| Pattern | Core Module Coverage | Secondary Module Coverage | Applicable Scenarios |
| ------------------------------- | -------------------- | ------------------------- | ---------------------------------------------- |
| Quick Analysis | ≥30% | ≥10% | Quickly understand the overall project picture |
| Standard Analysis (Recommended) | ≥60% | ≥30% | Conventional Architecture Analysis |
| In-depth analysis | ≥90% | ≥60% | Thoroughly examine each design decision |
3. Write the code size statistics and user-selected analysis mode into `drafts/03-plan.md`, and use this to control the analysis depth in subsequent stages.
**Coverage Calculation Rules**:
- Coverage = Union of line ranges actually requested by the Read tool / Total number of lines in the file
- For large files (>500 lines), they must be read in segments to ensure that the following critical sections are covered:
- Type definitions and imports in the file header (first 100 lines)
- Core business logic functions (located by directory structure or function name)
- Test code at the end of the file (if any)
- Reading only a small portion of a file (<30%) is not counted in the coverage rate and is considered "unread".
- Automatic code generation (proto files, lock files, etc.) can reduce coverage requirements: scanning the structure is sufficient, eliminating the need for line-by-line reading.
### Phase 3: External Research + Project Document Study (Search First, Then Read)
1. Use WebSearch to search for project evaluations, comparisons, and architecture discussions (at least 3-5 searches).
2. **Traverse the project's official website** (if it exists):
- Extract the official website URL from the README or GitHub page
- Use WebFetch/tavily_crawl to traverse key pages on the official website (Homepage, Features, Use Cases, Comparison, Blog, etc.).
- Key takeaways: Product positioning tagline, typical use cases, official competitor comparison, user case studies/testimonials
Official website content is often the best source for understanding "why this product is needed," as it's more direct than code and technical documentation.
3. **Read through the project's built-in documentation:**
- Architecture documentation (directories such as `architecture/`, `docs/`, `design/`, etc.)
- Developer guidelines such as CONTRIBUTING.md and AGENTS.md
- RFC, ADR (Architecture Decision Records), design proposals, etc.
These documents often contain the developer's design thinking, trade-offs, and historical decision-making background, making them invaluable primary sources for understanding "why it was designed this way."
- Extract key design decisions and ideas from the document into your research notes.From ntk148v/skills, MIT.
More from ntk148v/skills
- 0.497score
skill-authoring
ntk148v
Use when creating, editing, auditing, or validating Agent Skills.
SkillCFreshness: C★ 1Claude Code +9 - 0.472score
caveman
ntk148v
Ultra-compressed communication mode.
SkillCFreshness: C★ 1Claude Code +9 - 0.467score
grill
ntk148v
Interview the user relentlessly about a plan, design, or domain model until reaching shared understanding.
SkillCFreshness: C★ 1Claude Code +9 - 0.461score
handoff
ntk148v
Compact the current conversation into a handoff document for another agent to pick up.
SkillCFreshness: C★ 1Claude Code +9 - 0.432score
conventional-commits
ntk148v
Use when creating git commits, writing commit messages, or when the user mentions conventional commits, semantic versioning, or automated changelog generation.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
code-reviewer
ntk148v
Use when reviewing code, conducting code reviews, analyzing pull requests, or when the user mentions "code review", "PR review", "code quality", or "static…
SkillDFreshness: D★ 1Claude Code +9 - 0.423score
deep-wiki
ntk148v
Use when generating comprehensive documentation for a codebase, creating wiki pages, documenting architecture, or when the user mentions "deep wiki"…
SkillDFreshness: D★ 1Claude Code +9 - 0.423score
security-expert
ntk148v
Use when analyzing security vulnerabilities, conducting security reviews, checking for common vulnerabilities, or when the user mentions "security"…
SkillDFreshness: D★ 1Claude Code +9 - 0.423score
system-performance
ntk148v
Use when analyzing system performance, debugging performance issues, investigating bottlenecks, or when the user mentions "performance analysis", "USE…
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jun 27, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ntk148v/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ntk148v
- 0.497score
skill-authoring
ntk148v
Use when creating, editing, auditing, or validating Agent Skills.
SkillCFreshness: C★ 1Claude Code +9 - 0.472score
caveman
ntk148v
Ultra-compressed communication mode.
SkillCFreshness: C★ 1Claude Code +9 - 0.467score
grill
ntk148v
Interview the user relentlessly about a plan, design, or domain model until reaching shared understanding.
SkillCFreshness: C★ 1Claude Code +9 - 0.461score
handoff
ntk148v
Compact the current conversation into a handoff document for another agent to pick up.
SkillCFreshness: C★ 1Claude Code +9 - 0.432score
conventional-commits
ntk148v
Use when creating git commits, writing commit messages, or when the user mentions conventional commits, semantic versioning, or automated changelog generation.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
code-reviewer
ntk148v
Use when reviewing code, conducting code reviews, analyzing pull requests, or when the user mentions "code review", "PR review", "code quality", or "static…
SkillDFreshness: D★ 1Claude Code +9
Cite this page
repo-analyzer skill. Agent Mart. https://agentmart.dev/skills/ntk148v-repo-analyzer (last updated 2026-10-24)