Agent Skillsagent-sh/agentsys › repo-intel

repo-intel

GitHub

提供仓库静态分析能力,涵盖 Git 历史、AST 符号映射及项目元数据。支持初始化、增量更新、热点查询和状态检查,用于代码库洞察、所有权分析和稳定性评估。

.kiro/skills/repo-intel/SKILL.md agent-sh/agentsys

Trigger Scenarios

用户请求运行仓库情报分析 生成仓库地图或结构图 查询代码热点区域 检查模块所有权或Bus Factor 检测文档漂移或进行仓库整体分析

Install

npx skills add agent-sh/agentsys --skill repo-intel -g -y
More Options

Non-standard path

npx skills add https://github.com/agent-sh/agentsys/tree/main/.kiro/skills/repo-intel -g -y

Use without installing

npx skills use agent-sh/agentsys@repo-intel

指定 Agent (Claude Code)

npx skills add agent-sh/agentsys --skill repo-intel -a claude-code -g -y

安装 repo 全部 skill

npx skills add agent-sh/agentsys --all -g -y

预览 repo 内 skill

npx skills add agent-sh/agentsys --list

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

  1. Initialize on demand (/repo-intel init)
  2. Update incrementally (/repo-intel update)
  3. Query git history data (/repo-intel query hotspots)
  4. Check status and staleness (/repo-intel status)
  5. 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-validator after 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

Same Skill Collection

.kiro/skills/consult/SKILL.md
.kiro/skills/debate/SKILL.md
.kiro/skills/deslop/SKILL.md
.kiro/skills/discover-tasks/SKILL.md
.kiro/skills/drift-analysis/SKILL.md
.kiro/skills/enhance-agent-prompts/SKILL.md
.kiro/skills/enhance-claude-memory/SKILL.md
.kiro/skills/enhance-cross-file/SKILL.md
.kiro/skills/enhance-docs/SKILL.md
.kiro/skills/enhance-hooks/SKILL.md
.kiro/skills/enhance-orchestrator/SKILL.md
.kiro/skills/enhance-plugins/SKILL.md
.kiro/skills/enhance-prompts/SKILL.md
.kiro/skills/enhance-skills/SKILL.md
.kiro/skills/learn/SKILL.md
.kiro/skills/orchestrate-review/SKILL.md
.kiro/skills/perf-analyzer/SKILL.md
.kiro/skills/perf-baseline-manager/SKILL.md
.kiro/skills/perf-benchmarker/SKILL.md
.kiro/skills/perf-code-paths/SKILL.md
.kiro/skills/perf-investigation-logger/SKILL.md
.kiro/skills/perf-profiler/SKILL.md
.kiro/skills/perf-theory-gatherer/SKILL.md
.kiro/skills/perf-theory-tester/SKILL.md
.kiro/skills/sync-docs/SKILL.md
.kiro/skills/validate-delivery/SKILL.md
meta/skills/maintain-cross-platform/SKILL.md

Metadata

Files
0
Version
a0b2c8d
Hash
0dcb0fc9
Indexed
2026-07-25 11:25

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 16:06
浙ICP备14020137号-1 $방문자$