kit-ci-triage
Get build and test proof for Kit and diagnose CI failures, especially when working on Windows. Use before claiming a Kit change works, when a check fails on a PR, or when a local cargo build behaves oddly on Windows.
- License 许可
- MIT
- 所属仓库
- Zwin-ux/kit
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- kit-ci-triage
- description
- Get build and test proof for Kit and diagnose CI failures, especially when working on Windows. Use before claiming a Kit change works, when a check fails on a PR, or when a local cargo build behaves oddly on Windows.
03 SKILL.md 正文
Kit CI triage
Where proof comes from
| Check | Workflow / job | Runs on | Proves |
|---|---|---|---|
fmt, clippy -D warnings, cargo test --workspace |
rust.yml → quality |
ubuntu, macos, windows | every crate, the TUI snapshots, the CLI integration tests |
| Packaging | rust.yml → crates.io package |
ubuntu | cargo package --workspace --locked; version copies agree |
| Cold start | rust.yml → startup budget |
ubuntu, windows | kit --version mean under 100 ms (hyperfine) |
| npm launcher | rust.yml → npm package (scripts/npm-smoke.mjs) |
3 OSes | the packed tarballs install and kit runs through the shim |
| Installers | installers.yml |
3 OSes | install.sh / install.ps1 against a local release |
rust.yml is path-filtered: a docs-only PR runs no Rust checks. That is not a pass for code; it means
there was no code. Read results with gh pr checks <n> -R Zwin-ux/kit and
gh run view <run-id> -R Zwin-ux/kit --log-failed. Use the app's PR status tools rather than polling.
Say which rows ran and on which OS before calling anything verified.
Known traps
- Windows path length: a checkout in a deep folder makes
link.exefail withLNK1104: cannot open file … build_script_build-….exe. SetCARGO_TARGET_DIRto a short folder (Git Bash:export CARGO_TARGET_DIR=C:/kit-target; PowerShell:$env:CARGO_TARGET_DIR = 'C:\kit-target'). NoDefaultCurrentDirectoryInExePath=1(set on the owner's hardened machine):cmd /C name.cmdno longer findsname.cmdin the current folder. Tests and checks must write.\name.cmd.- CRLF:
core.autocrlf=truechecks files out with\r\n. Strip\rbefore grepping, and assert the count of any scripted replacement. Insta snapshots compare with line endings normalised. - Insta: a changed screen writes
.snap.newand fails. RunINSTA_UPDATE=always cargo test -p kitctl-tui(PowerShell:$env:INSTA_UPDATE = 'always'; cargo test -p kitctl-tui) only after reading the diff, then commit the.snapand readgit diffof it line by line. - Clippy on newer stable: CI uses
dtolnay/rust-toolchain@stable, which can be newer than your local toolchain. A lint that only CI reports is real; fix it, don't pin the toolchain down. - Encoding: read and write text as UTF-8 explicitly (
encoding="utf-8"in Python).©,·,→and box-drawing characters appear in Kit's output and docs.
Failure loop
- Find the failing job and the first real error line, not the summary.
- Reproduce locally if the toolchain allows; otherwise reason from the log and push a fix to the PR branch.
- Add or fix the test that would have caught it.
- Push and read the new run on every OS before saying it is fixed.
04 同仓库更多 Skills
concepts
暂无简介
write-tests
Add focused tests for important project behavior.
workspace-setup
Set up monorepo and multi-package workspaces for agents and humans.
ship-checklist
Run a practical pre-ship checklist for an app release.
project-setup
Set up a clean project baseline for agents and humans.
pr-ready
Prepare a clear pull request summary, test plan, and risk notes.