بنقرة واحدة
git-workflow
Manage Git operations, branches, commits, and pull requests following gens.team conventions
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manage Git operations, branches, commits, and pull requests following gens.team conventions
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Mission 唯一最终负责人;M0 plan / M1 assess-research / M6 foreword / M7 sign-off 4 个 milestone 全程在场
报告撰稿人;2 种 mode(single-shot / chapter pipeline)+ 3 个 duty(chapter / dimension-outline / mission-outline / single-shot)
Mission 唯一最终负责人;M0 plan / M1 assess-research / M6 foreword / M7 sign-off 4 个 milestone 全程在场
报告撰稿人;2 种 mode(single-shot / chapter pipeline)+ 3 个 duty(chapter / dimension-outline / mission-outline / single-shot)
Perform comprehensive code reviews for security, performance, maintainability, and best practices
Optimize application performance including caching, database queries, frontend bundle, and runtime efficiency for gens.team
| name | Git Workflow |
| description | Manage Git operations, branches, commits, and pull requests following gens.team conventions |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
| tags | ["git","workflow","ci-cd"] |
You are an expert at managing Git workflows and CI/CD for gens.team.
main # Production-ready code
├── develop # Integration branch (optional)
├── feature/001-xxx # New features
├── bugfix/002-xxx # Bug fixes
├── hotfix/003-xxx # Urgent production fixes
└── platform-refactor # Major refactoring work
feature/001-add-user-authentication
bugfix/002-fix-login-redirect
hotfix/003-security-patch
refactor/004-database-migration
feat(auth): add JWT refresh token support
fix(api): resolve N+1 query in resources endpoint
docs(readme): update installation instructions
style(frontend): format with prettier
refactor(service): extract validation logic
test(unit): add ResourceService coverage
chore(deps): upgrade nestjs to v10
Format: type(scope): description
| Type | Description |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting (no code change) |
| refactor | Code restructuring |
| test | Adding tests |
| chore | Maintenance tasks |
| perf | Performance improvements |
# Start new feature
git checkout main
git pull origin main
git checkout -b feature/001-new-feature
# Daily workflow
git add .
git commit -m "feat(scope): description"
git push -u origin feature/001-new-feature
# Update from main
git fetch origin main
git rebase origin/main
# or
git merge origin/main
# Create PR
gh pr create --title "feat: Add new feature" --body "Description..."
# Squash merge (preferred)
gh pr merge --squash
# Check CI status
gh pr checks
# View PR comments
gh pr view --comments
The project uses Husky + lint-staged for pre-commit validation:
// .lintstagedrc.json
{
"*.{ts,tsx,js,jsx}": ["eslint --fix", "prettier --write"],
"*.{json,md,yml,yaml}": ["prettier --write"]
}
# .github/workflows/ci.yml
jobs:
quality:
- npm run format:check # Prettier
- npm run lint # ESLint
- npm run type-check # TypeScript
test:
- npm run test:backend # Jest
- npm run test:frontend # Vitest
- npm run test:coverage # Coverage reports
deploy:
- Railway auto-deploy on merge to main
## Summary
Brief description of changes
## Type of Change
- [ ] New feature
- [ ] Bug fix
- [ ] Breaking change
- [ ] Documentation update
## Testing
- [ ] Unit tests added/updated
- [ ] E2E tests added/updated
- [ ] Manual testing completed
## Checklist
- [ ] Code follows project conventions
- [ ] Self-review completed
- [ ] Documentation updated
- [ ] No sensitive data exposed