npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill pre-merge在将更改合并到生产环境之前进行全面的验证工作流程。
在以下情况下使用此技能:
提交代码前,请验证:
tsc --noEmit、mypy 等)TypeScript/JavaScript:
# 类型检查
npx tsc --noEmit
# 代码检查
npm run lint
# 或:pnpm lint
# 或:npx eslint .
# 测试
npm test
# 或:pnpm test
Python:
# 类型检查
mypy src/
# 代码检查
pylint src/
# 或:flake8 src/
# 或:ruff check src/
# 测试
pytest
# 或:python -m pytest
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Go:
# 格式检查
gofmt -l .
# 代码检查
golangci-lint run
# 测试
go test ./...
创建拉取请求前,请确保:
合并到主分支前,请确认:
使用此模板创建全面的 PR 描述:
## 摘要
[简要描述此 PR 的功能]
## 相关工单
- 修复 #123
- 关闭 ENG-456
- 关联 HEL-789
## 更改
- [ ] 功能:[描述]
- [ ] 错误修复:[描述]
- [ ] 重构:[描述]
- [ ] 文档:[描述]
## 测试
### 单元测试
- 为 [功能/函数] 添加了测试
- 覆盖率:X%
### 手动测试
- [ ] 在桌面端测试(Chrome、Firefox、Safari)
- [ ] 在移动端测试(iOS Safari、Android Chrome)
- [ ] 测试边界情况:[列出具体案例]
## 截图
### 桌面端

### 平板端

### 移动端

## 破坏性更改
[列出任何破坏性更改或写"无"]
### 迁移指南
[如果有破坏性更改,提供迁移步骤]
## 性能影响
[描述任何性能影响或写"无影响"]
## 安全考虑
[描述安全影响或写"无安全影响"]
## 回滚计划
[描述如果出现问题如何回滚]
## 部署说明
[任何特殊的部署考虑事项或写"标准部署"]
创建提交前验证脚本:
JavaScript/TypeScript (pre-commit.sh):
#!/bin/bash
set -e
echo "运行类型检查..."
npx tsc --noEmit
echo "运行代码检查..."
npm run lint
echo "运行测试..."
npm test -- --run
echo "✅ 所有检查通过!"
Python (pre-commit.sh):
#!/bin/bash
set -e
echo "运行类型检查..."
mypy src/
echo "运行代码检查..."
pylint src/
echo "运行测试..."
pytest
echo "✅ 所有检查通过!"
设置为可执行:
chmod +x pre-commit.sh
设置自动提交前检查:
npm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "npm run lint && npm test"
创建 .pre-commit-config.yaml:
repos:
- repo: local
hooks:
- id: type-check
name: Type Check
entry: mypy src/
language: system
pass_filenames: false
- id: lint
name: Lint
entry: pylint src/
language: system
pass_filenames: false
- id: test
name: Test
entry: pytest
language: system
pass_filenames: false
安装钩子:
pre-commit install
universal-verification-screenshot - UI 更改的截图验证universal-verification-bug-fix - 错误修复验证工作流程toolchains-universal-security-api-review - API 安全测试universal-collaboration-git-workflow - Git 工作流程最佳实践每周安装
87
仓库
GitHub 星标
27
首次出现
2026年1月23日
安全审计
安装于
claude-code70
codex69
opencode68
gemini-cli67
cursor65
github-copilot63
Comprehensive verification workflow before merging changes to production.
Use this skill when:
Before committing code, verify:
tsc --noEmit, mypy, etc.)TypeScript/JavaScript :
# Type check
npx tsc --noEmit
# Lint
npm run lint
# or: pnpm lint
# or: npx eslint .
# Tests
npm test
# or: pnpm test
Python :
# Type check
mypy src/
# Lint
pylint src/
# or: flake8 src/
# or: ruff check src/
# Tests
pytest
# or: python -m pytest
Go :
# Format check
gofmt -l .
# Lint
golangci-lint run
# Tests
go test ./...
Before creating a pull request, ensure:
Before merging to main branch, confirm:
Use this template for comprehensive PR descriptions:
## Summary
[Brief description of what this PR does]
## Related Tickets
- Fixes #123
- Closes ENG-456
- Related to HEL-789
## Changes
- [ ] Feature: [Description]
- [ ] Bug Fix: [Description]
- [ ] Refactor: [Description]
- [ ] Documentation: [Description]
## Testing
### Unit Tests
- Added tests for [feature/function]
- Coverage: X%
### Manual Testing
- [ ] Tested on desktop (Chrome, Firefox, Safari)
- [ ] Tested on mobile (iOS Safari, Android Chrome)
- [ ] Tested edge cases: [list specific cases]
## Screenshots
### Desktop

### Tablet

### Mobile

## Breaking Changes
[List any breaking changes or write "None"]
### Migration Guide
[If breaking changes, provide migration steps]
## Performance Impact
[Describe any performance implications or write "No impact"]
## Security Considerations
[Describe security implications or write "No security impact"]
## Rollback Plan
[Describe how to rollback if issues occur]
## Deployment Notes
[Any special deployment considerations or write "Standard deployment"]
Create a pre-commit verification script:
JavaScript/TypeScript (pre-commit.sh) :
#!/bin/bash
set -e
echo "Running type check..."
npx tsc --noEmit
echo "Running linter..."
npm run lint
echo "Running tests..."
npm test -- --run
echo "✅ All checks passed!"
Python (pre-commit.sh) :
#!/bin/bash
set -e
echo "Running type check..."
mypy src/
echo "Running linter..."
pylint src/
echo "Running tests..."
pytest
echo "✅ All checks passed!"
Make executable:
chmod +x pre-commit.sh
Set up automatic pre-commit checks:
npm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "npm run lint && npm test"
Create .pre-commit-config.yaml:
repos:
- repo: local
hooks:
- id: type-check
name: Type Check
entry: mypy src/
language: system
pass_filenames: false
- id: lint
name: Lint
entry: pylint src/
language: system
pass_filenames: false
- id: test
name: Test
entry: pytest
language: system
pass_filenames: false
Install hooks:
pre-commit install
universal-verification-screenshot - Screenshot verification for UI changesuniversal-verification-bug-fix - Bug fix verification workflowtoolchains-universal-security-api-review - API security testinguniversal-collaboration-git-workflow - Git workflow best practicesWeekly Installs
87
Repository
GitHub Stars
27
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code70
codex69
opencode68
gemini-cli67
cursor65
github-copilot63
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
138,800 周安装