From cook-en
Explains code behavior in detail, covering logic, flow, design patterns, and potential issues. Useful for understanding unfamiliar code or reviewing for performance and security.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cook-en:explain-codeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Explains how code works in detail.
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:
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-enExplains code behavior in detail, including purpose, design patterns, performance, and security. Triggered by requests like 'explain this code' or 'how does this work?'.
Explica o funcionamento do código em detalhe, incluindo lógica, padrões de design, análise de performance e revisão de segurança.
Explains code behavior in detail, covering logic, architecture, performance, security, and design patterns. Activated by phrases like 'explain this code' or 'what does this function do?'.