GitHub Workflow Adaptation Plan banner
alirezarezvani alirezarezvani

GitHub Workflow Adaptation Plan

Git community intermediate

Description

**Project**: Claude Code Skills Factory **Blueprint Source**: `/Users/rezarezvani/projects/claudecode-github-bluprint` **Date**: November 12, 2025 **Status**: Planning Phase ---

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for alirezarezvani/claude-code-skill-factory, shared by 13 entries in this directory. It describes the repository, not this entry specifically.

GitHub Workflow Adaptation Plan

**Project**: Claude Code Skills Factory **Blueprint Source**: `/Users/rezarezvani/projects/claudecode-github-bluprint` **Date**: November 12, 2025 **Status**: Planning Phase


๐ŸŽฏ Objective

Adapt the GitHub workflow blueprint to create an automated, Claude Code-integrated branching and PR workflow for the Skills Factory repository that:

  1. โœ… Enforces clear branch naming conventions
  2. โœ… Prevents direct pushes to main
  3. โœ… Routes all PRs through dev branch
  4. โœ… Auto-creates branches from issues
  5. โœ… Integrates Claude Code reviews (@claude)
  6. โœ… Auto-merges and cleans up after approval
  7. โœ… Auto-switches back to dev before next task

๐Ÿ“Š Current State vs. Desired State

Current Workflow Problems

Issue Impact Example
No branch naming convention Inconsistent branches fix/psychology-advisor-link (unclear)
Direct pushes to main Bypasses review process Recent commits went straight to main
No automated branch creation Manual git commands needed Developer creates branches manually
No PR automation Manual PR creation and cleanup No auto-merge, no auto-delete
No Claude Code review integration Missing automated reviews Reviews done manually
Manual branch management Forgot to switch back to dev Stayed on feature branch

Desired Workflow (Blueprint-Based)

1. Create GitHub Issue
   โ†“
2. Label with 'claude-code' + 'status:ready'
   โ†“
3. **AUTO**: Branch created (feature/issue-123-clear-name)
   โ†“
4. Developer works on branch
   โ†“
5. /commit-smart (quality checks + secrets scan)
   โ†“
6. /create-pr (auto-links issue, adds labels)
   โ†“
7. **AUTO**: PR validation (branch name, title, quality gates)
   โ†“
8. Tag @claude for review
   โ†“
9. **AUTO**: Claude Code review posted
   โ†“
10. After approval โ†’ **AUTO**: Merge to dev
   โ†“
11. **AUTO**: Delete source branch
   โ†“
12. **AUTO**: Switch to dev branch
   โ†“
13. Ready for next task

๐Ÿ—๏ธ Blueprint Patterns to Adopt

Pattern 1: Branch Naming Convention

**From Blueprint**: `{type}/issue-{number}-{slug}`

**Types**:

  • feature/ - New features (default)
  • fix/ - Bug fixes
  • hotfix/ - Critical production fixes
  • refactor/ - Code refactoring
  • test/ - Test additions
  • docs/ - Documentation changes

**Example**:

Issue #42: "Add AWS Solution Architect Skill"
Branch: feature/issue-42-add-aws-solution-architect-skill

**Enforcement**:

  • โœ… pr-into-dev.yml validates branch names
  • โŒ PRs with invalid names are rejected
  • ๐Ÿ“ Helpful error message shows correct format

Pattern 2: Branching Strategy

**Blueprint Strategy**: `feature โ†’ dev โ†’ main`

**Rules**:

  1. Base Branch: All feature branches created from dev
  2. PR Target: All feature PRs target dev (not main)
  3. Release Flow: Only dev can merge to main
  4. Hotfix Exception: hotfix/* can merge to main directly (emergency only)

**Cur