qianyumeng0228/shizukux/pre-push-guard
Claude Code and agent skill by qianyumeng0228/shizukux
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
ShizukuX codebase integrity checks. Use before pushing or committing to ensure no common build-breaking issues (CMake versions, missing imports, Java/Kotlin interop) exist.
Install
npx vskill@latest install qianyumeng0228/shizukux/pre-push-guardSKILL.md
Pre-Push Guard
This skill automates the verification of common issues that have caused GitHub Action build failures in the ShizukuX project.
Workflow
- Execute the validation script: Run the bundled bash script to perform all automated checks.
- Review results: Analyze any FAIL or WARN outputs.
- Apply fixes: Correct any identified issues before pushing.
Automated Checks
The scripts/pre_push_check.sh script performs the following:
- CMake Version: Verifies
cmake_minimum_requiredis set to3.22.1(runner standard). - Java/Kotlin Interop: Ensures Java files access Kotlin objects via
.INSTANCE(e.g.,BuildUtils.INSTANCE). - Resource Integrity: Scans
strings.xmlfor duplicate attribute names. - Kotlin Imports: Detects missing
import af.shizuku.manager.RwhenRis used. - Ambiguous Imports: Finds duplicate
android.os.Bundleimports. - Coroutine Contexts: Verifies that
launchandDispatchershave their requiredkotlinx.coroutinesimports, and thatlifecycleScopehas itsandroidx.lifecycleimport. - Syntax Integrity: Detects Kotlin files where
importstatements are accidentally placed below the class definition. - Submodule Sync: Ensures the local
apisubmodule commit actually exists on the remote before allowing a push. - AAPT Errors: Prevents
Android resource linking failedby scanning for hardcoded package names (e.g.,xyz.shizuku.extra.api:) in XML. - Theme References: Warns if
colorPrimaryis used directly in Kotlin without theR.attr.prefix. - Diagnostic Quality: Flags remaining `` calls.
Usage
Common Outliers to Watch For
- Submodule Desync: Always check
git statusfor "modified content" in theapisubmodule. - Dependency Leakage: Ensure new library features used in
serverare also declared inserver/build.gradle. - Layout Shadowing: In
AppBarActivitysubclasses, ensure localbindingvariables don't shadow parent fields if parent access is needed.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpre-push-guard/SKILL.md
Popularity
- Repository stars
- 84
- Repository forks
- 2
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/qianyumeng0228/shizukux/pre-push-guard)