Skip to content

feat: comprehensive quality automation with MCP integrations#7

Merged
bjoernbethge merged 1 commit intomainfrom
claude/setup-quality-hooks-YWn2j
Jan 21, 2026
Merged

feat: comprehensive quality automation with MCP integrations#7
bjoernbethge merged 1 commit intomainfrom
claude/setup-quality-hooks-YWn2j

Conversation

@bjoernbethge
Copy link
Collaborator

Add comprehensive automation system with hooks, MCP servers, and workflows:

New Features

Custom Commands

  • /audit: Comprehensive code quality audits with security scanning
  • /test: Run tests with flexible arguments and coverage

MCP Server Integrations

  • Playwright: Browser automation for UI testing and screenshots
  • Enhanced GitHub workflows to use Serena for code review insights
  • Enhanced GitHub workflows to use Context7 for documentation lookups

Quality Hooks (Fixed bash compatibility)

  • Duplicate code detection hook
  • Prettier auto-formatting
  • Auto npm install on package.json changes
  • Auto test runner for test files
  • TypeScript type checking
  • Main branch protection

All hooks migrated to separate .sh files with explicit bash execution
to fix shell compatibility issues.

Automated Workflows

  • Weekly auto-improvement workflow (Mondays 9 AM UTC)

    • Autonomous analysis of codebase
    • Uses Serena for insights and Context7 for best practices
    • Auto-creates PRs with improvements
    • Focus areas: docs, tests, performance, security, types, quality
  • Enhanced PR review with MCP tools

    • Serena for deep code analysis
    • Context7 for framework best practices
    • Structured feedback by severity

DevContainer Updates

  • Playwright support with chromium browser
  • Playwright VS Code extension
  • Environment variables for Playwright configuration

Documentation

  • Comprehensive SETUP.md guide
  • Environment variables documentation
  • MCP server configuration guide
  • Hook troubleshooting guide
  • Best practices and workflow documentation

Technical Changes

  • Fixed hook execution to use bash explicitly (was failing with /bin/sh)
  • All hooks now in separate executable .sh files
  • Added PLAYWRIGHT_HEADLESS and PLAYWRIGHT_BROWSER env vars
  • Updated .mcp.json with Playwright MCP server
  • Enhanced PR review workflow with Serena/Context7 integration
  • New weekly auto-improvement workflow with intelligent focus detection

Breaking Changes

None - all changes are additive and backward compatible.

Migration Notes

After pulling these changes:

  1. Copy new variables from .env.example to your .env
  2. Restart Claude Code to reload hook configuration
  3. Run chmod +x .claude/hooks/*.sh if hooks fail

Closes #

Add comprehensive automation system with hooks, MCP servers, and workflows:

## New Features

### Custom Commands
- /audit: Comprehensive code quality audits with security scanning
- /test: Run tests with flexible arguments and coverage

### MCP Server Integrations
- Playwright: Browser automation for UI testing and screenshots
- Enhanced GitHub workflows to use Serena for code review insights
- Enhanced GitHub workflows to use Context7 for documentation lookups

### Quality Hooks (Fixed bash compatibility)
- Duplicate code detection hook
- Prettier auto-formatting
- Auto npm install on package.json changes
- Auto test runner for test files
- TypeScript type checking
- Main branch protection

All hooks migrated to separate .sh files with explicit bash execution
to fix shell compatibility issues.

### Automated Workflows
- Weekly auto-improvement workflow (Mondays 9 AM UTC)
  - Autonomous analysis of codebase
  - Uses Serena for insights and Context7 for best practices
  - Auto-creates PRs with improvements
  - Focus areas: docs, tests, performance, security, types, quality

- Enhanced PR review with MCP tools
  - Serena for deep code analysis
  - Context7 for framework best practices
  - Structured feedback by severity

### DevContainer Updates
- Playwright support with chromium browser
- Playwright VS Code extension
- Environment variables for Playwright configuration

### Documentation
- Comprehensive SETUP.md guide
- Environment variables documentation
- MCP server configuration guide
- Hook troubleshooting guide
- Best practices and workflow documentation

## Technical Changes

- Fixed hook execution to use bash explicitly (was failing with /bin/sh)
- All hooks now in separate executable .sh files
- Added PLAYWRIGHT_HEADLESS and PLAYWRIGHT_BROWSER env vars
- Updated .mcp.json with Playwright MCP server
- Enhanced PR review workflow with Serena/Context7 integration
- New weekly auto-improvement workflow with intelligent focus detection

## Breaking Changes
None - all changes are additive and backward compatible.

## Migration Notes
After pulling these changes:
1. Copy new variables from .env.example to your .env
2. Restart Claude Code to reload hook configuration
3. Run `chmod +x .claude/hooks/*.sh` if hooks fail

Closes #<issue-number>
@bjoernbethge bjoernbethge merged commit af94aaf into main Jan 21, 2026
1 of 7 checks passed
@bjoernbethge bjoernbethge deleted the claude/setup-quality-hooks-YWn2j branch January 21, 2026 03:29
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