commit-generate
Generate bilingual (English + Traditional Chinese) commit message from git changes.
Analyze project source code and generate optimization suggestions. Use when user wants code review, performance optimization advice, security hardening recommendations, or architecture improvement suggestions.
$ npx -y skills add agenvoy/Agenvoy --skill code-reviewer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-reviewerContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyze project source code and generate optimization suggestions. Use when user wants code review, performance optimization advice, security hardening recommendations, or architecture improvement suggestions.
name: code-reviewer description: Analyze project source code and generate optimization suggestions. Use when user wants code review, performance optimization advice, security hardening recommendations, or architecture improvement suggestions.
> **本 Skill 為 Agenvoy 內部最佳化版本**,依 Agenvoy 的執行環境撰寫(`run_command` 的 CWD、`~/.config/agenvoy/skills/.system/` 安裝位置、`edit_skill`/`schedules`/`find_edit_tool` 等工具、subagent 與排程的觸發路徑),**不保證適配其他 AI harness**。
AST 驅動的專案原始碼分析,產生優化建議報告(Go / Python / JavaScript / TypeScript)。
/code-reviewer [PROJECT_PATH] [OUTPUT_FILE]
| Parameter | Default | Description | |-----------|---------|-------------| | `PROJECT_PATH` | Current directory | 專案根目錄路徑 | | `OUTPUT_FILE` | `.doc/code-reviewer/{yyyy-MM-dd_HH-mm}.md` | 輸出檔案路徑(相對於 `PROJECT_PATH`) |
/code-reviewer # → .doc/code-reviewer/2026-04-25_14-30.md /code-reviewer ./my-project # → my-project/.doc/code-reviewer/2026-04-25_14-30.md /code-reviewer . custom.md # → ./custom.md(顯式覆寫)
---
| Language | Analyzer | Dependencies | |----------|----------|--------------| | Go | `go/ast`(via `go run` helper)+ 字串掃描 | `go` ≥ 1.21 | | Python | 內建 `ast` 模組 | Python ≥ 3.10 | | JavaScript / TypeScript | 內建輕量結構掃描(brace-based 函式邊界/巢狀深度)+ 專案本地 `eslint`(可選)+ 字串掃描 | `node_modules/.bin/eslint`(可選) |
> 對應工具鏈不可用時,自動降級為字串掃描並在報告中標示。
---
1. Detect → 偵測專案主要語言(依 go.mod / tsconfig.json / package.json / pyproject.toml)
2. Analyze → 呼叫對應分析器(AST + 字串掃描)
3. Evaluate → 計算指標並依嚴重度排序問題;比對 Convention Adherence 的規範檔
4. Validate → 逐條回原始碼確認錨點;確認不了的直接刪除(見 Validation Pass)
5. Gate → 檢查 No-Op 條件;若命中則跳過 Generate / Save,僅輸出無需處理訊息
6. Generate → 產生優化建議報告(繁體中文),套用 Recommendation Principles 過濾
7. Save → `mkdir -p {PROJECT_PATH}/.doc/code-reviewer/` 後寫入 `{yyyy-MM-dd_HH-mm}.md`Evaluate 產出的每一條問題與建議,在寫進報告前獨立確認一次:宣稱不存在的符號,回檔案確認它真的不存在;宣稱違反規範,確認那條規則的原文存在且作用範圍涵蓋該檔案。確認不過的**移出清單**,不降級為 Low 保留。
**為何:** 假陽性侵蝕整份報告——讀者被一條錯的建議浪費時間之後,對的那幾條也會被跳過。這一關與嚴重度排序是兩個獨立的軸。
專案根目錄或子目錄存在 `CLAUDE.md` / `AGENTS.md` 時,把「違反這些規範」列為與架構 / 效能 / 安全並列的一個維度。
1. `issue_counts` 的 critical / high / medium / low 皆為 0 2. 套用 Recommendation Principles 後,架構 / 效能 / 安全 / 規範遵循四段**皆無有效建議**(即都會寫「未觀察到需處理事項」) 3. 未觀察到超標 metric(見 `scripts/recommendation_principles.md` 例外欄位定義)
命中時的行為:
對每個非測試 `.go` 檔案自動執行 `gofmt -s -w`(失敗時靜默略過)。
---
python3 ~/.claude/skills/code-reviewer/scripts/analyze_code.py /path/to/project
Output: JSON 包含:
---
執行各階段時讀取對應參考檔:
| 階段 | 參考檔 | 用途 | |---|---|---| | Analyze / Evaluate | [`scripts/analysis_categories.md`](scripts/analysis_categories.md) | 偵測類別、嚴重度對照 | | Generate | [`scripts/recommendation_principles.md`](scripts/recommendation_principles.md) | 建議產出的硬性規則與自我檢查 | | Save | [`scripts/output_format.md`](scripts/output_format.md) | 報告結構範本與撰寫規則 |
---
Self-hosted AI agent harness in a single Go binary — writes, sandbox-tests and repairs its own tools, and lets Claude Code, Codex and any MCP client build and share them.
Repo: agenvoy/Agenvoy
Generate bilingual (English + Traditional Chinese) commit message from git changes.
Install an Agenvoy extension from pkg.agenvoy.com registry (browse/pick) or local tarball into ~/.config/agenvoy/tools/.extension/<type>/<name>@<version>/.…
Package a script tool under ~/.config/agenvoy/tools/script/ into a tar.gz and publish to pkg.agenvoy.com registry. Keyword picker, dep/key detection,…
從原始碼分析自動生成雙語 README。當使用者請求為專案建立 README、需要從程式碼庫生成 README.md(英文)和 README.zh.md(中文)、或希望為其函式庫/套件建立一致的多語言文件時使用。
建立並排程定時觸發的 skill。**所有新增定時/週期任務、提醒、排程通知的請求必須走此 skill**,禁止直接呼叫 schedules(mode=write)(那是 skill 已存在時的時間綁定工具,不該作為新建排程的入口)。 必定觸發的訊息特徵(任一即活化): - 相對延遲:「X 分鐘後」「X…
Search the curated Agenvoy public API list for an API that fits the current user need or skill context, then chain into the `api-tool-add` skill to register it…