Index of every page on this site: llms.txt
All skills
aktsmm avatar

/teams-photo-export

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

Export photos and inline images from Microsoft Teams chats or channel threads into dated local folders. Use when the user shares a Teams chat URL, channel/thread URL, Teams title, or asks to save/download/extract Teams photos/images. Triggers on "Teams photos", "Teams images", "Teams画像保存", "Teams写真抽出", "チャット画像", "Teams URLから画像".

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/teams-photo-export

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈97 tokens for metadata: the name and description. ≈906 when used: this file. ≈933 more on demand in 2 files.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Teams Photo Export

Extract images from Microsoft Teams conversations into organized local folders.

When to Use

  • User provides a Teams chat URL, channel/thread URL, or chat title and wants images/photos saved.
  • User asks to export, extract, download, collect, or organize Teams photos/images.
  • User wants the output under the configured work-photo folder.
  • Manual invocation only (/teams-photo-export); the skill reads private chat content, so it is never started implicitly.

Default Output Root

Resolve the output root in this order: --output-root, the user environment variable TEAMS_IMAGE_EXPORT_ROOT, then <user pictures folder>\Teams Photo Export. Ask the user when the destination matters (for example a cloud-synced work-photo folder), and set TEAMS_IMAGE_EXPORT_ROOT only with their agreement.

Output folders should be named:

YYYY-MM-DD_<Teams chat/thread/project title>

Sanitize Windows-invalid characters: \ / : * ? " < > |.

Strategy

Prefer the no-admin path first.

  1. Teams Web CDP path (default): open Teams Web in a dedicated Edge profile, attach Playwright over CDP, scroll the conversation, and save visible img[alt="メディア"] / img[alt="Media"] blob images.
  2. ASM full-size enhancement (not implemented in the script): capturing asm.skype.com/.../views/imgpsh_fullsize* responses would give originals instead of preview blobs; today the script saves the rendered blob images only.
  3. Graph hostedContents path (only if consent works): use Chat.Read or ChannelMessage.Read.All and hostedContents/$value for original-quality download.
  4. SPO/OneDrive attachment path: use when attachments[].contentUrl points to a file in SharePoint/OneDrive. Inline pasted images usually are not stored there.

Do not rely on native Teams UI Automation as the main path; it is slower and less stable than Teams Web CDP.

Workflow

  1. Parse the input.
    • Chat URL example: extract 19:...@thread.v2 as chatId.
    • Channel URLs may need Teams Web navigation; do not assume Graph channel IDs are available.
    • If title search returns multiple candidates, ask the user to choose.
  2. Create a dry-run plan.
    • Source URL/title
    • Output root and final folder
    • Date range or scroll limit
    • Expected naming pattern
  3. Ask for confirmation before a large export.
  4. Run scripts/export_visible_teams_images.py for the Teams Web path.
  5. Verify saved file count and list the output folder.

Script Usage

Start or reuse an Edge instance with CDP:

python "%USERPROFILE%\.copilot\skills\teams-photo-export\scripts\export_visible_teams_images.py" `
  --url "https://teams.microsoft.com/l/chat/..." `
  --title "Project or chat title" `
  --date "2026-07-02"

Useful options:

--output-root <path>     Override TEAMS_IMAGE_EXPORT_ROOT
--max-scrolls <n>        Limit virtual-scroll attempts
--dry-run                Show target folder and detected images without writing
--keep-browser-open      Do not close the dedicated Edge

Safety Rules

  • Only export content the signed-in user can access.
  • Never send, forward, or share exported images automatically.
  • Keep outbound summaries generic; images and chat metadata are private user data.
  • Do not log bearer tokens or authenticated Graph URLs.
  • Prefer a dedicated Edge user-data-dir so regular browser sessions are not disturbed.
  • Do not overwrite existing files; use hashes to skip duplicates and sequence numbers for new files.

References

  • See references/implementation-notes.md for Graph/SPO/WebView2 tradeoffs and source URLs.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The 'teams-photo-export' skill safely automates the extraction of images from Microsoft Teams via a local Edge browser instance. It follows security best practices such as profile isolation, path sanitization, and strict local-only data handling.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: MEDIUM · 1 issue

Signed by skilld at 9bedf91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated 4 weeks ago
argument-hint
Teams URL or title; optional output root/date range
user-invocable
true
disable-model-invocation
true
Other metadata
metadata
{
  "author": "aktsmm"
}

README badge

README badge for aktsmm/agent-skills/teams-photo-export