LeoYeAI/agent-master-skills / skills/agentaudit
agentaudit-skill
FlaggedAutomatic security gate that checks packages against a vulnerability database before installation. Use before any npm install, pip install, yarn add, or package manager operation.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 33.7 KB |
| SKILL.md | skill md | 18.0 KB |
| _meta.json | config | 631 B |
| config/credentials.json | config | 89 B |
| install.sh | script | 5.7 KB |
| prompts/audit-prompt.md | markdown | 36.6 KB |
| prompts/review-prompt.md | markdown | 2.8 KB |
| references/API-REFERENCE.md | markdown | 4.1 KB |
| references/AUDIT-METHODOLOGY.md | markdown | 6.8 KB |
| references/DETECTION-PATTERNS.md | markdown | 5.9 KB |
| references/REPORT-FORMAT.md | markdown | 5.0 KB |
| references/TROUBLESHOOTING.md | markdown | 4.4 KB |
| references/TRUST-SCORING.md | markdown | 2.2 KB |
| scripts/_curl-retry.sh | script | 850 B |
| scripts/_load-key.sh | script | 1.6 KB |
| scripts/check.mjs | script | 6.3 KB |
| scripts/check.sh | script | 5.7 KB |
| scripts/gate.mjs | script | 5.1 KB |
| scripts/gate.sh | script | 4.9 KB |
| scripts/register.mjs | script | 4.7 KB |
| scripts/register.sh | script | 3.4 KB |
| scripts/rotate-key.sh | script | 2.3 KB |
| scripts/upload.mjs | script | 7.3 KB |
| scripts/upload.sh | script | 8.4 KB |
| scripts/verify.sh | script | 3.6 KB |
scripts/_load-key.sh
View on GitHub#!/usr/bin/env bash
# _load-key.sh — Shared API key loader for all AgentAudit scripts
# Source this file: source "$SCRIPT_DIR/_load-key.sh"
#
# Lookup priority (highest to lowest):
# 1. AGENTAUDIT_API_KEY environment variable
# 2. Skill-local config: <skill-dir>/config/credentials.json
# 3. User-level config: ~/.config/agentaudit/credentials.json
#
# This ensures the key survives:
# - Skill re-installation (user-level backup)
# - Environment changes (file-based fallback)
# - Container/CI environments (env var override)
load_api_key() {
# 1. Environment variable (highest priority — for CI/CD and containers)
if [ -n "${AGENTAUDIT_API_KEY:-}" ]; then
echo "$AGENTAUDIT_API_KEY"
return
fi
# 2. Skill-local credentials (inside the skill directory)
local skill_cred=""
if [ -n "${AGENTAUDIT_HOME:-}" ]; then
skill_cred="$AGENTAUDIT_HOME/config/credentials.json"
else
# Derive from script location
local script_dir
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
skill_cred="$script_dir/../config/credentials.json"
fi
if [ -f "$skill_cred" ]; then
local key
key=$(jq -r '.api_key // empty' "$skill_cred" 2>/dev/null || true)
if [ -n "$key" ]; then
echo "$key"
return
fi
fi
# 3. User-level config (backup that survives reinstalls)
local user_cred="${XDG_CONFIG_HOME:-$HOME/.config}/agentaudit/credentials.json"
if [ -f "$user_cred" ]; then
local key
key=$(jq -r '.api_key // empty' "$user_cred" 2>/dev/null || true)
if [ -n "$key" ]; then
echo "$key"
return
fi
fi
# No key found
echo ""
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 471k | Updated | Claude CodeCodex | Verified | Install |
| 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: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |