Skip to content

LeoYeAI/agent-master-skills / skills/agentaudit

agentaudit-skill

Flagged

Automatic security gate that checks packages against a vulnerability database before installation. Use before any npm install, pip install, yarn add, or package manager operation.

scripts/_curl-retry.sh

View on GitHub
#!/usr/bin/env bash
# _curl-retry.sh — Shared retry wrapper for curl calls
# Source this file: source "$SCRIPT_DIR/_curl-retry.sh"
#
# Provides: curl_retry [curl-args...]
# Retries up to 3 times with exponential backoff (2s, 4s) on curl failure.
# Transparent drop-in for curl: same args, same output.

curl_retry() {
  local max_retries="${CURL_MAX_RETRIES:-3}"
  local delay=2
  local attempt=0
  local output exit_code

  while [ $attempt -lt $max_retries ]; do
    exit_code=0
    output=$(curl "$@" 2>/dev/null) || exit_code=$?
    if [ $exit_code -eq 0 ]; then
      printf '%s' "$output"
      return 0
    fi
    attempt=$((attempt + 1))
    if [ $attempt -lt $max_retries ]; then
      sleep $delay
      delay=$((delay * 2))
    fi
  done

  # Final attempt failed — return whatever we got
  printf '%s' "$output"
  return $exit_code
}
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: 472kUpdated 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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated 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