-
-
Notifications
You must be signed in to change notification settings - Fork 89
Feat add git governance workflows #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
## Context
Add enterprise-grade Git workflows, commit validation, and automation to enforce
quality standards and streamline development processes.
## Changes
### Slash Commands (10 new commands)
1. **Git workflow commands** (.claude/commands/git/):
- /git:cm - Craft conventional commits
- /git:cp - Commit and push with quality checks
- /git:pr - Create pull requests
- /git:rv - Run local review gate
- /git:sc - Sync branches
2. **CI/Quality commands**:
- /ci-guard - Trigger commit & branch guard workflow
- /review - Execute comprehensive local checks
- /security-scan - Run security audit
- /run-release - Orchestrate release process
- /sync-branch - Synchronize branches
### GitHub Workflows (4 new workflows)
1. **ci-commit-branch-guard.yml** - Validates commits and branch names
- Commitlint validation
- Branch naming enforcement
- PR and manual triggers
2. **ci-quality-gate.yml** - Comprehensive quality checks
- YAML linting
- JSON schema validation
- Python syntax checks
- Markdown link validation
3. **git-governance-audit.yml** - Weekly governance auditing
- Checks for protected branches
- Validates branch policies
- Creates audit issues
4. **release-orchestrator.yml** - Automated release management
- Version tagging
- Changelog generation
- Draft release creation
### Configuration Files
- **.commitlintrc.cjs** - Commitlint configuration for conventional commits
- **.github/commit-template.txt** - Standardized commit message template
- **.github/ISSUE_TEMPLATE/release-checklist.md** - Release checklist template
### Hooks
- **generated-hooks/auto-sync-plan-to-github/** - Syncs TodoWrite with GitHub issues
- Bidirectional sync (Claude → GitHub, GitHub → Claude)
- Automatic issue creation/updates
- Status synchronization
## Testing
- [x] All workflow files pass yamllint validation
- [x] Commitlint configuration validated
- [x] Slash command syntax verified
- [x] Hook JSON schema valid
- [x] File structure conforms to repository standards
**YAML Fixes Applied**:
- Added "---" document start to all workflows
- Quoted 'on:' to avoid truthy warnings
- Removed extra blank lines at EOF
- All workflows now pass `yamllint -d '{extends: default, rules: {line-length: {max: 160}}}'`
## Security
- [x] No secrets or credentials in files
- [x] Workflow permissions follow least-privilege principle
- [x] Token scopes documented in hook README
- [x] Branch protection audit enforces security policies
## Documentation
- [x] Each slash command has clear description in YAML frontmatter
- [x] Hook includes comprehensive README.md
- [x] Workflow comments explain each step
- [x] Issue templates provide clear guidance
## Impact
**Developers**:
- Streamlined Git workflows with `/git:*` commands
- Automated quality checks before push
- Standardized commit messages via commitlint
**CI/CD**:
- Automated quality gates on every PR
- Weekly governance audits
- Simplified release process
**Project Management**:
- TodoWrite → GitHub issue sync
- Automatic task tracking
- Clear release checklists
## Related
Implements Git governance system discussed in project planning sessions.
Complements existing hierarchy automation (plan-to-tasks, smart-sync).
…teams Add comprehensive skill implementations: **1. Scrum Master Agent (v1.1.0)** - 15 files, 30KB - Sprint planning, backlog grooming, retrospectives, capacity planning, standups - 6 comprehensive metrics: velocity, burndown, capacity, priority scoring, sprint health, retrospective analysis - Multi-tool integration: Linear, Jira, GitHub Projects, Azure DevOps - Optional Slack & MS Teams notifications with webhook support - Context-aware output (Desktop vs CLI) with token-efficient reporting (50-1000 tokens) - 7 Python modules: parse_input, tool_adapters, calculate_metrics, detect_context, format_output, prioritize_backlog, notify_channels **2. TDD Guide** - 15 files, 45KB - Test generation from requirements, stubs creation, fixture generation - Red-green-refactor workflow guidance with phase validation - Test coverage analysis (line/branch/function) and code complexity metrics - Multi-language support: TypeScript, JavaScript, Python, Java - Multi-framework: Jest, Vitest, Pytest, JUnit, TestNG, Mocha - 8 Python modules: test_generator, coverage_analyzer, metrics_calculator, framework_adapter, tdd_workflow, fixture_generator, format_detector, output_formatter **3. Technology Stack Evaluator** - 14 files, 46KB - Technology comparison and evaluation for specific use cases - TCO calculations, security & compliance analysis, migration path analysis - Maturity & ecosystem assessment, cloud provider comparison - Mixed input formats (text, YAML, JSON, URLs) with automatic detection - Modular reports (user-selectable analyses) with decision matrices - 7 Python modules: stack_comparator, tco_calculator, ecosystem_analyzer, security_assessor, migration_analyzer, format_detector, report_generator **Documentation improvements:** - Add File Cleanliness Standards to SKILLS_FACTORY_PROMPT.md (Section 0) - Add Final Validation Checklist with 6 mandatory steps - Add Skill Generation Standards to generated-skills/CLAUDE.md - Enforce clean packaging: no backup files, no __pycache__, no internal summaries - README.md validation requirements to ensure accuracy All skills follow production-ready standards: - Clean file structure (no .bak, .backup, __pycache__, temp files) - Complete documentation (SKILL.md, README.md, HOW_TO_USE.md) - Validated Python modules (syntax checked, all imports correct) - Context-aware output (adapts to Claude Desktop vs Claude Code) - Token-efficient implementations (summary-first, progressive disclosure) - Sample data for multiple formats and use cases 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add comprehensive mega-prompt for GitHub Actions + Claude Code integration. **Features**: - 7-phase implementation workflow (Discovery → Setup → Automation → Security → Optimization → Integration → Beginner Guide) - GitHub Actions workflows (reusable, path-filtered, cost-optimized) - GitHub Projects v2 integration (GraphQL automation, issue status tracking) - Branch protection strategies (feature/fix/hotfix/* → dev → main) - Security best practices (CodeQL, Dependabot, secret scanning, branch protections) - Cost optimization for GitHub free tier (2000 min/month) + Claude Code Pro users - Fork-safety measures (prevent loops, idempotent automation) - Beginner-friendly setup guide (<30 minutes) **Output Formats**: - Master Prompt Structure (Role → Mission → 7-Phase Workflow) - XML format (universal - works with all LLMs) - Adaptation instructions for Claude native, ChatGPT Custom Instructions, Gemini format **Use Cases**: - Small team setup (2-branch workflow) - Monorepo setup (web + API + mobile with path filters) - GitHub Projects v2 integration (issue → PR → deploy status tracking) - Cost optimization (reduce GitHub Actions minutes by 40%) **Quality**: - Token count: ~4,800 tokens (Core mode - optimal) - All 7 validation gates passed - Production-ready, implementation-focused - 4 concrete examples included - Best practices from GitHub, Anthropic, Google integrated **Target Audience**: - GitHub Actions beginners to intermediate - DevOps engineers setting up CI/CD - Teams using GitHub free tier - Projects integrating Claude Code automation **Compliance**: - GitHub-specific compliance recommendations - Security fundamentals (branch protections, secret management) - No infinite loops or fork vulnerabilities **File Location**: generated-prompts/github-cicd-specialist-mega-prompt.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🔒 Security Audit (Claude)Severity summary: [Critical: 0, High: 2, Medium: 4, Low: 3] Findings1) [HIGH] [generated-hooks/auto-sync-plan-to-github/sync-plan.sh:10] – Hardcoded Repository Name
2) [HIGH] [generated-hooks/auto-sync-plan-to-github/sync-plan.sh:145-150] – Command Injection via Unquoted Variable Expansion
3) [MEDIUM] [.github/workflows/ci-commit-branch-guard.yml:26-32] – Unsafe ref Resolution from User Input
4) [MEDIUM] [.github/workflows/release-orchestrator.yml:31-36] – Unvalidated Version Input
5) [MEDIUM] [generated-hooks/auto-sync-plan-to-github/sync-plan.sh:44-45] – Regular Expression Injection Risk
6) [MEDIUM] [.github/workflows/ci-quality-gate.yml:74-82] – Unsafe File Globbing
7) [LOW] [.github/workflows/git-governance-audit.yml:16] – GITHUB_TOKEN Exposure in Environment
8) [LOW] [generated-hooks/auto-sync-plan-to-github/sync-plan.sh:152-153] – Error Information Disclosure
9) [LOW] [.claude/commands/git/cp.md:9] – AI Attribution Reminder May Be Ignored
Notes:
Recommended Priority Order:
Overall Assessment: The PR adds valuable Git governance automation but requires addressing 2 HIGH severity issues before merge to prevent potential security incidents in forked repositories or when processing untrusted plan content. |
PR Review: Git Governance & Skills Factory ExpansionExecutive SummaryThis is a substantial and well-structured PR (16,633 additions, 71 files) that adds enterprise-grade Git governance, CI/CD workflows, and three production-ready skills. The implementation follows best practices with strong attention to security, automation, and code quality. Overall Assessment: ✅ Approve with Minor Recommendations 🎯 Strengths1. Excellent Workflow Design
2. Security Best Practices
3. Code Quality
4. Developer Experience
5. Documentation
|
Summary
Context
Changes
Testing
/reviewpassed (yamllint, JSON schema, Python syntax, markdown links)/security-scanpassed (gitleaks clean, safety audit clean)ci-commit-branch-guardworkflow passedci-quality-gateworkflow passedTesting Details:
Security
Documentation
Reviewers
Related Issues
Fixes #
Closes #
Related to #
Type:
Scope: