From glean-code
Prepares for plan mode by gathering enterprise context via Glean: design docs, similar code implementations, stakeholders, related systems. Use before architectural or strategic planning.
npx claudepluginhub gleanwork/claude-plugins --plugin glean-codeThis skill uses the workspace's default tool permissions.
When users need to enter plan mode but want enterprise context first, use Glean to research design docs, similar implementations, stakeholders, and related systems.
Enhances existing plans by deploying parallel research agents per section to add best practices, optimizations, UI/UX improvements, edge cases, and real-world examples.
Conducts interview-driven planning with 20-40 clarifying questions, 5-15 parallel Explore agents for codebase analysis, verbatim requirements capture, and plan validation. For new features, refactoring, architecture changes, migrations.
Share bugs, ideas, or general feedback.
When users need to enter plan mode but want enterprise context first, use Glean to research design docs, similar implementations, stakeholders, and related systems.
Use plan prep when users:
Filter aggressively for relevant, current information.
Freshness Test
Relevance Test
Authority Test
Quality over quantity: 3-4 high-quality findings beat 10 weak ones.
Local tools only see your current repo. The plan-prep workflow searches your entire organization for:
This gives you enterprise context for better planning decisions.
| 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 |
search "[task] architecture OR design doc OR RFC"code_search "[related components]" for similar solutionscode_search "[relevant systems] updated:past_month" + employee_searchcode_search for upstream/downstream componentsThe plan-prep command returns structured research organized as:
All with clear source citations so you can verify and dig deeper.
After reviewing the research:
Use /glean-code:plan-prep <task description> to start the planning preparation workflow.
/glean-code:codebase-context [system] - Get architectural context about a specific system/glean-code:code-owners [component] - Identify code owners and maintainers/glean-code:similar-code [pattern] - Find similar implementations across repos/glean-code:find-examples [API/pattern] - Find usage examples