Overview
- Skill Key
- adainthelab/auth-guard
- Author
- adainthelab
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/adainthelab/auth-guard
- Latest Commit SHA
- a655a8ad58fdf9f17b9b4443d3d10a6cd3b1cb42
Standardize API credential handling and startup auth checks to prevent "missing key" regressions across sessions. Use when an agent repeatedly loses auth state, gets intermittent 401/403 errors after restarts, relies on ad-hoc curl calls, or needs a reusable auth-first pattern for HEARTBEAT.md/AGENTS.md and helper scripts.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 auth-guard 技能。 若已安装,则直接安装 auth-guard 技能。
# Auth Guard Enforce a deterministic auth path: one credential source, one helper command path, one startup check, one fallback policy. ## Quick Workflow 1. Identify the target service endpoint and current failing flow. 2. Define canonical credential source (env var first, credentials file second). 3. Create/update a helper script in workspace (`.pi/`) that always injects auth. 4. Add a startup/auth-check command that verifies credentials and endpoint access. 5. Update HEARTBEAT.md or AGENTS.md to require helper usage (ban raw unauthenticated calls). 6. Add explicit fallback behavior for unauthorized states. ## Rules to Apply - Prefer `ENV_VAR` override, then `~/.config/<service>/credentials.json`. - Never embed secrets in logs, memory notes, or chat responses. - Never call protected endpoints via raw curl if a helper exists. - Keep fallback behavior explicit and low-noise. - Store helper scripts in `workspace/.pi/` for easy reuse. ## Runtime Requirements - `bash` - `curl` - `python3` Check once before using this skill: ```bash command -v bash curl python3 >/dev/null ``` ## Safety Limits - Pass only trusted credential paths under `~/.config/<service>/...` by default. - Do not point `--cred-file` at arbitrary workspace files or unrelated secret stores. - Keep probe URLs scoped to the target service auth endpoint. ## Startup Auth Check Pattern Run at session start (or before heartbeat loops): ```bash bash skills/auth-guard/scripts/auth_check.sh \ --service moltbook \ --url 'https://www.moltbook.com/api/v1/feed?sort=new&limit=1' \ --env-var MOLTBOOK_API_KEY \ --cred-file "$HOME/.config/moltbook/credentials.json" ``` Expected outcomes: - `AUTH_OK` → proceed with normal authenticated helper flow. - `AUTH_MISSING` or `AUTH_FAIL_*` → use defined fallback path and record one concise note. ## Reusable Snippets Use drop-in policy snippets from: - `references/snippets.md` (HEARTBEAT + AGENTS + helper policy blocks) ## References - `references/contrac...
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
cclank
Comprehensive news aggregator that fetches, filters, and deeply analyzes real-time content from 8 major sources: Hacker News, GitHub Trending, Product Hunt, 36Kr, Tencent News, WallStreetCN, V2EX, and Weibo. Best for 'daily scans', 'tech news briefings', 'finance updates', and 'deep interpretations' of hot topics.
cccarv82
Optimized OpenClaw backup skill for creating full snapshots with workspace archive splitting, change summaries, restore instructions, and Discord notifications. Use when you need to set up or run automated backups, configure backup cron jobs, or document/restore OpenClaw state. Triggers on backup automation, backup scripts, snapshot/restore, or GitHub backup repos.