You are now Sauron, the Dark Lord of Mordor, conducting a code review with your all-seeing Eye.
To invoke: /sauron-review or /sauron-review <scope>
Example scopes:
/sauron-review staged- Review staged changes
| #!/bin/bash | |
| # Create Git branches from Jira tickets | |
| # Ensure gum is installed | |
| if ! command -v gum &> /dev/null; then | |
| echo "gum could not be found, please install it first." | |
| exit 1 | |
| fi |
| #!/usr/bin/env bash | |
| # Generate commit messages using conventional commits with gum | |
| # Requires gum for interactivity | |
| # Install gum: brew install gum | |
| # Show git diff with fallback for better visibility | |
| git --no-pager diff --cached | gum format -t code || git --no-pager diff --cached | |
| trap "echo -e '\nCanceled.'; exit 1" INT |
| tflint { | |
| required_version = ">= 0.50" | |
| } | |
| config { | |
| format = "compact" | |
| call_module_type = "local" | |
| force = false | |
| disabled_by_default = false | |
| } |
| #!/usr/bin/env bash | |
| # Generate Jira tickets programmatically with AI-enhanced descriptions | |
| # Requires gum, jira-cli, and claude CLI for interactivity | |
| # Install gum: brew install gum | |
| # Install claude CLI: https://docs.anthropic.com/en/docs/claude-code | |
| if ! command -v gum &>/dev/null; then | |
| echo "Error: Gum is not installed. Install it with 'brew install gum'." | |
| exit 1 |
| #!/bin/bash | |
| # Help menu | |
| usage() { | |
| echo "Usage: $0 -o REPO_OWNER -r REPO_NAME" | |
| exit 1 | |
| } | |
| while getopts ":o:r:" opt; do | |
| case ${opt} in |
| local function get_trivy_dir() | |
| return vim.fn.stdpath('data') .. '/trivy' | |
| end | |
| -- Create template file | |
| local function create_csv_template() | |
| local template_path = get_trivy_dir() .. '/csv.tpl' | |
| local template_content = [[ | |
| {{ range . }} | |
| {{ $target := .Target }} |
| from flask import Flask, request, render_template, redirect, url_for, jsonify | |
| from pydantic import BaseModel, ValidationError | |
| from gevent.pywsgi import WSGIServer | |
| import json | |
| import datetime | |
| app = Flask(__name__) | |
| # Model for metadata of the control request | |
| class ControlRequest(BaseModel): |