Skip to content

docs: Add comprehensive hybrid workflow documentation#247

Merged
DrunkOnJava merged 1 commit intomainfrom
docs/hybrid-workflow
Jul 31, 2025
Merged

docs: Add comprehensive hybrid workflow documentation#247
DrunkOnJava merged 1 commit intomainfrom
docs/hybrid-workflow

Conversation

@DrunkOnJava
Copy link
Owner

📚 Hybrid Workflow Documentation

This PR adds comprehensive documentation for the hybrid workflow model.

What this adds:

  • HYBRID_WORKFLOW.md - Complete guide covering:
    • Overview and key principles
    • Branch strategy (main vs dev)
    • Development workflows
    • Commit standards and PR process
    • Automation features
    • Tool usage instructions
    • Best practices for Claude and human developers
    • Migration guide
    • Troubleshooting section
    • Philosophy and rationale

Documentation structure:

  1. Overview - Quick understanding of the two-branch model
  2. Workflows - Step-by-step guides for common tasks
  3. Tools - How to use the automation scripts
  4. Best Practices - Tailored advice for different users
  5. Migration - How to adopt this workflow
  6. Troubleshooting - Solutions to common problems

Key sections:

For Claude Code CLI users:

  • Work with dev as base branch
  • Use claude-branch.sh for consistency
  • Follow commit size limits
  • Let automation handle synchronization

For human developers:

  • Understand when to target main vs dev
  • How to handle the review process
  • When to override automation

Why this matters:

  • Single source of truth for workflow information
  • Reduces onboarding time for new contributors
  • Clarifies expectations for different scenarios
  • *Documents the \why* behind the decisions

This is Part 4 of 5 of the hybrid workflow implementation.


Clear documentation is essential for successful workflow adoption.

Copilot AI review requested due to automatic review settings July 31, 2025 22:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces comprehensive documentation for the hybrid workflow model, providing a single source of truth for development practices in the repository. The documentation covers the two-branch strategy (main vs dev), development workflows, automation features, and best practices tailored for both Claude Code CLI users and human developers.

Key Changes:

  • Complete workflow documentation covering branch strategy, development processes, and tool usage
  • Detailed guidance for different user types (Claude Code CLI vs human developers)
  • Comprehensive migration guide and troubleshooting section

- **Purpose**: Active development and integration
- **Protection**: Relaxed (no reviews required, allows force push)
- **Merge Strategy**: Regular merges or rebases
- **Who can push**: Developers after PR merge
Copy link

Copilot AI Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description 'Developers after PR merge' is ambiguous. Consider clarifying whether this means developers can push directly to dev after their PR is merged, or if they need to go through the PR process for each push.

Suggested change
- **Who can push**: Developers after PR merge
- **Who can push**: Developers, but only through the PR process for each push

Copilot uses AI. Check for mistakes.
**Commits rejected by pre-commit hook**
- Check file count and line count
- Split large changes into multiple commits
- Use `SKIP_CLAUDE_RULES=true git commit` for exceptions (use sparingly)
Copy link

Copilot AI Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation mentions using SKIP_CLAUDE_RULES=true git commit but doesn't explain what specific scenarios warrant this exception or what the potential risks are. Consider adding guidance on when this override is appropriate.

Suggested change
- Use `SKIP_CLAUDE_RULES=true git commit` for exceptions (use sparingly)
- Use `SKIP_CLAUDE_RULES=true git commit` for exceptions (use sparingly)
- **When to use**: This override should only be used in specific scenarios, such as:
- Emergency fixes that cannot wait for pre-commit hook adjustments.
- Non-critical changes (e.g., documentation updates) that are blocked by overly strict rules.
- **Risks**: Bypassing pre-commit hooks can:
- Introduce errors or inconsistencies into the codebase.
- Bypass quality checks, leading to potential vulnerabilities.
- **Best Practices**: If you use this override:
- Review your changes carefully before committing.
- Notify your team and document the reason for bypassing the hooks.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

🔍 PR Validation Results

Build Status: ❌ Failed
SwiftLint: ⚠️ Issues found
Project Structure: ❌ Issues found
Compilation: ❌ Failed


This comment was automatically generated by the PR validation workflow.

Add detailed guide for the hybrid workflow implementation including:
- Overview of main/dev branch strategy
- Step-by-step workflows for common tasks
- Tool usage instructions (claude-branch.sh, apply-branch-protection.sh)
- Best practices for both Claude and human developers
- Migration guide for adopting the workflow
- Troubleshooting common issues
- Philosophy behind the hybrid approach

This documentation serves as the primary reference for understanding
and using the hybrid workflow effectively.

Part 4 of the hybrid workflow implementation.

Co-authored-by: Claude <claude@anthropic.com>
@DrunkOnJava DrunkOnJava force-pushed the docs/hybrid-workflow branch from b241d5a to 4e8745e Compare July 31, 2025 23:10
@github-actions
Copy link

🔍 PR Validation Results

Build Status: ✅ Passed
SwiftLint: ⚠️ Issues found
Project Structure: ❌ Issues found
Compilation: ❌ Failed


This comment was automatically generated by the PR validation workflow.

@DrunkOnJava DrunkOnJava merged commit 97787b5 into main Jul 31, 2025
2 of 4 checks passed
@DrunkOnJava DrunkOnJava deleted the docs/hybrid-workflow branch July 31, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants