dsh-pre-push-checks
Skill by deepseek-ai
Guides an assistant to pick the smallest tests and checks for a deepseek-harness branch before a push or after gh stack sync. It avoids running the full repository suite by default. Aimed at contributors to that repository.
Install dsh-pre-push-checks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/deepseek-ai/deepseek-harness /tmp/deepseek-harness && mkdir -p ~/.claude/skills && cp -r /tmp/deepseek-harness/.agents/skills/dsh-pre-push-checks ~/.claude/skills/dsh-pre-push-checksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/deepseek-ai/deepseek-harness /tmp/deepseek-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/deepseek-harness/.agents/skills/dsh-pre-push-checks ~/.gemini/antigravity-cli/skills/dsh-pre-push-checksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install dsh-pre-push-checks in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
DSH Pre-Push Checks is an agent skill for the deepseek-harness repository. It tells the assistant to run the smallest set of tests and checks that cover an outgoing or just-published diff. This applies before a push, a force-push, marking a PR ready for review, or claiming that checks pass. It discourages running the full repository suite by default.
The skill starts by confirming the checkout and branch, then runs a change-scope command against a verified base ref. Depending on what changed, it points to owning Vitest files, focused snapshots, doc sync, build checks, or e2e targets. It also covers history-rewriting pushes with lease protection and validation after gh stack sync. It is aimed at contributors who work on deepseek-harness branches and stacked PRs. CI remains responsible for exhaustive coverage and the platform matrix.
Written from the project's SKILL.md and checked against it.
What it can do
- Inspect outgoing changeConfirms the checkout and branch, then runs change-scope against a verified base ref.
- Select relevant evidenceMaps the kind of change to the narrowest owning test, snapshot, doc sync or build check.
- Focus unit coverageLimits coverage measurement to the affected source files or packages using Vitest include filters.
- Protect history-rewriting pushesUses force-with-lease with an observed remote OID. Raw --force is never allowed.
- Post-sync validationRe-checks rewritten stack layers after gh stack sync and keeps PRs unmerged until checks pass.
- Handle failuresRequires fixing or explaining failing checks before pushing, and proving environment-specific failures.
- Push procedureVerifies the remote ref matches local HEAD and reads gh pr checks after pushing.
What you need
- pnpm
- git
- GitHub CLI (gh) for stack sync and PR checks
- Credentials for real provider e2e checks
Try asking
- Which tests should I run before pushing this deepseek-harness branch?
- Run the focused checks for my UI change before I push.
- Validate my stack after gh stack sync rewrote the branches.
Good to know
- The pre-push hook runs only the incremental repository typecheck.
- Full local rehearsal runs only on explicit request, CI failure diagnosis, or broad repository changes.
- Real provider checks need credentials, and secrets must never be printed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/dsh-pre-push-checks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to dsh-pre-push-checks
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
dsh-pre-push-checks: common questions
Does it run the full test suite before every push?
No. The skill says not to reflexively run the full suite. A full local rehearsal runs only when the user requests it, when diagnosing a CI failure, or when a change spans the repository broadly.
How does it handle force pushes?
Raw --force is never allowed. Standalone rewrites use --force-with-lease with the recorded remote OID, and gh stack push and gh stack sync supply lease protection for their managed branches.
What do the git hooks check?
Pre-commit fixes staged lint, checks staged whitespace and guards vendored-source metadata. Pre-push runs only the incremental repository typecheck.
How do I install dsh-pre-push-checks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dsh-pre-push-checks free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is dsh-pre-push-checks safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dsh-pre-push-checks?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
