AgentSkillsCN

ragsharp-build-code-graph

使用ragsharp-graph为C#/.NET存储库构建或更新代码图索引。 触发器:构建索引、更新索引、刷新索引、代码图、依赖关系图、静态分析、Roslyn、行号。

SKILL.md
--- frontmatter
name: ragsharp-build-code-graph
description: |
  Build or update a code graph index for C#/.NET repositories using ragsharp-graph.
  Triggers: build index, update index, refresh index, code graph, dependency graph, static analysis, Roslyn, line numbers.

Steps

  1. Run ragsharp graph doctor --root ..
  2. Run ragsharp graph index --root . --db .ragsharp/graph/index.db --state .ragsharp/graph/state.json.
  3. For incremental updates, run ragsharp graph update --root . --db .ragsharp/graph/index.db --state .ragsharp/graph/state.json.

Expected Results

  • .ragsharp/graph/index.db exists.
  • .ragsharp/graph/state.json is updated.
  • Output goes to stderr, JSON is emitted only for query commands.