用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/warpdotdev/competitive-intelligence-agent-oss --skill write-google-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | write_google_docs |
| description | Skill for writing arbitrary Google Docs |
Use this skill to create new Google Docs documents, populate them with content, and write to specific tabs.
Use this skill when you need to:
Do NOT use this skill when:
Run the script from the skills/write_google_docs/ directory:
python skills/write_google_docs/write_google_doc.py --title "Document Title" --content "Your content here"
python skills/write_google_docs/write_google_doc.py --title "Weekly Report" --tab "Week 9" --content "Week 9 analysis..."
python skills/write_google_docs/write_google_doc.py --document-id DOCUMENT_ID --tab "Week 10" --content "Week 10 analysis..."
python skills/write_google_docs/write_google_doc.py --document-id DOCUMENT_ID --tab "Summary" --content-file summary.txt
When using --document-id, the --tab flag is required. When creating a new document with --title, --tab is optional — if omitted, content goes to the default first tab.
Use --folder-id to create the document inside a specific Google Drive folder:
python skills/write_google_docs/write_google_doc.py --title "Report" --folder-id FOLDER_ID --content "Content..."
The folder ID is the last segment of a Drive folder URL (e.g. YOUR_GOOGLE_DRIVE_FOLDER_ID from https://drive.google.com/drive/folders/YOUR_GOOGLE_DRIVE_FOLDER_ID). This option can be combined with --tab.
python skills/write_google_docs/write_google_doc.py --title "Brief Title" --content "Brief content goes here"
python skills/write_google_docs/write_google_doc.py --title "Report Title" --content-file /path/to/content.txt
echo "Content here" | python skills/write_google_docs/write_google_doc.py --title "Document Title" --stdin
For programmatic use, add the --json flag:
python skills/write_google_docs/write_google_doc.py --title "Title" --content "Content" --json
This returns JSON with documentId, webViewLink, title, and optionally tabId.
The script outputs:
--tab)Markdown in the content is automatically converted to native Google Docs formatting:
# Heading through ###### Heading → Google Docs headings (H1-H6)**bold** or __bold__ → bold text*italic* or _italic_ → italic text- item or * item → bullet lists1. item → numbered lists[text](url) → plain text (link removed)`code` → plain text (backticks removed)For best results:
After creating a document, you can:
post_to_slack skill to share the link to Slackpython skills/write_google_docs/write_google_doc.py --title "Competitive Analysis - January 2026" --content "Your analysis content..."
Create the document with the first week's tab:
python skills/write_google_docs/write_google_doc.py --title "Weekly Reports - Q1 2026" --tab "Week 1" --content "Week 1 content..." --json
Then add subsequent weeks to the same document using the returned document ID:
python skills/write_google_docs/write_google_doc.py --document-id DOC_ID --tab "Week 2" --content "Week 2 content..."
python skills/write_google_docs/write_google_doc.py --document-id DOC_ID --tab "Week 3" --content "Week 3 content..."
token.json in the project root and re-authenticateIf you encounter authentication errors:
token.json and run again to re-authenticate with new scopes