# explain-code Explain what code does in plain language ## Installation This is a CmdForge tool. Install it from the CmdForge registry: ```bash cmdforge install explain-code ``` ## Usage Pipe code into the tool to get a plain language explanation: ```bash # Explain code from a file cat script.py | explain-code # Explain a code snippet echo "def factorial(n): return 1 if n <= 1 else n * factorial(n-1)" | explain-code # Adjust detail level cat complex_algorithm.js | explain-code --detail high # Explain a specific function grep -A 10 "function processData" app.js | explain-code --detail low ``` ## Arguments | Flag | Default | Description | |------|---------|-------------| | `--detail` | moderate | Level of explanation detail (e.g., low, moderate, high) | ## How It Works 1. **Step 1 (Prompt)**: Sends the code to the `opencode-pickle` AI provider with the specified detail level to generate a plain language explanation 2. **Output**: Returns the explanation ## Dependencies None
Reviews
Login to reviewNo reviews yet.
Issues
No issues reported for this tool.
Write a Review
Share your experience with this tool.
0/2000
Report an Issue
Help improve this tool by reporting bugs or security issues.