用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill analyze命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | analyze |
| description | Trigger full repository health analysis |
Analyze the code health of a repository using multi-dimensional metrics.
When the user requests a repository health analysis, follow this systematic approach:
list_repo_files to discover all source filesfile_metrics on key files to assess complexitygit_churn to identify frequently changing filesmap_tests to find files missing testsUse list_repo_files with appropriate globs for the language:
- TypeScript/JavaScript: ["**/*.{ts,tsx,js,jsx}"]
- Python: ["**/*.py"]
- Go: ["**/*.go"]
- Multi-language: Combine patterns
Exclude: ["node_modules/**", ".git/**", "dist/**", "build/**"]
Focus on:
For each file, report:
Identify hot spots:
Find gaps:
Combine metrics to find:
Present findings in this structure:
Prioritized list of actions:
User: "Analyze the health of /home/user/my-project"
Response:
I'll analyze the code health of your project using multiple dimensions...
[Use list_repo_files on /home/user/my-project]
Found 245 source files (TypeScript/JavaScript)
[Use file_metrics on top files]
Critical complexity issues:
- src/services/auth.ts: Complexity 45, Health 30
- src/api/handler.ts: Complexity 28, Health 65 ️
[Use git_churn on /home/user/my-project since "6 months ago"]
High churn files:
- src/api/handler.ts: 32 commits, 4 authors
- src/services/auth.ts: 18 commits, 2 authors
[Use map_tests on /home/user/my-project]
Test coverage: 62% (97 of 156 files tested)
Missing tests: 59 files
Critical files without tests:
- src/services/auth.ts (high complexity + high churn)
- src/api/legacy.ts (high complexity)
## Recommendations:
1. URGENT: Add tests for src/services/auth.ts (high complexity, high churn, no tests)
2. ️ Refactor src/api/handler.ts (complexity 28, reduce to <10)
3. Improve test coverage to 80%+ (currently 62%)