docs(skill): clarify repository research triggers

This commit is contained in:
fraujulian committed 2026-09-24 19:11:29 +02:00
1 parent d42a70605d
commit 28fa850dcc
1 file changed
+10 -4
@@ -1,12 +1,18 @@
---
name: repository-research
description: Investigate an existing repository to find relevant code and established patterns.
description: Use for codebase-specific questions or before changing an unfamiliar area; trace existing files, callers, behavior, tests, and conventions. Do not use for general external technology research.
---
# Repository Research
Use before changing an unfamiliar repository area.
Use to understand an existing repository area before changing it or answering a codebase-specific question.
Inspect relevant files, callers, tests, configuration, and established patterns.
## Workflow
Return evidence, affected areas, unknowns, and useful implementation context. Avoid modifying implementation code.
1. Start from known paths, symbols, exact strings, or configuration keys. Read relevant files directly and search callers with repository-native tools.
2. Trace the flow from entry point through shared helpers to observable behavior. Check related implementations, tests, configuration, and documentation.
3. Identify established conventions and note where they differ across clients, shells, or platforms.
4. Use semantic search only when terminology is unclear, the flow spans components, or direct search has not found the relevant code. Confirm any retrieved result against current files.
5. Report file paths and symbols as evidence. Separate confirmed behavior, inference, and unresolved questions.
Return the relevant architecture, existing patterns, affected areas, and unknowns. Avoid changing implementation code during research unless asked.