project-analyzer
Deep Project Analysis
This skill extends the core mechanics of code-reader to systematically analyze an entire repository and synthesize a comprehensive "Project Whitepaper". It combines deep module-level understanding with high-level architectural synthesis and engineering practices (build, test, deploy).
The final output focuses heavily on Architecture & Module Deep Dives (approx. 60%), supported by practical Engineering & Operations guides.
1. The Team Roles
This workflow employs specialized agents to gather distinct types of information before synthesizing the final document:
- Agent A (Tech Writer): The module expert. This role is directly fulfilled by invoking the
code-readerskill. It reads source code to extract module-level capabilities, data structures, and state flows, ensuring high accuracy through its built-in ABC verification loop. - Agent B (DevOps Engineer): The infrastructure expert. Scans configuration files (Makefiles, Dockerfiles, CI/CD pipelines,
package.json, etc.) to extract build, test, and deployment practices. - Agent C (Chief Architect): The synthesizer. Reads all outputs from the
code-readermodule skills and the DevOps Engineer to author the final Comprehensive Project Documentation, ensuring a coherent narrative and architectural accuracy.
REQUIRED SUB-SKILL: You MUST use the code-reader skill as the engine for Phase 2.
2. Usage
/project-analyzer <source> <output-dir>
- source: local path (e.g.,
./path/to/repo) or GitHub URL - output-dir: where the final whitepaper and intermediate analysis files are written
3. Full Flow
You MUST follow these phases in order to generate the final documentation.
3.1 Phase 1: Prepare & Scan
This initial phase handles the resolution and preparation of the target source codebase.
- Resolve the target repository (clone if URL, verify if local).
- Scan the directory structure to identify:
- Code Modules: Directories containing core business logic (
src/,lib/, etc.). - Infra Files: Build scripts, Dockerfiles, CI/CD workflows, config files.
- Code Modules: Directories containing core business logic (
- Generate an initial dependency graph between modules.
3.2 Phase 2: Deep Module Reading (via code-reader)
This phase delegates the heavy lifting of code comprehension to the code-reader skill.
For each identified core module, invoke the code-reader skill targeting that specific module directory.
- The
code-readerskill will run its Tech Writer -> QA Engineer -> Junior Dev verification loop. - Collect the generated, fully-verified
SKILL.mdfiles for each module. Note: This phase focuses purely on code, logic, and data structures.
3.3 Phase 3: Infrastructure Analysis (DevOps Engineer)
This phase extracts engineering practices from configuration files.
Dispatch the DevOps Engineer agent (using devops-engineer-prompt.md).
- Input: All identified Infra Files (e.g.,
Makefile,Dockerfile,.github/workflows/,pom.json). - Output: A structured report covering Build Steps, Testing Strategies, and Deployment Topologies.
3.4 Phase 4: Architectural Synthesis (Chief Architect)
This phase generates the final Comprehensive Project Documentation.
Dispatch the Chief Architect agent by reading and strictly following chief-architect-prompt.md.
- Input: The module documents generated in Phase 2, the infrastructure report from Phase 3, and the initial directory scan.
- Project Name: You MUST extract the actual project name (e.g., from the repository directory name,
package.json, orgo.mod) and use it to replace all{project-name}placeholders in the output filename. - Instruction constraints:
- The Architect MUST allocate approximately 60% of the document's depth and length to System Architecture and Core Modules, and the remaining 40% to Project Overview, Scenarios, and Engineering Practices.
- Diagrams: You MUST output Mermaid syntax for architecture diagrams, flowcharts, and sequence diagrams as explicitly required in the Chief Architect prompt.
- Output:
<actual-project-name>-deep-dive.mdwritten to the<output-dir>. The document MUST follow this exact 7-chapter outline:- 项目全局摘要 (Project Executive Summary)
- 系统架构分析 (System Architecture Analysis)
- 核心模块代码深度解析 (Core Modules Deep Dive)
- 核心功能执行流程分析 (Core Function Execution Flow)
- 质量与性能评估 (Quality & Performance Assessment)
- 项目构建与部署 (Project Build & Deployment)
- 二次开发指南 (Extension & Contribution Guide)
3.5 Phase 5: User Acceptance & Review
Present the generated <actual-project-name>-deep-dive.md to the user.
"The Project Architecture Deep Dive has been generated. Please review
<actual-project-name>-deep-dive.md. Let me know if you want to drill down into any specific module details or adjust the weight of any section."
4. Key Rules
Strictly adhere to the following rules during execution:
- Read-Only Source: Never modify the source repository.
- Content Weighting: Ensure the Chief Architect strictly adheres to the 60/40 ratio between Architecture/Modules and Engineering Practices.
- Document Formatting: The final output MUST follow professional technical writing standards (hierarchical numbering, no dual-language titles, consistent terminology).
More from forceinjection/awesome-skills
doc-reviewer
审查技术文档。支持四种独立评审类型:大纲评审(检查目录与结构逻辑)、内容评审(检查文字准确性与代码质量)、资产评审(校验链接与引用合规)、格式评审(校对纯视觉排版与标点)。当用户请求审查或修正 Markdown 文档时使用。
5code-reader
Use when you want to deeply understand an unfamiliar codebase and generate reusable cognitive skills from it, by providing a local path or GitHub URL
4pptx-reader
理解、读取和分析 .pptx 幻灯片文件内容。当用户需要提取 PPT 文本或分析演示文稿时调用此技能。
2