Find usage examples of an API, library, or code pattern across internal repositories — use when looking for how other teams use an internal API, library, or pattern before implementing something new.
68
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Search across all repositories to find usage examples of an API, library, or pattern.
Determine the API, library, or pattern from the user's request. If not specified, ask before proceeding.
Search for the API/pattern across the organization:
code_search "[topic] import OR require"
code_search "[topic] usage example"
code_search "[topic] implementation"Look for variations in how it's used:
code_search "[topic] config OR configuration"
code_search "[topic] test OR spec"Search for any guides or documentation:
search "[topic] how to use OR getting started"
search "[topic] best practices OR guidelines"For each code example found, evaluate:
| Test | ✅ Include | ⚠️ Caution | ❌ Reject |
|---|---|---|---|
| Quality | Clean, well-structured, tested, recent | Works but has issues — note them | Hacky, deprecated, anti-pattern, prototype |
| Recency | <6 months | 6-12 months — may be outdated | 12+ months with no activity |
| Context | Production code, tests, well-maintained | Experiments — verify before using | Abandoned PRs, copy-pasted boilerplate |
| Relevance | Similar context to what user needs | Different context but instructive | Same API, unrelated purpose |
Anti-Pattern Signals — reject or warn:
/deprecated/, /old/, /legacy/ paths# Usage Examples: [API/Pattern]
## Summary
| Examples Found | High Quality | Cautionary | Rejected |
|----------------|--------------|------------|----------|
| [X] | [Y] | [Z] | [W] |
## Official Documentation
- **[Doc title]** ([link]) - [what it covers]
## Recommended Examples
### Example 1: [Repo/Team Name] ⭐ Recommended
**Quality**: High — [why this is a good example]
**File:** [path] ([link])
**Last Updated**: [date]
**Context:** [brief description of how they use it]
```[language]
[relevant code snippet]Why this is good:
File: [path] ([link]) Caveat: [What to watch out for]
What to copy: [The good parts] What to avoid: [The problematic parts]
| Name | Why |
|---|---|
| [Name] | Wrote the recommended example |
## If No Good Examples Found
```markdown
# Usage Examples: [API/Pattern]
## No High-Quality Examples Found
The assistant searched for examples of [API/Pattern] but didn't find examples worth recommending.
**What was found:** [X] matches, but all were [outdated/low quality/different context]
**Suggested next steps:**
1. Check the official documentation directly
2. Ask in [relevant Slack channel]
3. Consider: Is there a reason this isn't widely used?a549de6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.