AGENT SKILL

risk-guard

Account ban risk monitor for Claude Code. Detects dangerous usage patterns that could trigger rate limiting, account suspension, or banning. Auto-triggers on session start. Manual trigger: /risk-guard. Checks: concurrent sessions, tool call velocity, automation loops, session frequency, config risks, secret exposure, telemetry leaks, file permissions. Triggers on: 'risk', '风险检查', '封号检查', 'ban check', 'account safety', '账号安全'.

License 许可
MIT
最近更新
2026-11-01
Stars
★ 3
Forks
1

01 前言 Front Matter

name
risk-guard
hooks
{ "SessionStart": [ { "hooks": [ { "type": "command", "command": "bash ${CLAUDE_SKILL_DIR}/bin/check-risk.sh", "statusMessage": "🛡️ Running account risk check..." } ], "matcher": "" } ] }
version
1.0.0
description
Account ban risk monitor for Claude Code. Detects dangerous usage patterns that could trigger rate limiting, account suspension, or banning. Auto-triggers on session start. Manual trigger: /risk-guard. Checks: concurrent sessions, tool call velocity, automation loops, session frequency, config risks, secret exposure, telemetry leaks, file permissions. Triggers on: 'risk', '风险检查', '封号检查', 'ban check', 'account safety', '账号安全'.
allowed-tools
[ "Bash", "Read" ]

02 资源文件 1

03 SKILL.md 正文

/risk-guard — 账号封禁风险监控

自动检测可能导致 Claude Code 账号被封禁的使用模式和配置风险。

检查项目

检查项 风险等级 触发条件
并发进程数 🔴 CRITICAL >5 个 Claude 进程同时运行
工具调用速率 🔴 CRITICAL >500 次/小时
子 Agent 数量 🟠 HIGH 单会话 >30 个 Agent
会话创建频率 🟠 HIGH 1 小时内 >10 个新会话
密钥 git 暴露 🟠 HIGH 含密钥文件未被 gitignore
遥测数据残留 🟡 MEDIUM telemetry 目录有 JSON 文件
文件权限过宽 🟡 MEDIUM 敏感文件权限非 600
危险模式配置 🔵 INFO bypassPermissions 开启

风险等级

  • 🟢 SAFE — 无异常,正常使用
  • 🟡 MEDIUM — 存在潜在风险,建议关注
  • 🟠 HIGH — 需要及时处理
  • 🔴 CRITICAL — 立即处理,可能触发封号

使用方式

自动模式: 每次启动新会话时自动运行检查

手动模式: 输入 /risk-guard 执行即时检查

手动执行检查

当此 skill 被手动触发时,执行以下命令并将结果展示给用户:

bash ~/.claude/skills/risk-guard/bin/check-risk.sh

根据输出结果:

  • 如果全部通过(✅),告知用户当前状态安全
  • 如果有警告,逐条解释风险来源和处理方法
  • 如果是 CRITICAL,强烈建议用户立即采取行动

常见封号原因参考

  1. 自动化滥用 — 脚本循环创建大量会话刷用量
  2. 账号共享 — 多人/多设备同时使用同一账号
  3. 绕过认证 — 使用非官方 API 或篡改认证
  4. 违反 ToS — 生成违禁内容
  5. 速率限制 — 短时间内发送过多请求

不会导致封号的:

  • 使用 bypassPermissions(官方功能)
  • 安装第三方插件(官方机制)
  • 关闭遥测(用户权利)
  • 使用 MCP servers(官方功能)

04 同仓库更多 Skills

shengdabai
shengdabai/Tony-Claude-Code-Skills

seedance-prompt-en

Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

onepage-pdf

Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file/report/proposal into a "single-page PDF", "long PDF", "不分页 PDF", "单页 PDF", "长图式 PDF", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

native-feel-cross-platform-desktop

Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include "cross-platform desktop", "Electron alternative", "Tauri vs native", "WebView wrapper", "near-native performance", "Raycast architecture", "WebKit/WebView2 quirks", "WKWebView", "system tray app", "global hotkey app", "launcher app". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

gstack

Router for the gstack skill suite. (gstack)

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

fireworks-tech-graph

Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent/memory, or concept map - and export as SVG+PNG. Trigger on: "画图" "帮我画" "生成图" "做个图" "架构图" "流程图" "可视化一下" "出图" "generate diagram" "draw diagram" "visualize" or any system/flow description the user wants illustrated.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

dbs-video-extract

接收抖音、小红书、微信视频号等短视频链接或分享文案,查询作品/账号数据并提取语音文字稿,按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用;运行前检查 TikHub 与轻抖使用凭证,缺少时用新手能理解的方式引导购买和安全配置。

★ 3