Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计提醒

google-masterGoogle master 命令行

Agent Skill

google-master 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

388

周安装

16

GitHub Stars

2

下载量

127
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:google-master(Google master 命令行)
来源仓库:https://github.com/abdullahbeam/nexus-design-abdullah
仓库路径:skills/google-master
安装命令:
npx skills add https://github.com/abdullahbeam/nexus-design-abdullah --skill google-master
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/abdullahbeam/nexus-design-abdullah --skill google-master

简介

用于处理 GitHub 仓库协作信息,适合跟踪 Issue、PR 与代码变更。

  • 适用于获取仓库状态、分析提交历史或管理协作事项,需绑定有效 token。
  • 使用时需确认仓库权限与敏感信息脱敏要求,避免泄露私有项目细节。
  • 安装方式:github,命令:npx skills add https://github.com/abdullahbeam/nexus-design-abdullah --skill google-master。
  • 注意权限范围与维护状态,可能触发 API 调用与文件读写,建议先在测试库验证。

SKILL.md

Google Master

This is NOT a user-facing skill. It's a shared resource library referenced by all Google integration skills.

Purpose

Provides shared resources to eliminate duplication across:

  • gmail - Email operations (read, send, reply, forward)
  • google-docs - Document operations (read, write, create, export)
  • google-sheets - Spreadsheet operations (read, write, append)
  • google-calendar - Calendar operations (events, availability, scheduling)

Instead of loading this skill, users directly invoke the specific skill they need above.


Architecture: DRY Principle

Problem solved: Google skills would have duplicated content (OAuth setup, credentials management, error handling, API patterns).

Solution: Extract shared content into google-master/references/ and google-master/scripts/, then reference from each skill.

Result:

  • Single OAuth flow for all Google services
  • One credentials source (.env file with GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_PROJECT_ID)
  • One unified token with all scopes
  • Consistent error handling across skills

Shared Resources

All Google skills reference these resources (progressive disclosure).

scripts/

Authentication & Configuration

google_auth.py - Unified OAuth for all Google services

python google_auth.py --check [--service SERVICE] [--json]
python google_auth.py --login [--service SERVICE]
python google_auth.py --logout
python google_auth.py --status
ArgumentRequiredDefaultDescription
--checkNo-Check if authenticated and ready
--loginNo-Initiate OAuth login flow
--logoutNo-Remove stored token
--statusNo-Show detailed auth status
--serviceNoallSpecific service: gmail, docs, sheets, calendar, or all
--jsonNoFalseOutput as JSON

Exit codes:

  • 0 = configured and ready
  • 1 = needs login (credentials exist but not authenticated)
  • 2 = not configured (missing credentials or dependencies)

When to Use: Run this FIRST before any Google operation. Called automatically by individual skills.


check_google_config.py - Pre-flight validation

python check_google_config.py [--json]
ArgumentRequiredDefaultDescription
--jsonNoFalseOutput structured JSON for AI consumption

When to Use: Quick check if Google integration is configured. Use for diagnostics.


references/

setup-guide.md - Complete setup wizard

  • Creating Google Cloud project
  • Enabling APIs (Gmail, Docs, Sheets, Calendar)
  • Creating OAuth 2.0 credentials
  • Adding credentials to .env file
  • First-time authentication flow

error-handling.md - Troubleshooting

  • Common errors and solutions
  • HTTP error codes (401, 403, 404)
  • Scope/permission issues
  • Rate limiting
  • Token refresh failures

api-patterns.md - Common patterns

  • Authentication headers
  • Pagination
  • Batch requests
  • Error responses

Service Scopes

The unified token requests all scopes on first login:

ServiceScopes
Gmailgmail.readonly, gmail.send, gmail.compose, gmail.modify, gmail.labels
Docsdocuments, drive
Sheetsspreadsheets, drive.readonly
Calendarcalendar, calendar.events

Note: User grants all permissions once, then all Google skills work.


File Locations

FileLocationPurpose
OAuth credentials.env (GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_PROJECT_ID)App identity from Google Cloud
Access token01-memory/integrations/google-token.jsonUser's authenticated token

How Skills Reference This

Each skill imports the shared auth module:

# In any Google skill's operations script
import sys
from pathlib import Path

# Add google-master to path
NEXUS_ROOT = Path(__file__).resolve().parents[4]  # Adjust based on skill location
sys.path.insert(0, str(NEXUS_ROOT / "00-system/skills/google/google-master/scripts"))

from google_auth import get_credentials, get_service

# Get authenticated service
gmail = get_service('gmail', 'v1')
docs = get_service('docs', 'v1')
sheets = get_service('sheets', 'v4')
calendar = get_service('calendar', 'v3')

Intelligent Error Detection Flow

When a Google skill fails due to missing configuration, the AI should:

Step 1: Run Config Check with JSON Output

python 00-system/skills/google/google-master/scripts/check_google_config.py --json

Step 2: Parse the ai_action Field

ai_actionWhat to Do
proceedConfig OK, continue with operation
install_dependenciesRun: pip install google-auth google-auth-oauthlib google-api-python-client
need_credentialsGuide user to create OAuth credentials in Google Cloud Console
need_loginRun: python google_auth.py --login

Step 3: Help User Fix Issues

If credentials missing:

  1. Direct user to: https://console.cloud.google.com/
  2. Guide through: APIs & Services > Credentials > Create OAuth Client ID (Desktop app)
  3. Copy Client ID and Client Secret, add to .env: GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=your-client-secret GOOGLE_PROJECT_ID=your-project-id
  4. Run --login to authenticate

Usage Example

User says: "send an email to john@example.com"

What happens:

  1. AI loads gmail skill (NOT google-master)
  2. gmail SKILL.md says: "Run pre-flight check first"
  3. AI executes: python google-master/scripts/google_auth.py --check --service gmail
  4. If exit code 0: proceed with gmail_operations.py
  5. If exit code 1: run --login automatically
  6. If exit code 2: load error-handling.md, guide user through setup

google-master is NEVER loaded directly - it's just a resource library.


Adding New Google Services

To add a new Google service (e.g., Google Drive, Google Tasks):

  1. Add scopes to SCOPES dict in google_auth.py
  2. Create new skill folder with operations script
  3. Import get_service() from google-master
  4. Document in this SKILL.md

Version: 1.0 Created: 2025-12-17 Updated: 2025-12-17 Status: Production Ready

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.67%
按下载量换算39

Antigravity

22.48%
按下载量换算29

Codex

18.39%
按下载量换算23

Gemini CLI

13.08%
按下载量换算17

windsurf

8.82%
按下载量换算11

OpenCode

3.53%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills