ワンクリックで
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.