Token导航 LogoToken导航

Agent Skill · 研究检索

source-code-analysis(源码分析)

source-code-analysis 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

source-code-analysis 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 16,578。

总安装 7,103周安装 302GitHub Stars 1下载 2,488核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:source-code-analysis(源码分析)
来源仓库:https://github.com/river-zhanglh/source-code-analysis
安装命令:
openclaw skills install source-code-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install source-code-analysis

这个 Skill 是做什么的

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

source-code-analysis 帮助用户理解指定代码库结构、逻辑与关键技术选型。适用于新项目调研、遗留系统接手或架构评审等开发协作场景。输入可为目标仓库 URL 或本地路径,输出为简明分析报告。分析深度取决于代码复杂度,超大型项目可能需分模块处理。涉及闭源商业软件时请勿尝试逆向工程,尊重知识产权法律法规。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install source-code-analysis;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

source-code-analysis 怎么安装?

在终端执行 openclaw skills install source-code-analysis。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

source-code-analysis 支持哪些 AI 工具?

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

source-code-analysis 需要什么权限?

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

source-code-analysis 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

source-code-analysis 用的人多吗?

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

source-code-analysis 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
source-code-analysis

源码分析 · 本页

7,1031需要联网MIT-0通过

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

SKILL.md 原文

name
source-code-analysis
description
This skill should be used when the user asks to "analyze source code", "understand this codebase", "perform code analysis", "study this project", "explain this repository", or discusses source code learning, codebase comprehension, open source project analysis, understanding software architecture, or learning from existing code.
version
1.0.0

Source Code Analysis

This skill provides a systematic 7-step methodology for analyzing and understanding source code repositories. It helps developers efficiently comprehend complex codebases by focusing on high-value content and following a structured approach.

Core Methodology

The 7-Step Analysis Process

  1. Build Global Cognition

- Create a mental map before diving into details - Understand project structure, directory organization, and code distribution - Identify main entry points and startup sequences - Recognize architectural patterns from directory structure

  1. Trace Core Pathways

- Follow complete functional chains end-to-end - Track user requests from input to output - Understand data flow and transformation through the system - Map key call chains and interaction patterns

  1. Understand Design Decisions

- Comprehend design rationale and architectural trade-offs - Identify key design patterns and abstractions - Learn why certain technical choices were made - Understand extension mechanisms and plugin systems

  1. Examine Engineering Practices

- Focus on production code realities, not ideals - Study error handling and edge case patches - Learn from code comments and engineering wisdom - Understand technical debt as conscious choices

  1. Running Analysis

- Validate understanding through actual execution - Analyze build, test, and deployment processes - Verify assumptions by running code - Use debugging tools to observe runtime behavior

  1. Identify Core 20%

- Focus on high-value paths, not all files equally - Prioritize startup entries, core logic, extension mechanisms - Identify configuration management and state management systems - Map external interaction boundaries

  1. Feature Deep-Dive

- Use specific features to understand the broader system - Trace implementation details of key functionality - Expand understanding outward from focused points - Follow one thread through the entire system

When This Skill Applies

This skill activates when the user's request involves:

  • Analyzing unfamiliar codebases
  • Understanding open source projects
  • Learning from existing software architecture
  • Planning contributions to open source
  • Evaluating technologies and frameworks
  • Studying design patterns and implementation
  • Comprehending complex software systems

Analysis Approach

Before Starting

Always ask clarifying questions:

  1. What is your goal? Learning, contributing, evaluating, or fixing?
  2. What's your experience level? Beginner, intermediate, or advanced?
  3. What specifically interests you? Architecture, features, patterns, or practices?
  4. How deep should the analysis go? Overview, standard, deep, or comprehensive?

During Analysis

Follow this systematic approach:

  1. Start with questions before code

- What problem does this project solve? - Who are the users/clients of this code? - What are the core concepts and terminology?

  1. Establish global cognition first

- Read README and documentation - Examine directory structure - Identify main entry points - Map module organization - Understand technology stack

  1. Trace one complete pathway

- Choose a user-visible feature - Follow it from input to output - Document key files and functions - Understand data transformation - Map module interactions

  1. Understand design decisions

- Question "why" not just "what" - Identify trade-offs and constraints - Understand extension mechanisms - Learn architectural patterns

  1. Study engineering practices

- Look for error handling patterns - Find performance optimizations - Read valuable comments - Understand testing approach

