mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Merge pull request #52 from GarfieldHuang/feat/vscode-copilot-plugin
feat: add VS Code + GitHub Copilot agent skills support
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "understand-anything",
|
||||
"description": "AI-powered codebase understanding — analyze, visualize, and explain any project",
|
||||
"version": "2.0.0",
|
||||
"author": {
|
||||
"name": "Lum1104"
|
||||
},
|
||||
"homepage": "https://github.com/Lum1104/Understand-Anything",
|
||||
"repository": "https://github.com/Lum1104/Understand-Anything",
|
||||
"license": "MIT",
|
||||
"keywords": ["codebase-analysis", "knowledge-graph", "architecture", "onboarding", "dashboard"],
|
||||
"skills": "./understand-anything-plugin/skills/",
|
||||
"agents": "./understand-anything-plugin/agents/"
|
||||
}
|
||||
Vendored
+82
@@ -0,0 +1,82 @@
|
||||
# Installing Understand-Anything for VS Code + GitHub Copilot
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- [VS Code](https://code.visualstudio.com/) with the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) extension (v1.108+)
|
||||
- Git
|
||||
|
||||
## Option A — Auto-discovery (recommended)
|
||||
|
||||
Clone this repo and open it in VS Code. GitHub Copilot automatically discovers the plugin via `.copilot-plugin/plugin.json` — no manual steps required.
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Lum1104/Understand-Anything.git
|
||||
code Understand-Anything
|
||||
```
|
||||
|
||||
Skills will appear when you type `/` in GitHub Copilot Chat.
|
||||
|
||||
## Option B — Personal skills (available across all projects)
|
||||
|
||||
1. **Clone the repository** (to any location you prefer):
|
||||
```bash
|
||||
git clone https://github.com/Lum1104/Understand-Anything.git ~/understand-anything
|
||||
```
|
||||
|
||||
2. **Create a symlink for each skill** into `~/.copilot/skills/`:
|
||||
```bash
|
||||
mkdir -p ~/.copilot/skills
|
||||
SKILLS_DIR=~/understand-anything/understand-anything-plugin/skills
|
||||
for skill in "$SKILLS_DIR"/*/; do
|
||||
ln -sf "$skill" ~/.copilot/skills/$(basename "$skill")
|
||||
done
|
||||
# Universal plugin root symlink — lets the dashboard skill find packages/dashboard/
|
||||
# Skip if already exists (e.g. another platform was installed first)
|
||||
[ -e ~/.understand-anything-plugin ] || [ -L ~/.understand-anything-plugin ] || \
|
||||
ln -s ~/understand-anything/understand-anything-plugin ~/.understand-anything-plugin
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.copilot\skills"
|
||||
$skillsDir = "$env:USERPROFILE\understand-anything\understand-anything-plugin\skills"
|
||||
Get-ChildItem $skillsDir -Directory | ForEach-Object {
|
||||
cmd /c mklink /J "$env:USERPROFILE\.copilot\skills\$($_.Name)" $_.FullName
|
||||
}
|
||||
cmd /c mklink /J "$env:USERPROFILE\.understand-anything-plugin" "$env:USERPROFILE\understand-anything\understand-anything-plugin"
|
||||
```
|
||||
|
||||
3. **Reload VS Code** (`Cmd+Shift+P` → `Developer: Reload Window`) so GitHub Copilot discovers the skills.
|
||||
|
||||
## Verify
|
||||
|
||||
Type `/` in GitHub Copilot Chat — you should see all six skills listed:
|
||||
|
||||
- `understand` — build the knowledge graph
|
||||
- `understand-chat` — ask questions about the codebase
|
||||
- `understand-dashboard` — open the interactive dashboard
|
||||
- `understand-diff` — analyze impact of current changes
|
||||
- `understand-explain` — deep-dive into a file or function
|
||||
- `understand-onboard` — generate an onboarding guide
|
||||
|
||||
## Usage
|
||||
|
||||
Skills activate automatically when relevant. You can also invoke them directly by typing `/` in Copilot Chat and selecting a skill.
|
||||
|
||||
## Updating
|
||||
|
||||
```bash
|
||||
cd ~/understand-anything && git pull
|
||||
```
|
||||
|
||||
Skills update instantly through the symlinks.
|
||||
|
||||
## Uninstalling
|
||||
|
||||
```bash
|
||||
for skill in understand understand-chat understand-dashboard understand-diff understand-explain understand-onboard; do
|
||||
rm -f ~/.copilot/skills/$skill
|
||||
done
|
||||
rm -f ~/.understand-anything-plugin
|
||||
rm -rf ~/understand-anything
|
||||
```
|
||||
+11
-1
@@ -5,7 +5,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.zh-TW.md">繁體中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@@ -138,6 +138,15 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
|
||||
Cursorはこのリポジトリをクローンすると `.cursor-plugin/plugin.json` 経由でプラグインを自動検出します。手動インストールは不要です — クローンしてCursorで開くだけです。
|
||||
|
||||
### VS Code + GitHub Copilot
|
||||
|
||||
GitHub Copilot拡張機能(v1.108+)をインストールしたVS Codeは、`.copilot-plugin/plugin.json` 経由でプラグインを自動検出します。クローンしてVS Codeで開くだけで、手動インストールは不要です。
|
||||
|
||||
全プロジェクトで使用するパーソナルスキルとして設定する場合は、GitHub Copilotに以下を伝えてください:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.vscode/INSTALL.md
|
||||
```
|
||||
|
||||
### Antigravity
|
||||
|
||||
Antigravityに以下を伝えてください:
|
||||
@@ -168,6 +177,7 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
| OpenCode | ✅ サポート | AI駆動インストール |
|
||||
| OpenClaw | ✅ サポート | AI駆動インストール |
|
||||
| Cursor | ✅ サポート | 自動検出 |
|
||||
| VS Code + GitHub Copilot | ✅ サポート | 自動検出 |
|
||||
| Antigravity | ✅ サポート | AI駆動インストール |
|
||||
| Gemini CLI | ✅ サポート | AI駆動インストール |
|
||||
| Pi Agent | ✅ サポート | AI駆動インストール |
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.zh-TW.md">繁體中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@@ -138,6 +138,15 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
|
||||
Cursor auto-discovers the plugin via `.cursor-plugin/plugin.json` when this repo is cloned. No manual installation needed — just clone and open in Cursor.
|
||||
|
||||
### VS Code + GitHub Copilot
|
||||
|
||||
VS Code with GitHub Copilot (v1.108+) auto-discovers the plugin via `.copilot-plugin/plugin.json` when this repo is cloned. No manual installation needed — just clone and open in VS Code.
|
||||
|
||||
For personal skills (available across all projects), tell GitHub Copilot:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.vscode/INSTALL.md
|
||||
```
|
||||
|
||||
### Antigravity
|
||||
|
||||
Tell Antigravity:
|
||||
@@ -168,6 +177,7 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
| OpenCode | ✅ Supported | AI-driven install |
|
||||
| OpenClaw | ✅ Supported | AI-driven install |
|
||||
| Cursor | ✅ Supported | Auto-discovery |
|
||||
| VS Code + GitHub Copilot | ✅ Supported | Auto-discovery |
|
||||
| Antigravity | ✅ Supported | AI-driven install |
|
||||
| Gemini CLI | ✅ Supported | AI-driven install |
|
||||
| Pi Agent | ✅ Supported | AI-driven install |
|
||||
|
||||
+11
-1
@@ -5,7 +5,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.zh-TW.md">繁體中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@@ -138,6 +138,15 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
|
||||
Bu depo klonlandığında Cursor, eklentiyi `.cursor-plugin/plugin.json` aracılığıyla otomatik olarak keşfeder. Manuel kurulum gerekmez — sadece klonla ve Cursor'da aç.
|
||||
|
||||
### VS Code + GitHub Copilot
|
||||
|
||||
GitHub Copilot uzantısı (v1.108+) yüklü VS Code, `.copilot-plugin/plugin.json` aracılığıyla eklentiyi otomatik keşfeder. Manuel kurulum gerekmez — sadece klonla ve VS Code'da aç.
|
||||
|
||||
Tüm projelerde kullanmak için kişisel beceri olarak kurmak istersen GitHub Copilot'a söyle:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.vscode/INSTALL.md
|
||||
```
|
||||
|
||||
### Antigravity
|
||||
|
||||
Antigravity'e söyle:
|
||||
@@ -168,6 +177,7 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
| OpenCode | ✅ Destekleniyor | AI güdümlü kurulum |
|
||||
| OpenClaw | ✅ Destekleniyor | AI güdümlü kurulum |
|
||||
| Cursor | ✅ Destekleniyor | Otomatik keşif |
|
||||
| VS Code + GitHub Copilot | ✅ Destekleniyor | Otomatik keşif |
|
||||
| Antigravity | ✅ Destekleniyor | AI güdümlü kurulum |
|
||||
| Gemini CLI | ✅ Destekleniyor | AI güdümlü kurulum |
|
||||
| Pi Agent | ✅ Destekleniyor | AI güdümlü kurulum |
|
||||
|
||||
+11
-1
@@ -4,7 +4,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.zh-TW.md">繁體中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@@ -137,6 +137,15 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
|
||||
克隆此仓库后,Cursor 会自动通过 `.cursor-plugin/plugin.json`文件发现插件。无需手动安装 — 只需克隆并在 Cursor 中打开即可。
|
||||
|
||||
### VS Code + GitHub Copilot
|
||||
|
||||
安装 GitHub Copilot 扩展(v1.108+)后,VS Code 会通过 `.copilot-plugin/plugin.json` 自动发现插件,克隆后直接在 VS Code 中打开即可,无需手动安装。
|
||||
|
||||
若需要在所有项目中使用(个人技能),告诉 GitHub Copilot:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.vscode/INSTALL.md
|
||||
```
|
||||
|
||||
### Antigravity
|
||||
|
||||
告诉 Antigravity:
|
||||
@@ -167,6 +176,7 @@ Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Und
|
||||
| OpenCode | ✅ 支持 | AI驱动安装 |
|
||||
| OpenClaw | ✅ 支持 | AI驱动安装 |
|
||||
| Cursor | ✅ 支持 | 自动发现 |
|
||||
| VS Code + GitHub Copilot | ✅ 支持 | 自动发现 |
|
||||
| Antigravity | ✅ 支持 | AI驱动安装 |
|
||||
| Gemini CLI | ✅ 支持 | AI驱动安装 |
|
||||
| Pi Agent | ✅ 支持 | AI驱动安装 |
|
||||
|
||||
+313
@@ -0,0 +1,313 @@
|
||||
<h1 align="center">Understand Anything</h1>
|
||||
<p align="center">
|
||||
<strong>將任意程式碼庫轉化為可探索、可搜尋、可對話的互動式知識圖譜</strong>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.zh-TW.md">繁體中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.tr-TR.md">Türkçe</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="#-快速開始"><img src="https://img.shields.io/badge/快速開始-blue?style=for-the-badge" alt="Quick Start" /></a>
|
||||
<a href="https://github.com/Lum1104/Understand-Anything/blob/main/LICENSE"><img src="https://img.shields.io/badge/授權條款-MIT-yellow?style=for-the-badge" alt="License: MIT" /></a>
|
||||
<a href="https://docs.anthropic.com/en/docs/claude-code"><img src="https://img.shields.io/badge/Claude_Code-外掛程式-8A2BE2?style=for-the-badge" alt="Claude Code Plugin" /></a>
|
||||
<a href="https://lum1104.github.io/Understand-Anything"><img src="https://img.shields.io/badge/專案首頁-d4a574?style=for-the-badge" alt="Homepage" /></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="assets/hero.jpg" alt="Understand Anything — 將任何程式碼庫轉換為互動式知識圖譜" width="800" />
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
> [!TIP]
|
||||
> **衷心感謝社群的支持!** Understand-Anything 收到的關注超出了我的預期。如果這個工具能幫你從複雜的資料中理出一點頭緒,少走幾分鐘彎路,那我開發它的初衷就達到了。🚀
|
||||
|
||||
**當你剛加入一個新團隊,面對 20 萬行程式碼,你從哪裡開始?**
|
||||
|
||||
Understand Anything 是一個基於 [Claude Code](https://docs.anthropic.com/en/docs/claude-code) 的外掛程式,透過多智能體(multi-agent)架構分析你的專案,建構包含檔案、函式、類別以及相依關係的知識圖譜,並提供一個視覺化互動介面,幫助你理解整個系統。不再「盲讀程式碼」,而是從全局視角理解系統結構。
|
||||
|
||||
---
|
||||
|
||||
## 🤔 為什麼需要它?
|
||||
|
||||
閱讀程式碼已經很難,理解整個系統更難。文件往往過時,上手週期長達數週,新功能開發像考古。
|
||||
|
||||
Understand Anything 透過結合**大型語言模型(LLM)**與**靜態程式碼分析**去產生一個**動態、可探索的程式碼知識地圖** — 並提供自然語言解釋。
|
||||
|
||||
---
|
||||
|
||||
## 🎯 適用對象
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td width="33%" valign="top">
|
||||
<h3>👩💻 入門級開發者</h3>
|
||||
<p>不再被陌生程式碼淹沒。透過結構化引導逐步理解系統架構,每個函式和類別都有簡明易懂的解釋。</p>
|
||||
</td>
|
||||
<td width="33%" valign="top">
|
||||
<h3>📋 產品經理 & 設計師</h3>
|
||||
<p>無需閱讀程式碼,也能理解系統邏輯。比如直接提問:「認證流程是怎麼實作的?」便可獲得基於實際程式碼庫的清晰答案。</p>
|
||||
</td>
|
||||
<td width="33%" valign="top">
|
||||
<h3>🤖 AI 協同開發者</h3>
|
||||
<p>讓你的 AI 工具深入了解你的專案。在程式碼審查之前使用 <code>/understand-diff</code>,在深入任何模組時使用 <code>/understand-explain</code>,或在架構分析中使用 <code>/understand-chat</code></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
---
|
||||
|
||||
## 🚀 快速開始
|
||||
|
||||
### 1. 安裝外掛程式
|
||||
|
||||
```bash
|
||||
/plugin marketplace add Lum1104/Understand-Anything
|
||||
/plugin install understand-anything
|
||||
```
|
||||
|
||||
### 2. 分析你的程式碼庫
|
||||
|
||||
```bash
|
||||
/understand
|
||||
```
|
||||
|
||||
多智能體(multi-agent)架構會:掃描你的專案,提取函式 / 類別 / 相依關係,建構知識圖譜並儲存至 `.understand-anything/knowledge-graph.json`。
|
||||
|
||||
### 3. 開啟資料看板
|
||||
|
||||
```bash
|
||||
/understand-dashboard
|
||||
```
|
||||
|
||||
開啟互動式網頁資料看板,你的程式碼庫將以圖表形式呈現 — 按架構層級進行顏色編碼,支援搜尋和點擊。選擇任意節點即可查看其程式碼、關係以及簡明易懂的解釋。
|
||||
|
||||
### 4. 深度使用
|
||||
|
||||
```bash
|
||||
# 詢問任意程式碼庫的問題
|
||||
/understand-chat 付款流程是怎麼運作的?
|
||||
|
||||
# 分析目前修改的影響
|
||||
/understand-diff
|
||||
|
||||
# 深入理解某個檔案
|
||||
/understand-explain src/auth/login.ts
|
||||
|
||||
# 為新團隊成員產生指南
|
||||
/understand-onboard
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🌐 多平台支援
|
||||
|
||||
Understand-Anything 可在多個 AI 編碼平台上執行。
|
||||
|
||||
### Claude Code(原生支援)
|
||||
|
||||
```bash
|
||||
/plugin marketplace add Lum1104/Understand-Anything
|
||||
/plugin install understand-anything
|
||||
```
|
||||
|
||||
### Codex
|
||||
|
||||
告訴 Codex:
|
||||
```
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.codex/INSTALL.md
|
||||
```
|
||||
|
||||
### OpenCode
|
||||
|
||||
告訴 OpenCode:
|
||||
```
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.opencode/INSTALL.md
|
||||
```
|
||||
|
||||
### OpenClaw
|
||||
|
||||
告訴 OpenClaw:
|
||||
```
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.openclaw/INSTALL.md
|
||||
```
|
||||
|
||||
### Cursor
|
||||
|
||||
複製此儲存庫後,Cursor 會自動透過 `.cursor-plugin/plugin.json` 檔案發現外掛程式。無需手動安裝 — 只需複製並在 Cursor 中開啟即可。
|
||||
|
||||
### VS Code + GitHub Copilot
|
||||
|
||||
安裝 GitHub Copilot 擴充功能(v1.108+)後,VS Code 會透過 `.copilot-plugin/plugin.json` 自動發現外掛程式,複製後直接在 VS Code 中開啟即可,無需手動安裝。
|
||||
|
||||
若需要在所有專案中使用(個人技能),告訴 GitHub Copilot:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.vscode/INSTALL.md
|
||||
```
|
||||
|
||||
### Antigravity
|
||||
|
||||
告訴 Antigravity:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.antigravity/INSTALL.md
|
||||
```
|
||||
|
||||
### Gemini CLI
|
||||
|
||||
告訴 Gemini CLI:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.gemini/INSTALL.md
|
||||
```
|
||||
|
||||
### Pi Agent
|
||||
|
||||
告訴 Pi Agent:
|
||||
```text
|
||||
Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.pi/INSTALL.md
|
||||
```
|
||||
|
||||
### 多平台相容性
|
||||
|
||||
| 平台 | 狀態 | 安裝方式 |
|
||||
|----------|--------|----------------|
|
||||
| Claude Code | ✅ 原生 | 外掛程式市集 |
|
||||
| Codex | ✅ 支援 | AI 驅動安裝 |
|
||||
| OpenCode | ✅ 支援 | AI 驅動安裝 |
|
||||
| OpenClaw | ✅ 支援 | AI 驅動安裝 |
|
||||
| Cursor | ✅ 支援 | 自動發現 |
|
||||
| VS Code + GitHub Copilot | ✅ 支援 | 自動發現 |
|
||||
| Antigravity | ✅ 支援 | AI 驅動安裝 |
|
||||
| Gemini CLI | ✅ 支援 | AI 驅動安裝 |
|
||||
| Pi Agent | ✅ 支援 | AI 驅動安裝 |
|
||||
|
||||
---
|
||||
|
||||
## ✨ 核心功能
|
||||
|
||||
<p align="center">
|
||||
<img src="assets/overview.png" alt="Dashboard Screenshot" width="800" />
|
||||
</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td width="50%" valign="top">
|
||||
<h3>🗺️ 互動式知識圖譜</h3>
|
||||
<p>使用 React Flow 視覺化檔案、函式、類別及其關係。點擊任意節點即可查看其程式碼和連接。</p>
|
||||
</td>
|
||||
<td width="50%" valign="top">
|
||||
<h3>💬 簡明語言解釋</h3>
|
||||
<p>LLM 自動產生解釋,讓非技術人員也能理解程式碼。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" valign="top">
|
||||
<h3>🧭 引導式學習</h3>
|
||||
<p>自動產生架構學習路徑,按相依順序學習。</p>
|
||||
</td>
|
||||
<td width="50%" valign="top">
|
||||
<h3>🔍 語意搜尋</h3>
|
||||
<p>支援模糊搜尋 + 語意搜尋,例如搜尋「哪些部分處理身分驗證?」即可在整個圖中獲取相關結果。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" valign="top">
|
||||
<h3>📊 變更影響分析</h3>
|
||||
<p>提交變更前,查看變更會影響系統的哪些部分。了解變更對整個程式碼庫的連鎖反應。</p>
|
||||
</td>
|
||||
<td width="50%" valign="top">
|
||||
<h3>🎭 使用者角色自適應 UI</h3>
|
||||
<p>根據使用者類型(初級開發 / 專案經理 / 進階使用者)調整其詳細程度。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" valign="top">
|
||||
<h3>🏗️ 層級視覺化</h3>
|
||||
<p>按架構層級自動分組 — API、服務、資料、UI、系統工具 — 並附有顏色編碼圖例。</p>
|
||||
</td>
|
||||
<td width="50%" valign="top">
|
||||
<h3>📚 語言概念</h3>
|
||||
<p>12 種程式設計模式(泛型、閉包、裝飾器等)將在上下文中逐一解釋。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
---
|
||||
|
||||
## 🔧 技術原理
|
||||
|
||||
### 多智能體架構
|
||||
|
||||
`/understand` 指令呼叫 5 個 agent:
|
||||
|
||||
| Agent | 職責 |
|
||||
|-------|------|
|
||||
| `project-scanner` | 掃描專案檔案,偵測語言和框架 |
|
||||
| `file-analyzer` | 提取程式碼結構(函式、類別和匯入),產生圖節點和邊 |
|
||||
| `architecture-analyzer` | 識別架構層 |
|
||||
| `tour-builder` | 產生引導式學習路徑 |
|
||||
| `graph-reviewer` | 驗證圖的完整性和參考完整性 |
|
||||
|
||||
檔案分析器並行執行(最多 3 個並發)。支援增量更新 — 僅重新分析自上次執行以來發生變更的檔案。
|
||||
|
||||
### 專案結構
|
||||
|
||||
```
|
||||
understand-anything-plugin/
|
||||
.claude-plugin/ — 外掛程式清單
|
||||
agents/ — 專業 AI 智能體
|
||||
skills/ — Skill 定義 (/understand, /understand-chat, etc.)
|
||||
src/ — TypeScript 原始碼 (context-builder, diff-analyzer, etc.)
|
||||
packages/
|
||||
core/ — 分析引擎 (types, persistence, tree-sitter, search, schema, tours)
|
||||
dashboard/ — React + TypeScript 網頁資料看板
|
||||
```
|
||||
|
||||
### 技術堆疊
|
||||
|
||||
TypeScript、pnpm workspaces、React 18、Vite、TailwindCSS v4、React Flow、Zustand、web-tree-sitter、Fuse.js、Zod、Dagre
|
||||
|
||||
### 開發指令
|
||||
|
||||
| 指令 | 說明 |
|
||||
|---------|-------------|
|
||||
| `pnpm install` | 安裝所有相依套件 |
|
||||
| `pnpm --filter @understand-anything/core build` | 建置核心套件 |
|
||||
| `pnpm --filter @understand-anything/core test` | 執行核心測試 |
|
||||
| `pnpm --filter @understand-anything/skill build` | 建置外掛程式套件 |
|
||||
| `pnpm --filter @understand-anything/skill test` | 執行外掛程式測試 |
|
||||
| `pnpm --filter @understand-anything/dashboard build` | 建置資料看板 |
|
||||
| `pnpm dev:dashboard` | 啟動資料看板開發伺服器 |
|
||||
|
||||
---
|
||||
|
||||
## 🤝 貢獻
|
||||
|
||||
歡迎貢獻!以下是貢獻指南:
|
||||
|
||||
1. Fork 專案
|
||||
2. 新建分支(`git checkout -b feature/my-feature`)
|
||||
3. 執行測試(`pnpm --filter @understand-anything/core test`)
|
||||
4. 提交變更並建立 PR
|
||||
|
||||
對於重大變更,請先提交 issue,以便我們討論解決方案。
|
||||
|
||||
---
|
||||
|
||||
<p align="center">
|
||||
<strong>不再盲讀程式碼,而是理解整個系統</strong>
|
||||
</p>
|
||||
|
||||
## Star 歷史記錄
|
||||
|
||||
<a href="https://www.star-history.com/?repos=Lum1104%2FUnderstand-Anything&type=date&legend=top-left">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/image?repos=Lum1104/Understand-Anything&type=date&theme=dark&legend=top-left" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/image?repos=Lum1104/Understand-Anything&type=date&legend=top-left" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/image?repos=Lum1104/Understand-Anything&type=date&legend=top-left" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
<p align="center">
|
||||
MIT 授權條款 © <a href="https://github.com/Lum1104">Lum1104</a>
|
||||
</p>
|
||||
Reference in New Issue
Block a user