agent-browser-automatiโฆ
Automate browser interactions for development testing using Puppeteer MCP
Comprehensive automated git repository review with security analysis and quality assessment
How it fires
How this command gets triggered: by you, by Claude, or both.
/review-gitContext preview
What this command does when you run it.
Comprehensive automated git repository review with security analysis and quality assessment
allowed-tools: Read, Bash(git:*), Bash(rg:*), Bash(fd:*), Bash(gdate:*), Bash(jq:*), Bash(bat:*) name: "Review Git" description: "Comprehensive automated git repository review with security analysis and quality assessment" author: "wcygan" tags: ["git","review"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize comprehensive repository review session
TRY:
{
"sessionId": "$SESSION_ID",
"timestamp": "$(gdate -Iseconds 2>/dev/null || date -Iseconds)",
"repository": "$(basename $(git rev-parse --show-toplevel))",
"branch": "$(git branch --show-current)",
"reviewScope": "auto-detect",
"changesDetected": {
"staged": "$(git diff --staged --name-only | wc -l | tr -d ' ')",
"unstaged": "$(git diff --name-only | wc -l | tr -d ' ')",
"untracked": "$(git ls-files --others --exclude-standard | wc -l | tr -d ' ')"
}
}CATCH (git_access_failed):
STEP 2: Comprehensive change analysis with automated context gathering
**Current Changes Deep Analysis:**
FOR EACH change category:
if [ "$(git diff --staged --name-only | wc -l | tr -d ' ')" -gt 0 ]; then
echo "๐ Analyzing staged changes..."
git diff --staged --stat
echo "๐ Detailed staged diff available for review"
fi if [ "$(git diff --name-only | wc -l | tr -d ' ')" -gt 0 ]; then
echo "โ ๏ธ Analyzing unstaged changes..."
git diff --stat
echo "๐ Detailed unstaged diff available for review"
fiecho "๐ Recent commit analysis..." git log -3 --pretty=format:"%h %s (%an, %cr)" --stat echo "๐ Last 3 commits analyzed for patterns and quality"
STEP 3: Advanced security analysis with automated pattern detection
TRY:
**Automated Security Scanning:**
echo "๐ Performing automated security analysis..."
# Credential and API key detection
echo " ๐ Scanning for exposed credentials..."
rg -i "(api[_-]?key|secret|password|token|credential)" . --type-not=lock --type-not=log -C 1 || echo " โ
No obvious credential exposures found"
# Hardcoded sensitive patterns
echo " ๐ Checking for hardcoded sensitive data..."
rg "(BEGIN\s+(?:RSA\s+)?(?:PRIVATE\s+)?KEY|ssh-rsa|ssh-ed25519)" . --type-not=lock -C 1 || echo " โ
No hardcoded keys detected"
# Database connection strings
echo " ๐๏ธ Scanning for exposed database connections..."
rg "(mongodb://|postgres://|mysql://|redis://)" . --type-not=lock -C 1 || echo " โ
No exposed database URLs found"
# Environment variable leaks
echo " ๐ Checking for environment variable exposures..."
rg "process\.env\.[A-Z_]+" . --type js --type ts -C 1 || echo " โน๏ธ No JavaScript env var usage detected"
# Shell injection vulnerabilities
echo " ๐ Analyzing shell injection risks..."
rg "(\$\{[^}]+\}|\$[A-Z_]+)" . --type sh --type bash -C 1 || echo " โ
No shell variable substitution risks found"**Project-Specific Security Checks:**
CATCH (security_scan_failed):
STEP 4: Automated code quality assessment with CLAUDE.md compliance
**Think hard about code quality implications and architectural decisions in the changes.**
**Modern CLI Tool Usage Validation:**
echo "๐ ๏ธ Validating modern tool preferences..." # Check for legacy tool usage (per CLAUDE.md requirements) echo " โ ๏ธ Scanning for deprecated tool usage..." rg "\b(grep|find|cat|ls|df|top)\b" . --type sh --type bash -C 1 || echo " โ No legacy tool usage detected" # Verify modern alternatives are used echo " โ Checking for modern tool adoption..." rg "\b(rg|fd|bat|eza|jq|yq|delta|zoxide)\b" . --type sh --type bash -C 1 || echo " โน๏ธ Consider adopting modern CLI tools"
**Deno Best Practices Validation:**
echo "๐ฆ Validating Deno project compliance..."
# Check for JSR imports (preferred over deno.land)
if [ -f "deno.json" ] || fd "\.ts$" . >/dev/null; then
echo " ๐ฆ Analyzing import patterns..."
rg "from ['\"]https://deno\.land" . --type ts || echo " โ
No legacy deno.land imports found"
rg "jsr:@std/" . --type json --type ts || echo " ๐ก Consider migrating to JSR imports"
fi
# Validate deno.json task structure
if [ -f "deno.json" ]; then
echo " ๐ Validating task definitions..."
jq '.tasks // {} | keys[]' deno.json 2>/dev/null | head -5 || echo " โ ๏ธ No tasks defined in deno.json"
fi**Error Handling and Code Structure:**
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies