什麼是 code-quality?
透過格式化、linting 和靜態分析保持高程式碼品質。使用程式碼品質技能和腳本進行 rustfmt、clippy 或 Cargo 稽核。 來源:d-o-hub/rust-self-learning-memory。
透過格式化、linting 和靜態分析保持高程式碼品質。使用程式碼品質技能和腳本進行 rustfmt、clippy 或 Cargo 稽核。
透過命令列快速安裝 code-quality AI 技能到你的開發環境
來源:d-o-hub/rust-self-learning-memory。
| Format | cargo fmt --all -- --check | | Lint | cargo clippy --all -- -D warnings | | Audit | cargo audit | | Full | ./scripts/quality-gates.sh | | Coverage | cargo llvm-cov --html --output-dir coverage | | Docs | cargo doc --no-deps |
| Structure | Files <500 LOC, module hierarchy | find . -name ".rs" -exec wc -l {} + | | Error Handling | Custom Error, Result , no unwrap | rg "unwrap()" --glob ".rs" --glob "!/tests/" | | Async Patterns | async fn, spawnblocking, no blocking | rg "async fn\|spawnblocking" --glob ".rs" | | Testing | >90% coverage, integration tests | cargo llvm-cov |
| Documentation | Public APIs 100% documented | cargo doc --no-deps |
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill code-quality透過格式化、linting 和靜態分析保持高程式碼品質。使用程式碼品質技能和腳本進行 rustfmt、clippy 或 Cargo 稽核。 來源:d-o-hub/rust-self-learning-memory。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill code-quality 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/d-o-hub/rust-self-learning-memory