Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Reference Seek

ASecurity

This skill should be used when the user asks to "find references", "참고할 만한 거", "similar implementation", "오픈소스 있나", "how others do this", "레퍼런스 찾아줘", or needs to find existing patterns (internal) and open-source examples (external) for implementing a feature.

174 stars
0 votes
0 copies
0 views
Added 9/9/2026
ai-agentstypescriptgobashgitapidocumentation

Works with

claude codecursorapimcp

Security Analysis

A100/100

Scanned 9/9/2026

$npx -y skills add team-attention/hoyeon --skill reference-seek --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reference Seek?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Reference Seek
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/team-attention-reference-seek/badge)](https://www.skillsdirectory.com/skills/team-attention-reference-seek)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: reference-seek
description: |
  This skill should be used when the user asks to "find references", "참고할 만한 거",
  "similar implementation", "오픈소스 있나", "how others do this", "레퍼런스 찾아줘",
  or needs to find existing patterns (internal) and open-source examples (external)
  for implementing a feature.
version: 2.0.0
validate_prompt: |
  Must contain all of these sections:
  - Internal References section (with content or "No existing patterns found" message)
  - GitHub References section with at least 1 repo entry including stars, license, and updated date
  - At least 1 repo with actual code excerpt (Key Code block with real source lines)
  - Usage Suggestions section with numbered recommendations
  Output must start with "## Reference Seek:" header.
---

# Reference Seek - Find Implementation References (v2.0.0)

Find internal patterns, quality-filtered GitHub repos with code-level insights, official docs, and external examples.

## Purpose

When building a feature, find what you can **reuse** or **learn from**:
- Internal: Existing patterns in the codebase
- GitHub: Quality-filtered repos with actual code excerpts
- Official Docs: context7-powered library documentation
- External: Blog posts, tutorials, best practices

## Runtime Surface

### Claude Code

- Use `Task(Explore)`, `gh`, context7 MCP when available, and `WebSearch` as
  described below.

### Codex

- Map internal codebase search to `hoyeon-code-explorer` when installed.
- Use Bash-first `gh api` and `curl` for GitHub discovery and code excerpts.
- Do not require context7 MCP for v1; use it only if already available in the
  current runtime. Otherwise, use official docs via the available Codex web
  search/fetch surface and label that fallback.
- If no native subagent adapter is loaded, perform the internal search directly
  with `rg` and targeted file reads.

## Use Cases

- "Looking to implement OAuth login — any good references?"
- "Find references for implementing a rate limiter"
- "How do I implement pagination? Find me some references"
- "Any open source projects similar to WebSocket connection management?"

## Execution

### Step 0: Dependency Check + Topic Classification (1 message)

Run in parallel:

**0-A. gh auth check:**
```bash
gh auth status
```

| Result | Variable |
|--------|----------|
| Authenticated | `GH_AVAILABLE=true` |
| Not authenticated / gh not found | `GH_AVAILABLE=false` |

**0-B. Topic extraction + classification (reasoning, same message):**

Extract from user request:
- `TOPIC`: Normalized English topic (e.g., "rate limiting", "OAuth authentication")
- `TOPIC_CLASS`: `library` | `pattern` | `concept`
- `GH_QUERY`: GitHub search query (e.g., `rate+limiter`, `oauth+middleware`)
- `GH_LANG_FILTER`: Language filter inferred from codebase (e.g., `+language:typescript`)
- `CONTEXT7_LIB`: Library name for context7 resolve (if `library` class, use directly; otherwise best guess or skip)

Examples:
- "any rate limiter references?" → TOPIC: `rate limiting`, CLASS: `pattern`, GH_QUERY: `rate+limiter+middleware`, CONTEXT7_LIB: `rate-limiter-flexible`
- "NextAuth implementation references" → TOPIC: `NextAuth authentication`, CLASS: `library`, GH_QUERY: `nextauth+authentication`, CONTEXT7_LIB: `next-auth`
- "pagination references" → TOPIC: `pagination implementation`, CLASS: `pattern`, GH_QUERY: `pagination+cursor`, CONTEXT7_LIB: skip

### Step 1: Parallel Search (1 message, up to 4 sources)

**CRITICAL**: Run all available tracks in **one message** in parallel.

| Track | Tool | Purpose |
|-------|------|---------|
| 1-A | `Task(Explore)` | Internal codebase pattern search |
| 1-B | `Bash: gh api search/repositories` | GitHub repo search (stars-sorted, top 10) |
| 1-C | `mcp__context7__resolve-library-id` | Library docs ID lookup |
| 1-D | `WebSearch` | Blog/tutorial search (1 query only) |

**1-A. Internal Search (Explore agent):**
```
Task(subagent_type="Explore",
     prompt="""
Find existing patterns related to [{TOPIC}] in this codebase.
Look for:
- Similar implementations or utilities
- Patterns that could be reused or extended
- Related helper functions or modules

Report as file:line format with brief description of what's reusable.
""")
```

**1-B. GitHub Search (only if GH_AVAILABLE=true):**
```bash
gh api "search/repositories?q={GH_QUERY}+{GH_LANG_FILTER}&sort=stars&per_page=10" \
  --jq '.items[] | select(.archived == false) | {
    full_name, stars: .stargazers_count, lang: .language,
    topics, license: .license.spdx_id, desc: .description,
    pushed: .pushed_at, url: .html_url, default_branch
  }'
```

**1-C. context7 resolve (if CONTEXT7_LIB is set):**
```
mcp__context7__resolve-library-id(libraryName="{CONTEXT7_LIB}")
```

**1-D. WebSearch (1 query only):**
```
WebSearch: "{TOPIC} implementation tutorial best practices 2024 2025"
```

**When GH_AVAILABLE=false:** Skip 1-B. Run WebSearch 3 times instead (v1.0 fallback):
```
WebSearch: "{TOPIC} implementation github"
WebSearch: "{TOPIC} open source example"
WebSearch: "{TOPIC} tutorial best practices"
```
Add warning at top of output: `> ⚠️ GitHub API unavailable (gh not authenticated). Results from web search only.`

### Step 2: Quality Filter + context7 Query (sequential after Step 1)

**2-A. Quality Filter (reasoning, applied to 1-B results):**

| Criteria | Threshold |
|----------|-----------|
| Stars | >= 100 (relax to >= 50 if fewer than 2 pass) |
| Last push | Within 24 months |
| License | MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, MPL-2.0 |
| Archived | Excluded (already filtered by jq) |

→ Top 5 passing repos = `QUALIFIED_REPOS`
→ Top 1-2 repos = `DEEP_DIVE_TARGETS`

If all repos filtered out: relax stars to >= 50. If still none, take top 3 with warning badge `⚠️ Below quality threshold`.

**2-B. context7 docs query (only if 1-C resolve succeeded):**
```
mcp__context7__query-docs(
  libraryId="{resolved_id}",
  query="{TOPIC} implementation patterns examples"
)
```
If resolve failed in 1-C, skip this step entirely.

### Step 3: Repo Deep Dive (sequential after Step 2)

For each repo in `DEEP_DIVE_TARGETS` (1-2 repos):

**3-1. File tree lookup:**
```bash
gh api "repos/{owner}/{repo}/git/trees/{default_branch}?recursive=1" \
  --jq '[.tree[] | select(.type=="blob") | select(.path | test("^(src|source|lib|pkg|core)/")) | {path, size}]'
```

**3-2. File selection (reasoning):**
- Match files by topic keywords
- Prioritize: entry points, types/interfaces, core logic
- Skip files > 20KB
- Select max 3 files per repo

**3-3. File content fetch:**
```bash
curl -s "https://raw.githubusercontent.com/{owner}/{repo}/{default_branch}/{path}"
```

**3-4. Code analysis (reasoning):**
Extract from each file:
- Key data structures
- Algorithm / approach
- Configuration options
- Notable patterns worth adopting

If file tree or fetch fails for a repo, skip its deep dive and move to the next target.

### Step 4: Synthesize & Present

Combine all sources into the output format below.

## Output Format

```markdown
## Reference Seek: [{TOPIC}]

> Sources: Internal | GitHub ({N} repos, quality-filtered) | context7 | Web

---

### Internal References (Codebase)

#### Directly Reusable
- `{file}:{lines}` - {description}

#### Pattern Reference
- `{file}:{lines}` - {pattern description}

#### Integration Points
- `{file}:{lines}` - {connection point}

---

### GitHub References (Quality-Filtered)

1. **[{owner}/{repo}]({url})** ★{stars} | {lang} | {license} | Updated {date}
   - What: {description}
   - Topics: {topics}
   - **Key Code (`{path}`):**
     ```{lang}
     {10-30 lines of key code}
     ```
   - Takeaway: {actionable insight}

2. **[{owner}/{repo}]({url})** ★{stars} | {lang} | {license} | Updated {date}
   - What: {description}
   - Topics: {topics}
   - **Key Code (`{path}`):**
     ```{lang}
     {10-30 lines of key code}
     ```
   - Takeaway: {actionable insight}

3-5. (metadata only, no code excerpt)
3. **[{owner}/{repo}]({url})** ★{stars} | {lang} | {license} | Updated {date}
   - What: {description}

*(Filtered out: {N} repos excluded — low stars / outdated / incompatible license)*

---

### Official Docs (context7)

> Only include this section if context7 resolve succeeded in Step 1-C.

- {key concept}: {docs content}
- **Official Code Example:**
  ```{lang}
  {official example from docs}
  ```

---

### External References (Blog / Tutorials)

1. **[{title}]({url})** - Key insight: {content}

---

### Usage Suggestions

1. **Reuse**: {how to leverage internal code}
2. **Reference**: {most relevant repo + why}
3. **Official**: {key takeaway from context7/docs}
4. **Watch out**: {pitfalls or caveats}
```

## Error Handling

| Situation | Response |
|-----------|----------|
| gh not authenticated | Skip 1-B, use WebSearch 3x fallback, add warning at top |
| gh rate limit (403) | Fallback: `gh search repos "{GH_QUERY}" --sort stars --limit 10 --json ...` (different rate limit bucket) |
| GH results 0 | Remove language filter, retry. If still 0, show "No GitHub results found" |
| All repos filtered out | Relax stars to >= 50. If still none, show top 3 with warning badge |
| context7 resolve fails | Omit "Official Docs" section entirely |
| File tree / fetch fails | Skip that repo's deep dive, proceed to next target |
| Explore returns nothing | Show "No existing patterns found in codebase" |
| Topic too vague | Ask user for clarification before proceeding |

Attribution

team-attentionteam-attention
View sourceSee grades on GitHubMore from team-attention →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

696481 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes
View all in ai-agents →