agentleFS
stardustaistardustai/stardust-skills/skills/dingtalk-browser-export/SKILL.md

dingtalk-browser-export

Skill0 starsChanged 2 months agoMITView on GitHub

Export the currently open DingTalk/Alidocs document from a logged-in Chrome session without relying on the browser save dialog. Use this whenever the user asks to export, download, save, or back up the current DingTalk document to Word (.docx), PDF, or Markdown, especially when Chrome download popups would block automation.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user wants the current DingTalk document from their real Chrome session exported to a local file without getting …

    line 8
  2. Distinctive:

    Prefer this skill when the user is already logged into DingTalk in Chrome.

    line 11
  3. Distinctive:

    Prefer this skill when the user explicitly wants the same export result as DingTalk's web UI.

    line 12
  4. Distinctive:

    Do not use this skill for editing document content.

    line 13
  5. Distinctive:

    Run the bundled script:

    line 25
  6. Distinctive:

    If you need to force a specific profile:

    line 31
  7. Very specific:

    Use --format when needed:

    line 42
  8. Distinctive:

    If the toolbar DOM shifts, rerun once after re-focusing the desired Chrome tab.

    line 58
  9. Distinctive:

    If export fails, say whether it failed at:

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

DingTalk Browser Export

Use this skill when the user wants the current DingTalk document from their real Chrome session exported to a local file without getting blocked by the browser's save dialog.

This skill is for the browser-export path, not the OpenAPI path:

  • Prefer this skill when the user is already logged into DingTalk in Chrome.
  • Prefer this skill when the user explicitly wants the same export result as DingTalk's web UI.
  • Do not use this skill for editing document content.

Prerequisites

  • OpenClaw Chrome extension is installed and connected.
  • openclaw CLI is available locally.
  • Chrome already has the target DingTalk document open and visible.
  • The active relay profile may be chrome-relay or another extension-backed profile; do not assume it is named chrome.

Workflow

  1. Confirm the active Chrome tab is a DingTalk/Alidocs document.
  2. Run the bundled script:
python3 /Users/derek/.agents/skills/dingtalk-browser-export/scripts/export_current_dingtalk.py

If you need to force a specific profile:

python3 /Users/derek/.agents/skills/dingtalk-browser-export/scripts/export_current_dingtalk.py --browser-profile chrome-relay
  1. By default the script exports .docx to /Users/derek/output/doc.
  2. Report the saved file path back to the user.

Format options

Use --format when needed:

python3 /Users/derek/.agents/skills/dingtalk-browser-export/scripts/export_current_dingtalk.py --format pdf
python3 /Users/derek/.agents/skills/dingtalk-browser-export/scripts/export_current_dingtalk.py --format md

Supported values:

  • docx
  • pdf
  • md

Operational notes

  • The script does not wait for Chrome's save dialog.
  • It triggers DingTalk's own export job in the page, captures the export result URL, and downloads the generated file directly to a fixed local path.
  • If the toolbar DOM shifts, rerun once after re-focusing the desired Chrome tab. The script already re-reads the current active tab every run and probes multiple header buttons before failing.

Output

Always return:

  • the document title
  • the export format
  • the saved local path

If export fails, say whether it failed at:

  • finding the active DingTalk tab
  • opening the export menu
  • waiting for the export job result
  • downloading the generated file

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.