/glean:plan-prepfrom glean
Researches enterprise context before planning mode by surfacing design docs, similar implementations, stakeholders, and related systems via Glean.
Ships in glean. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Research enterprise context before entering plan mode by gathering design docs, similar implementations, stakeholders, and related systems.
Use plan prep when users:
Better planning comes from enterprise context:
Local tools only see your current repo. This workflow searches your entire organization for existing decisions, patterns, and knowledge.
Filter aggressively for relevant, current information.
| Test | ✅ Include | ⚠️ Note | ❌ Exclude |
|---|---|---|---|
| Freshness | <6 months | 6-12 months | 12+ months |
| Relevance | Directly applies | Similar context | Keyword match only |
| Authority | Approved RFCs, official docs | Team wiki, proposals | Rejected/abandoned work |
| Quality | Well-reasoned, proven | Has tradeoffs | Experimental, hacky |
Quality over quantity: 3-4 high-quality findings beat 10 weak ones.
| Research Need | Glean Tool |
|---|---|
| Find design docs, RFCs, architecture | search |
| Find similar code implementations | code_search |
| Find code owners and stakeholders | code_search + employee_search |
| Find related/dependent systems | code_search |
| Read full document content | read_document |
Find design documents, RFCs, and architectural decisions related to the task:
search "[task] architecture OR design doc"
search "[task] RFC OR proposal"
search "[task] pattern OR best practice"
Look for:
Search for similar implementations across the codebase:
code_search "[task] implementation OR pattern"
code_search "[related systems] updated:past_month"
Look for:
Find who's actively working on related systems:
code_search "[relevant systems] owner:* updated:past_month"
employee_search "[systems and names identified]"
Look for:
Identify upstream and downstream dependencies:
code_search "[main system] calls OR depends OR imports"
code_search "[main system] updated:past_month"
For each piece of research, apply the vetting criteria above. Reject stale, tangential, or low-quality content.
Present vetted research findings organized by category:
# Planning Context: [Task]
## Design & Architecture
### Current Standards & Patterns
| Pattern | Description | Source | Updated |
|---------|-------------|--------|---------|
| [pattern] | [what it is and why] | [doc link] | [date] ✅ |
### Relevant Design Documents
| Document | Type | Key Takeaway | Updated |
|----------|------|--------------|---------|
| [Title] | RFC | [1-2 sentence summary] | [date] ✅ |
## Implementations & Patterns
### Recommended Examples
| Location | What It Does | Why It's Good | Status |
|----------|--------------|---------------|--------|
| [repo/path] | [brief description] | [Why recommend] | Active ✅ |
## Stakeholders & Ownership
### Active Owners
| Name | Role | Involvement | Contact |
|------|------|-------------|---------|
| [Name] | [Title] | [X] commits past month in [system] | [email] |
### Teams & Channels
- **Primary Team**: [team name]
- **Slack Channel**: [#channel] for questions
## Related Systems
- **Upstream** (depend on this): [systems]
- **Downstream** (this depends on): [systems]
## Key Insights
- [Important constraint or opportunity]
- [Proven pattern or anti-pattern]
- [Stakeholders who must be involved]
## Sources
| Document | Type | Relevance | Currency |
|----------|------|-----------|----------|
| [Title](URL) | RFC | [how it applies] | [date] ✅ |
Don't pad with weak results:
# Planning Context: [Task]
## Limited Research Available
Found limited enterprise context for this task.
**What was searched:** Design docs, similar implementations, related systems
**Gaps:** No recent design docs, limited prior art
**Suggested next steps:**
1. Check with [suggested team] about prior attempts
2. Enter plan mode and design initial approach, then validate with stakeholders
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gleanwork/claude-plugins --plugin glean19 skills in this plugin
/catch-upCatch up on what you missed while away — meetings, decisions, action items, mentions, and important threads from a defined time window. Trigger phrases include "what did I miss", "catch me up", "I was out", "I'm back from PTO", "summarize while I was away", "what happened last week while I was off", "I just got back", "fill me in on what I missed"./codebase-contextGather architectural context about an internal system from code and documentation across the organization — use when asked to understand a system's architecture, find its repos, or get an overview before working on it./code-ownersIdentify who owns, maintains, or has expertise in a specific code area — use when asked who to talk to about a system, who to request a code review from, or who has been actively working in a codebase area./find-examplesFind 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./find-expertFind subject matter experts on a topic, technology, or internal system by combining real expertise signals (code contributions, document authorship, and meeting or discussion activity) rather than relying on job titles. Use this whenever the user wants to know who to ask about something — phrasings such as who knows about, who is the expert on, the go-to person for, who has worked on, who can I ask about, or subject matter expert for. Use it even when the user does not say the word expert but clearly needs a person with deep, demonstrated knowledge of an area. Do not use it for plain directory lookups (an email address, manager, or org placement with no expertise angle), which is a simple employee lookup./glean_runDiscover and run Glean skills for enterprise app tasksOther plugins' skills for the same job