helloliuyongsheng-bot

Oauth Helper

AI 智慧體v1.1.0
作者:helloliuyongsheng-bot更新於 2026-05-18共 2 個版本 · 最新版本釋出於 2026-01-29oauth-helper@clawhub_helloliuyongsheng-bot/oauth-helper
任務自動化工作流編排#Discord#GitHub#Telegram#WeChat

據 AlphaMoat 統計,截至 2026-09,Oauth Helper 累計下載 3,905 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 2,659 位,在「AI 智慧體」分類(969 個)中排名第 522 位。

累計安裝
232
累計下載
3905
星標
3
全站排名
#2,659
全站前 53% · 「AI 智慧體」前 54%
平台累計安裝累計下載星標評論
ClawHub ↗128379131
SkillHub ↗23239053—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能讓智慧體自動化完成 OAuth 登入流程,覆蓋 Google、Apple、Microsoft、GitHub、Discord、微信、QQ 七大提供商。工作流分兩段:登入頁掃描可用的 OAuth 按鈕,多選項時透過 Telegram 讓使用者回覆數字選擇;授權頁則先發 Telegram 確認(回覆 yes),再執行對應提供商的點選序列(賬號選擇、電子郵件/密碼輸入、授權按鈕、2FA、微信/QQ 走掃碼)。文件含各提供商的 URL 識別模式、頁面選擇器與錯誤處理(超時取消、2FA 手動輸入、掃碼失敗重截圖)。需 Clawd 瀏覽器已登入各提供商並配置好 Telegram 頻道。

資料釋出於 2026-10-27

可以用來做什麼

  • 讓智慧體代登入 Kaggle 等站點:自動識別登入方式並由 Telegram 確認
  • 在 OAuth 授權頁點選前經 Telegram 獲得使用者明確同意
  • 用掃碼方式完成微信/QQ 登入(截圖發給使用者等待掃碼確認)

什麼時候用

  • 當使用者要求智慧體代為完成網站的 OAuth 登入時
  • 當需要在選擇提供商或點選授權前經由 Telegram 徵求使用者確認時
  • 當需要處理賬號選擇、授權同意頁或 2FA 等登入流程細節時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

幫我登入 Kaggle,有多個登入方式就發 Telegram 讓我選
檢測到 Google OAuth 頁面了,先發 Telegram 確認再點授權
截圖這個微信登入二維碼發給我,我掃一下

月度資料趨勢

累計下載3905
2566328540042026-03 · 累計下載 26652026-05 · 累計下載 32282026-06 · 累計下載 33622026-07 · 累計下載 36252026-08 · 累計下載 37042026-09 · 累計下載 390526-0326-09
星標3
2342026-03 · 星標 32026-05 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093905—3
2026-083704+2.2%3
2026-073625+7.8%3
2026-063362+4.2%3
2026-053228—3
2026-032665—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.7 KB · ClawHub v1.1.0
---
name: oauth-helper
description: |
  Automate OAuth login flows with user confirmation via Telegram.
  Supports 7 providers: Google, Apple, Microsoft, GitHub, Discord, WeChat, QQ.
  
  Features:
  - Auto-detect available OAuth options on login pages
  - Ask user to choose via Telegram when multiple options exist
  - Confirm before authorizing
展開全部(共 255 行)
  - Handle account selection and consent pages automatically
---

# OAuth Helper

Automate OAuth login with Telegram confirmation. Supports 7 major providers.

## Supported Providers

| Provider | Status | Detection Domain |
|----------|--------|------------------|
| Google | ✅ | accounts.google.com |
| Apple | ✅ | appleid.apple.com |
| Microsoft | ✅ | login.microsoftonline.com, login.live.com |
| GitHub | ✅ | github.com/login/oauth |
| Discord | ✅ | discord.com/oauth2 |
| WeChat | ✅ | open.weixin.qq.com |
| QQ | ✅ | graph.qq.com |

## Prerequisites

1. Clawd browser logged into the OAuth providers (one-time setup)
2. Telegram channel configured

## Core Workflow

### Flow A: Login Page with Multiple OAuth Options

When user requests to login to a website:

```
1. Open website login page
2. Scan page for available OAuth buttons
3. Send Telegram message:
   "🔐 [Site] supports these login methods:
    1️⃣ Google
    2️⃣ Apple  
    3️⃣ GitHub
    Reply with number to choose"
4. Wait for user reply (60s timeout)
5. Click the selected OAuth button
6. Enter Flow B
```

### Flow B: OAuth Authorization Page

When on an OAuth provider's page:

