Details

# Falcon Fusion Skills
[](https://github.com/CrowdStrike/fusion-skills/releases/tag/v1.4.0)
[](https://github.com/CrowdStrike/fusion-skills/actions/workflows/main.yml)
AI coding assistant skills for building [CrowdStrike Falcon Fusion](https://www.crowdstrike.com/en-us/platform/next-gen-siem/falcon-fusion/) workflows. Go from a natural language prompt to a working Fusion workflow — discover real action IDs from the live API, author the YAML, validate it against the platform schema, import it to a CID, and trigger and monitor its execution.
> `fusion-skills` is a community-driven, open source project, not a CrowdStrike product. As such, it carries no formal support, expressed or implied.
## Getting Started
### Prerequisites
- **CrowdStrike Account** with the **Workflow** API scope (plus **NGSIEM Lookup Files** for the lookup-files skill)
- **AI Coding Assistant**: Claude Code, Codex, Copilot CLI, Cursor, Antigravity CLI, or any tool that can read local reference documentation
- **[jq](https://jqlang.org/)** for the skill-routing hooks (without it, the hooks stay silent)
### Install
| Assistant | Command | Marketplace |
|-----------|---------|-------------|
| Claude Code | `/plugin install crowdstrike-falcon-fusion` | [Anthropic](https://github.com/anthropics/claude-plugins-official) |
| Codex | `codex plugin add crowdstrike-falcon-fusion@openai-api-curated` | [OpenAI](https://chatgpt.com/plugins/plugins_6a8f7048ed7881918bf5b79011fe2b5e) |
| Copilot CLI | `copilot plugin install CrowdStrike/fusion-skills` | [GitHub](https://awesome-copilot.github.com/plugin/crowdstrike-falcon-fusion/) |
| Cursor | `/plugins` (CLI) or `/add-plugin crowdstrike-falcon-fusion` (IDE) | [Cursor](https://cursor.com/marketplace/crowdstrike/crowdstrike-falcon-fusion) |
| Antigravity CLI | `agy plugin install https://github.com/CrowdStrike/fusion-skills` | [Google](https://antigravity.google/docs/plugins) |
> [!NOTE]
> **Codex** has two install paths depending on how you signed in. The command above installs from the curated CLI marketplace, which **API-key and Amazon Bedrock** sessions load. If you authenticated Codex with a **ChatGPT** account, that marketplace isn't loaded — instead run `/plugins` inside Codex, search for `crowdstrike`, and install from the results.
In a live-tenant run, all five assistants (Claude Code, Codex, Copilot CLI, Cursor, and Antigravity CLI) each authored a valid workflow from the example prompt below and imported it to the tenant.
These skills follow the [Agent Plugins](https://agent-plugins.org) format, with a root `plugin.json` and a Codex `.codex-plugin/plugin.json` so the non-Claude assistants can discover them. See the [blog post](https://www.crowdstrike.com/tech-hub/ng-siem/build-falcon-fusion-workflows-with-claude-code/) for a full walkthrough.
<details>
<summary><strong>Install from a local clone</strong> (for development or testing a branch)</summary>
```bash
git clone https://github.com/CrowdStrike/fusion-skills.git
```
| Assistant | Command |
|-----------|---------|
| Claude Code | `claude --plugin-dir /path/to/fusion-skills` |
| Copilot CLI | `copilot --plugin-dir /path/to/fusion-skills` |
| Cursor | `agent --plugin-dir /path/to/fusion-skills --trust` |
| Antigravity CLI | `agy plugin install /path/to/fusion-skills` |
Codex has no `--plugin-dir`; it discovers skills from `~/.agents/skills/`, one symlink per skill (Copilot CLI and Cursor can use this directory too):
```bash
mkdir -p ~/.agents/skills
for skill in /path/to/fusion-skills/skills/*; do
ln -s "$skill" ~/.agents/skills/
done
```
`~/.agents/skills/` is a flat, shared namespace: fusion-skills' skill names don't overlap with foundry-skills', so both can be symlinked in together. A marketplace or `--plugin-dir` install namespaces the skills as `crowdstrike-falcon-fusion:<skill>` and sidesteps the question entirely. Restart the assistant after symlinking; some prompt for authentication on first run.
</details>
### Credentials
These skills authenticate with a Falcon API client. In the console, go to **Support and resources** > **Client Management** > **Create API client**, grant the **Workflow** scope (read and write), and, for the `lookup-files` skill, also **NGSIEM Lookup Files** (read and write). Copy the client ID and secret shown once on creation, then configure them below.
Configure credentials once. Run the interactive setup skill — it writes a profile to `~/.cache/crowdstrike-falcon-fusion/credentials.toml`:
```
/crowdstrike-falcon-fusion:setup
```
For CI or a one-off override, set environment variables instead:
```bash
export FALCON_CLIENT_ID=your_client_id_here
export FALCON_CLIENT_SECRET=your_client_secret_here
# Optional on US-1, US-2, and EU-1 (FalconPy discovers the region). Set it for any other cloud, such as US-3 or GovCloud:
# export FALCON_BASE_URL=https://api.us-3.crowdstrike.com # US-GOV-1: https://api.laggar.gcw.crowdstrike.com
```
Credentials come from environment variables (checked first) or the TOML profile, and are never hardcoded. Either source can hold a 1Password secret reference (`op://<vault>/<item>/<field>`) instead of the client ID or secret, which `auth.py` reads with the 1Password CLI so the secret stays off disk. On a network that re-signs TLS traffic, set a profile's `ca_bundle` to your organization's CA bundle. See the [setup skill](skills/setup/SKILL.md) for both. Verify your setup:
```bash
python common/scripts/auth.py
```
### Other Tools
These skills are plain markdown files. Any AI coding assistant that can read local files can use them. See [AGENTS.md](AGENTS.md) for the full development guide, or point your tool at the `skills/` directory and start with `workflows/SKILL.md` as the entry point.
## Usage
### Example prompt
This prompt exercises the full lifecycle: action discovery, event queries, parallel HTTP Action enrichment, an LLM completion action, and validation:
> Generate a Falcon Fusion workflow that will trigger from a Falcon Next-Gen SIEM detection. The workflow should hydrate the detection using an event query to get the full details of the detection. If a user, host, domain, url, file indicator, or ip indicator is found, enrich each in parallel using HTTP calls to VirusTotal or DomainTools. Summarize the enrichment across all the threat intelligence providers using an LLM completion action and then send an email formatted in HTML.
Describe what you want in plain language. You don't need to name a skill. The orchestrator picks the right one.
### How skill routing works
Repository-backed installs in Claude Code, Codex, Copilot CLI, and Cursor include hooks that ensure the right skills get used. Codex requires reviewing and trusting bundled hooks through `/hooks` before they run. Cursor loads them from `.cursor-plugin/plugin.json`:
1. **`UserPromptSubmit` hook** — Matches Fusion phrases ("fusion workflow", "build a playbook", "deploy to CID") or an action verb paired with a Fusion noun ("automate crowdstrike actions"). When matched, it injects a non-blocking advisory steering toward the `workflows` orchestrator skill.
2. **`PreToolUse` hook** — While Fusion intent is active, injects a non-blocking reminder to use the Fusion workflows skill. All tools remain available; nothing is blocked.
3. **`PreToolUse` hook (cross-plugin bridge)** — Advisory only. If a request needs a Foundry app (UI, functions, collections, `manifest.yml`), it suggests the sibling [`crowdstrike-falcon-foundry`](https://github.com/CrowdStrike/foundry-skills) plugin. It never blocks a skill.
The `workflows` orchestrator is the entry point: you say what you want, and it routes to `authoring` (discover actions, write and validate YAML), `deployment` (import and release to a CID), and `execution` (trigger and monitor). Hooks observe prompts and tool I/O to keyword-match Fusion actions; no data leaves the session.
Local Codex installs made with skill symlinks, and other assistants that do not load bundled hooks, route from the skill descriptions instead.
## Skills
One plugin provides six skills: an orchestrator, four focused sub-skills, and a Foundry-app redirect.
| Skill | Purpose |
|-------|---------|
| `workflows` | Primary orchestrator — routes intent and coordinates the full workflow lifecycle |
| `authoring` | Action discovery (`action_search.py`), YAML authoring, CEL expressions, schema validation (`validate.py`) |
| `deployment` | Duplicate check, import to CID, release, version management |
| `execution` | Trigger workflows with payloads, monitor status, tail logs, debug failures |
| `lookup-files` | Manage Falcon Next-Gen SIEM lookup files (CSV/JSON/TXT) for CQL `match()` queries |
| `foundry-redirect` | Declines Falcon Foundry app requests (UI, functions, collections, `manifest.yml`) and points to the `crowdstrike-falcon-foundry` plugin |
### Architecture
The skills follow a hub-and-spoke pattern. `workflows` is the orchestrator that parses your intent and delegates each phase to a sub-skill; it never writes YAML or calls APIs itself. Sub-skills share API authentication through `common/scripts/auth.py`.
```mermaid
graph TD
O["workflows<br/>(Orchestrator)"]
O --> AU["Authoring<br/>(discover, write, validate)"]
O --> DE["Deployment<br/>(import, release)"]
O --> EX["Execution<br/>(trigger, monitor)"]
O --> LF["Lookup Files<br/>(NGSIEM)"]
AU --> DE
DE --> EX
style O fill:#6366f1,stroke:#4f46e5,color:#fff
style LF fill:#f59e0b,stroke:#d97706,color:#fff
```
A typical lifecycle: `authoring` produces a validated YAML file → `deployment` imports it and returns a `definition_id` → `execution` triggers it and returns an `execution_id`. Each phase depends on the previous one's output.
```
skills/
workflows/ orchestrator — decision tree, lifecycle coordination
authoring/ action discovery, YAML authoring, validation
deployment/ import, release, version management
execution/ trigger, monitor, debug
lookup-files/ Next-Gen SIEM lookup file management
setup/ interactive credential setup
common/ shared API auth (auth.py)
use-cases/ pattern-matchable workflow scenarios
hooks/ intent routing + cross-plugin advisories
```
### Quick Start
A workflow goes from idea to running in five steps. The orchestrator coordinates them; here is the shape:
1. **Discover actions** — find real action IDs from the live catalog:
```bash
python skills/authoring/scripts/action_search.py --search "contain"
```
2. **Author the YAML** — write the workflow with a trigger and actions, each with a `version_constraint`. Never use placeholder IDs.
3. **Validate** — check structure against the Charlotte JSON schema:
```bash
python skills/authoring/scripts/validate.py my-workflow.yml
```
4. **Deploy** — check for duplicates, then import and release to your CID:
```bash
python skills/deployment/scripts/query_workflows.py --search "My Workflow"
python skills/deployment/scripts/import_workflows.py my-workflow.yml
python skills/deployment/scripts/release_workflow.py --id <definition_id>
# Remove a test/duplicate workflow when you're done with it:
python skills/deployment/scripts/delete_workflow.py --id <definition_id>
```
5. **Execute** — trigger and monitor:
```bash
python skills/execution/scripts/trigger_workflow.py --id <definition_id> --params '{"device_id":"..."}'
python skills/execution/scripts/monitor_execution.py --execution-id <execution_id>
```
### Use Cases
The `use-cases/` directory contains pattern-matchable workflow scenarios. Some are drawn from [CrowdStrike Tech Hub](https://www.crowdstrike.com/tech-hub/ng-siem/) blog posts; others are grounded directly in the bundled example workflows and the community "Workflow Wednesday" series. Each names the sub-skills it needs and cites its source.
Grounded in bundled example workflows:
- [Detection Enrichment](use-cases/detection-enrichment.md): enrich a detection's indicators with VirusTotal, then comment/tag the case or blocklist
- [Detection Deduplication](use-cases/detection-deduplication.md): find and close duplicate Next-Gen SIEM detections with an Event Query dedup
- [Human-in-the-Loop Containment](use-cases/human-in-the-loop-containment.md): gate device containment behind analyst approval on a high-severity detection
- [Identity Detection Response](use-cases/identity-detection-response.md): get user context, then auto-resolve or notify on an Identity Protection detection
- [Case Management](use-cases/case-management.md): query relevant events and attach them to a Next-Gen SIEM Case
- [Lookup File Management](use-cases/lookup-file-management.md): create/overwrite/append/update a lookup file from inside a workflow
- [Notifications](use-cases/notifications.md): send a workflow notification to a chat channel (e.g. Slack)
Platform patterns:
- [HTTP Actions](use-cases/http-actions.md): call external REST APIs (VirusTotal, Slack, PagerDuty) from a workflow
- [Event Queries](use-cases/event-queries.md): schemaless queries against the event store
- [Lookup Enrichment](use-cases/lookup-enrichment.md): enrich detections with third-party data via `match()`
- [API Pagination](use-cases/api-pagination.md): page through large or unknown-size API result sets
- [Export Query Results to CSV](use-cases/export-query-results-csv.md): export Event Query results to a lookup file
- [Custom SOAR Actions](use-cases/custom-soar-actions.md): drive a shared Foundry API action from a workflow
### Recommended Companion: Superpowers
These skills pair well with [obra/superpowers](https://github.com/obra/superpowers), which adds structured planning, TDD discipline, debugging, and code review workflows. Fusion skills handle the Fusion-specific action discovery, schema, and platform knowledge while superpowers provides general software engineering best practices.
Unlike some plugins, fusion-skills does **not** block or redirect `superpowers:brainstorming`; its cross-plugin hook is advisory only. Use superpowers freely alongside it.
## Troubleshooting
### Skills not invoked
If your assistant doesn't use Fusion skills automatically, phrase your prompt with a clear Fusion noun and action verb (e.g., "create a fusion workflow", "build a playbook that…"). You can also say "Use the fusion workflows skill" at any point to redirect.
### Authentication failures
```bash
python common/scripts/auth.py # Verify credentials resolve and a token is issued
/crowdstrike-falcon-fusion:setup # Re-run interactive credential setup (Claude Code)
```
Confirm `FALCON_CLIENT_ID` and `FALCON_CLIENT_SECRET` are set in your environment or TOML profile, and, on any cloud other than US-1, US-2, and EU-1 (such as US-3 or GovCloud), that `FALCON_BASE_URL` (or the profile's `base_url`) points at your cloud. FalconPy discovers those three on its own.
If the credentials are right but the self-test still reports "could not obtain token", a TLS-inspecting proxy may be re-signing traffic. Set `ca_bundle` in the profile to your organization's CA bundle (PEM). The self-test's `CA bundle` line shows which one is in use. If the plugin's Python setup fails because public PyPI is blocked, set `PIP_INDEX_URL` (or `UV_DEFAULT_INDEX`) to your package mirror and run `scripts/setup-python-venv.sh` again.
### Stale action cache
Action discovery caches results locally. If a newly shipped action type (e.g., a new native action) doesn't appear, refresh the cache:
```bash
python skills/authoring/scripts/action_search.py --clear-cache
python skills/authoring/scripts/action_search.py --search "contain"
```
### Workflow won't execute
A workflow must be **released** before it can be triggered. If `trigger_workflow.py` reports the workflow isn't runnable, confirm `release_workflow.py` completed for that `definition_id`. HTTP Actions also require their credential config (`config_id`) to already exist in the target CID.
## Testing
Several scripts validate changes at different levels. All require macOS or Linux (bash).
### Unit tests (Python)
The Python scripts have a comprehensive pytest suite that mocks all API calls, so no CrowdStrike credentials are needed. Run it in a virtual environment:
```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-test.txt
pytest tests/ -v
```
Add `--cov` to see coverage (CI enforces 90%):
```bash
pytest tests/ --cov=common/scripts --cov=skills --cov=scripts --cov-report=term-missing
```
### Fast checks (no API calls)
```bash
./test-hooks.sh # Unit-tests the skill router and cross-plugin bridge hooks
./test-validate.sh # Validates SKILL.md frontmatter, Python syntax, and reference docs
./test-scorecard-parser.sh # Unit-tests the verify-workflows.sh scorecard (status/PASS/FAIL parsing)
./test-skill-scorecard.sh # Unit-tests the test-skill.sh scorecard (authoring anti-patterns + deploy-churn counting)
```
Run these after any hook, skill, or script change. They're fast and need no credentials.
### Skill test (single run)
```bash
./test-skill.sh --runs 1 # Quick single run
./test-skill.sh --runs 5 # Default: 5 runs
./test-skill.sh --skip-deploy # Author + validate only (no live API)
./test-skill.sh --release-check # Also release each deployed workflow
./test-skill.sh --plugin-dir /path # Use a different plugin directory
```
Runs the canonical prompt end-to-end: the skill authors a workflow, validates it (`skills/authoring/scripts/validate.py`), and optionally imports it (`skills/deployment/scripts/import_workflows.py`). Results are collected as structured JSON.
### Verify workflows
```bash
./verify-workflows.sh # full run: script phase + browser phase
./verify-workflows.sh --skip-browser # script phase only (API, no browser)
./verify-workflows.sh --skip-deploy # validate only (no credentials)
```
Two-phase verification that workflow YAML files actually work. Phase 1 (script-based) runs each workflow through validation, import, trigger, and monitoring using the fusion-skills Python scripts. Phase 2 (browser) drives the Falcon console to configure the VirusTotal credential, publish, and execute — the part the API cannot do — and runs by default, prompting for a console login. A workflow only passes if every phase that ran succeeds.
### Multi-assistant smoke test
```bash
./test-assistants.sh # smoke-test every installed assistant in parallel
./test-assistants.sh --include codex # only these (comma-separated)
./test-assistants.sh --e2e # author, validate, and import for real
./test-assistants.sh --judge # confirm the last --e2e run against the tenant
```
Gives each installed assistant (Claude Code, Codex, Copilot CLI, Cursor, Antigravity CLI) the canonical prompt and reads back a fixed plain-text report — which skills loaded, which scripts ran, and any blocker — so a clean timeout is never mistaken for a pass. Before testing it isolates skill sources so results are unambiguous: it disables installed Fusion plugins where it can, moves Codex's plugin cache and Cursor's installed Fusion and Foundry plugins aside, moves every `~/.agents/skills/` symlink aside, and for Antigravity, which only loads its own plugin directory, parks the installed Fusion plugin and symlinks the working tree in its place. Everything is restored on exit, including on Ctrl-C, via `scripts/skill-isolation.sh`, `scripts/agy-plugin-swap.sh`, and `scripts/cursor-plugin-stash.sh`, and Antigravity is skipped rather than tested against the installed copy if the swap can't be made. `--e2e` requires a real workflow definition id, and `--judge` confirms that id against the tenant with `query_workflows.py --list` and reads the authored YAML for each pipeline stage — it never trusts the transcript.
### A/B test (baseline vs local branch)
```bash
./run-ab-test.sh # baseline (main) vs local skills, 5 runs each
./run-ab-test.sh 3 # 3 runs per phase
./run-ab-test.sh --ref v1.0.0 # compare local branch against a specific tag
./run-ab-test.sh --skip-deploy # author + validate only (no live API)
./run-ab-test.sh --release-check # also release each deployed workflow
```
Compares baseline ref skills (RED) against local branch skills (GREEN), with smart baseline caching. Use `tail-test.sh` in another terminal to watch the active run's tool calls in real time.
DEPLOYED in the scorecard means the workflow imported, which doesn't prove it will release. Add `--release-check` when a change could affect whether workflows release, such as edits to triggers, templates, or `validate.py`. It releases each run's workflow and adds a Released row to the comparison. Released workflows are live until the cleanup deletes them a few seconds later, so an NG-SIEM workflow could fire on a real detection in that window. That's why the flag is opt-in.
**Tip:** Wrap long-running tests with `caffeinate -i` to prevent macOS from sleeping mid-run:
```bash
caffeinate -i ./run-ab-test.sh --fresh --release-check 5
```
## Contributing
The skills improve every time someone uses them to build a workflow. If you hit a rough edge or find that your assistant struggles with a particular pattern, you can teach the skills to handle it better.
### Use the skills, then improve them
1. Clone this repo and configure your AI coding assistant (see [Getting Started](#getting-started))
2. Try the [example prompt](#example-prompt) above
3. Watch for patterns where the assistant struggles, retries, or produces incorrect output
4. At the end of the session, ask it to fix the skills directly:
```
What did you learn from this session that could improve the Fusion skills?
Clone https://github.com/CrowdStrike/fusion-skills.git,
create a branch, update the skills with this knowledge, and
create a PR on GitHub.
```
This captures the learning so the next session is faster and uses fewer tokens.
### Development workflow
1. Clone the repo (see [Getting Started](#getting-started))
2. Edit skill files in `skills/*/SKILL.md` or scripts in `skills/*/scripts/`
3. Run `pytest tests/` (for script changes) and `./test-hooks.sh` / `./test-validate.sh` to validate
4. Test with `./test-skill.sh --runs 1` for a quick end-to-end check
5. Run `./run-ab-test.sh 1` to compare against main before opening a PR
See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guidelines.
### Release process
```bash
./release.sh
```
This walks you through a semantic version bump (major/minor/patch), updates the version across the plugin manifests (`.claude-plugin/plugin.json`, `marketplace.json`, the root `plugin.json`, `.codex-plugin/plugin.json`, and `.cursor-plugin/plugin.json`), the README badge, and the CHANGELOG, then creates a release branch and PR. After the PR is approved and merged, create a draft GitHub release to tag main:
```bash
gh release create v<version> --target main --title "v<version>" --generate-notes --draft
```
Review and edit the notes at [github.com/CrowdStrike/fusion-skills/releases](https://github.com/CrowdStrike/fusion-skills/releases), then click **Publish** when ready.
After publishing the release, update the marketplaces that pin a snapshot. Build and upload the OpenAI skills-only bundle with `./release.sh --bundle v<version>`, email the Cursor marketplace team to re-index the listing, and open a PR to [github/awesome-copilot](https://github.com/github/awesome-copilot) that bumps the `version`, `ref`, and `sha` of the `crowdstrike-falcon-fusion` entry. `release.sh` prints the exact steps when it finishes.
## Cross-Plugin: Foundry Apps
`fusion-skills` builds **standalone** workflows, authored, imported, and executed directly against Fusion with no app wrapper. When a workflow needs to be wrapped in a Falcon Foundry app (custom UI, serverless functions, collections, or a `manifest.yml`), use the sibling plugin ([foundry-skills](https://github.com/CrowdStrike/foundry-skills)):
```bash
claude plugin install crowdstrike-falcon-foundry
```
The two plugins detect each other and advise the right path. Use `fusion-skills` for standalone workflows with live action discovery; use `foundry-skills` for the full app lifecycle. Neither requires the other to function.
## Acknowledgments
`fusion-skills` builds on [security-skills](https://github.com/eth0izzle/security-skills) by Paul Price ([@eth0izzle](https://github.com/eth0izzle)), an MIT-licensed community Claude Code plugin for Fusion workflow automation. We contributed the Charlotte JSON schema reference, the structural validator, and Content Library workflow examples upstream; fusion-skills is the CrowdStrike-branded, multi-tool evolution of that work.
## License
MIT — see [LICENSE](LICENSE) for details.
## skills/authoring/SKILL.md
---
name: authoring
description: >
Discover Falcon Fusion actions via live API, author workflow YAML with correct schema,
validate against Charlotte JSON schema, and use templates/examples.
TRIGGER when user asks to write workflow YAML, find actions, validate a workflow,
use CEL expressions, or needs action discovery.
DO NOT TRIGGER for deploying, importing, executing, or monitoring workflows —
use deployment or execution skills.
DO NOT TRIGGER when the request is for a Falcon Foundry app, a UI extension/page,
an API integration, custom actions from a third-party API, or a manifest.yml —
those are foundry-skills territory; advise foundry-skills instead of authoring a workflow.
version: 1.4.0
updated: 2026-10-30
tags: [fusion, soar, workflows, authoring, yaml, validation]
author: CrowdStrike
license: MIT
compatibility: Claude Code >=1.0
allowed-tools: Bash(cd *), Bash(../../scripts/python.sh:*)
metadata:
category: authoring
---
# Falcon Fusion Workflow Authoring
> Your role here is **Fusion workflow authoring specialist**.
>
> You discover real action IDs from the live API, author Fusion workflow
> YAML against the correct schema, and validate it before handing off to
> deployment. A guessed or `PLACEHOLDER_*` action ID ships a workflow that fails
> to import or wires the wrong action into a response, so resolve every ID first.
>
> **Required steps:**
> 0. **Scope check FIRST — before any action_search.** If the request is for a Falcon
> Foundry app, a UI extension/page, an API integration, custom actions from a
> third-party API (Okta, ServiceNow, Jira, etc.), or a `manifest.yml`, STOP: do not author
> a workflow. Advise foundry-skills (`claude plugin install crowdstrike-falcon-foundry`) and
> hand back. A request that mixes an app with a workflow ("create a Foundry app... and a
> workflow to...") is app-shaped — redirect, produce no YAML.
> 1. **Alert/detection ACTION-CHOICE check — before action_search.** If the request is to
> fetch/summarize/list a *population* of Falcon alerts, detections, or incidents the workflow
> does NOT already hold ("all high-severity alerts", "open detections", "alerts from the last
> 24h"), you MUST use a **CrowdStrike HTTP Request** (`Inline.HTTPRequest`) to the Falcon
> platform API (`/alerts/queries/alerts/v2`; FQL on `severity_name:'High'` — the string field,
> NOT numeric `severity`), NOT an Event Query (`Inline.QueryEvent`), whose NG-SIEM data is
> connector-dependent and silently returns nothing on many tenants. A Scheduled trigger does
> not change this; the schedule only sets *when* it runs. (Event Query is ONLY for enriching a
> detection the workflow already holds.) See `references/event-query-vs-api.md`.
> 2. Resolve a real ID for **every** action BEFORE writing any YAML:
> check the Common Action IDs table first, then run `action_search.py --search`
> only for actions the table does not cover.
> 3. Run `trigger_search.py` to confirm the trigger type.
> 4. Run `validate.py` on every YAML file before presenting it.
> 5. **Re-run `validate.py` on the FINAL file; resolve every ERROR before finishing.** A file that still errors is not done. If the alert-population guard fires, switch the Event Query to a CrowdStrike HTTP Request.
>
> **Don't:**
> - Author a workflow for a Foundry-app-shaped request (see action 0) — redirect to foundry-skills.
> - Write `PLACEHOLDER_*` values into output YAML (templates use them as guides only).
> - Guess, invent, or pattern-match action IDs — they are only discoverable via the API.
> - Invent a `config_id` or emit a stand-in — an all-zeros UUID (`0000...`) is still a placeholder. Discover or ask (AskUserQuestion).
> - Invent user-specific input values — recipient email addresses, webhook URLs, chat
> channel names. **Ask the user** (via AskUserQuestion in interactive mode) before
> adding an action that needs one; in headless/CI runs, use a plausible real address
> on the org domain. (Send email only delivers to Falcon users and approved domains,
> so `user@example.com` fails at runtime.)
> - Skip validation, or defer it to deploy time.
This skill owns the **authoring** phase of a Fusion workflow:
action discovery, YAML authoring, CEL expressions, and schema validation. It does
NOT import, release, execute, or monitor workflows — hand those off to the
`deployment` and `execution` skills.
---
> **Running the scripts.** Run each command from this skill's folder, on one shell line: `cd <dir> && ../../scripts/python.sh scripts/<name>.py`. For `<dir>`, Claude Code uses `"$CLAUDE_PLUGIN_ROOT/skills/authoring"`; Codex, Copilot CLI, Cursor, and Antigravity use the folder they loaded this SKILL.md from (e.g. `~/.agents/skills/authoring`). The wrapper bootstraps its own Python venv.
## Prerequisites
- **Python 3.13+** with the `falconpy` SDK and `pyyaml` installed.
- **CrowdStrike API credentials** (never hardcoded) — `common/scripts/auth.py` resolves them from `FALCON_CLIENT_ID`/`FALCON_CLIENT_SECRET` (plus optional `FALCON_BASE_URL`) or a `~/.cache/crowdstrike-falcon-fusion/credentials.toml` profile (chosen by `FALCON_PROFILE` or the file's `default` key). Run `/crowdstrike-falcon-fusion:setup` to configure interactively.
- **Workflow** API scope on the API client, with read access to
the activities catalog and import (validate) permission.
- Fusion access in the target CID.
Test credentials before authoring:
```bash
../../scripts/python.sh ../../common/scripts/auth.py
```
---
## Core Workflow
Follow these steps in order — do not skip discovery (steps 1–2).
### 1. Resolve action IDs (MANDATORY)
Every action needs a real `id` from the catalog before you write any YAML. Resolve
them **table-first**: check the Common Action IDs table below, and only run
`action_search.py` for the actions it does not cover. Guessing an ID or shipping
a `PLACEHOLDER_*` is never acceptable — but a verified ID from the table is
already resolved, so searching for it again just wastes a round-trip.
#### Common Action IDs — check here first
These actions show up in almost every workflow, with IDs verified against the
live catalog. If an action is in this table, use the row directly and do **not**
search for it.
| Action | `id` | `class` | `version_constraint` |
|--------|------|---------|----------------------|
| Event Query | `cdf5c3e0d69f156eaaf56c1f5d3f1b66` | `Inline.QueryEvent` | `~1` |
| HTTP Request | `1ba474f407d9228fc8fa02cdce8ae8ef` | `Inline.HTTPRequest` | `~1` |
| Python Script | `7fb9eb10b23943efaf1e6082b0ac0338` | `Inline.Python` | `~1` |
| Send email | `07413ef9ba7c47bf5a242799f59902cc` | — | `~1` |
| Charlotte AI - LLM Completion | `bdfecafafdb44919a458fcf51d6b93a7_98dec86072334d24b37dd798098cfd63` | — | `~0` |
| Contain device | `bec9fbeb4999d207937854fd56088107` | — | `~0` |
VirusTotal, DomainTools, and other threat-intel lookups aren't in this table on purpose: use a Cloud HTTP Request (see HTTP Actions below). Their Store plugin actions need a plugin configured in the console, and release rejects them without it.
These IDs are stable across the commercial clouds (us-1/us-2/eu-1); GovCloud may
differ. If an import ever rejects one of these `version_constraint` values,
confirm the current value with `action_search.py --search "<name>"` — the
platform occasionally bumps an action's major version.
#### Search for anything not in the table
For the remaining actions, resolve them in one batch — list every action the
workflow needs and run one `--search` per distinct name. **Fire the independent
lookups concurrently: put every `action_search.py --search` and the
`trigger_search.py` call in one message so they run in parallel.** Never
re-search an ID you already have — rediscovering an action mid-pass is the
biggest time sink.
```bash
# Search by name across all vendors (note the --search flag; a bare term errors)
../../scripts/python.sh scripts/action_search.py --search "contain"
# Search within a specific vendor
../../scripts/python.sh scripts/action_search.py --vendor "Okta" --search "revoke"
# Full schema for one action (input fields, class, plugin info)
../../scripts/python.sh scripts/action_search.py --details <action_id>
```
For each action you discover, record: `id` (an opaque catalog identifier), `name`, input
fields/types, its `version_constraint` (nearly all have one), `class` if any,
and whether it is a plugin action (needs a `config_id`).
> If a long-lived local cache might be hiding newly shipped actions, refresh it:
> `../../scripts/python.sh scripts/action_search.py --clear-cache`. The cache also auto-refreshes
> once it is older than 1 hour.
### 2. Choose a trigger type
```bash
../../scripts/python.sh scripts/trigger_search.py --list
../../scripts/python.sh scripts/trigger_search.py --type "On demand"
../../scripts/python.sh scripts/trigger_search.py --events detection # Signal event: values
../../scripts/python.sh scripts/trigger_search.py --fields Investigatable/EPP # payload field paths
```
Valid trigger types: **On demand**, **Signal**, **Scheduled**, **SubModel**, **Inbound webhook**.
For most automation, use **On demand** (callable via API and the Falcon UI).
A **Signal** trigger MUST carry an `event:` field (the trigger category, e.g.
`Investigatable/NGSIEM`) — without it, import fails with `code 2003: "unknown
trigger event named "`. Find the value with `trigger_search.py --events` and do
NOT add a hex `id` to the trigger. For a Signal trigger, discover the exact
payload field paths (the `${data['Trigger....']}` references you can read
downstream) with `trigger_search.py --fields <category>` — do NOT guess them.
See `references/trigger-types.md`.
### 3. Author the YAML from a template
If a complete workflow in `workflows/` already fits the request, copy it with `cp` and change it with Edit instead of retyping it (retyping ~500 lines costs ~10k output tokens), then add whatever the request asks for that it lacks. Otherwise start from a skeleton:
| Pattern | Template |
|---------|----------|
| Single action | `assets/single-action.yaml` |
| Loop over a list | `assets/loop.yaml` |
| Conditional branching | `assets/conditional.yaml` |
| Loop + conditional | `assets/loop-conditional.yaml` |
Add the header comment on line 1, then write `name`, `trigger`, and `actions`
with the resolved IDs. Replace every `PLACEHOLDER_*` marker: they show shape, never values.
**Parallel branches** fan out by listing each branch's gate in `next:` and converge by pointing every branch's `next:` and each gate's `else:` at the same node. No join or `default: true` node (release rejects it):
```yaml
actions:
QueryDetection: { ..., next: [ip_present, domain_present] }
EnrichIP: { ..., next: [Summarize] }
conditions:
ip_present: { next: [EnrichIP], cel_expression: "...", else: [Summarize] }
```
### 4. Add CEL expressions
Reference trigger inputs and prior outputs with `${data['...']}` expressions:
| Syntax | Meaning |
|--------|---------|
| `${data['param_name']}` | On-demand trigger parameter (no prefix) |
| `${data['ActionLabel.OutputField']}` | A prior action's output |
| `${data['array_param.#']}` | Current loop item |
| `${data[?'key'].orValue("default")}` | Null-safe optional access (preferred) |
See `references/cel-expressions.md` for operators, CrowdStrike extensions
(`cs.json.decode()`, `cs.ip.valid()`, `cs.timestamp.now()`), and YAML quoting.
### 5. Validate
```bash
# Pre-flight + structural + API dry-run
../../scripts/python.sh scripts/validate.py workflow.yaml
# Pre-flight + structural only (no API call)
../../scripts/python.sh scripts/validate.py --preflight-only workflow.yaml
```
Fix every error before handing the file to the `deployment` skill.
---
## Script Reference
All scripts live in `scripts/` and import auth from `common/scripts/auth.py`
via the shared `sys.path` pattern.
| Script | Purpose | Key flags |
|--------|---------|-----------|
| `action_search.py` | Discover actions and vendors | `--search`, `--details`, `--list`, `--vendors`, `--vendor`, `--use-case`, `--limit`, `--offset`, `--json`, `--clear-cache` |
| `trigger_search.py` | List/describe trigger types; list Signal `event:` values; list a trigger's payload field paths | `--list`, `--type`, `--events`, `--fields`, `--json` |
| `validate.py` | Validate workflow YAML | `--preflight-only`, multiple files |
**`action_search.py` cache:** Full-catalog scans (`--vendors`, `--use-case`) are
cached locally in `.action_cache.json` (gitignored, per-user). The cache uses a
**1-hour TTL based on file mtime**: a cache at or past 1 hour is treated as stale
and auto-refreshes from the API (with a printed notice). Use `--clear-cache` to
force an immediate refresh so newly shipped action types are never hidden.
---
## Common Pitfalls / Counter-Rationalizations
| Thought | Reality |
|---------|---------|
| "I'll write the YAML, then fill in action IDs later." | Resolve every ID first — from the Common Action IDs table, or `action_search.py`. "Later" never happens — placeholders ship. |
| "I'll search for the Event Query / HTTP / Send email / Charlotte AI action." | Those are in the Common Action IDs table — use the row directly. |
| "I'll run `action_search.py \"event query\"` to search." | A bare term prints usage and finds nothing. Use `action_search.py --search \"event query\"`. |
| "I can guess the action ID format." | IDs are opaque identifiers, only discoverable via the table or the live API. |
| "The template has `PLACEHOLDER_RAN_006`, I'll copy it." | Templates are structural guides. Substitute a real value before saving. |
| "Validation can wait until deploy." | Validate after authoring — `validate.py` catches PLACEHOLDERs, bad IDs, and schema errors locally. |
| "Only class-based actions need `version_constraint`." | Not class-specific — nearly every action has a `version_constraint`. |
| "I'll use `~1` everywhere for version_constraint." | The value is `~<major>` of the action's `semantic_version` (`~0` when it declares none): `1.0.4` → `~1`, `0.0.100` → `~0`. Read it from `--details`. |
| "I'll make up a `config_id` for this Okta action." | It's CID-specific (exists only once configured in the console). Ask the user (AskUserQuestion) — even non-interactively. Sequential/all-zeros/repeated-char UUIDs are still fabricated and fail at runtime; can't get a real one? STOP. See `references/best-practices.md`. |
| "I'll set `definition_id: VIRUSTOTAL_..._ID` on this HTTP action." | An `Inline.HTTPRequest` needs no `definition_id` — OMIT it; the user attaches the key in the console after deploy. A placeholder is a broken ref `validate.py` flags. |
| "The Send email field is called Recipients, so I'll use `recipients:`." | The property KEY is `to:` (a list); `recipients:` is rejected. Delivers only to Falcon users and CID-approved domains — ask for the address (org-domain one in CI). |
| "I'll write `$action.output.body` to reference output." | Bare