Skip to main content
ClaudeWave
Skill5.7k repo starsupdated 20d ago

repository-investigation

Investigate an unfamiliar repository before changing it. Use this whenever a coding task spans multiple modules, asks for architecture or root-cause analysis, names behavior whose implementation location is unknown, or risks editing before enough evidence is gathered.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/ageerle/ruoyi-ai /tmp/repository-investigation && cp -r /tmp/repository-investigation/ruoyi-modules/ruoyi-chat/src/main/resources/coding-harness/skills/repository-investigation ~/.claude/skills/repository-investigation
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Repository investigation

Build a focused evidence map before proposing or applying a change. The purpose is to make the first edit land on the real ownership boundary instead of the first matching string.

## Workflow

1. Restate the observable behavior, constraint, and desired outcome in one short internal goal.
2. Discover repository instructions and the build/runtime entry points.
3. Search for identifiers, routes, events, configuration keys, and tests before opening large files.
4. Trace one complete path from input to state transition or side effect and then to its consumer.
5. Identify persistence, concurrency, authentication, cancellation, and error boundaries that affect the change.
6. Inspect relevant history only when current code leaves an architectural decision unexplained.
7. Record a compact evidence map: owning files, data flow, invariants, existing tests, and unresolved assumptions.
8. Use the evidence map to decide whether the task is simple enough to act directly or needs an explicit plan.

## Investigation discipline

- Prefer targeted search and line ranges over recursively loading whole source trees.
- Distinguish an interface or prompt claim from a production call site that actually uses it.
- Verify both writers and readers of persisted or streamed state.
- For asynchronous behavior, locate lifecycle ownership, queue semantics, cancellation, reconnect, and recovery.
- For security-sensitive behavior, trace authenticated identity all the way to the resource and side effect.
- Treat generated files, build output, vendored dependencies, and comments as secondary evidence unless they are the runtime source of truth.

## Output to the running task

Keep the result concise and actionable:

- operative request and constraints;
- ownership/data-flow map with paths;
- invariants the implementation must preserve;
- tests and commands that can prove the result;
- assumptions that require user input or runtime evidence.

Do not turn the investigation into a generic repository summary. Stop when the evidence is sufficient to make the next decision safely.
docxSkill

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

pdfSkill

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

xlsxSkill

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

safe-refactoringSkill

Execute behavior-preserving or intentionally scoped refactors safely. Use this for multi-file renames, component/service extraction, state-management changes, API migrations, concurrency refactors, or any request where unrelated user work and subtle contracts must be preserved.

verificationSkill

Prove that a coding task is actually complete. Use this after meaningful code changes, when tests/builds fail or are skipped, before marking a plan or goal complete, and whenever acceptance depends on runtime, security, recovery, performance, or cross-module evidence.