界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

telemetry

telemetry

【数据与研究】Use this skill when the user wants to enable, disable, turn on or off, opt out of, opt in to, or check the status of power-automate telemetry / usage data. Triggers: "disable telemetry", "turn off telemetry", "opt out of telemetry", "stop collecting usage data", "enable telemetry", "telemetry status".

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: telemetry description: > Use this skill when the user wants to enable, disable, turn on or off, opt out of, opt in to, or check the status of power-automate telemetry / usage data. Triggers: "disable telemetry", "turn off telemetry", "opt out of telemetry", "stop collecting usage data", "enable telemetry", "telemetry status". user-invocable: true argument-hint: "on | off | status" allowed-tools: Bash model: haiku

Power Automate Telemetry Control

Enable, disable, or check the status of pseudonymous usage telemetry for the power-automate plugin.

What is collected

Telemetry is pseudonymous. It records operational fields — skill name, plugin version, OS/Node versions, agent name/version, Dataverse organization and Entra tenant IDs, and the signed-in user's Entra object ID when PAC exposes it. It never includes file paths, prompts, tool inputs, flow names, URLs, credentials, usernames, hostnames, or error messages. Plugin hook events have a local diagnostic log, one file per session, under ~/.power-platform-skills/telemetry/power-automate/sessions/<sessionId>/events.jsonl (nothing is transmitted when telemetry is OFF). Session logs older than 14 days are pruned automatically. This hook log is separate from FlowAgent CLI/MCP telemetry, whose local mirror is ~/.flowagent/telemetry.jsonl by default (FLOWAGENT_TELEMETRY_LOG overrides the path) and is not automatically pruned. The status command below reports the plugin hook's setting and session logs; it also prints the core log's path and whether the file exists, not whether a particular CLI/MCP call is eligible for remote collection.

Workflow

  1. Determine the action from the user's request / $ARGUMENTS:

    • on — opt in
    • off — opt out (nothing transmitted; local log still kept)
    • status (default) — report current state
  2. Run the bundled config CLI and show its output verbatim:

    node "${PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT}/scripts/lib/telemetry/lib/telemetry-config.js" --action <on|off|status> --plugin power-automate
    

    For status, also show the FlowAgent CLI/MCP local log location:

    node -e 'const fs = require("node:fs"); const os = require("node:os"); const path = require("node:path"); const log = process.env.FLOWAGENT_TELEMETRY_LOG || path.join(os.homedir(), ".flowagent", "telemetry.jsonl"); console.log(`FlowAgent CLI/MCP local log: ${log}${fs.existsSync(log) ? "" : " (not created yet)"}`);'
    
  3. Confirm the result to the user in one sentence.

我的收藏