Output Format

Structure your analysis with these sections:

1. Executive Summary
  • Project purpose and core functionality
  • Key technologies and patterns
  • Overall architecture style
  • Main findings and recommendations
2. Global Cognition Report
## Project Overview
- **Core Goal**: [What problem it solves]
- **Main Features**: [Key functionality]
- **Technology Stack**: [Languages, frameworks, tools]
- **Code Scale**: [Size metrics]

## Architecture Analysis
- **Architecture Pattern**: [Identified pattern]
- **Directory Organization**: [Structure analysis]
- **Module Boundaries**: [Main modules and responsibilities]
- **Entry Points**: [Startup and initialization]
3. Core Pathways
## Feature: [Feature Name]
### Entry Point
- File: [path/to/file.ts:line-number]
- Function: [functionName()]

### Execution Flow
1. [Step 1] → [file:line]
2. [Step 2] → [file:line]
3. [Step 3] → [file:line]

### Data Flow
[Diagram or description of data transformation]
4. Design Insights
## Key Design Decisions

### [Decision Name]
- **What**: [Description]
- **Why**: [Rationale]
- **Trade-offs**: [Considerations]
- **Alternatives considered**: [Other options]
5. Engineering Practices
## Production Realities

### Error Handling
[Patterns and approaches found]

### Performance Optimizations
[Techniques and their rationale]

### Code Quality Practices
[Testing, documentation, standards]
6. High-Value Files (The 20%)
## Priority Reading List

1. **[file-path]** - [Why it's critical]
2. **[file-path]** - [Why it's critical]
3. **[file-path]** - [Why it's critical]
...
7. Learning Recommendations
## For [Beginner|Intermediate|Advanced] Learners

### Recommended Path
1. [Stage 1]: [Goal] → [Files to read]
2. [Stage 2]: [Goal] → [Files to read]
3. [Stage 3]: [Goal] → [Files to read]

### Practice Suggestions
[Specific exercises and projects]

Best Practices

For Analysts

  • Question-driven: Always have specific questions before diving in
  • Progressive depth: Start broad, then go deep selectively
  • Validation: Run code to verify understanding
  • Documentation: Take notes and document findings
  • Focus: Avoid getting lost in details; stay on high-value paths

Common Mistakes to Avoid

  • Starting at random: Don't just open files and read linearly
  • Equal attention: Not all files deserve equal study time
  • Missing the forest: Don't get lost in trees; maintain global view
  • Static-only: Don't just read; run and observe
  • Syntax over semantics: Focus on design, not just code structure

High-Value Indicators

Prioritize files that are:

  • Entry points (main, index, app, server)
  • Core logic (engine, core, kernel, handler)
  • Extension mechanisms (plugin, adapter, strategy)
  • Configuration (config, settings, options)
  • State management (store, state, context, session)
  • External interfaces (api, client, driver, protocol)

Lower priority:

  • Tests (unless understanding behavior)
  • Build tools (unless deployment focus)
  • Documentation (already in README)
  • Utility functions (use on-demand basis)

Example Analyses

Quick Overview Mode

"Give me a quick overview of the Next.js codebase focusing on
the routing system and server components"

Deep Feature Analysis

"Trace the complete implementation of React's useState hook,
including the fiber architecture integration and scheduler coordination"

Design Philosophy

"Analyze the design decisions in Go's standard library,
focusing on error handling philosophy and interface design"

Learning Path Creation

"Create a learning path for an intermediate developer to
understand the TypeScript compiler, focusing on the type checking system"

Integration with Other Tools

This skill works well with:

  • Read tool: For examining file contents
  • Grep tool: For finding patterns and usage
  • Glob tool: For discovering file organization
  • Explore agent: For parallel codebase investigation
  • Plan agent: For architectural analysis

Notes

  • This methodology is based on proven approaches for understanding complex software systems
  • The 20% rule comes from the observation that a small percentage of files contain most architectural insight
  • Progressive understanding prevents getting overwhelmed by large codebases
  • Question-driven analysis ensures relevance and efficiency
  • Running code validates theoretical understanding

Version: 1.0.0 Methodology: 7-Step Source Code Analysis Framework Target Users: Developers learning new codebases, open source contributors, technical leads, software engineering students

平台分布

OpenClaw

73.4%
按下载量换算1,826

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills