find-usage
/find-usage
Find all production code locations where a class, function, or method is defined and used. Use when the user asks where something is defined, instantiated, invoked, or called in production code.
- Author
- humansintheloop-dev ↗
- Repository
- humansintheloop-dev-workflow-and-tools ↗
- Licence
- Apache-2.0
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Find all production code locations where a class, function, or method is defined and used. Use when the user asks where something is defined, instantiated, invoked, or called in production code.
Original author description
Find all production code locations where a class, function, or method is defined and used. Use when the user asks where something is defined, instantiated, invoked, or called in production code.
How it works
- Steps
- Output format
- Step 3: Notable usage patterns
SKILL.md preview
---
name: find-usage
description: Find all production code locations where a class, function, or method is defined and used. Use when the user asks where something is defined, instantiated, invoked, or called in production code.
user-invokable: true
---
# Find Class/Function/Method Usage
Find all production code locations where the specified class, function, or method is defined and used.
## Steps
1. **Definition** — show where it is defined (file, line, containing class/module)
2. **Usage sites** — show where it is used in production code
For classes, complete ALL of:
2a. **Instantiation sites** — search for constructor calls
2b. **Method invocation sites** — read the class to find its public methods,
then search for call sites of EACH method
For functions/methods:
2a. **Call sites** — search for all calls to the function/method
## Output format
Exclude test code. Use a separate table per category:
### Definition
| Location | Class/Function |
|----------|---------------|
| `file.py:line` | `ClassName` |
### Instantiation sites
| Location | Class/Function | Context |
|----------|---------------|---------|
| `file.py:line` | `ClassName()` | `containing_function()` |
### Method invocation sites
| Location | Class/Function | Method |
|----------|---------------|--------|
| `file.py:line` | `ClassName` | `method_name()` |
For top-level functions, put the function name in Class/Function and note "(top-level)" in Context.
## Step 3: Notable usage patterns
After presenting the tables, read the surrounding context of each call site
and identify cross-cutting patterns worth calling out. Examples:
- **Duplicated dispatch logic** — the same if/else or switch appears at every call site,
suggesting the conditional could be pushed into the called class.
- **Single entry-point construction** — the class is only instantiated in one place
and passed everywhere else via injection.
- **Unconditional vs conditional calls** — most sites use a conditional but one or two
call a method unconditionally, hinting at a different semantic role.
- **Unused methods** — a public method with zero production call sites.
Present findings as a short numbered list with file references.
Versions
The database has no other skills named find-usage.
Database snapshot: 13.11.2026 · package version 6e862c9e56d1 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100explore
Use when a QRSPI feature is not yet defined and the codebase needs surveying for gaps and candidate directions. - 100repomap
Fast, dependency-free code index for any repository. Use it BEFORE grep, glob or reading whole files whenever you need to understand an unfamiliar repo, locate where a function, class or method is defined, see a file's structure, find who calls or imports something, or decide… - 100wiki-qa
Answer repository questions grounded entirely in source code evidence. Use when user asks a question about the codebase, user wants to understand a specific file, function, or component, or user asks \"how does X work\" or \"where is Y defined\". - 100codebase
Use when performing research on the current codebase — finding where a symbol is defined, discovering all call sites of a function, understanding a type's structure, tracing interface implementations, or answering any question about what the code does right now at the checked-out commit. - 90language-server
Answer questions about Python code by meaning, not text, and change it safely, with Pyrefly's language server (the LSP tool, or the bundled script). Use it before grep, sed, or reading file after file whenever you need where a name is defined, what type a variable has, every… - 100code-derived-facts
Verify code facts by running code, not grepping: is a function really called, is a derived table stale, did a scripted edit write. Use when auditing reachability or batch-editing source.