```
1. Detect OAuth page type (by URL)
2. Extract target site info
3. Send Telegram: "🔐 [Site] requests [Provider] login. Confirm? Reply yes"
4. Wait for "yes" (60s timeout)
5. Execute provider-specific click sequence
6. Wait for redirect back to original site
7. Send: "✅ Login successful!"
```

## Detection Patterns

### Google
```
URL patterns:
- accounts.google.com/o/oauth2
- accounts.google.com/signin/oauth
- accounts.google.com/v3/signin
```

### Apple
```
URL patterns:
- appleid.apple.com/auth/authorize
- appleid.apple.com/auth/oauth2
```

### Microsoft
```
URL patterns:
- login.microsoftonline.com/common/oauth2
- login.microsoftonline.com/consumers
- login.live.com/oauth20
```

### GitHub
```
URL patterns:
- github.com/login/oauth/authorize
- github.com/login
- github.com/sessions/two-factor
```

### Discord
```
URL patterns:
- discord.com/oauth2/authorize
- discord.com/login
- discord.com/api/oauth2
```

### WeChat
```
URL patterns:
- open.weixin.qq.com/connect/qrconnect
- open.weixin.qq.com/connect/oauth2
```

### QQ
```
URL patterns:
- graph.qq.com/oauth2.0/authorize
- ssl.xui.ptlogin2.qq.com
- ui.ptlogin2.qq.com
```

## Click Sequences by Provider

### Google
```
Account selector: [data-identifier], .JDAKTe
Auth buttons: button:has-text("Allow"), button:has-text("Continue")
```

### Apple
```
Email input: input[type="email"], #account_name_text_field
Password: input[type="password"], #password_text_field  
Continue: button#sign-in, button:has-text("Continue")
Trust device: button:has-text("Trust")
```

### Microsoft
```
Account selector: .table-row[data-test-id]
Email input: input[name="loginfmt"]
Password: input[name="passwd"]
Next: button#idSIButton9
Accept: button#idBtn_Accept
```

### GitHub
```
Email: input#login_field
Password: input#password
Sign in: input[type="submit"]
Authorize: button[name="authorize"]
2FA: input#app_totp
```

### Discord
```
Email: input[name="email"]
Password: input[name="password"]
Login: button[type="submit"]
Authorize: button:has-text("Authorize")
```

### WeChat
```
Method: QR code scan
- Screenshot QR code to user
- Wait for mobile scan confirmation
- Detect page redirect
```

### QQ
```
Method: QR code or password login
QR: Screenshot to user
Password mode:
  - Switch: a:has-text("密码登录")
  - Username: input#u
  - Password: input#p
  - Login: input#login_button
```

## OAuth Button Detection

Scan login pages for these selectors:

| Provider | Selectors | Common Text |
|----------|-----------|-------------|
| Google | `[data-provider="google"]`, `.google-btn` | "Continue with Google" |
| Apple | `[data-provider="apple"]`, `.apple-btn` | "Sign in with Apple" |
| Microsoft | `[data-provider="microsoft"]` | "Sign in with Microsoft" |
| GitHub | `[data-provider="github"]` | "Continue with GitHub" |
| Discord | `[data-provider="discord"]` | "Login with Discord" |
| WeChat | `.wechat-btn`, `img[src*="wechat"]` | "WeChat Login" |
| QQ | `.qq-btn`, `img[src*="qq"]` | "QQ Login" |

## One-Time Setup

Login to each provider in clawd browser:

```bash
# Google
browser action=navigate profile=clawd url=https://accounts.google.com

# Apple
browser action=navigate profile=clawd url=https://appleid.apple.com

# Microsoft  
browser action=navigate profile=clawd url=https://login.live.com

# GitHub
browser action=navigate profile=clawd url=https://github.com/login

# Discord
browser action=navigate profile=clawd url=https://discord.com/login

# WeChat/QQ - Use QR scan, no pre-login needed
```

## Error Handling

- No "yes" reply → Cancel and notify user
- 2FA required → Prompt user to enter code manually
- QR timeout → Re-screenshot new QR code
- Login failed → Screenshot and send to user for debugging

## Usage Example

```
User: Login to Kaggle for me

Agent:
1. Navigate to kaggle.com/account/login
2. Detect Google/Facebook/Yahoo options
3. Send: "🔐 Kaggle supports:
   1️⃣ Google
   2️⃣ Facebook
   3️⃣ Yahoo
   Reply number to choose"
4. User replies: 1
5. Click Google login
6. Detect Google OAuth page
7. Send: "🔐 Kaggle requests Google login. Confirm? Reply yes"
8. User replies: yes
9. Select account, click Continue
10. Send: "✅ Logged into Kaggle!"
```

## Version History

- v1.0.0 - Initial release with 7 OAuth providers

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。