Logo vun Execution

Execution

Organisatioun
CrowdStrike
execution

Trigger Falcon Fusion workflows, monitor execution status, and debug failures. TRIGGER when user asks to run a workflow, check execution status, tail logs, get execution results, or debug a workflow failure. DO NOT TRIGGER for writing YAML (use authoring) or importing/releasing workflows (use deployment).

Iwwersiicht

EditeurCrowdStrike
Repositoryfusion-skills
Skill-Nummexecution
Stären
29
Forks
3
Matgeliwwert Fichieren
5
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum CrowdStrike op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Execution an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/CrowdStrike/fusion-skills/tree/main/skills/execution
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CrowdStrike/fusion-skills.git /tmp/fusion-skills
mkdir -p .claude/skills
cp -r /tmp/fusion-skills/skills/execution .claude/skills/execution
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Execution an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Execution automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Execution net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Falcon Fusion Workflow Execution

Your role here is Fusion workflow execution and debugging specialist.

You trigger workflows, watch them run, retrieve their output, and diagnose failures. A workflow you trigger may contain hosts or run response actions against production, so confirm it is the right definition and supply correct parameters before executing.

Required steps:

  1. Confirm the workflow is deployed and released (enabled) before triggering it.
  2. Supply every required trigger parameter — empty params are a top cause of failures.

Don't:

  • Trigger a workflow that has not been released (enabled) — it will not execute.
  • Assume an execution succeeded without checking its terminal status.

This skill runs Fusion workflows that are already deployed and released, watches them to completion, retrieves their output, and helps debug failures. Writing the YAML happens in the authoring skill; importing and releasing happens in the deployment skill.

An execution moves through states and ends in a terminal state. The terminal states are Succeeded, Completed, Failed, Canceled, NonRecoverable, and ActionRequired. (ActionRequired is terminal for polling: it waits on human input and will not progress on its own.) Anything else means the execution is still running.

Succeeded vs Completed. Live testing against the execution-results API found that a normal successful execution reports its top-level status as Completed, not Succeeded — the scripts in this skill treat both as success (see SUCCESS_STATUSES in get_execution_results.py). Don't assume Succeeded is the only success value when reading raw API output yourself.

Running the scripts. Run each command from this skill's folder, on one shell line: cd <dir> && ../../scripts/python.sh scripts/<name>.py (a sibling skill's script is ../<skill>/scripts/<name>.py). For <dir>, Claude Code uses "$CLAUDE_PLUGIN_ROOT/skills/execution"; Codex, Copilot CLI, Cursor, and Antigravity use the folder they loaded this SKILL.md from (e.g. ~/.agents/skills/execution). The wrapper bootstraps its own Python venv.

