AGENT SKILL

会话文件打包下载

grab-my-files

将本会话中智能体生成的每个文件打包成一个带时间戳的 .zip 文件,并作为下载链接返回。当用户要求“导出所有生成的文件”、“打包我的文件”、“打包你制作的所有内容”、“捆绑我的文件”、“把所有文件给我”或类似请求时使用。文件从 /app/created/ 读取。请勿用于获取用户本就可单独下载的某个指定文件、创建或转换文件,或将文件保存/持久化到 SharePoint、OneDrive 或 Dataverse——这些属于独立流程,并非本地打包下载。

适用职业普通用户
License 许可
MIT
最近更新
2026-11-14
Stars
★ 107
Forks
120

01 前言 Front Matter

name
grab-my-files
description
Bundle every file the agent produced in this session into a single timestamped .zip and hand it back as a download. Use when the user asks to "export all produced files", "zip my files", "package everything you made", "bundle my files", "give me all the files", or similar. Files are read from /app/created/. Do NOT use to fetch a single named file the user can already download on its own, to create or convert a file, or to save/persist files to SharePoint, OneDrive, or Dataverse — those are separate flows, not a local zip-and-download.

02 资源文件 2

03 SKILL.md 正文

Grab My Files

When to use

Invoke when the user says anything like:

  • "export all produced files" / "package everything"
  • "zip up my files" / "bundle my files"
  • "give me everything you made" / "download all the outputs"

If the user names a subset ("just the PDFs", "only the report"), honor that and zip only the matching files, but still follow the rules below.

How to export

  1. Inspect the folder. List /app/created/ recursively so nested outputs (e.g. /app/created/charts/foo.png) are included, not just top-level files.
  2. Decide what goes in. Include every produced file except:
    • any previous export archive (files named all_files_produced_*.zip), and
    • hidden/system junk (.DS_Store, Thumbs.db, *.tmp, dotfiles).
  3. Prune old exports after the new one is written. Build the new archive first, then delete any other all_files_produced_*.zip in /app/created/. Doing it in this order means a failed build never destroys the user's previous bundle, and no old export gets nested inside the new one.
  4. Handle the empty case. If nothing qualifies, tell the user there are no produced files to export and stop — do not create an empty zip.
  5. Name the archive all_files_produced_<YYYYMMDD_HHMMSS>.zip — a sortable, UTC timestamp — and write it to /app/created/.
  6. Preserve structure. Keep the relative folder layout inside the zip so files restore to the same subfolders they came from.
  7. Deliver it. Return the finished .zip to the user as a download — don't just report that it was created. In Copilot Studio, writing the file to /app/created/ surfaces it as a downloadable attachment; make sure the user gets that link.

Confirm to the user

After the zip is written, reply with:

  • the archive name (including its timestamp),
  • the total count of files packaged, plus a list of up to 50 packaged paths (sorted). If there are more than 50, list the first 50 and say how many additional files were included, and
  • a note that the zip is attached and ready to download.

I've packaged 3 file(s) into all_files_produced_20260724_215812.zip:

  • onboarding_overview.pdf
  • onboarding_overview.docx
  • charts/headcount.png

It's attached above and ready to download. ?

04 同仓库更多 Skills

microsoft
microsoft/cat-agent-skills

work-iq-sphere

Build or refresh a personal "My Work IQ" visual from the signed-in user's own Microsoft 365 work (mail, calendar, Teams chats and the OneDrive and SharePoint files they worked on, with Week, Month and 3 months views from one read of their data, about all their work or one customer, programme or topic they name) as an interactive 3D sphere (self-contained HTML), a customer-safe copy and a matching Microsoft-style PowerPoint slide. Every build is a fresh, evidence-checked analysis of that one person's own data. Use when someone says "build my Work IQ sphere", "show my Work IQ", "refresh" or "update my Work IQ", "make my Work IQ slide", "visualise my work graph", "show me the Work IQ sphere demo", or wants to show customers what Work IQ (context, memory, skills) means using their own work. Do NOT use for generic decks, Work IQ product or licensing questions with no personal data, or anyone else's, team or org-wide analytics.

★ 107
microsoft
microsoft/cat-agent-skills

severity-recordability

Runs the deterministic local v2 draft classifier; reporting/deadlines remain undetermined. Use for "explain blocked reporting determination", "is this recordable", "classify this incident", "what severity is this", or "is this OSHA reportable". Do NOT use for source intake, history retrieval or routing — use incident-intake, ehs-knowledge-retrieve or routing-notify. No diagnosis or operational decision; EHS REVIEW REQUIRED.

★ 107
microsoft
microsoft/cat-agent-skills

routing-notify

Computes proposed investigators and unsent recipients from validated local classification, history and governance. Use for "propose unsent incident recipients", "who investigates this", "route this incident", "who do we notify", or "start the OSHA clock" (only to explain the blocked clock). Do NOT use for classification or terminal drafting — use severity-recordability or incident-writeup. Never sends, files or starts a clock; EHS REVIEW REQUIRED.

★ 107
microsoft
microsoft/cat-agent-skills

incident-writeup

Revalidates and recomputes every terminal v2 hop, then renders a null-aware local Markdown draft and blank RCA template. Use for "prepare an evidence-grounded incident draft", "draft the incident summary", "write up the incident", "give me the RCA template", or "prepare the OSHA writeup". Do NOT use for intake, classification or routing — use incident-intake, severity-recordability or routing-notify. No operational actions; EHS REVIEW REQUIRED.

★ 107
microsoft
microsoft/cat-agent-skills

incident-intake

Preserves cited authorized user-supplied incident files, including real incidents, as v2 inputs for human-reviewed drafts only. Use for "preserve conflicting incident accounts", "intake this incident", "process this safety report", "extract incident facts", or "intake this near miss". Do NOT use for classification, routing or terminal drafting — use severity-recordability, routing-notify or incident-writeup respectively. No live retrieval or official determinations; EHS REVIEW REQUIRED.

★ 107
microsoft
microsoft/cat-agent-skills

ehs-knowledge-retrieve

Attaches cited local OSHA, ISO summaries, JHA and policies and computes supplied-log history. Use for "find cited local safety evidence", "pull the OSHA criteria", "get the JHA", "attach local EHS evidence", or "have we had this incident before". Do NOT use for incident intake, recordability decisions or drafting — use incident-intake, severity-recordability or incident-writeup. No live retrieval; EHS REVIEW REQUIRED.

★ 107