Code Check

Security

Run project quality checks and security reviews, fixing all errors by priority until all pass.

Install

openclaw skills install code-check

Code Quality & Security Checks

Run comprehensive project checks and fix all issues by priority.

Use Cases

Use when users need "check code", "run check", "fix lint errors", or "code quality check".

Core Task

Run the project check command and resolve all errors. Loop: check → fix → re-check until all pass.

Important Rules

  • Do not commit any code
  • Do not change version numbers
  • Only fix issues identified by checks

Check Types

TypeDescriptionJS/TSPythonRustGo
LintCode style & syntaxESLintflake8clippygolint
Type CheckType errorstscmypycargo checkgo vet
TestsFailing casesjest/vitestpytestcargo testgo test
SecurityVulnerability detectionnpm auditbanditcargo auditgovulncheck
FormattingStyle consistencyprettierblackrustfmtgofmt
BuildCompilation errorstsc --noEmitcargo checkgo build

Workflow

  1. Run the check command
  2. Analyze output for errors and warnings
  3. Fix by priority:
    • 🔴 Build-breaking errors (highest priority)
    • 🔴 Test failures
    • 🟡 Linting errors
    • 🟢 Warnings
  4. Re-run checks after each fix
  5. Continue until all checks pass

Multi-Project Types

  • JavaScript/TypeScript: npm run check or yarn check
  • Python: blackisortflake8mypy
  • Rust: cargo checkcargo clippy
  • Go: go vetgolint
  • Swift: swift-formatswiftlint

If the project has no check script, execute the above commands individually.