/cook-en:explain-codefrom cook-en
Explains code behavior in detail, covering purpose, design rationale, benefits, and potential issues. Supports line-by-line, performance, security, and architecture explanations.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /cook-en:explain-code still runs it.
What the command file sets; muted values are Claude Code's defaults
code-explanation, code-review, learning, debugging, documentation
Explains how code works in detail.
# Show a file and ask for explanation
cat <file>
"Explain how this code works"
# Understand Rust ownership
cat main.rs
"Explain the ownership and lifetimes in this Rust code"
# Explain an algorithm
grep -A 50 "quicksort" sort.rs
"How does this sorting work? What's its time complexity?"
# Explain design patterns
cat factory.rs
"What design pattern is this? What are the benefits?"
# Beginner-friendly explanation
cat complex_function.py
"Explain this code line by line for someone new to programming"
# Performance check
cat algorithm.rs
"Find performance problems and how to fix them"
# Visual explanation
cat state_machine.js
"Show me the flow with ASCII diagrams"
# Security check
cat auth_handler.go
"What security issues do you see?"
# Complex logic breakdown
cat recursive_parser.rs
"Break down this recursive parser:
1. How does it flow?
2. What does each function do?
3. How are edge cases handled?
4. What could be better?"
# Async code explanation
cat async_handler.ts
"Explain this async code:
1. How do the Promises flow?
2. How are errors handled?
3. What runs in parallel?
4. Could this deadlock?"
# Architecture overview
ls -la src/ && cat src/main.rs src/lib.rs
"Explain how this project is structured"
Not just what the code does, but also:
7-day visitors to each command page
39 commands in this plugin
/analyze-dependenciesAnalyze project dependencies and evaluate architectural healthAnalyzes your project's dependencies and checks architecture health./analyze-performancePerformance analysis based on Core Web VitalsAnalyzes application performance from a user experience perspective and quantifies experience improvements from optimizations. Calculates UX scores based on Core Web Vitals and proposes prioritized optimization strategies./check-factVerify information accuracy against codebase and docsVerifies if a statement is true by checking your project's code and documentation./check-promptEvaluate and improve AI prompt qualityA comprehensive collection of best practices for evaluating and improving the quality of prompts for AI Agents. It systematizes knowledge gained from actual prompt improvement processes, covering all important aspects such as ambiguity elimination, information integration, enforcement enhancement, tracking systems, and continuous improvement./commit-messageGenerate commit messages from staged changesGenerates commit messages from staged changes (git diff --staged). This command only creates messages and copies them to your clipboard—it doesn't run any git commands./context7Search technical documentation via Context7 MCPSearches technical documentation using MCP's Context7.2 plugins ship this exact command · first indexed Jul 16, 2026
npx claudepluginhub foreveryh/claude-code-cookbook --plugin cook-enOther plugins' commands for the same job