PromptScript 脚本开发与排错
promptscript
PromptScript 语言专家,用于读取、编写、修改和排查 .prs 文件。适用于处理 PromptScript 语法、创建或编辑 .prs 文件、添加 @identity、@standards、@restrictions、@shortcuts、@skills 或 @agents 等块、配置 promptscript.yaml、解决编译错误、理解继承(@inherit)、组合(@use、@extend、@override)、上下文 @header 元数据,或将 AI 指令迁移到 PromptScript。当用户询问 50 种内置编码 agent 编译目标(包括 GitHub Copilot、Claude Code、Cursor、Antigravity、Factory AI 以及基于 AGENTS.md 的平台),或询问用于应用提示词的 bundle 与 prompt-text 目标时,也应使用。
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 344
- Forks
- 7
01 前言 Front Matter
- name
- gdcli
- description
- Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.
03 SKILL.md 正文
Google Drive CLI
Command-line interface for Google Drive operations.
Installation
npm install -g @mariozechner/gdcli
Setup
Google Cloud Console (one-time)
- Create a new project (or select existing)
- Enable the Google Drive API
- Set app name in OAuth branding
- Add test users (all Gmail addresses you want to use)
- Create OAuth client:
- Click "Create Client"
- Application type: "Desktop app"
- Download the JSON file
Configure gdcli
First check if already configured:
gdcli accounts list
If no accounts, guide the user through setup:
- Ask if they have a Google Cloud project with Drive API enabled
- If not, walk them through the Google Cloud Console steps above
- Have them download the OAuth credentials JSON
- Run:
gdcli accounts credentials ~/path/to/credentials.json - Run:
gdcli accounts add <email>(use--manualfor browserless OAuth)
Usage
Run gdcli --help for full command reference.
Common operations:
gdcli <email> ls [folderId]- List files/foldersgdcli <email> ls --query "<query>"- List with Drive query filtergdcli <email> search "<text>"- Full-text content searchgdcli <email> download <fileId> [destPath]- Download a filegdcli <email> upload <localPath> [--folder <folderId>]- Upload a filegdcli <email> mkdir <name>- Create a foldergdcli <email> share <fileId> --anyone- Share publicly
Search
Two different commands:
search "<text>"- Searches inside file contents (fullText)ls --query "<query>"- Filters by metadata (name, type, date, etc.)
Use ls --query for filename searches!
Query Syntax (for ls --query)
Format: field operator value. Combine with and/or, group with ().
Operators: =, !=, contains, <, >, <=, >=
Examples:
# By filename
ls --query "name = 'report.pdf'" # exact match
ls --query "name contains 'IMG'" # prefix match
# By type
ls --query "mimeType = 'application/pdf'"
ls --query "mimeType contains 'image/'"
ls --query "mimeType = 'application/vnd.google-apps.folder'" # folders
# By date
ls --query "modifiedTime > '2024-01-01'"
# By owner/sharing
ls --query "'me' in owners"
ls --query "sharedWithMe"
# Exclude trash
ls --query "trashed = false"
# Combined
ls --query "name contains 'report' and mimeType = 'application/pdf'"
Ref: https://developers.google.com/drive/api/guides/ref-search-terms
Data Storage
~/.gdcli/credentials.json- OAuth client credentials~/.gdcli/accounts.json- Account tokens~/.gdcli/downloads/- Default download location
Gotchas
searchandls --queryare completely different commands.searchsearches inside file contents (fullText);ls --queryfilters by metadata (name, type, date). For filename searches, always usels --query "name contains '...'".- Test users must be explicitly added in Google Cloud Console > OAuth > Audience. Without this step, OAuth fails with "Access blocked: this app hasn't been authorized."
- Apps in "Testing" mode expire after 7 days — tokens become invalid and users must re-authenticate. Publish the app (internal use only is fine) to avoid repeated re-auth.
04 同仓库更多 Skills
PromptScript 脚本编写与排查
promptscript
PromptScript 语言专家,用于读取、编写、修改和排查 .prs 文件。适用于处理 PromptScript 语法、创建或编辑 .prs 文件、添加 @identity、@standards、@restrictions、@shortcuts、@skills 或 @agents 等块、配置 promptscript.yaml、解决编译错误、理解继承(@inherit)、组合(@use、@extend、@override)、上下文 @header 元数据,或将 AI 指令迁移到 PromptScript。当用户询问 50 个内置编码智能体编译目标(包括 GitHub Copilot、Claude Code、Cursor、Antigravity、Factory AI 以及基于 AGENTS.md 的平台),或询问用于应用提示词的 bundle 和 prompt-text 目标时,也适用此技能。
基础专家技能
expert
基础专家技能。
测试驱动开发工作流
tdd-workflow
测试驱动开发(TDD)工作流。
Alpha 技能
alpha
Alpha 技能
PDF 文件处理
pdf-processing
提取 PDF 文本、填写表单、合并文件。用于处理 PDF 时。
React 组件编写规范
react-component-patterns
在此代码库中编写 React 组件的约定。