Security

ClawCode Lens

Try it

Explain code in any language with structured syntax/logic breakdown, local security scan, and improvement suggestions. 100% lokal — private og hurtig, ingen netværkskald, ingen API-nøgle.

What it does

Code explanation and analysis tool — inspired by Dify Code Interpreter, **improved**:

The skill document

ClawCode Lens

Code explanation and analysis tool — inspired by Dify Code Interpreter, improved:

🆕 Unique features (not in the original)

Feature 1: Runs 100% LOCALLY — no external API required

code directly with structured rules — works offline, free and instantly:

python3 scripts/explain.py code.py --lang python
python3 scripts/explain.py main.js --lang javascript --detail

Feature 2: Security scanning (local)

Finds vulnerabilities: hardcoded keys, SQL injection, eval() misuse, unsafe exec calls, weak passwords, unsafe imports:

python3 scripts/security_scan.py code.py --out report.md

Feature 3: Improvement suggestions

Gives concrete, prioritized suggestions: complexity, repeated code, missing error handling, performance bottlenecks and best practices — with code examples:

python3 scripts/improve.py code.py --out suggestions.md

How to use

Explain code (structured)

python3 scripts/explain.py file.py --lang python
# Output: overview → key functions → logic flow → edge cases

Supported languages

Python, JavaScript/TypeScript, C/C++, Java, C#, Go, Rust, SQL, Bash, PHP, Ruby — auto-detected from file type.

Combine everything in one call

python3 scripts/explain.py app.py --security --improve --out full-report.md

# 2) Deep scan (PAID call — uploads your code + costs per call)
python3 scripts/code_scan.py app.py
  • Price: $0.005/call · $25/mo
  • ⚠️ Paid call — each run charges your key AND uploads the selected source file to the external API. Do not use on confidential/proprietary code.

Example output (security scan)

🔒 Security scan: app.py
  [HIGH]    Line 45: SQL string built with f-string — injection risk
  [INFO]    Line 78: eval() — avoid unless strictly necessary

Feedback

  • Helpful? → clawhub star clawcode-lens

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

More from northcap-group

Browse all skills

Dealing Range Theory (DRT) — complete ICT structure: Type 1 (continuation), Type 2 (reversal), Type 3 (consolidation), quadrant levels (25/50/75), entry models, SMT confirmation and news filter. For market analysis and trade setups.

by Northcap Group2 installs1 stars

Crypto DRT scalping strategy + backtest reference on 12 crypto pairs (TRX, BNB, BTC, LINK, AVAX, DOGE, SOL, NEAR, XRP, LDO, ADA, ETH), all 7 days. Backtested 2 years (~400+ trades). 100% lokal backtest-reference — ingen netværkskald, ingen API-nøgle. Backtest results are historical and not a guarantee of future performance.

by Northcap Group2 installs1 stars

How to build wealth from zero — bootstrapping, scaling strategies, resource allocation, and wealth mindset. Strategic advisory for Mohamed.

by northcap-group1 installs

Provides pay-per-call crypto trading signals with entry, stop-loss and take-profit via the x402 standard (USDC on Ethereum). Live DRT/ICT signals for agents and traders.

by Northcap Group1 installs1 stars

How the world's best entrepreneurs network, negotiate, and create partnerships. Relationships that build millions.

by northcap-group

Crypto DRT scalping — Dealing Range Theory on 12 crypto pairs (TRX, BNB, BTC, LINK, AVAX, DOGE, SOL, NEAR, XRP, LDO, ADA, ETH), all 7 days. Backtested 2 years (~400+ trades). Backtest results are historical and not a guarantee of future performance. Separate play-money account rules.

by northcap-group