Install
openclaw skills install analyze-open-sourceAnalyze and explain open-source project code logic, architecture, data flows, APIs, and algorithms. Use when the user asks to analyze a project, understand codebase structure, explain code logic, or requests a technical walkthrough of an open-source repository.
openclaw skills install analyze-open-sourceSystematically analyze an open-source project's codebase to help the user quickly understand its architecture, core logic, data flows, key APIs, and algorithm implementations.
All analysis output MUST be in Chinese (zh-CN).
Follow these steps strictly in order. Use parallel subagents (Task tool with subagent_type="explore") where noted.
Read these files first (use parallel reads):
README.md (or README.rst, README.txt) — project purpose, features, quick startpackage.jsonpyproject.toml > setup.py > requirements.txtgo.modpom.xml or build.gradleCargo.tomlCMakeLists.txt or Makefile*.csproj or *.slnDockerfile, .github/workflows/) — reveals build & deploy infoSummarize: project name, purpose, tech stack, major dependencies, and build/run commands.
Run a directory listing (depth 2) to map out the project layout.
Classify each top-level directory into one of:
Search for program entry points based on the detected tech stack:
| Tech Stack | Typical Entry Points |
|---|---|
| Node.js | package.json "main"/"scripts.start", index.js, src/index.ts, app.js |
| Python | __main__.py, main.py, app.py, manage.py, cli.py |
| Go | main.go, cmd/*/main.go |
| Java | classes with public static void main, @SpringBootApplication |
| Rust | src/main.rs, src/lib.rs |
| C/C++ | main.c, main.cpp |
| Web Frontend | src/index.tsx, src/main.ts, src/App.vue |
Read the entry point file(s) and trace the initialization/bootstrap sequence.
Perform all four dimensions of analysis. Use parallel explore subagents for independent dimensions.
Use the template defined in template.md to structure the final report.
Key formatting rules:
##, ###) for clear hierarchystartLine:endLine:filepath) when citing existing code