Security v1.0.0

code-check

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

openlark 更新于 2026-06-07 1 浏览
下载 SKILL

技能说明

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

使用场景

Run comprehensive project checks and fix all issues by priority.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/code-check
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 23 kB
SKILL.md text/markdown
---
name: code-check
description: Run project quality checks and security reviews, fixing all errors by priority until all pass.
---

# 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

| Type | Description | JS/TS | Python | Rust | Go |
|------|-------------|-------|--------|------|-----|
| Lint | Code style & syntax | ESLint | flake8 | clippy | golint |
| Type Check | Type errors | tsc | mypy | cargo check | go vet |
| Tests | Failing cases | jest/vitest | pytest | cargo test | go test |
| Security | Vulnerability detection | npm audit | bandit | cargo audit | govulncheck |
| Formatting | Style consistency | prettier | black | rustfmt | gofmt |
| Build | Compilation errors | tsc --noEmit | — | cargo check | go 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**: `black` → `isort` → `flake8` → `mypy`
- **Rust**: `cargo check` → `cargo clippy`
- **Go**: `go vet` → `golint`
- **Swift**: `swift-format` → `swiftlint`

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

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。