From glean-code
Explores internal code implementations, patterns, and architecture across organization repositories using Glean code search tools.
How this skill is triggered — by the user, by Claude, or both
Slash command
/glean-code:code-explorationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When users need to understand code across internal repositories—beyond the local codebase—use Glean's code search to explore the entire organization's code.
When users need to understand code across internal repositories—beyond the local codebase—use Glean's code search to explore the entire organization's code.
See the glean-tools-guide skill for Glean MCP tool naming conventions. Tools follow the pattern mcp__glean_[server-name]__[tool] where the server name is dynamic.
Use Glean code search when users ask about:
Not every code result is worth presenting.
Quality Test
Recency Test
Relevance Test
Filter Out:
/deprecated/, /old/, /legacy/ pathsQuality over quantity: 3 good examples beat 10 mediocre ones.
Local tools (grep, glob) search only the current repo. Glean searches across ALL repositories in the organization. This is powerful for:
| User Intent | Glean Tool |
|---|---|
| Find code by content, pattern, or file | code_search |
| Find related design docs or specs | search |
| Identify code owners/contributors | code_search + employee_search |
| Read full file content | read_document |
Glean's code search understands natural language. Use filters for precision:
# Search by content
code_search "authentication middleware"
code_search "rate limiting implementation"
# Search by contributor
code_search "owner:\"John Smith\" billing service"
code_search "from:me updated:past_week"
# Search by time
code_search "after:2024-01-01 payments API"
# Search by file pattern
code_search "*.proto user service"
code_search "[system name]"search "[system name] design doc OR architecture"code_search "owner:* [system] updated:past_month"read_document with URLs from vetted resultsDon't pad with weak results:
No high-quality code examples found for [topic].
**What was searched:**
- [Queries attempted]
**What was filtered:**
- [X] matches - [reasons: outdated/poor quality]
**Suggestions:**
- Check external libraries
- Ask in [relevant channel]
- This may need to be built from scratch
For structured workflows, suggest the relevant slash command:
/glean-code:codebase-context [system] - Get comprehensive context/glean-code:find-examples [API/pattern] - Find usage examples/glean-code:code-owners [component] - Identify maintainers/glean-code:similar-code [pattern] - Find similar implementationsnpx claudepluginhub gleanwork/claude-plugins --plugin glean-codeSearches internal codebase patterns and GitHub for open-source implementation references, filtering repos by quality and extracting code excerpts.
Provides semantic search, grep, and call graph tracing across CodeAlive-indexed codebases. Use to search code, fetch artifacts, or query data sources.
Searches code across GitLab projects using semantic (Duo-enabled) or keyword search. Returns snippets with file paths, line numbers, context, project links, and relevance scores.