원클릭으로
zihuan-lint
Lint and format zihuan-next code. Use this skill when asked to check for warnings, run clippy, format code, or fix lint issues.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Lint and format zihuan-next code. Use this skill when asked to check for warnings, run clippy, format code, or fix lint issues.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Develop complete agents in zihuan-next. Use this skill when asked to create, configure, or modify agents — including Brain setup, LLM binding, built-in tool loading, node graph tool definitions, and agent lifecycle management.
Develop tools and agent capabilities for the zihuan-next agent system. Use this skill when asked to create new tools for the QQ chat agent, implement FunctionTool traits, define embedded subgraph tools, or work with the Brain tool-calling loop.
Build the zihuan-next project from source. Use this skill when asked to build, compile, or run the Rust project, including CUDA/Metal feature builds, frontend builds, and Docker builds.
Develop the zihuan-next WebUI. Use this skill when asked to modify the admin panel (Vue 3), the visual node-graph editor (Litegraph.js), add UI features, or change the TypeScript frontend code in webui/.
Develop new node types for the zihuan-next DAG graph engine. Use this skill when asked to create, modify, or debug graph nodes — including port definitions, node registration, Node trait implementation, and lifecycle management.
Run zihuan-next tests. Use this skill when asked to run tests, debug test failures, or find and execute specific test cases in the project.
| name | zihuan-lint |
| description | Lint and format zihuan-next code. Use this skill when asked to check for warnings, run clippy, format code, or fix lint issues. |
The project uses Clippy for linting and rustfmt for formatting. There are no custom clippy.toml or rustfmt.toml configuration files — Rust's default settings apply.
# Run clippy on all workspace crates with all features
cargo clippy --all-targets --all-features
# Run clippy on a specific crate
cargo clippy -p zihuan_service --all-targets
# Check formatting (dry-run — reports issues without modifying files)
cargo fmt --all -- --check
# Auto-format all code
cargo fmt --all
# Auto-fix clippy warnings where possible
cargo clippy --all-targets --all-features --fix --allow-dirty
# Auto-format (always run this before committing)
cargo fmt --all
For TypeScript/JavaScript in webui/:
cd webui
pnpm run lint # if a lint script is configured in package.json
| Lint group | What it catches |
|---|---|
clippy::all | Default warn-by-default lints |
clippy::pedantic | Stricter style lints (not enabled by default) |
clippy::nursery | New lints still under development |
clippy::cargo | Cargo.toml-specific lints |
cargo clippy --all-targets --all-features catches most issues early.cargo fmt --all after making changes — ensures consistent formatting across the workspace.#[allow(clippy::lint_name)] sparingly at the smallest scope possible (function or block, not module).[lints] section to the workspace Cargo.toml or create clippy.toml / rustfmt.toml at the workspace root.