AI & Agentslow risk
metagit-gitnexus
Run gitnexus analysis for a target workspace and selected project repositories before graph-dependent tasks. Use when index staleness is detected or cross-repo graph results are needed.
metagit-ai/metagit-cli·.agents/skills/metagit-gitnexus/SKILL.md
34/ 100推荐值
导入这个 Skill
选择你的 coding agent,复制项目级或个人级安装命令。
导入当前项目.agents/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a codex -y导入个人环境~/.agents/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a codex -g -y导入当前项目.claude/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a claude-code -y导入个人环境~/.claude/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a claude-code -g -y导入当前项目.agents/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a github-copilot -y导入个人环境~/.copilot/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a github-copilot -g -y导入当前项目.agents/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a cursor -y导入个人环境~/.cursor/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a cursor -g -y导入当前项目.agents/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a gemini-cli -y导入个人环境~/.gemini/skills/metagit-gitnexus
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-gitnexus -a gemini-cli -g -yNative Gemini CLI
gemini skills install https://github.com/metagit-ai/metagit-cli.git --scope workspace --path .agents/skills/metagit-gitnexus⚠ 安装命令使用开源 skills CLI。执行前请检查来源、脚本和权限。
Skill 指令
在 GitHub 查看原始文件 ↗# Running GitNexus Analysis Use this skill whenever GitNexus context is stale or missing for target repositories. ## Local Wrapper (Use First) - `./skills/metagit-gitnexus/scripts/analyze-targets.sh <workspace_root> [project_name]` ## Workflow 1. Analyze the current repository where the command is run. 2. Resolve target project repositories from `.metagit.yml`. 3. Run `npx gitnexus analyze` in each local repository path found. 4. Report per-repository success/failure and next actions. ## Manual workspace graph (`.metagit.yml` → Cypher) Promote inferred edges first (see `metagit-graph-maintain` skill), then ingest: ```bash ./skills/metagit-gitnexus/scripts/ingest-workspace-graph.sh -c .metagit.yml ./skills/metagit-gitnexus/scripts/ingest-workspace-graph.sh -c .metagit.yml --gitnexus-repo my-umbrella --dry-run ``` Manual export + MCP: ```bash metagit config graph export -c .metagit.yml --format tool-calls --output /tmp/graph-tool-calls.json uv run python ./skills/metagit-gitnexus/scripts/ingest_workspace_graph.py /tmp/graph-tool-calls.json # MCP export: metagit_export_workspace_graph_cypher ``` Schema DDL (`MetagitEntity` / `MetagitLink`) runs once per index; pass `--gitnexus-repo` when the umbrella index name differs from manifest `name`. ## GitNexus group sync (cross-index analysis) Align `workspace.projects[]` repos with a GitNexus group for `group impact`, `group query`, and contract linking: ```bash ./skills/metagit-gitnexus/scripts/sync-group.sh -c .metagit.yml metagit gitnexus group sync -c .metagit.yml --json metagit gitnexus group sync -c .metagit.yml --group-name my-workspace --prune ``` MCP: `metagit_gitnexus_group_sync` Prerequisites: 1. Each managed repo checkout exists locally and has been analyzed (`gitnexus analyze`). 2. Registry entries exist in `~/.gitnexus/registry.json` for those paths. 3. Multi-repo workspace with `workspace.projects[]` in `.metagit.yml`. Group paths use `<project>/<repo>`; default group name is a slug of manifest `name` (stored under `~/.gitnexus/groups/<name>/`). After sync, use GitNexus directly: ```bash npx gitnexus group status <group> npx gitnexus group query <group> "authentication flow" npx gitnexus group impact <group> --repo <registryName> --target <symbol> ``` ## Output Contract Return: - analyzed repositories - failures and reasons - whether graph queries are safe to run now ## Safety - Skip repositories that do not exist locally. - Do not mutate repo content; analysis should be read-only indexing.