Agent Skills
› agent-sh/agentsys
› repo-intel
repo-intel
GitHub提供仓库静态分析能力,涵盖 Git 历史、AST 符号映射及项目元数据。支持初始化、增量更新、热点查询和状态检查,用于代码库洞察、所有权分析和稳定性评估。
Trigger Scenarios
用户请求运行仓库情报分析
生成仓库地图或结构图
查询代码热点区域
检查模块所有权或Bus Factor
检测文档漂移或进行仓库整体分析
Install
npx skills add agent-sh/agentsys --skill repo-intel -g -y
SKILL.md
Frontmatter
{
"name": "repo-intel",
"description": "Use when user asks to \"run repo intel\", \"generate repo map\", \"analyze repo\", \"query hotspots\", \"check ownership\", or \"bus factor\". Unified static analysis - git history, AST symbols, project metadata.",
"argument-hint": "[action] [--force]"
}
Repo Intel Skill
Unified static analysis - git history intelligence, AST symbol mapping, and project metadata via agent-analyzer.
Parse Arguments
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const action = args.find(a => !a.startsWith('--')) || 'status';
const force = args.includes('--force');
Primary Responsibilities
- Initialize on demand (
/repo-intel init) - Update incrementally (
/repo-intel update) - Query git history data (
/repo-intel query hotspots) - Check status and staleness (
/repo-intel status) - Validate output with the map-validator agent
Core Data Contract
Repo intel data is stored in the platform state directory:
- Claude Code:
.claude/repo-intel.json,.claude/repo-map.json - OpenCode:
.opencode/repo-intel.json,.opencode/repo-map.json - Codex CLI:
.codex/repo-intel.json,.codex/repo-map.json
Behavior Rules
- Never install dependencies without explicit user consent
- Always validate output with
map-validatorafter init/update - Prefer incremental update unless data is stale or history rewritten
When to Suggest Repo Intel
If a user asks for drift detection, documentation alignment, or repo analysis and repo-intel data is missing:
Repo intel data not found. For better analysis, run:
/repo-intel init
Staleness Signals
- Data commit not found (rebased)
- Branch changed
- Git hooks marked stale
- Commits behind HEAD
Output Expectations
Keep outputs concise:
- init/update: file count, symbol count, commit, warnings
- query: formatted query results
- status: staleness, commits behind, last updated
Version History
- a92c0cb Current 2026-07-25 11:25


