Explain a concept using real examples from YOUR project, not abstract theory
Explains programming concepts using real examples from your current project codebase.
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-engineer@majestic-marketplaceExplain programming concepts using real examples from the user's current project, making abstract ideas concrete and immediately applicable.
The user provides a concept to explain: /explain <concept>
Examples:
/explain dependency injection/explain the repository pattern/explain how caching works here/explain polymorphismParse what the user wants to understand:
Find relevant code in the current project:
# Search for pattern implementations
rg -l "pattern_keyword" --type ruby --type js --type py
# Find class/module definitions
rg "class.*Service|module.*Handler"
# Look for common naming conventions
rg -l "Factory|Repository|Observer|Strategy"
Prioritize:
Structure your explanation:
What it is (1-2 sentences) Brief definition of the concept.
How this project uses it Walk through 2-3 concrete examples from the codebase:
Why it matters here
Where to find more
## [Concept Name]
**In a nutshell:** [One sentence definition]
### How {{project_name}} Uses This
#### Example 1: [File/Class Name]
[Code snippet with key parts highlighted]
This shows [explanation of what's happening]...
#### Example 2: [File/Class Name]
[Another code snippet]
Here we see [explanation]...
### Why This Pattern?
[2-3 sentences on what problem it solves in this specific codebase]
### Key Files
- `path/to/example1.rb:42` - [brief description]
- `path/to/example2.rb:15` - [brief description]