تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

audit-code

بواسطة itsnishi

CLI Utilities
1.9kالتنزيلات وفق ما يذكره clawskills.sh
2النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Security-focused code review for hardcoded secrets, dangerous calls, and common vulnerabilities.

الوصف

ما الذي تفعله هذه المهارة

Runs a Python-based static analysis script against a project directory to surface security issues. Checks for hardcoded secrets, dangerous function calls, SQL injection patterns, sensitive committed files, and data exfiltration patterns. Produces a severity-ranked report with file locations and remediation steps.

Combines multiple vulnerability categories (secrets, dangerous calls, SQL injection, exfiltration) into a single automated pass instead of running separate tools for each concern.

متى تستخدمها

  • Scanning a codebase before opening a pull request
  • Reviewing AI-generated code for accidentally embedded secrets
  • Auditing third-party contributions before merging
  • Checking for .env files accidentally committed to git
  • Running a periodic security sweep on a growing codebase

مثال على سير العمل

الإدخال

User asks: audit the src/ directory for security issues

الوكيل
  1. 1

    Resolve the target path to src/ within the project root

  2. 2

    Run audit_code.py against src/

  3. 3

    Parse the structured output for severity-ranked findings

  4. 4

    Report file locations and remediation steps for each finding

الإخراج

A ranked list of findings, such as a hardcoded AWS key in config.js (high severity) and a subprocess shell=True call in deploy.py (medium severity), each with remediation guidance

التثبيت

clawhub install itsnishi/audit-code

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط