/lc-essentials:fleet-payload-taskingfrom lc-essentials
Deploys payloads and shell commands fleet-wide via LimaCharlie. Executes scripts, collects data, and runs commands across all endpoints with automatic offline sensor handling.
Ships in lc-essentials. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deploy payloads (scripts) or shell commands to all endpoints in an organization using reliable tasking. Handles offline sensors automatically - tasks queue and execute when sensors come online.
Prerequisites: Run
/init-lcto initialize LimaCharlie context.
All LimaCharlie operations use the limacharlie CLI directly:
limacharlie <noun> <verb> --oid <oid> --output yaml [flags]
For command help and discovery: limacharlie <command> --ai-help
| Rule | Wrong | Right |
|---|---|---|
| CLI Access | Call MCP tools or spawn api-executor | Use Bash("limacharlie ...") directly |
| Output Format | --output json | --output yaml (more token-efficient) |
| Filter Output | Pipe to jq/yq | Use --filter JMESPATH to select fields |
| LCQL Queries | Write query syntax manually | Use limacharlie ai generate-query first |
| Timestamps | Calculate epoch values | Use date +%s or date -d '7 days ago' +%s |
| OID | Use org name | Use UUID (call limacharlie org list if needed) |
Architecture Note: This skill focuses on payload preparation and upload. It delegates the reliable tasking workflow (D&R rules, task deployment, response collection) to the
sensor-taskingskill to avoid duplication.
Use this skill when the user needs to:
For simple data collection, use run --shell-command directly - no payload upload needed:
limacharlie task reliable-send --task 'run --shell-command hostname' --selector 'plat == macos' --context shell-scan-001 --ttl 3600 --oid <oid> --output yaml
Pros:
Cons:
For complex operations, upload a payload script first:
Pros:
Cons:
┌─────────────────────────────────────────────────────────────────────────┐
│ FLEET PAYLOAD TASKING │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ OPTION A: Shell Command (Simple) │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Build │───▶│ Deploy via │───▶│ D&R rule │ │
│ │ run --shell-cmd │ │ reliable_tasking│ │ captures STDOUT │ │
│ │ command │ │ │ │ as detection │ │
│ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
│ │
│ OPTION B: Payload Script (Complex) │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Generate & Upload│───▶│ Create D&R rule │───▶│ Deploy via │ │
│ │ payload script │ │ to file_get │ │ reliable_tasking│ │
│ │ │ │ result file │ │ │ │
│ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────┐ │
│ │ Results stored │ │
│ │ as artifacts │ │
│ └─────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────┘
| Feature | Benefit |
|---|---|
| Reliable Tasking | Handles offline sensors - task executes when they come online |
| Flexible Targeting | Use sensor selectors (tags, platform, hostname patterns) |
| Shell or Payload | Choose simple commands or complex scripts |
| Async Workflow | Deploy now, collect results later |
| Cross-Platform | Linux, macOS, Windows support |
| Scalable | Works across thousands of endpoints |
WARNING: Only EDR agents support tasking (not adapters or cloud sensors).
Taskable sensors require BOTH:
- Platform:
windows,linux,macos, orchrome- Architecture: NOT
usp_adapter(code 9)A sensor running on Linux but with
arch=usp_adapteris an adapter (USP), not an EDR. Cloud sensors, adapters, and USP log sources will fail withUNSUPPORTED_FOR_PLATFORM.
When using sensor selectors, always filter by both platform AND architecture:
(plat == windows or plat == linux or plat == macos) and arch != usp_adapterWhen using run --shell-command, the command string is passed through multiple layers:
Simple commands work well:
run --shell-command whoami
run --shell-command 'ls -la /tmp'
run --shell-command "cat /etc/hostname"
Complex operations become difficult:
echo '{"key":"value"}' requires careful escaping$(command) needs considerationcmd1 && cmd2 || cmd3 with complex logicRule of thumb: If your command needs more than 2-3 simple pipes or redirects, or involves JSON/complex quoting, use a payload script instead.
limacharlie org list --output yaml
Keep shell commands simple to avoid escaping nightmares:
# Example: Get hostname from endpoints
run --shell-command 'hostname'
# Example: Check for specific file
run --shell-command 'test -f /var/log/auth.log && echo "found" || echo "not found"'
# Example: Get OS information
run --shell-command 'uname -a'
WARNING: For scripts with complex quoting, loops, JSON generation, or multiple commands, use the Payload Script Workflow instead to avoid escaping issues.
IMPORTANT: The
sensor-taskingskill handles the complete deployment workflow:
- Creates D&R rule for response collection (BEFORE task deployment)
- Deploys via reliable tasking
- Collects and formats results
Use the sensor-tasking skill with your prepared shell command:
Skill(lc-essentials:sensor-tasking)
Provide to sensor-tasking:
- Task command: run --shell-command 'hostname'
- Selector: plat == macos (or your target selector)
- Context: hostname-scan-001 (for response collection)
- TTL: 3600 (or desired expiration)
The sensor-tasking skill will:
See the sensor-tasking skill documentation for:
Create a script that:
Example: Cross-platform mktemp handling
#!/bin/bash
SCAN_ID="$1"
# Cross-platform mktemp (macOS requires different syntax)
if [ "$(uname)" = "Darwin" ]; then
OUTPUT_FILE=$(mktemp /tmp/lc-fleet-scan.XXXXXX)
mv "$OUTPUT_FILE" "${OUTPUT_FILE}.json"
OUTPUT_FILE="${OUTPUT_FILE}.json"
else
OUTPUT_FILE=$(mktemp /tmp/lc-fleet-scan-XXXXXX.json)
fi
# Write results to file
echo '{"scan_id":"'$SCAN_ID'","hostname":"'$(hostname)'","results":[]}' > "$OUTPUT_FILE"
# CRITICAL: Output ONLY the file path
echo "$OUTPUT_FILE"
Use file_content with base64-encoded script:
# Upload the payload script
limacharlie payload upload my-payload.sh --file /tmp/my-payload.sh --oid [org-id] --output yaml
IMPORTANT: The
sensor-taskingskill handles the complete deployment workflow:
- Creates D&R rule for response collection (BEFORE task deployment)
- Deploys via reliable tasking
- Collects and formats results
Use the sensor-tasking skill with your uploaded payload:
Skill(lc-essentials:sensor-tasking)
Provide to sensor-tasking:
- Task command: run --payload-name my-payload.sh --arguments 'scan-001'
- Selector: plat == linux (or your target selector)
- Context: scan-001 (for response collection)
- TTL: 604800 (1 week, or desired expiration)
The sensor-tasking skill will:
Note: For payload-based collection, you may want a D&R rule that:
file_get to retrieve the result fileSee the sensor-tasking skill documentation for advanced D&R rule patterns.
| Selector | Example | Description |
|---|---|---|
| All sensors | * | Every sensor in org |
| By platform | plat == windows | Only Windows sensors |
| By tag | "production" in tags | Sensors with specific tag |
| Combined | plat == linux and "webserver" in tags | Multiple criteria |
| By hostname | hostname == "server1.example.com" | Specific host |
limacharlie task reliable-list --oid [org-id] --output yaml
Shows:
| Issue | Cause | Resolution |
|---|---|---|
| No results | Sensors offline | Wait for TTL period |
| Partial results | Some sensors offline | Check limacharlie task reliable-list for pending |
| D&R not matching | Wrong STDOUT pattern | Verify regex matches actual output |
| Payload failed | Script error | Check RECEIPT events for STDERR |
If you uploaded a payload, delete it after the operation:
limacharlie payload delete my-payload.sh --oid [org-id]
The sensor-tasking skill handles cleanup for:
See the sensor-tasking skill documentation for cleanup workflows.
sensor-coverage - Fleet inventory and health before taskingdetection-engineering - Create custom D&R rules for advanced scenarioslimacharlie CLI - Direct API access for payload managementWhat SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/detection-engineeringExpert Detection Engineer assistant for creating and testing D&R rules in LimaCharlie. Guides through understanding threats, researching event data (Schema, LCQL, Timeline), generating detection logic, testing rules against sample and historical data, and deploying validated rules. Use for building detections, writing D&R rules, testing detection logic, or when user wants to detect specific behaviors or threats./detection-tunerInvestigate noisy/common alerts and create false positive (FP) rules to suppress benign detections. Analyzes detection frequency over 7 days, identifies patterns, generates and tests FP rules with operator approval before deployment. Use for tuning detection noise, reducing alert fatigue, suppressing known-safe activity, or when specific detections need filtering. Human-in-the-loop workflow ensures no FP rules are deployed without explicit approval./feedbackSend interactive feedback requests to humans via ext-feedback channels. Request approvals (approve/deny), acknowledgements, or free-form text answers through Slack, Telegram, Teams, Email, or built-in Web UI. Responses go to a case (note), playbook (trigger), or ai_agent (starts AI session). Use for human-in-the-loop approval, operator notifications, collecting analyst input, gating containment actions, or asking questions during investigations./case-investigationInvestigate security cases from the LimaCharlie Cases extension. Performs HOLISTIC investigations - not just process trees, but initial access hunting, org-wide scope assessment, lateral movement detection, and full host context. Enriches cases with telemetry references, entities/IOCs, analyst notes, and investigation summary/conclusion. Use for SOC triage, incident investigation, threat hunting, alert triage, or building SOC working reports. Supports case lifecycle management (triage, classify, resolve)./lookup-lc-docSearch and retrieve LimaCharlie documentation from GitHub repositories. Use when users ask about LimaCharlie platform features, SDKs, APIs, D&R rules, LCQL, sensors, outputs, extensions, integrations, AI skills, agents, or any LimaCharlie-related topics./sensor-healthGenerate comprehensive sensor health and status reports across all LimaCharlie organizations. Use when users ask about sensor connectivity, data availability, offline sensors, sensors not reporting events, or fleet-wide health queries (e.g., "show me sensors online but not sending data", "list sensors offline for 7 days across all orgs").npx claudepluginhub refractionpoint/lc-ai --plugin lc-essentialsOther plugins' skills for the same job