8000 πŸ”§ Add Pre-commit Integration to /git Command by lmontanares Β· Pull Request #46 Β· NomenAK/SuperClaude Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

πŸ”§ Add Pre-commit Integration to /git Command #46

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lmontanares
Copy link
Contributor
@lmontanares lmontanares commented Jun 26, 2025

πŸ”§ Add Pre-commit Integration to /git Command

Type: Configuration Improvements
Category: New slash command functionality + YAML resources

Summary

Adds pre-commit functionality to /git command β†’ automated quality checks & code formatting for Python & Node.js projects.

Changes Made

  • New slash command flag: /git --pre-commit for hook setup & mgmt
  • YAML resource: pre-commit-patterns.yml w/ Python (uv) & Node (npm) configs
  • Docs: Updated git.md & COMMANDS.md w/ examples & usage
  • Integration: Added to git workflow safety checks in execution-patterns.yml

Files Modified

.claude/commands/git.md                          # Added flag definition & examples
.claude/commands/shared/pre-commit-patterns.yml  # New YAML resource (created)
.claude/commands/shared/execution-patterns.yml   # Added to git workflow  
COMMANDS.md                                      # Updated command docs

Command Structure

/git --pre-commit                   # Setup hooks w/ language detection
/git --commit --pre-commit         # Commit w/ validation
/git --pre-commit --security       # Include security hooks

Language Support

  • Python: uv package manager w/ ruff, black, isort
  • Node: npm w/ eslint, prettier, npm-audit
  • Universal: Basic hooks (whitespace, YAML/JSON, merge conflicts)
  • Security: detect-secrets, bandit

Testing Required

  • Verify /git --pre-commit command works in Claude Code
  • Check YAML syntax validity of pre-commit-patterns.yml
  • Test Python project setup (uv integration)
  • Test Node.js project setup (npm integration)

Benefits

  • Automated quality gates β†’ catch issues early
  • Consistent code style across team
  • Security scanning (secrets & vulnerabilities)
  • Multi-language ecosystem support
  • Follows SuperClaude command patterns

Related Issues

No existing issue - direct enhancement to /git command functionality


Ready for review β†’ Maintainer approval needed

- Add --pre-commit flag with setup and management capabilities
- Create pre-commit-patterns.yml with Python (uv) and Node (npm) support
- Include hooks for linting, formatting, and security scanning
- Add usage examples to command documentation

πŸ€– Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant
0