A command-line tool that performs AST-based static analysis on AI-generated Python code to detect bugs, security flaws, and assess production-readiness.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install code-inspector
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install code-inspector using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
AI code generators can output code that looks syntactically correct but harbors critical security flaws, logical errors, or serious anti-patterns. The code-inspector tool solves this by scanning your Python files against eight crucial static analysis checkpoints, ranging from hardcoded credentials to mutable defaults. By introducing a structured safety net, developers can leverage LLM agents with confidence.
As part of the Openclaw Skills ecosystem, this tool integrates seamlessly into developer workflows to inspect piped input or files directly from the terminal. It evaluates every script and outputs a production-readiness score from 0 to 100, ensuring high-risk code never makes it to production.
# Install directly from the GitHub repository
pip install git+https://github.com/minirr890112-byte/code-inspector.git
# Scan an individual Python file
code-inspector app.py
# Stream code directly through stdin from other processes
cat app.py | code-inspector
The tool processes Python abstract syntax trees (AST) in memory to run checks. The scoring severity mapping and production-readiness taxonomy are structured as follows:
| Check Category | Severity | Examples / Target Behavior |
|---|---|---|
| Hardcoded secrets | Critical | Looks for plain-text strings assigned to key variables like 'api_key'. |
| Unsafe eval/exec | Critical | Identifies unsafe usage of dynamic execution methods. |
| Infinite loops | Critical | Flags modifications of iterators within a while-loop. |
| Bare except/pass | Critical | Checks for silent exception swallowing ('except: pass'). |
| Mutable defaults | High | Flags lists, dictionaries, or sets used as default argument values in functions. |
| Shadowed builtins | High | Catches redefinition of built-in terms like 'list = [1,2,3]'. |
| Deep nesting | Medium | Pinpoints code blocks with five or more levels of nested loops. |
| Unused imports | Low | Flags imported modules that are never referenced. |
Loading
A command-line tool to compare pricing across 18 AI models from 6 providers, recommend the cheapest options for specific use cases, and track API spend.

A developer-focused CLI utility to benchmark AI API models over time, detecting quality degradation with local test runs and performance alerts.

A local hardware detection CLI that automatically analyzes system memory, GPU, and CPU specs to suggest and output ideal Ollama and llama.cpp setup commands.

A high-precision mathematical calculator and SVG visualizer to resolve wall-mounted faucet reach, outlet height, and drain alignment coordinates.

An interactive command-line utility that assesses OpenAI account suspension risks, generates customized appeal templates, and scans developer forums for live ban waves.

A systematic framework integrating a five-dimensional Bayesian model, a six-lens decision matrix, and behavioral finance corrections to generate structured stock investment diagnoses.








































