AI Code Review

# ai-code-review

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "AI Code Review" with this command: npx skills add terrycarter1985/ai-code-review-service

ai-code-review

AI-powered code review service with voice transcription, Discord notifications, and ClawHub integration.

Triggers

  • "code review", "review code", "PR review"
  • "transcribe voice note", "voice review"
  • "publish skill", "skill publish"

Usage

Review a pull request

python src/code_review_service.py <pr_number> <diff_url> [voice_note_path]

Environment variables

VariableRequiredDescription
OPENAI_API_KEYYesOpenAI API key for Whisper transcription
DISCORD_WEBHOOK_URLNoDiscord webhook for review notifications
VOICE_NOTE_BASE_DIRNoBase directory for voice note files (default: /tmp/voice_notes)
ALLOW_INTERNAL_DIFF_URLSNoSet to allow internal-network diff URLs (security override)

Security

  • Diff URLs are validated against SSRF (scheme + hostname checks)
  • Voice note paths are sandboxed to VOICE_NOTE_BASE_DIR
  • Discord notification content is escaped to prevent injection
  • All HTTP requests enforce a 30-second timeout

Changelog

1.1.0 (2026-05-07)

  • Fixed SSRF vulnerability in diff URL fetching
  • Fixed path traversal risk in voice note transcription
  • Added Discord content escaping to prevent injection
  • Added request timeouts (30s) to all HTTP calls
  • Fixed analyze_code_changes returning hardcoded "approved" — now returns "pending_manual_review"
  • Added proper error handling for diff fetch and voice transcription
  • Added structured logging throughout the service
  • Improved __main__ with CLI arg parsing and error handling
  • Optimized health check script compatibility (works in chroot/container environments)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Use DeepSeek TUI CLI as an autonomous code assistant

Use DeepSeek TUI CLI as an autonomous code assistant - two modes: `deepseek exec` (headless, text-in/text-out, no filesystem access) for delegation from anot...

Registry SourceRecently Updated
Coding

GitHub Workflow

Professional GitHub workflows via gh CLI. Use for repos, branches, PRs, CI/CD, releases, versioning, secrets, issues. Trigger on: GitHub, git, repo, PR, bran...

Registry SourceRecently Updated
Coding

GitHub

GitHub API integration with managed OAuth. Access repositories, issues, pull requests, commits, branches, and users. Use this skill when users want to intera...

Registry SourceRecently Updated
14.9K44byungkyu
Coding

rust-dev

Practical day-1 guide to building applications in Rust well. Covers the mental model (ownership, errors as values, traits-not-interfaces), day-1 decisions (S...

Registry SourceRecently Updated