Skip to content

opensite-ai/opensite-skills / code-review-security

code-review-security

Verified

Security-focused code review for OpenSite/Toastability platform. Use when reviewing PRs for security issues, auditing new API endpoints, checking for HIPAA/SOC2 compliance violations, reviewing Rust unsafe code, or scanning for injection vulnerabilities, data leakage, or auth bypasses. Auto-activates when reviewing code changes involving auth, LLM calls, user data, or external API integrations.

FileKindSize
SKILL.mdskill md6.6 KB
agents/openai.yamlconfig528 B
examples/finding-example.mdmarkdown543 B
references/activation.mdmarkdown1.1 KB
scripts/run_review_checks.shexecutablescript1.3 KB

scripts/run_review_checks.sh

View on GitHub
            #!/usr/bin/env bash
            set -euo pipefail

            TARGET="${1:-.}"
            if [ ! -e "$TARGET" ]; then
              echo "Target not found: $TARGET" >&2
              exit 1
            fi

            section() {
              printf '
## %s
' "$1"
            }

            run_rg() {
              local pattern="$1"
              shift
              rg -n --hidden --glob '!node_modules/**' --glob '!dist/**' --glob '!tmp/**' "$pattern" "$TARGET" "$@" || true
            }

            section "PHI and logging"
            run_rg 'tracing::(info|debug|warn)|log::info|Rails\.logger|puts\b|pp\b'

            section "Sentry and external telemetry"
            run_rg 'sentry::capture|Sentry\.capture|capture_message|capture_exception'

            section "SQL construction risks"
            run_rg 'format!\s*\(.*SELECT|format!\s*\(.*INSERT|find_by_sql\(|execute\('

            section "LLM provider usage"
            run_rg 'generate_structured|create_message|anthropic\.|AuditedLlmProvider'

            section "Unsafe Rust and auth surfaces"
            run_rg '\bunsafe\b|Router::new|\.route\(|Extension<Pool>|Extension<Arc<Pool>>'

            printf '
Review the matches manually. This helper is a triage pass, not a substitute for reasoning.
'
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall