Skip to main content

quality-gate

Run before every commit or push: formatting, linting, tests, dependency audits, builds, and docs.

来源信息

仓库
microsoft/webui
最近来源活动
2026年4月6日 05:09
检测到的 SKILL.md 语言
英语
星标
98
Forks
24

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
quality-gate
description
Run before every commit or push: formatting, linting, tests, dependency audits, builds, and docs.
# Quality Gate Run this before every commit. Work is not done until it passes. ## Gate command ```bash cargo xtask check ``` This runs, in order: `license-headers -> fmt -> clippy -> deny -> test -> build`. Missing Rust tools (`clippy`, `rustfmt`, `cargo-deny`, `wasm-pack`, `wasm32-unknown-unknown` target) are auto-installed on first run. ## Fast iteration When iterating locally, use targeted crate checks for faster feedback: ```bash cargo test -p microsoft-webui-handler # test one crate cargo xtask check # then full gate before commit ``` ## Docs gate If the change touches user-visible behavior, also run: ```bash cd docs && pnpm build ``` This catches broken links, VitePress syntax errors, and missing pages. See the `docs-sync` skill for which docs files to update based on what changed. ## Code quality The gate catches formatting, lint, and test failures. For deeper code quality checks (correctness, performance, concurrency, API design, architecture), apply the `code-review` skill. ## Expectations - Fix reported issues rather than suppressing them. - Do not commit with a failing gate. - Keep fixes minimal and scoped to the task.
在 GitHub 查看