Skip to content

donaldfilimon/abi / .agents/skills/auth-localcheck

auth-localcheck

Verified

Build the abi CLI and check the credential/auth surface without storing, deleting, or transmitting anything — `auth status` (provider table) and `auth signin` usage banner. Use to smoke-test the auth command wiring after touching credential code. Never writes or deletes credentials and never hits the network.

FileKindSize
SKILL.mdskill md2.1 KB
auth.shexecutablescript1.6 KB
#!/usr/bin/env bash
# auth-localcheck driver: build the abi CLI and exercise the credential-status
# surface WITHOUT storing, deleting, or transmitting anything — `auth status`
# (provider table) and `auth signin` with no service (usage banner only, stores
# nothing). Deliberately does NOT run `auth logout` (destructive: it deletes any
# stored credentials) or a real `auth signin <svc>` (would store creds).
# Asserts exit codes + output markers. Resolves repo root from own path.
#
# Usage: .agents/skills/auth-localcheck/auth.sh
set -uo pipefail
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
REPO_ROOT=$(cd -- "$SCRIPT_DIR/../../.." && pwd)
cd "$REPO_ROOT"
ABI="$REPO_ROOT/target/debug/abi"
fail=0
say() { printf '\n=== %s ===\n' "$*"; }
markers() { local out="$1"; shift; for m in "$@"; do
    grep -qF -- "$m" <<<"$out" && echo "[ok] marker: $m" \
        || { echo "[FAIL] missing marker: $m"; fail=$((fail+1)); }; done; }

say "build cli"
./tools/cargo.sh build -p abi-cli >/dev/null 2>&1 && echo "[ok] build" || { echo "[FAIL] build"; exit 1; }
[ -x "$ABI" ] || { echo "[FAIL] $ABI not produced"; exit 1; }

say "abi auth status"
out=$("$ABI" auth status 2>&1)
printf '%s\n' "$out"
markers "$out" "Authentication Status:" "OpenAI:" "Anthropic:" "Twilio:"

say "abi auth signin (usage banner — stores nothing)"
out=$("$ABI" auth signin 2>&1)
printf '%s\n' "$out"
markers "$out" "usage: abi auth signin"

say "summary"; echo "failed checks: $fail"
[ "$fail" -eq 0 ] && echo "RESULT: PASS — auth status + signin wiring verified (no creds touched)." || echo "RESULT: FAIL — $fail check(s)."
exit "$fail"
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall