Git PR Workflow
andymai/brepjs
This skill should be used when committing, pushing, branching, or merging in the brepjs repository — when a task involves "pre-commit hook failed" (which tier ran, how to bypass), "commit rejected…
Blocking checklist that runs formatting, lint and test commands for changed Go and frontend files before any git add, commit or pull request.
$ npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZeroDeng01/sublinkPro pre-commit-check --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pre-commit-check .claude/skills/pre-commit-check && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pre-commit-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-check into .claude/skills/pre-commit-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pre-commit-check", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-checkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZeroDeng01/sublinkPro pre-commit-check --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/pre-commit-check .agents/skills/pre-commit-check && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pre-commit-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-check into .agents/skills/pre-commit-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pre-commit-check", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZeroDeng01/sublinkPro pre-commit-check --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/pre-commit-check .cursor/skills/pre-commit-check && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pre-commit-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-check into .cursor/skills/pre-commit-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pre-commit-check", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ZeroDeng01/sublinkPro.git --path .agents/skills/pre-commit-check--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZeroDeng01/sublinkPro pre-commit-check --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/pre-commit-check .gemini/skills/pre-commit-check && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pre-commit-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-check into .gemini/skills/pre-commit-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pre-commit-check", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ZeroDeng01/sublinkPro pre-commit-checkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/pre-commit-check .github/skills/pre-commit-check && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pre-commit-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-check into .github/skills/pre-commit-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pre-commit-check", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZeroDeng01/sublinkPro pre-commit-check --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/pre-commit-check .opencode/skills/pre-commit-check && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pre-commit-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/pre-commit-check into .opencode/skills/pre-commit-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pre-commit-check", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pre-commit-checkBlocking checklist that runs formatting, lint and test commands for changed Go and frontend files before any git add, commit or pull request.
This skill is written as a mandatory gate rather than a suggestion. The agent first lists changed files with `git status` and `git diff`, then sorts them into backend Go files, frontend files under `webs`, documentation, configuration or a mix. For Go changes it runs `gofmt` (reformatting and re-verifying if the output is not empty), `golangci-lint run` and the full `go test` suite, each of which must succeed before moving on.
Frontend changes get `yarn run lint` inside `webs`, with `lint:fix` and prettier as first-line repairs; the excerpt is cut off after that. The rules say to fix every failure, note what was validated in the commit message, stage only after validation passes, and present the result to you for final verification instead of committing automatically. It insists on running even if you say to skip checks. The commands are specific to this project's Go and yarn setup.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 11479da. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gityarngoghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, yarn and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Pre-Commit Check Gate loads about 2.9k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 1,099 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
- [ ] No `.env` files stagedAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ZeroDeng01/sublinkPro at commit 11479da, republished under its MIT licence (© ZeroDeng01). 1,099 words, ~2,907 tokens.
.claude/skills/pre-commit-check/SKILL.md (or your agent's skills folder).🛑 MANDATORY VALIDATION EXECUTOR 🛑
This skill is NOT a suggestion or checklist. It is a MANDATORY EXECUTION REQUIREMENT.
git add, git commit, or PR creationMANDATORY invocation before:
git add commandgit commit commandgh pr create or PR update commandThis skill is BLOCKING - you cannot proceed to commit without invoking it and ensuring all checks pass.
When this skill is invoked, you MUST follow this exact sequence:
git status --short
git diff --name-only
git diff --cached --name-onlyCategorize changes:
gofmt -l $(find . -name "*.go" -not -path "./vendor/*" -not -path "./webs/*" -not -path "./.git/*")If output is not empty:
gofmt -w $(find . -name "*.go" -not -path "./vendor/*" -not -path "./webs/*" -not -path "./.git/*")Verify:
gofmt -l $(find . -name "*.go" -not -path "./vendor/*" -not -path "./webs/*" -not -path "./.git/*")BLOCKING: Must return empty output (all files formatted).
golangci-lint runBLOCKING: Must exit with status 0.
If fails: Read the errors, fix them, and re-run. Do NOT proceed until clean.
go test ./...BLOCKING: Must exit with status 0 (all tests pass).
If fails: Read the test output, fix the failing tests or code, and re-run. Do NOT proceed until green.
cd webs && yarn run lintBLOCKING: Must exit with status 0.
If fails: Try auto-fix first:
cd webs && yarn run lint:fix
cd webs && yarn run prettierThen re-run yarn run lint. Do NOT proceed until clean.
Run build if changes affect:
src/routes/*)src/assets/*, public/*)SUBLINK_WEB_BASE_PATH)vite.config.js, package.json)src/views/*, src/layout/*)cd webs && yarn run buildBLOCKING: Must complete successfully.
If fails: Read the build error, fix it, and re-run. Do NOT proceed until build succeeds.
Trigger condition: Changes affect both backend AND frontend, OR code AND documentation.
Verification checklist:
webs/src/api/*)If complex cross-layer change: Invoke .agents/skills/cross-layer-sync/SKILL.md for detailed verification.
Trigger condition: Changes affect user-visible behavior, APIs, configuration, or deployment.
Verification checklist:
README.md + README.zh-CN.md updatedskill-sublinkpro/reference/api.md updateddocs/configuration.md + .zh-CN.md updateddocs/installation.md + .zh-CN.md + skill-sublinkpro/reference/deploy.md updatedIf complex doc changes: Invoke .agents/skills/doc-sync-check/SKILL.md for detailed verification.
Trigger condition: Changes affect business logic, APIs, permissions, migrations, scheduled tasks, or protocol parsing.
Verification checklist:
If tests missing: Add them now. Do NOT proceed without tests for key logic changes.
git status
git diff --cached --stat
git diff --cached --name-onlyVerification checklist:
.env files stageddb/ directory stagedlogs/ directory stagedcache/ directory stagedout/ directory staged*_SUMMARY.md files (e.g., PRE_COMMIT_ENFORCEMENT_SUMMARY.md)*_REPORT.md filesQUICK_REFERENCE.md files in skill directories.claude/projects/, .claude/sessions/, .claude/plans/ filesIf unintended files staged:
git reset HEAD <file> # Unstage unintended filesAI agent temporary files should NEVER be committed:
.gitignore if they keep appearingPrepare a semantic commit message following this format:
<type>(<scope>): <subject>
<body>
<footer>Type: feat, fix, docs, refactor, test, chore, style, perf
Scope: Component area (e.g., airports, auth, theme, i18n)
Subject: ≤72 characters, imperative mood, no period
Body: What changed, why it changed, how it was validated
Footer: Issue references (Closes #123, Fixes #456)
After all validations pass, report results in this format:
## ✅ Pre-Commit Validation Complete
### Backend Validation
- ✅ Go format: All files formatted
- ✅ golangci-lint: 0 issues
- ✅ Go tests: All passed
### Frontend Validation
- ✅ ESLint: No errors
- ✅ Build: Successful
### Cross-Layer Sync
- ✅ Backend API changes synchronized with frontend
- ✅ skill-sublinkpro/reference/api.md updated
### Documentation Sync
- ✅ docs/configuration.md + .zh-CN.md updated
- ✅ Links verified
### Test Coverage
- ✅ Tests added for new business logic
- ✅ All tests passing
### Git Staging
- ✅ Only intended files staged
- ✅ No sensitive files included
---
**Ready to commit.** Suggested commit message:
<prepared commit message>
**Next steps:**
1. Review staged changes: `git diff --cached`
2. Perform manual testing if needed
3. Commit when satisfied: `git commit -m "<message>"`If ANY validation fails:
Example failure response:
## ❌ Pre-Commit Validation Failed
### Backend Validation
- ❌ golangci-lint: 3 errors found
- api/share.go:45: unused variable 'temp'
- routers/share.go:23: missing error check
- services/share.go:67: ineffective assignment
**Fixing now...**Then fix the issues and re-run validation.
✅ Can proceed to commit when:
❌ Cannot proceed to commit when:
NO. Respond with:
I cannot skip validation. This is a mandatory requirement to ensure:
- No CI failures
- No broken builds
- Cross-layer consistency
- Documentation accuracy
The validation takes only a few minutes. I'll run it now.Then run the validation.
NO. Even tiny changes need validation:
Run the validation.
Refuse to commit. Respond with:
I cannot commit code with validation failures. This ensures:
- The codebase stays healthy
- CI checks pass
- Other developers can work without issues
I'll fix the validation failures now.Then fix the failures and re-run.
Partial validation. For documentation-only changes:
But still run the applicable validations before committing.
| Changed Files | Commands to Run |
|---|---|
| Any .go files | gofmt -w, gofmt -l, golangci-lint run, go test ./... |
| Any webs/* files | cd webs && yarn run lint, conditionally yarn run build |
| Both backend + frontend | All of the above |
| Documentation only | Verify markdown, links, bilingual updates |
| Configuration files | Verify code + docs + examples updated |
.agents/skills/post-dev-workflow/SKILL.md - Full post-development workflow orchestration.agents/skills/cross-layer-sync/SKILL.md - Detailed cross-layer sync guide.agents/skills/doc-sync-check/SKILL.md - Detailed documentation sync guide.agents/skills/theme-check/SKILL.md - Theme-specific validation.agents/skills/security-review/SKILL.md - Security-specific validation.agents/skills/performance-check/SKILL.md - Performance-specific validationThis skill is MANDATORY and BLOCKING.
You MUST:
You MUST NOT:
© ZeroDeng01, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/pre-commit-check of ZeroDeng01/sublinkPro.
Open the folder on GitHubat commit 11479da
Pre-Commit Check Gate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Pre-Commit Check Gate this skillZeroDeng01/sublinkPro | 1.7k | — | ~2.9k | Automated safety check: Notes | MIT | |
| Git PR Workflowandymai/brepjs | 114 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Saleor Commit Workflowsaleor/saleor | 23k | — | ~575 | Automated safety check: Pass | BSD-3-Clause | |
| Open PRanalogjs/analog | 3.2k | — | ~944 | Automated safety check: Pass | MIT | |
| Procoder Commit Gateazrtydxb/procoder | 211 | — | ~3.7k | Automated safety check: Pass | Apache-2.0 | |
| Eslint Fixlaolaoshiren/claude-code-skills-zh | 877 | — | ~436 | Automated safety check: Pass | MIT |
andymai/brepjs
This skill should be used when committing, pushing, branching, or merging in the brepjs repository — when a task involves "pre-commit hook failed" (which tier ran, how to bypass), "commit rejected…
saleor/saleor
Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.
analogjs/analog
Commit the current work, push the current feature branch, and open a GitHub PR filled out from the repo's PR template.
azrtydxb/procoder
Applies Procoder's senior-developer discipline in a repository: run the commit gate, format through the binary and work through specs, plans and todos.
laolaoshiren/claude-code-skills-zh
安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。
github/gh-aw
Development rules for changes to GitHub's gh-aw: tiered validation commands, a command matrix by change type, focused test checks and a merge-main playbook.
ZeroDeng01/sublinkPro
Checklist for reviewing code changes that touch queries, APIs, rendering, caching or algorithms for performance, scalability and resource-usage problems.
ZeroDeng01/sublinkPro
Checklist-driven security review for changes to authentication, authorization, MFA, secrets, input validation and other security-critical code.
ZeroDeng01/sublinkPro
Manages a SublinkPro proxy subscription server through natural language, adding nodes, building subscriptions and share links, and editing templates and tags.
ZeroDeng01/sublinkPro
A required checklist for after code changes: validate each changed layer, check that docs and other layers stay in sync, and test before committing or opening a PR.
ZeroDeng01/sublinkPro
Checklist for keeping README, feature, configuration, install and API docs in step with code changes in the same PR, including the Chinese copies.
ZeroDeng01/sublinkPro
A checklist for UI changes that touch colors, surfaces or theme code, making sure light and dark modes, devices, states and layering all still work.
Categories
Blocking checklist that runs formatting, lint and test commands for changed Go and frontend files before any git add, commit or pull request. This skill is written as a mandatory gate rather than a suggestion. The agent first lists changed files with `git status` and `git diff`, then sorts them into backend Go files, frontend files under `webs`, documentation, configuration or a mix.
Pre-Commit Check Gate fits situations like: before staging or committing changes in this Go and React project; before opening or updating a pull request; before telling the user that a piece of work is finished.
Run `npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a claude-code`. Or copy the skill folder (.agents/skills/pre-commit-check in ZeroDeng01/sublinkPro) into .claude/skills/pre-commit-check in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a codex`. Or copy the skill folder (.agents/skills/pre-commit-check in ZeroDeng01/sublinkPro) into .agents/skills/pre-commit-check in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZeroDeng01/sublinkPro --skill pre-commit-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pre-commit-check, .gemini/skills/pre-commit-check, .github/skills/pre-commit-check and .opencode/skills/pre-commit-check in your project.
Going by SKILL.md and its folder, Pre-Commit Check Gate needs the command-line tools its instructions call (git, yarn, go and gh). Our summary lists: Go toolchain with `golangci-lint`; Yarn and Node for the frontend in `webs`; Git.
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Pre-Commit Check Gate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Pre-Commit Check Gate: Git PR Workflow (andymai/brepjs, 114 stars), Saleor Commit Workflow (saleor/saleor, 23k stars), Open PR (analogjs/analog, 3.2k stars) and Procoder Commit Gate (azrtydxb/procoder, 211 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZeroDeng01 (a GitHub user) maintains it in ZeroDeng01/sublinkPro, which has 1,665 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 5, 2026.
Source: ZeroDeng01/sublinkPro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.