Post content to Tencent Docs (腾讯文档). Supports creating new documents with title and content. Uses Chrome CDP automation. Supports Simplified Chinese, Traditional Chinese, English.
Post content and create new documents on Tencent Docs using Chrome CDP automation.
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
SKILL_DIR${SKILL_DIR}/scripts/<script-name>.ts${SKILL_DIR} in this document with the actual pathScript Reference:
| Script | Purpose |
|---|---|
scripts/tencent-docs-browser.ts | Create and publish documents |
scripts/cdp.ts | Chrome CDP utilities |
bun installed (for running scripts)# Preview mode (doesn't publish)
npx -y bun ${SKILL_DIR}/scripts/tencent-docs-browser.ts --title "文档标题" --content "文档内容"
# Actually publish/share
npx -y bun ${SKILL_DIR}/scripts/tencent-docs-browser.ts --title "文档标题" --content "文档内容" --submit
# Create document from markdown
npx -y bun ${SKILL_DIR}/scripts/tencent-docs-browser.ts --markdown article.md --submit
# Create document with content from file
npx -y bun ${SKILL_DIR}/scripts/tencent-docs-browser.ts --title "标题" --file content.txt --submit
| Parameter | Description |
|---|---|
--title <text> | Document title (required) |
--content <text> | Document content (required) |
--markdown <path> | Create from Markdown file |
--file <path> | Read content from text file |
--submit | Publish/share document (default: preview only) |
--profile <dir> | Custom Chrome profile directory |
--type <type> | Document type: doc (Word), sheet (Excel), slide (PPT). Default: doc |
Tencent Docs supports multiple document types:
| Type | Name | URL | Status |
|---|---|---|---|
doc | Word Document | doc.weixin.qq.com | ✅ Implemented |
sheet | Excel Spreadsheet | doc.weixin.qq.com | ⏳ TODO |
slide | PowerPoint Presentation | doc.weixin.qq.com | ⏳ TODO |
Fully Implemented
npx -y bun ${SKILL_DIR}/scripts/tencent-docs-browser.ts \
--title "项目文档" \
--content "这是文档内容
支持多行文本。" \
--submit
https://doc.weixin.qq.com/home/recent)When using --markdown, the script extracts:
# Title (becomes document title)
Content description here...
## Subsections (optional)
More content...
### Lists (optional)
- Item 1
- Item 2
**Bold** and *italic* text supported.
npx -y bun ${SKILL_DIR}/scripts/tencent-docs-browser.ts \
--title "会议记录 - 2024年项目规划" \
--content "会议时间:2024年1月15日
参会人员:产品团队、开发团队
主要议题:
1. 产品功能规划
2. 技术架构讨论
3. 时间线安排
决议事项:
- 确定Q1发布计划
- 启动技术重构" \
--submit
The skill supports Tencent Docs' multiple interface languages:
TENCENT_DOCS_CHROME_PATH environment variableCustom configurations via EXTEND.md.
Check paths (priority order):
.w0x7ce-skills/w0x7ce-post-to-tencent-docs/EXTEND.md (project)~/.w0x7ce-skills/w0x7ce-post-to-tencent-docs/EXTEND.md (user)If found, load before workflow. Extension content overrides defaults.