praxis-gws
Google Workspace CLI for Gmail, Calendar, and Drive. Official Google APIs wrapper for secure, direct API access without third-party proxies. Use when managing emails, calendar events, or searching Google Drive files. Supports Gmail search operators, label management, drafts, calendar event creation, and Drive file search.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- praxis-gws
- description
- Google Workspace CLI for Gmail, Calendar, and Drive. Official Google APIs wrapper for secure, direct API access without third-party proxies. Use when managing emails, calendar events, or searching Google Drive files. Supports Gmail search operators, label management, drafts, calendar event creation, and Drive file search.
03 SKILL.md 正文
Praxis Google Workspace CLI
Official Google APIs wrapper for Gmail, Calendar, and Drive. Direct connection to Google — no third-party proxy.
Setup
1. Create Google Cloud Project
- Go to https://console.cloud.google.com
- Create a new project
- Enable these APIs:
- Gmail API
- Google Calendar API
- Google Drive API
2. Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Application type: Desktop app
- Download the JSON file
3. Configure the CLI
praxis-gws auth credentials /path/to/client_secret.json
4. Authenticate
praxis-gws gmail labels
This will output a Google OAuth URL. Open it in your browser, authorize the app, and paste the authorization code back.
Usage
Gmail Commands
Search messages:
praxis-gws gmail search "is:unread from:example.com"
praxis-gws gmail search "subject:meeting has:attachment" --max 20
Get message:
praxis-gws gmail get <messageId>
Send email:
praxis-gws gmail send "recipient@example.com" "Subject" "Body text"
Create draft:
praxis-gws gmail draft "recipient@example.com" "Subject" "Draft body"
List labels:
praxis-gws gmail labels
Modify labels:
praxis-gws gmail modify <messageId> --add STARRED --remove UNREAD
Calendar Commands
List events:
praxis-gws calendar list primary --max 10
praxis-gws calendar list primary --from "2026-02-22T00:00:00" --to "2026-03-01T23:59:59"
Create event:
praxis-gws calendar create primary "Meeting Title" \
--from "2026-02-25T14:00:00" \
--to "2026-02-25T15:00:00"
Drive Commands
Search files:
praxis-gws drive search "name contains 'project'"
praxis-gws drive search "mimeType = 'application/vnd.google-apps.document'"
Get file metadata:
praxis-gws drive get <fileId>
Gmail Search Operators
is:unread- Unread messagesis:starred- Starred messagesfrom:email@example.com- From specific senderto:email@example.com- To specific recipientsubject:keyword- Subject contains keywordafter:2026/01/01- After datebefore:2026/12/31- Before datehas:attachment- Has attachmentsin:inbox- In inboxlabel:important- With specific label
Common Labels
INBOX- InboxSENT- Sent mailDRAFT- DraftsSTARRED- StarredUNREAD- UnreadIMPORTANT- ImportantTRASH- TrashSPAM- Spam
Security
- OAuth tokens stored locally in
~/.config/praxis-gws/ - Direct API connection to Google (no proxy)
- Uses official
googleapisNode.js library - Required scopes:
https://www.googleapis.com/auth/gmail.modifyhttps://www.googleapis.com/auth/calendarhttps://www.googleapis.com/auth/drive.readonly
Troubleshooting
Error: credentials.json not found
→ Run praxis-gws auth credentials /path/to/client_secret.json
Error: Invalid grant / Token expired
→ Delete ~/.config/praxis-gws/token.json and re-run to trigger new OAuth flow
"Google hasn't verified this app" warning → Click Advanced → Go to [project name] (unsafe) to proceed
CLI Script
The CLI is available at:
scripts/praxis-gws.js
Requires Node.js and the googleapis npm package:
npm install -g googleapis
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.