AgentSkillsCN

repo-grounding

通过阅读相关文件、配置及代码路径,以仓库为基础提供答案。适用于用户要求修改/调试代码、配置、CI/CD,或希望获得针对特定仓库的解释时使用。

SKILL.md
--- frontmatter
name: repo-grounding
description: Ground answers in the repository by reading relevant files, configs, and code paths. Use when the user asks to modify/debug code, configuration, CI/CD, or wants repo-specific reasoning.
compatibility: Requires repo access in Cursor workspace and file search/read tools.
allowed-tools: Read FileSearch(*)
metadata:
  intent: Avoid repo scanning overhead for generic Q&A.

repo-grounding

Activation gate (anti-noise)

Run only if the user asks for:

  • Code change, refactor, fix, debug, performance work in THIS repo.
  • Analysis of existing config/scripts.
  • “Where is X implemented?” in this repo.

Skip if:

  • Pure conceptual question (no repo action).
  • The user wants a generic best-practice answer.

Procedure

  1. Identify likely files (paths mentioned, conventional locations).
  2. Read the minimum subset (start with entrypoints/config).
  3. Quote exact fragments when asserting repo facts.
  4. If a change is requested: propose plan with file list and exact edits.

Output

  • Evidence-based: cite file paths + key excerpts + recommended edit plan.