[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DEM369XX08ZA2ZG2DAJZ3":3,"skill-same:01M79DEM369XX08ZA2ZG2DAJZ3":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79DEM369XX08ZA2ZG2DAJZ3","kit-ci-triage",null,"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.","Zwin-ux\u002Fkit","Zwin-ux","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F64337759?v=4","01M79DBM821SD1S27FGNME1DVF","No Image","01M79DBM8N9HE5QF0YRHPMJPAJ",0,"MIT","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fkit-ci-triage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kit-ci-triage\ndescription: 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.\n---\n\n# Kit CI triage\n\n## Where proof comes from\n| Check | Workflow \u002F job | Runs on | Proves |\n|---|---|---|---|\n| fmt, clippy `-D warnings`, `cargo test --workspace` | `rust.yml` → `quality` | ubuntu, macos, windows | every crate, the TUI snapshots, the CLI integration tests |\n| Packaging | `rust.yml` → `crates.io package` | ubuntu | `cargo package --workspace --locked`; version copies agree |\n| Cold start | `rust.yml` → `startup budget` | ubuntu, windows | `kit --version` mean under 100 ms (hyperfine) |\n| npm launcher | `rust.yml` → `npm package` (`scripts\u002Fnpm-smoke.mjs`) | 3 OSes | the packed tarballs install and `kit` runs through the shim |\n| Installers | `installers.yml` | 3 OSes | `install.sh` \u002F `install.ps1` against a local release |\n\n`rust.yml` is path-filtered: a docs-only PR runs no Rust checks. That is not a pass for code; it means\nthere was no code. Read results with `gh pr checks \u003Cn> -R Zwin-ux\u002Fkit` and\n`gh run view \u003Crun-id> -R Zwin-ux\u002Fkit --log-failed`. Use the app's PR status tools rather than polling.\nSay which rows ran and on which OS before calling anything verified.\n\n## Known traps\n- **Windows path length:** a checkout in a deep folder makes `link.exe` fail with\n  `LNK1104: cannot open file … build_script_build-….exe`. Set `CARGO_TARGET_DIR` to a short folder\n  (Git Bash: `export CARGO_TARGET_DIR=C:\u002Fkit-target`; PowerShell: `$env:CARGO_TARGET_DIR = 'C:\\kit-target'`).\n- **`NoDefaultCurrentDirectoryInExePath=1`** (set on the owner's hardened machine): `cmd \u002FC name.cmd`\n  no longer finds `name.cmd` in the current folder. Tests and checks must write `.\\name.cmd`.\n- **CRLF:** `core.autocrlf=true` checks files out with `\\r\\n`. Strip `\\r` before grepping, and assert the\n  count of any scripted replacement. Insta snapshots compare with line endings normalised.\n- **Insta:** a changed screen writes `.snap.new` and fails. Run `INSTA_UPDATE=always cargo test -p kitctl-tui`\n  (PowerShell: `$env:INSTA_UPDATE = 'always'; cargo test -p kitctl-tui`) only after reading the diff, then commit the `.snap` and read `git diff` of it line by line.\n- **Clippy on newer stable:** CI uses `dtolnay\u002Frust-toolchain@stable`, which can be newer than your\n  local toolchain. A lint that only CI reports is real; fix it, don't pin the toolchain down.\n- **Encoding:** read and write text as UTF-8 explicitly (`encoding=\"utf-8\"` in Python). `©`, `·`, `→`\n  and box-drawing characters appear in Kit's output and docs.\n\n## Failure loop\n1. Find the failing job and the first real error line, not the summary.\n2. Reproduce locally if the toolchain allows; otherwise reason from the log and push a fix to the PR branch.\n3. Add or fix the test that would have caught it.\n4. Push and read the new run on every OS before saying it is fixed.\n","# Kit CI triage\n\n## Where proof comes from\n| Check | Workflow \u002F job | Runs on | Proves |\n|---|---|---|---|\n| fmt, clippy `-D warnings`, `cargo test --workspace` | `rust.yml` → `quality` | ubuntu, macos, windows | every crate, the TUI snapshots, the CLI integration tests |\n| Packaging | `rust.yml` → `crates.io package` | ubuntu | `cargo package --workspace --locked`; version copies agree |\n| Cold start | `rust.yml` → `startup budget` | ubuntu, windows | `kit --version` mean under 100 ms (hyperfine) |\n| npm launcher | `rust.yml` → `npm package` (`scripts\u002Fnpm-smoke.mjs`) | 3 OSes | the packed tarballs install and `kit` runs through the shim |\n| Installers | `installers.yml` | 3 OSes | `install.sh` \u002F `install.ps1` against a local release |\n\n`rust.yml` is path-filtered: a docs-only PR runs no Rust checks. That is not a pass for code; it means\nthere was no code. Read results with `gh pr checks \u003Cn> -R Zwin-ux\u002Fkit` and\n`gh run view \u003Crun-id> -R Zwin-ux\u002Fkit --log-failed`. Use the app's PR status tools rather than polling.\nSay which rows ran and on which OS before calling anything verified.\n\n## Known traps\n- **Windows path length:** a checkout in a deep folder makes `link.exe` fail with\n  `LNK1104: cannot open file … build_script_build-….exe`. Set `CARGO_TARGET_DIR` to a short folder\n  (Git Bash: `export CARGO_TARGET_DIR=C:\u002Fkit-target`; PowerShell: `$env:CARGO_TARGET_DIR = 'C:\\kit-target'`).\n- **`NoDefaultCurrentDirectoryInExePath=1`** (set on the owner's hardened machine): `cmd \u002FC name.cmd`\n  no longer finds `name.cmd` in the current folder. Tests and checks must write `.\\name.cmd`.\n- **CRLF:** `core.autocrlf=true` checks files out with `\\r\\n`. Strip `\\r` before grepping, and assert the\n  count of any scripted replacement. Insta snapshots compare with line endings normalised.\n- **Insta:** a changed screen writes `.snap.new` and fails. Run `INSTA_UPDATE=always cargo test -p kitctl-tui`\n  (PowerShell: `$env:INSTA_UPDATE = 'always'; cargo test -p kitctl-tui`) only after reading the diff, then commit the `.snap` and read `git diff` of it line by line.\n- **Clippy on newer stable:** CI uses `dtolnay\u002Frust-toolchain@stable`, which can be newer than your\n  local toolchain. A lint that only CI reports is real; fix it, don't pin the toolchain down.\n- **Encoding:** read and write text as UTF-8 explicitly (`encoding=\"utf-8\"` in Python). `©`, `·`, `→`\n  and box-drawing characters appear in Kit's output and docs.\n\n## Failure loop\n1. Find the failing job and the first real error line, not the summary.\n2. Reproduce locally if the toolchain allows; otherwise reason from the log and push a fix to the PR branch.\n3. Add or fix the test that would have caught it.\n4. Push and read the new run on every OS before saying it is fixed.\n",{"name":5,"description":7},"main","247d14fbfd2c6f3266558d168266b02141477140",".claude\u002Fskills\u002Fkit-ci-triage",2,"https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@mzwin\u002Fkit","https:\u002F\u002Fgithub.com\u002FZwin-ux","i like to code","2026-11-02 01:46:54",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Zwin-ux\u002Fkit --skill kit-ci-triage",{"tool":39,"command":40},"bunx","bunx skills add Zwin-ux\u002Fkit --skill kit-ci-triage",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Zwin-ux\u002Fkit --skill kit-ci-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fkit-ci-triage\u002FSKILL.md",true,[],[48,54,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M79DG9E74YF71H97VHA4E7FJ","concepts","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002Fwiki\u002Fkit-1.0\u002Fwiki\u002Fconcepts\u002FSkill.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M79DG83S8WTMRAH47T2D0WKE","write-tests","Add focused tests for important project behavior.","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M79DG60377KCK4Y83SQWAE66","workspace-setup","Set up monorepo and multi-package workspaces for agents and humans.","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace-setup\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M79DG4N07X3KM7F89G7V4T4B","ship-checklist","Run a practical pre-ship checklist for an app release.","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002Fskills\u002Fship-checklist\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79DG2PD1PZG9ZW1YF11X0C3","project-setup","Set up a clean project baseline for agents and humans.","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002Fskills\u002Fproject-setup\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M79DG17XXG8RTZF3YQA3JT2S","pr-ready","Prepare a clear pull request summary, test plan, and risk notes.","https:\u002F\u002Fgithub.com\u002FZwin-ux\u002Fkit\u002Fblob\u002Fmain\u002Fskills\u002Fpr-ready\u002FSKILL.md",[],[]]