コードの動作を詳しく解説する。「このコード説明して」「何をしてる?」「コードの意味は?」「どう動いてる?」「この関数の役割は?」「ロジックを説明して」「動作を解説して」などで起動。ロジックの流れ、目的、動作原理を分かりやすく説明。
Scanned 9/7/2026
Install to Claude Code
npx -y skills add wasabeef/claude-code-cookbook --skill explain-code --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Explain Code?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/wasabeef-explain-code-baab21b6)More formats (shields.io, HTML) on the badges page.
---
description: "コードの動作を詳しく解説する。「このコード説明して」「何をしてる?」「コードの意味は?」「どう動いてる?」「この関数の役割は?」「ロジックを説明して」「動作を解説して」などで起動。ロジックの流れ、目的、動作原理を分かりやすく説明。"
allowed-tools:
- Read
- Grep
---
# コードの動作を詳しく解説
コードの動作を詳しく解説します。
## 使い方
```bash
# ファイル内容を表示して Claude に依頼
cat <file>
「このコードの動作を解説して」
```
## 基本例
```bash
# Rust の所有権を理解
cat main.rs
「Rust の所有権とライフタイムの観点から解説して」
# アルゴリズムの解説
grep -A 50 "quicksort" sort.rs
「このソートアルゴリズムの仕組みと計算量を解説して」
# デザインパターンの説明
cat factory.rs
「使用されているデザインパターンとその利点を説明して」
```
## Claude との連携
```bash
# 初心者向け解説
cat complex_function.py
「このコードを初心者にもわかりやすく 1 行ずつ解説して」
# パフォーマンス分析
cat algorithm.rs
「このコードのパフォーマンス上の問題点と改善案を提示して」
# 図解付き説明
cat state_machine.js
「このコードの処理の流れを ASCII アートの図解付きで説明して」
# セキュリティレビュー
cat auth_handler.go
「このコードのセキュリティ上の懸念点を指摘して」
```
## 詳細例
```bash
# 複雑なロジックの解説
cat recursive_parser.rs
「この再帰パーサーの動作を以下の観点で解説して:
1. 全体的な処理フロー
2. 各関数の役割と責任
3. エッジケースの処理
4. 改善可能な点」
# 非同期処理の解説
cat async_handler.ts
「この非同期処理について以下を解説して:
1. Promise チェーンの流れ
2. エラーハンドリングの仕組み
3. 並行処理の有無
4. デッドロックの可能性」
# アーキテクチャの説明
ls -la src/ && cat src/main.rs src/lib.rs
「このプロジェクトのアーキテクチャとモジュール構成を解説して」
```
## 注意事項
コード解説では、単に動作を説明するだけでなく、なぜそのような実装になっているか、どのような利点があるか、潜在的な問題点は何かといった深い洞察も提供します。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.
A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling