From glean-code
Explores internal code implementations, patterns, and architecture across organization repositories using Glean code search tools.
npx claudepluginhub gleanwork/claude-plugins --plugin glean-codeThis skill uses the workspace's default tool permissions.
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.
Performs semantic search, grep, artifact fetching, relationship tracing, and data source listing across CodeAlive-indexed codebases and docs.
Locates internal codebase patterns, GitHub repos with code excerpts, official docs, and examples for feature implementations like rate limiting or OAuth.
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.
Share bugs, ideas, or general feedback.
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 implementations