一键导入
commit
Safe commit and push workflow. Creates a commit following conventions and pushes. Husky handles verifications (TypeScript, Biome, tests).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safe commit and push workflow. Creates a commit following conventions and pushes. Husky handles verifications (TypeScript, Biome, tests).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Follow-up review that never trusts a commit message — always re-reads the actual diff before resolving a thread. Cites a real source for new issues, matching review-advanced.
Rigorous sequential-audit code review with a dedicated security block and cited pedagogical lessons. Customize for your project.
Review de suivi qui ne fait jamais confiance à un message de commit — relit toujours le diff réel avant de résoudre un thread. Cite une source réelle pour les nouveaux problèmes, comme review-advanced.
Code review rigoureuse à audits séquentiels, avec bloc sécurité dédié et leçons pédagogiques sourcées. À personnaliser pour votre projet.
Complete review of a documentation-focused MR/PR with 5 sequential audits oriented for documentation projects (markdown-quality, link-validity, terminology, freshness, examples-validity). No code-architecture audits, no React patterns, no SOLID. An orchestrator runs each audit one by one. Generates an .md report and posts it directly on the MR/PR. Direct mode with sourced lessons.
Follow-up review to verify corrections on a MR. Sequential execution to avoid memory spikes. Checks blocking issues, detects new problems, and posts a concise report on GitLab.
| name | commit |
| description | Safe commit and push workflow. Creates a commit following conventions and pushes. Husky handles verifications (TypeScript, Biome, tests). |
Read .claude/roles/senior-dev.md — adopt this profile and follow all its rules.
This skill activates:
/commit)The project uses Husky which automatically runs:
| Hook | Action |
|---|---|
pre-commit | TypeScript check + Biome lint (modified files) |
commit-msg | commitlint (message format) |
pre-push | Vitest tests (modified files since test) |
The project also has PreToolUse hooks that run BEFORE git commands:
| Hook | Action |
|---|---|
protect-main-branch.sh | Blocks commit on master |
pre-commit-gate.sh | Runs tests before commit |
verify-spec-updated.sh | Checks spec has ## Status: implemented |
protect-main-push.sh | Blocks push to master and force push |
BEFORE any commit, run:
yarn verify
If it fails: display errors and STOP. Do not commit until quality gates pass.
If staged files include src/ code:
docs/feature-tracker.md — any feature in implementing status should be updated to implemented## Status: implemented if feature is completegit status --short
If nothing is staged, suggest:
git add <files>
<type>(<scope>): <description>
Allowed types:
| Type | Usage |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting (no code change) |
refactor | Refactoring (no new feature or fix) |
perf | Performance improvement |
test | Adding or fixing tests |
build | Build system changes |
ci | CI/CD changes |
chore | Maintenance, dependencies |
revert | Revert a previous commit |
Rules:
feat(webhook): add GitHub signature validation
fix(review): resolve score calculation overflow
refactor(gateway): extract GitLab API client
test(usecase): add unit tests for track assignment
git commit -m "<type>(<scope>): <description>"
Husky will automatically run:
git push origin <current-branch>
Husky will automatically run tests before pushing.
--force without explicit requestmain or master directly--no-verify unless explicitly requested by the user| Error | Solution |
|---|---|
| TypeScript | Fix type errors |
| Biome | yarn lint:fix to auto-correct |
| commitlint | Reword the commit message |
| Tests (push) | Fix failing tests |
COMMIT
Branch: <branch>
Staged files:
- <file 1>
- <file 2>
Message: <type>(<scope>): <description>
Verifications:
- Husky: TypeScript / Biome / commitlint
Confirm commit? (yes/no)