dsh-pre-push-checks
Skill289k starsChanged 4 months agoMITView on GitHub
Use before pushing, force-pushing, marking ready for review, or claiming checks pass on a deepseek-harness branch, and immediately after gh stack sync publishes rewritten branches, to select the smallest tests and checks that cover the outgoing or just-published diff without reflexively running the full repository suite.
6 other projects use a version of this, 5 of them edited; 2 of 5 edited versions we compared changed its rules.
How people change it
2 of 5 edited versions changed its rules.
Of the 5 edited versions we compared: 3 keep every rule, 2 made changes of their own.
Rules people drop
- When the outgoing change adds or changes a resource-owning or asynchronous test, fixture, helper, or CI execution path, use [dsh-ci-test-reliability](../dsh-ci-test-reliability/SKILL.md) first to decide whether restoration, negative-control, …dropped by 2 of 2
- When
gh pr checksreports "no checks reported" and/actions/runs?head_sha=<sha>returnstotal_count: 0, read mergeability before suspecting the push or a dropped GitHub event:dropped by 2 of 2
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- See-Sol-Lab/DeepSeekGUIedited, first seen Sep 30, 2026
- pawaca/dsh-edgetheir own version, first seen Sep 29, 2026
- xinyuquan985-coder/deepseek-harness-neonedited, first seen Sep 26, 2026
- SuperJJ007/papermachineedited, first seen Sep 12, 2026
- SparkElf/deepseek-harness-plusedited, first seen Sep 11, 2026
- SuperMate-Ai/SuperMate-Harness-Systemedited, first seen Aug 30, 2026
Who's talking about deepseek-ai/deepseek-harness
- @timkellogg.me“DeepSeek Harness v0.1 the idea is everything is a plugin — models, tools, sessions, skills, sandboxes, …”Bluesky · Aug 13, 2026 · 77 likes
- pingdotgg/t3code“Is DeepSeek Harness provider support something you'd want?”GitHub · Aug 17, 2026 · 31 reactions
- farion1231/cc-switch“可以尝试兼容Deepseek Harness吗”GitHub · Aug 13, 2026 · 21 reactions
- @midu.dev“¡DeepSeek hace de código abierto su Agent Harness! 144.000 estrellas en 4 días. Todo lo cambias a base de …”Bluesky · Aug 17, 2026 · 18 likes
- Javis603/token-monitor“希望增加DSH(DeepSeek Harness)的用量统计支持”GitHub · Aug 13, 2026 · 9 reactions
The biggest 5 of 66 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 66
Talked about on GitHub, Bluesky and Hacker News (66 times).
On GitHub · 50
- Aug 17, 2026Is DeepSeek Harness provider support something you'd want? — pingdotgg/t3code31 reactions · 16 comments
- Aug 13, 2026可以尝试兼容Deepseek Harness吗 — farion1231/cc-switch21 reactions · 25 comments
- Aug 13, 2026希望增加DSH(DeepSeek Harness)的用量统计支持 — Javis603/token-monitor9 reactions · 1 comment
- Aug 22, 2026`npm install -g @deepseek-harness-tui/dsh-tui` 在 npm 12 崩溃:`Cannot read properties of null (reading 'children')` — ccch1mneyyy/dsh-TUI7 reactions · 6 comments
- Aug 17, 2026Feature Request: Please add DeepSeek Harness as an Agent harness — block/buzz6 reactions · 1 comment
45 more on GitHub
- Aug 13, 2026package request: deepseek-harness(dsh) — numtide/llm-agents.nix4 reactions · 5 comments
- Aug 13, 2026[Feature] Add DeepSeek Harness as a first-class client integration — lidge-jun/opencodex3 reactions · 3 comments
- Oct 22, 2026[Engine] Engine crashes unexpectedly (exit code 1 / 3221226505) during DeepSeek Harness session on Windows 11 — Niko1221/Strata2 reactions · 3 comments
- Oct 14, 2026免费模型不可用,附D老师给的解决方法,自测恢复,望修复 — Ebony-Vinyl/dsh-our-free-model2 reactions · 8 comments
- Sep 29, 2026Make Codacy reviews available to every MDE coding agent — amoai-tech/mdeai2 reactions · 7 comments
- Sep 6, 2026[Bug] DeepSeek Harness "startup timed out" with dsh 0.1.2-rc.1 (readiness check incompatible) — CherryHQ/cherry-studio2 reactions · 2 comments
- Aug 31, 2026合作邀请:Blue TUI 生态适配(适配工作我们来做) — dream12347/dsh-session-manager2 reactions · 5 comments
- Aug 21, 2026[Bug]: DeepSeek Harness (dsh web) auto-opens system browser — Cherry should pass --no-open — CherryHQ/cherry-studio2 reactions · 1 comment
- Aug 17, 2026dsh: Needs `/bin/bash` to be present — numtide/llm-agents.nix2 reactions · 1 comment
- Nov 25, 2026[Integrations] DeepSeek Harness (dsh) tracing plugin — traceroot-ai/traceroot1 reaction · 3 comments
- Nov 25, 2026feat: 支持 DSH 0.2.3 的 MCP 工具按需加载(toolLoading)与 catalogDescriptionMaxLength — Fishquito7/dsh-skill-mcp-panel1 reaction
- Nov 18, 2026chore: validate novel workspace on DSH 0.2.2-rc.4 — Stahl-G/dsh-novel-workspace1 reaction · 1 comment
- Nov 12, 2026fix: restore agent status with Harness session catalog API — wxcvm/dsh-purge1 reaction · 1 comment
- Nov 10, 2026建议:`label` 按 SlotLabel 契约返回字符串 —— 当前返回 React 元素会让 DSH 0.2.2-rc.1 整个会话头部渲染崩溃 — cirelir/dsh-change-review1 reaction
- Nov 6, 2026Sign the DeepSeek Harness and Kimi Code through their own accounts — storytold/craft-anything1 reaction · 2 comments
- Nov 4, 2026Check plugin against DSH 0.2.2-rc.1 — JonyFang/dsh-plugin-custom-profile1 reaction · 1 comment
- Oct 28, 2026chore(deps): 升级 dsh peers 到 0.2.1-rc.4 / upgrade dsh peers to 0.2.1-rc.4 — btspoony/mstar-harness1 reaction · 2 comments
- Oct 13, 2026docs(dsh): select synchronization by host capability — mindfold-ai/marketplace1 reaction · 2 comments
- Oct 11, 2026Add umialpha/dsh-session-groups (alpha source preview) — imsai-sh/awesome-deepseek-harness-plugins1 reaction · 2 comments
- Oct 7, 2026replan(解决)的硬 cancel 触发 DSH 0.2.x turn/end reason:null,导致对话区永久空白——建议默认软 steer — PC2005-cloud/dsh-pet1 reaction · 1 comment
- Sep 30, 2026[Request]: DeepSeek Harness Desktop Preview — ScoopInstaller/Versions1 reaction · 2 comments
- Sep 29, 2026chore(deps): 升级 dsh peers 到 0.2.0-rc.2 / upgrade dsh peers to 0.2.0-rc.2 — btspoony/mstar-harness1 reaction · 1 comment
- Sep 24, 2026feat(adapters): add a DeepSeek Harness adapter with a full hook bridge — affaan-m/ECC1 reaction · 46 comments
- Sep 16, 2026fix(llm): 将会话头限定到 OpenCode 路由,避免发给无关 provider — dsh-tauri/deepseek-harness-desktop1 reaction · 1 comment
- Sep 14, 2026支持官方 v3 会话日志计量 — le-soleil-se-couche/dsh-token-cost1 reaction · 1 comment
- Sep 11, 2026chore(deps): 升级 dsh peers 到 0.1.5-rc.2 / upgrade dsh peers to 0.1.5-rc.2 — btspoony/mstar-harness1 reaction · 1 comment
- Sep 10, 2026Some cases that RTL is not working as expected + Visual Examples — kfirsch/dsh-hebrew-rtl1 reaction · 1 comment
- Sep 10, 2026chore(deps): 升级 dsh peers 到 0.1.5-rc.1 / upgrade dsh peers to 0.1.5-rc.1 — btspoony/mstar-harness1 reaction · 1 comment
- Sep 9, 2026chore(deps-dev): bump the deepseek-harness group across 1 directory with 2 updates — blaxel-ai/deepseek-harness-blaxel-sandbox1 reaction · 1 comment
- Sep 4, 2026chore(dsh): 升级 dsh host 线到 0.1.3-alpha.1 / upgrade dsh host line to 0.1.3-alpha.1 — btspoony/mstar-harness1 reaction · 2 comments
- Sep 3, 2026chore(deps): bump the deepseek-harness group with 4 updates — blaxel-ai/deepseek-harness-blaxel-sandbox1 reaction · 1 comment
- Sep 3, 2026chore(dsh): 升级 dsh host 线到 0.1.2-rc.1 / upgrade dsh host line to 0.1.2-rc.1 — btspoony/mstar-harness1 reaction · 1 comment
- Sep 2, 2026chore(dsh): 升级 dsh host 线到 0.1.2-alpha.5 / upgrade dsh host line to 0.1.2-alpha.5 — btspoony/mstar-harness1 reaction · 1 comment
- Sep 2, 2026chore(dsh): 升级 dsh host 线到 0.1.2-alpha.4 / upgrade dsh host line to 0.1.2-alpha.4 — btspoony/mstar-harness1 reaction · 1 comment
- Sep 1, 2026chore(dsh): 升级 dsh host 线到 0.1.2-alpha.3 / upgrade dsh host line to 0.1.2-alpha.3 — btspoony/mstar-harness1 reaction · 1 comment
- Aug 30, 2026chore(dsh): 升级 dsh host 线到 0.1.2-alpha.2 / upgrade dsh host line to 0.1.2-alpha.2 — btspoony/mstar-harness1 reaction · 1 comment
- Aug 29, 2026合作邀请:Blue TUI 生态适配(适配工作我们来做) — zh667/TokenLedger1 reaction · 5 comments
- Aug 27, 2026chore(dsh): 升级 dsh host 线到 0.1.2-alpha.1 / upgrade dsh host line to 0.1.2-alpha.1 — btspoony/mstar-harness1 reaction · 1 comment
- Aug 27, 2026🌱 Show official DeepSeek Harness logo — sesori-ai/sesori_apps_monorepo1 reaction · 2 comments
- Aug 26, 2026Feature Request: Add support for DeepSeek Harness — sodiumsun/agenttrail1 reaction · 1 comment
- Aug 22, 2026[Compatibility] DSH Desktop built-in Market cannot load this catalog under fake-IP DNS proxies (client-side blocked-address) — imsai-sh/dsh-1024store1 reaction
- Aug 21, 2026chore(dsh): upgrade dsh host line to 0.1.1-rc.2 — btspoony/mstar-harness1 reaction · 1 comment
- Aug 19, 2026docs(blog): Cordisの時空間合成可能性を解説 — penpenguin/portfolio1 reaction
- Aug 17, 2026MIM-164 提供可复用的代码熵回收 Skill — gaixianggeng/codex-skills1 reaction
- Aug 14, 2026【功能请求】 支持 dsh(deepseek-harness) — crafter-station/petdex1 reaction · 2 comments
On Bluesky · 13
- Aug 13, 2026DeepSeek Harness v0.1 the idea is everything is a plugin — models, tools, sessions, skills, sandboxes, loops, … github.com/deepseek-ai/... — @timkellogg.me77 likes and reposts · 7 replies
- Aug 17, 2026¡DeepSeek hace de código abierto su Agent Harness! 144.000 estrellas en 4 días. Todo lo cambias a base de plugins: El modelo, las tools, el… — @midu.dev18 likes and reposts · 1 reply
- Aug 13, 2026github.com/deepseek-ai/... — @sungkim.bsky.social5 likes and reposts
- Aug 29, 2026github.com/deepseek-ai/... I haven't used it myself but idk I'd consider this a "first party harness" I guess. — @itisamystery.com4 likes and reposts · 2 replies
- Aug 19, 2026DeepSeek Harness github.com/deepseek-ai/... A Programming Paradigm for Spatiotemporal Composability github.com/cordiverse/p... Interesting… — @inamiy.bsky.social3 likes and reposts
8 more on Bluesky
- Aug 14, 2026maybe this? github.com/deepseek-ai/... — @bisks.net3 likes and reposts · 2 replies
- Nov 14, 2026DeepSeek open-sourced an agent harness where everything is a plugin, and it launches with one npx command. 🔗… — @prosperflowio.bsky.social2 likes and reposts
- Sep 13, 2026GitHub - deepseek-ai/deepseek-harness: DeepSeek Harness: Everything is a Plugin. https://github.com/deepseek-ai/deepseek-harness — @tech-trending.bsky.social1 likes and repost
- Aug 23, 2026github.com/deepseek-ai/... it's real check it out, they're linking the paper — @daniel-j-h.bsky.social1 likes and repost
- Aug 13, 2026DeepSeek Harness https://github.com/deepseek-ai/deepseek-harness — @hnbot.gsuscs.xyz1 likes and repost
- Aug 13, 2026github.com/deepseek-ai/... 5分钟前还是 404 的,现在打开已经 700 多星了 抢票呢你们? — @icecodenew.bsky.social1 likes and repost
- Aug 14, 20265. Writer Launches New GLM-5.2 Based Model for Lower Token Costs LINK 6. DeepSeek Releases Open-Source Agent Harness LINK — @hackobar.bsky.social0 likes and reposts · 1 reply
- Aug 14, 2026DeepSeek acaba de soltar su propio Claude Code: DeepSeek Harness, open source. 82K⭐ en GitHub el primer día. Repo aquí — @lluis154.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Aug 21, 2026DeepSeek harness: what doors does config over code open?3 points · 1 comment
- Nov 14, 2026Everything is a plugin (to the model context)2 points
- Aug 18, 2026DeepSeek Harness1 point
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- See-Sol-Lab/DeepSeekGUI★ 25699% same
- SuperJJ007/papermachine★ 6698% same
- xinyuquan985-coder/deepseek-harness-neon★ 1897% same
- SparkElf/deepseek-harness-plus★ 198% same
- SuperMate-Ai/SuperMate-Harness-System★ 197% same
Wrote their own version · 1
- pawaca/dsh-edge★ 17same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/notes/AGENTS.mdAGENTS.md
- .agents/notes/archived/AGENTS.mdAGENTS.md
- .agents/notes/implemented/AGENTS.mdAGENTS.md
- apps/cli/tests/profiles/AGENTS.mdAGENTS.md
- benchmarks/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- native/system/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- packages/client/AGENTS.mdAGENTS.md
- packages/experimental/AGENTS.mdAGENTS.md
- packages/schedule/AGENTS.mdAGENTS.md
- packages/web/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- snapshots/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-budget-chains/workspace/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-budget-chains/workspace/.dsh/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-budget/workspace/.agents/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-budget/workspace/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-budget/workspace/.dsh/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-group-failure/workspace/.agents/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions-group-failure/workspace/.dsh/AGENTS.mdAGENTS.md
- snapshots/session/agent-instructions/workspace/.agents/AGENTS.mdAGENTS.md
- snapshots/session/ptc-workspace-context-scoped/workspace/AGENTS.mdAGENTS.md
- snapshots/session/ptc-workspace-context-scoped/workspace/nested/AGENTS.mdAGENTS.md
- snapshots/session/ptc-workspace-context/workspace/AGENTS.mdAGENTS.md
- snapshots/session/ptc-workspace-context/workspace/nested/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- agent-experienceSkill
- cordis-styling-nitpickingSkill
- dsh-archive-agent-notesSkill
- dsh-ci-test-reliabilitySkill
- dsh-client-ui-uxSkill
- dsh-code-reviewSkill
- dsh-create-upgrade-guideSkill
- dsh-cua-macos-signingSkill
- dsh-doc-writingSkill
- dsh-error-handlingSkill
- dsh-find-simplificationsSkill
- dsh-merging-stacked-prsSkill
- dsh-official-plugin-artworkSkill
- dsh-pr-descriptionSkill
- dsh-prose-standardSkill
- dsh-responsive-uiSkill
- dsh-session-projectionSkill
- dsh-speed-up-perfSkill
- dsh-translate-docsSkill
- dsh-trim-cot-leakageSkill
- record-browser-gifSkill
- dingtalkSkill
- feishuSkill
- tencent-meetingSkill
- wecomSkill
- preview-tourSkill
- dsh-docSkill
- diagnose-windows-sandbox-aclSkill
- officeSkill
- dingtalk-sharedSkill
- editing-cordis-compositionsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 14 are common, 1 is distinctive, and 4 are very specific to this project.
14
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Common: line 19
Verify the live PR base or stack parent, fetch that ref, and inspect the complete scope against it.
- Distinctive: line 31
When the outgoing change adds or changes a resource-owning or asynchronous test, fixture, helper, or CI execution path, use …
- Common: line 33
Package or script behavior: run the owning Vitest file or focused test name.
- Common: line 37
Model-, editor-, CLI-, or terminal-visible output: run the focused keyless snapshot or real runnable-example scenario that owns the output.
- Very specific: line 43
Real provider or agent behavior: run the relevant pnpm run test:e2e target when credentials are available.
- Common: line 45
Do not manually repeat a passing check merely because commit or push follows.
- Very specific: line 65
Use an exact source file when the behavior is truly confined to one module.
- Common: line 67
When the owning tests are unclear, use Vitest's dependency graph to discover a candidate set, then inspect the selected tests before …
- Common: line 86
After any rewritten push, fetch the live heads again and re-audit unresolved review threads, approvals, mergeability, and checks.
- Common: line 94
Run the relevant evidence selected by this skill for each affected layer.
- Common: line 95
Keep every PR unmerged and report validation as pending until all selected checks pass.
- Common: line 97
If post-sync evidence fails, leave the lease-protected published heads in place, repair the failure, validate the repair, and publish the …
- Common: line 101
If a relevant check fails before an ordinary push, stop and fix or explain the blocker.
- Common: line 103
If a failure looks environment-specific, prove it:
- Common: line 107
Prefer fixing cross-platform nondeterminism when the check is required.
- Common: line 114
Run the selected relevant checks once.
- Common: line 115
Commit normally and inspect any files changed by the pre-commit fixer before continuing.
- Very specific: line 117
Verify the remote ref matches local HEAD.
- Very specific: line 131
When gh pr checks reports "no checks reported" and /actions/runs?head_sha=<sha> returns total_count: 0, read mergeability before suspecting …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DSH Pre-Push Checks
Use this skill to run relevant local evidence once before a deepseek-harness push. The sole ordering exception is gh stack sync, which may publish a cascading rebase before the rewritten layers can be validated; validate them immediately afterward and do not merge until the evidence passes. Git hooks are intentionally narrow: pre-commit fixes staged lint, checks staged whitespace, and guards vendored-source metadata; pre-push runs only the incremental repository typecheck. CI owns exhaustive coverage and the platform matrix.
Inspect the outgoing change
- Confirm the checkout and branch.
git status --short --branch
git rev-parse --show-toplevel- Verify the live PR base or stack parent, fetch that ref, and inspect the complete scope against it.
pnpm --silent run change-scope --base <verified-base-ref>The command never guesses or fetches a base. Supply the ref verified from current remote or stack state; use --head <ref> when inspecting a commit other than HEAD. Its versioned JSON records committed paths relative to the resolved merge base, while staged, unstaged, and untracked paths describe the current worktree. After merging a changed base, rerun the report, reassess which behavior the combined scope can affect, and rerun only checks invalidated by the merge.
Select relevant evidence
There is no universal local baseline beyond the hooks. Every behavior change needs the narrowest available test or purpose-built check that would fail for its regression; add broader checks only for surfaces the diff actually reaches.
When the outgoing change adds or changes a resource-owning or asynchronous test, fixture, helper, or CI execution path, use dsh-ci-test-reliability first to decide whether restoration, negative-control, quiescent-teardown, or concurrent-process evidence applies. This skill still selects the commands and avoids repeating evidence that already passed.
- Package or script behavior: run the owning Vitest file or focused test name. Add adjacent package tests when a shared contract changes; leave repository-wide coverage to CI unless the change is genuinely cross-cutting or the user requests it.
- Remote mock typing: unbuilt
anyis an explicit local fallback, not strict evidence. Runpnpm run typecheckbefore handing off Remote/mock changes; rebuild missing, stale, or partial generated declarations before diagnosing remaining errors. Keep the exception in the test proxy, never in production Remote types, ambient flags, or copied signatures. - Documentation, Agent Notes, catalogs, or doc-linked comments: run
pnpm run doc-sync; run full lint when the documentation workflow requires it. - User-visible UI: use the UI change workflow and its minimum checks to verify required inspection and new cumulative effects. Disclose missing checks; optional paperwork is not a substitute for inspecting the result. Reuse valid evidence; ordinary changes do not need a separate full-audit report at push time. Keep existing test, GUI GIF and designer/product approval requirements. Tests alone do not establish visual acceptance.
- Model-, editor-, CLI-, or terminal-visible output: run the focused keyless snapshot or real runnable-example scenario that owns the output.
- Expected-output placement: a test whose selected recorded Session generation is replay input and expected persisted output belongs under top-level
snapshots/, withsnapshot.ymlnaming its shippeddshprofile and composition/header pin. Canonical parent files aresession[.vN].jsonl, children aresession.<ordinal>[.vN].jsonl, and the harness selects the highest generation per role. ARIA, geometry, generator, CLI, and unit expectations without that Session round trip stay beside their owning test undertests/expected/; do not place them insnapshots/or give them a*.snapshot.tsowner. Use the owningtest:expected,test:web, ortestlane. - Profile and configuration placement: cross-package behavior of a shipped
dshprofile belongs underapps/cli/tests/profiles/; a package-specific Loader composition belongs under that package'stests/fixtures/. User-facing optional overlays live underapps/cli/config/examples/and pair with a guide underdocs/user/. - SDK and Desktop standard model context: a change to the model context of the shipped
sdkprofile or the Desktopstandardagent preset (tool schemas, prompt sections, runtime context, skill catalog, or agent rows inpackages/bundle/{base,sdk-app,web-app}) applies to both sides unless the difference is intended. Afterbuild:artifacts, runCI=true pnpm run test:expected apps/cli/tests/profiles/sdk/; record an intended difference with its reason inparity-exceptions.ts, and remove an exception once its difference is gone. - Package manifests, public exports, build configuration, worker/bin entries, or built runtime paths: run
pnpm run build, the relevant hygiene checks, and the owning built-artifact smoke. - Repository test and script types:
pnpm run build:artifactschecks package projects only. Before claiming completion of TypeScript changes, runpnpm run build:checkafter the latestbuild:artifacts, or runpnpm run build;build:checkreads the existingbuild:artifactsoutput and never rebuilds it. - Real provider or agent behavior: run the relevant
pnpm run test:e2etarget when credentials are available; never print secrets.
Do not manually repeat a passing check merely because commit or push follows. In particular, do not run typecheck immediately before pushing solely to duplicate the pre-push hook.
Pass Vitest file and name filters directly after the script name with pnpm run; do not insert a standalone --, which reaches Vitest and can disable -t filtering. For example, this command runs one headless snapshot scenario:
pnpm run test:snapshot snapshots/session/headless.snapshot.ts -t 'cordis-inspect-jsdoc'This applies to these pnpm scripts; npm and other launchers retain their own argument-forwarding syntax. Check the reported selected test count before treating a filtered run as focused evidence.
Focus unit coverage on the affected source
Test selection and coverage selection are separate. A Vitest file filter chooses which tests run, while the repository configuration otherwise measures every packages/*/*/src/**/*.ts file. When unit coverage is relevant, name both the owning tests and the source files or package whose coverage those tests must prove:
pnpm exec vitest run packages/<group>/<package>/tests/<behavior>.spec.ts \
--coverage \
--coverage.include='packages/<group>/<package>/src/**/*.ts'Use an exact source file when the behavior is truly confined to one module. Repeat --coverage.include for multiple affected files or packages, and pass every owning test file needed to exercise that scope. The configured per-file 100% thresholds still apply inside the selected source scope.
When the owning tests are unclear, use Vitest's dependency graph to discover a candidate set, then inspect the selected tests before treating the run as evidence:
pnpm exec vitest related packages/<group>/<package>/src/<changed>.ts \
--run \
--coverage \
--coverage.include='packages/<group>/<package>/src/<changed>.ts'vitest related cannot discover behavior reached only through configuration, dynamic loading, subprocesses, workers, built artifacts, or external providers; select those owning tests explicitly. Do not use --passWithNoTests, lower coverage thresholds, or narrow --coverage.include merely to hide an uncovered affected file. If a selected package scope fails because one focused test does not cover it, add its other relevant owning tests or narrow the source scope only when the excluded modules cannot be affected by the change.
Full local rehearsal
Run the complete local approximation only when the user explicitly requests it, while diagnosing a CI failure, or when the change spans the repository so broadly that no narrower set is credible. Use the current workflow and package scripts as the inventory; do not recreate the removed check:pre-push aggregate.
Protect history-rewriting pushes
Rebase is the default refresh for standalone and stacked PR branches, including after review; the root AGENTS.md owns that choice and its rerere setting. Before a standalone history rewrite, fetch the current remote branch and record its exact OID; publish with --force-with-lease=<branch>:<observed-oid> so a concurrent update aborts the push. gh stack push and gh stack sync supply lease protection for their managed branches. Raw --force is never allowed.
After any rewritten push, fetch the live heads again and re-audit unresolved review threads, approvals, mergeability, and checks. Commit hashes and inline-comment anchors from before the rewrite are not current evidence.
Post-sync validation
gh stack sync fetches, cascade-rebases, and pushes as one operation, so it cannot place local validation between rewrite and publication. Before running it, require a clean worktree and record the official stack order and exact remote heads. After it returns:
- Re-query every branch head and the official GitHub stack order.
- Inspect the changed scope of every rewritten layer against its live PR base.
- Run the relevant evidence selected by this skill for each affected layer.
- Keep every PR unmerged and report validation as pending until all selected checks pass.
If post-sync evidence fails, leave the lease-protected published heads in place, repair the failure, validate the repair, and publish the correction. Do not claim the sync made the stack ready merely because the command succeeded.
Handle failures
If a relevant check fails before an ordinary push, stop and fix or explain the blocker. Do not push and hope CI differs. For the post-sync exception, block the merge and follow the repair procedure above.
If a failure looks environment-specific, prove it:
- Record the exact command, failing test, and platform-specific mismatch.
- Confirm the relevant non-platform evidence.
- Prefer fixing cross-platform nondeterminism when the check is required.
- Bypass a local hook only when the user explicitly asks or agrees, and report exactly what failed and why CI is expected to differ.
Push procedure
For ordinary and standalone rebase pushes:
- Run the selected relevant checks once.
- Commit normally and inspect any files changed by the pre-commit fixer before continuing.
- Push normally, or use the exact lease for an authorized rewritten branch, so the incremental typecheck hook runs.
- Verify the remote ref matches local
HEAD.
git rev-parse HEAD origin/$(git branch --show-current)For GitHub PRs, inspect remote CI after the push:
gh pr checksReport pending checks as pending. Inspect failures before attributing them to the branch or the environment.
When gh pr checks reports "no checks reported" and /actions/runs?head_sha=<sha> returns total_count: 0, read mergeability before suspecting the push or a dropped GitHub event:
gh pr view <number> --json mergeable,mergeStateStatusGitHub creates no pull_request workflow runs while a PR is CONFLICTING/DIRTY, so the absent signal is the conflict, not infrastructure. Resolving the conflict is the only fix; empty commits, --allow-empty pushes, draft/ready toggles, and revert-and-restore bounces all leave total_count at zero and add junk history. Confirm the conflicting paths with git merge-tree --write-tree HEAD origin/<base> when the branch cannot be merged locally yet.
For gh stack sync, use the post-sync validation sequence instead of pretending the ordinary order was possible.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

