code-explain
Explain complex code in plain English
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/ai-explainCode Explainer
Paste confusing code, get a clear explanation. Works with any language.
Quick Start
npx ai-explain ./src/utils/crypto.ts
What It Does
- Explains what code does line by line
- Identifies patterns and algorithms
- Explains why code is written that way
- Suggests improvements
Usage Examples
# Explain a file
npx ai-explain ./src/auth/jwt.ts
# Explain from stdin
cat weird-regex.js | npx ai-explain
# Explain with context
npx ai-explain ./src/api.ts --context "This handles payments"
# Different detail levels
npx ai-explain ./src/algo.ts --detail high
Output Includes
- High-level summary
- Step-by-step breakdown
- Key concepts explained
- Potential issues flagged
Great For
- Understanding inherited code
- Learning new patterns
- Code review prep
- Onboarding new devs
Requirements
Node.js 18+. OPENAI_API_KEY required.
License
MIT. Free forever.
Built by LXGIC Studios
- GitHub: github.com/lxgicstudios/ai-explain
- Twitter: @lxgicstudios
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-ai-explain": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.