Prerequisites

  • Python 3.13+

  • FalconPy SDK installed (pip install crowdstrike-falconpy — leave unpinned per CrowdStrike guidance)

  • API credentials resolved by common/scripts/auth.py from environment variables (for CI/overrides) or the TOML profile:

    • FALCON_CLIENT_ID
    • FALCON_CLIENT_SECRET
    • FALCON_BASE_URL (optional; FalconPy discovers US-1, US-2, and EU-1, so set it for any other cloud, such as US-3 or GovCloud)

    Run /crowdstrike-falcon-fusion:setup to configure credentials interactively (writes the TOML profile).

  • An API client with the Workflow API scope

  • The definition ID of the workflow to run (from the deployment skill's import output, or query_workflows.py --search)

  • Verify auth before running:

    bash
    ../../scripts/python.sh ../../common/scripts/auth.py

Core Workflow

1. Verify the workflow is deployed and released

A workflow must be enabled before it will execute. Confirm it exists and is enabled:

bash
../../scripts/python.sh ../deployment/scripts/query_workflows.py --search "my workflow"

Look for Status: enabled in the output. If it shows disabled, release it first with the deployment skill (release_workflow.py --id <id>).

2. Trigger the workflow with a payload

bash
# Pass parameters inline as JSON
../../scripts/python.sh scripts/trigger_workflow.py --id <definition_id> --params '{"device_id":"abc123"}'

# Or let the script prompt you interactively from the workflow's parameter schema
../../scripts/python.sh scripts/trigger_workflow.py --id <definition_id>

On success the script prints an execution ID. Capture it — you need it to monitor and to fetch results.

3. Monitor the execution

Poll until the execution reaches a terminal state:

bash
../../scripts/python.sh scripts/monitor_execution.py --execution-id <execution_id>

# Tune the cadence for long-running workflows
../../scripts/python.sh scripts/monitor_execution.py --execution-id <execution_id> --interval 10 --timeout 600

Status updates go to stderr; the final result goes to stdout, so you can pipe the result while still watching progress.

Shortcut: trigger_workflow.py --wait triggers and polls in one step. Use monitor_execution.py directly when you triggered earlier, from the console, or from another tool.

4. Get the results

bash
../../scripts/python.sh scripts/get_execution_results.py --execution-id <execution_id>
../../scripts/python.sh scripts/get_execution_results.py --execution-id <execution_id> --json

This is a single fetch — use it after monitor_execution.py reports a terminal state, or any time you want the current status and output without polling.

5. Debug failures

When an execution ends in Failed or NonRecoverable:

  • Pull the full record with --json to see the output and any error detail:
    bash
    ../../scripts/python.sh scripts/get_execution_results.py --execution-id <execution_id> --json
  • Check the inputs you sent. Missing or empty required parameters are the most common cause.
  • Re-run with corrected parameters. For workflows that support resume, the Fusion console can resume a failed execution; these scripts trigger fresh executions.
  • Analyzing failures across many executions (success rates, top failing workflows, error-code breakdowns, find-by-value) is a job for CQL over the fusion execution-log repo, not the per-execution scripts. See references/execution-log-queries.md.
  • A workflow that looks stuck "in progress" may be throttled, not failed — Fusion paces an action when its execution volume exceeds a limit, queuing and auto-retrying it (up to 6 hours). This is not an error. See references/throttling.md.

Script Reference

All scripts add common/scripts to sys.path and import from the shared auth module. monitor_execution.py and trigger_workflow.py reuse fetch_results and the terminal-status set from get_execution_results.py, so they stay in sync on the API response shape.

ScriptPurposeKey flags
trigger_workflow.pyExecute a workflow with params; optionally wait--id DEF_ID (required), --params JSON, --wait, --timeout SECS, --json (needs --params or --autofill)
monitor_execution.pyPoll an execution until terminal/timeout--execution-id ID (required), --interval SECS, --timeout SECS, --json
get_execution_results.pyFetch one execution's status and output--execution-id ID (required), --json

trigger_workflow.py

bash
../../scripts/python.sh scripts/trigger_workflow.py --id <def_id> --params '{"k":"v"}'
../../scripts/python.sh scripts/trigger_workflow.py --id <def_id>                 # Interactive prompts
../../scripts/python.sh scripts/trigger_workflow.py --id <def_id> --params '{}' --wait --timeout 120

Parameters come from --params (a JSON string) or interactive prompts derived from the workflow's parameter schema, with type coercion for integers, booleans, arrays, and objects. The execute endpoint returns the execution ID as a bare string or an object; the script handles both shapes.

monitor_execution.py

bash
../../scripts/python.sh scripts/monitor_execution.py --execution-id <exec_id>
../../scripts/python.sh scripts/monitor_execution.py --execution-id <exec_id> --interval 10 --timeout 600 --json

Defaults: --interval 5, --timeout 300. Prints status updates to stderr and the final result to stdout. Exits 0 only on a successful terminal state (Succeeded or Completed); non-zero on any other terminal state or timeout, so CI can react.

get_execution_results.py

bash
../../scripts/python.sh scripts/get_execution_results.py --execution-id <exec_id>
../../scripts/python.sh scripts/get_execution_results.py --execution-id <exec_id> --json

Single fetch. Reads resources[0] from the API envelope for the execution's status and output.

Common Pitfalls

  1. Triggering an unreleased workflow. A disabled definition will not execute. Confirm Status: enabled (step 1) before triggering, and release it via the deployment skill if needed.

  2. Missing required parameters. When triggered via API (not the console UI), parameters are not prompted by the platform. Pass every required field in --params. Empty params are the most common failure cause.

  3. Assuming success without checking status. A returned execution ID means the run started, not that it succeeded. Always confirm the terminal status with monitor_execution.py or get_execution_results.py.

  4. Too-short timeout. Long workflows (loops over many devices, paginated API calls) can exceed the 120s/300s defaults. Raise --timeout and --interval for these — a timeout does not cancel the execution; it just stops polling.

  5. Malformed --params JSON. The value must be valid JSON (double-quoted keys/strings). {'k':'v'} is not valid JSON and will raise a parse error before the workflow is triggered.

  6. Treating ActionRequired as still-running. ActionRequired is terminal for polling — the workflow is paused for human input and will not advance on its own. Resolve the input request in the Fusion console; it will not clear from these scripts.

Handoff

  • Came from deployment? You have a definition ID and a released workflow — start at step 2 (trigger).
  • Execution failed? If the YAML logic is wrong, return to the authoring skill to fix it, then re-import and re-release via deployment before triggering again.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Execution?

Trigger Falcon Fusion workflows, monitor execution status, and debug failures. TRIGGER when user asks to run a workflow, check execution status, tail logs, get execution results, or debug a workflow failure. DO NOT TRIGGER for writing YAML (use authoring) or importing/releasing workflows (use deployment).

Firwat Execution op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Execution besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Execution an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/CrowdStrike/fusion-skills/tree/main/skills/execution an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Execution benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Execution benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Execution domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Execution gratis?

Jo. De Skill gëtt vum CrowdStrike ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