/crowdstrike-charlotte-ai-agentworks:discoveryfrom crowdstrike-charlotte-ai-agentworks
Discover available models, tools, templates, agent versions, and trace spans in Charlotte AI AgentWorks. Read-only queries using native FalconPy classes (`Models`, `Tools`, `AgentTemplates`, `AgentVersions`, `Spans`). TRIGGER when user asks to list/query/discover models, tools, templates, versions, or spans. DO NOT TRIGGER for agent creation/invocation (use agents/invocation skills) or knowledge bases.
Ships in crowdstrike-charlotte-ai-agentworks. 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.
Read when SKILL.md points to them; scripts run unread.
Read this first.
You are an AI assistant helping users discover Charlotte AI AgentWorks resources (models, tools, templates, versions, spans). All operations are read-only queries using native FalconPy classes (
Models,Tools,AgentTemplates,AgentVersions,Spans).IMMEDIATE ACTIONS REQUIRED:
- Read this entire skill file
- Verify credentials configured
- Run scripts via
cd ${CLAUDE_PLUGIN_ROOT}/skills/discovery && ../../scripts/python.sh scripts/<script>.pyMUST NOT:
- Modify discovered resources (read-only skill)
cd ${CLAUDE_PLUGIN_ROOT}/skills/discovery
../../scripts/python.sh scripts/<script_name>.py [args]
${CLAUDE_PLUGIN_ROOT} is substituted with the plugin's install path before this text reaches the model. Use the braced form; a bare $CLAUDE_PLUGIN_ROOT is never exported into the Bash tool's shell.CLAUDE_PLUGIN_ROOT. cd to the folder you loaded this SKILL.md from (e.g. ~/.agents/skills/discovery) and run ../../scripts/python.sh scripts/<script_name>.py [args] from there.csrn:charlotte-ai:agent:definition (read), :template, :metricsdocs/FQL_SYNTAX_REFERENCE.mdAll discovery scripts follow a two-step pattern:
models_search.py --limit 50 → returns model IDs (filter by ID only, not name)tools_search.py --filter 'name:"..."' → returns tool IDstemplates_search.py --filter 'category:"..."' → returns template IDsversions_search.py --filter 'agent_id:"..."' → returns version IDsspans_search.py --filter 'trace_id:"..."' → returns span IDsagent_get.py --ids <id1> <id2> (agents skill)spans_get.py --ids <id1> <id2> (discovery skill)Query endpoints return opaque IDs; entity endpoints return full details.
CRITICAL: When evaluating agents from Claude Code's available agent types list (visible in system reminders) or from tool discovery output, you MUST inspect the full agent definition before recommending or using it.
Use version_group_id, NOT agent_id (or just id):
version_group_id → The stable identifier across all versions of an agent → USE THISagent_id or id → A specific version instance → Using this will fail with "failed to retrieve agent"Where to find version_group_id:
version_group_id fieldversion_group_idversion_group or version_group_id fieldWhen you inspect an agent using version_group_id, the agents skill's agent_get.py returns:
Important implications:
version_group_id (NOT agent_id or id) from the metadatacd ${CLAUDE_PLUGIN_ROOT}/skills/agents
../../scripts/python.sh scripts/agent_get.py --ids <version_group_id>
Why: Agent names and brief descriptions in the types list can be misleading. The actual system prompt, tool configuration, and capabilities determine if an agent is suitable. Don't guess based on names alone.
Example - Correct vs Incorrect ID:
Tool metadata shows:
ID: agents/0ad0ec8a-c49a-4784-9541-8c931aa0a365/... ← DON'T USE
Version group: 4ff1fc7a-2181-405d-a6d7-95b549eb7a10 ← USE THIS
# ❌ WRONG:
agent_get.py --ids 0ad0ec8a-c49a-4784-9541-8c931aa0a365
# Returns: "failed to retrieve agent"
# ✅ CORRECT:
agent_get.py --ids 4ff1fc7a-2181-405d-a6d7-95b549eb7a10
# Returns: Full agent definition
All scripts are nearly identical (just different paths):
| Script | Purpose | Endpoint |
|---|---|---|
models_search.py | Query available models | /queries/models/v1 |
tools_search.py | Query available tools | /queries/tools/v1 |
templates_search.py | Query agent templates | /queries/agent-templates/v1 |
versions_search.py | Query agent versions | /queries/agent-versions/v1 |
spans_search.py | Query trace spans (IDs only) | /queries/spans/v1 |
spans_get.py | Get full span entities | /entities/spans/v1 |
../../scripts/python.sh scripts/models_search.py --limit 10
# Returns model IDs (UUIDs)
# NOTE: Filter only works by ID, not by name. Query all and filter client-side.
# DEPRECATED: tools_search.py uses /queries endpoint which may be unstable
# Use tools_get.py instead for client-side filtering
../../scripts/python.sh scripts/tools_get.py --search "logscale query" --verbose
# Searches across name, description, and category
# Automatically filters out overly-broad terms like "falcon", "crowdstrike"
# Returns full tool entities with descriptions
# Legacy approach (may return 500 errors):
../../scripts/python.sh scripts/tools_search.py --filter 'name:"logscale"' --limit 20
Use tools_get.py --category for an exact, case-sensitive category match. Prefer category
filtering when the requested capability maps to one of the families below; add --search
to narrow by name or description within that family.
../../scripts/python.sh scripts/tools_get.py \
--category falcon_platform \
--search "device query" \
--limit 100
| Category | Use it to discover |
|---|---|
charlotte-mcp | Curated Charlotte AI assistants for security tasks such as LogScale queries, detection triage, threat intelligence, malware analysis, documentation, and remediation guidance. |
agents | Published Charlotte AI AgentWorks agents exposed as callable tools. Filter here when one agent should delegate a specialized task to another agent. |
gce | Generic GCE tools, if present. This category currently returns no tools; do not confuse it with tool IDs prefixed mcp/gce/, whose actual categories are more specific. |
fusion_workflows | On-demand Fusion workflow tools that execute a configured workflow and return its execution ID and declared outputs. |
falcon_platform | First-party Falcon platform operations for hosts, detections, incidents, cases, identity, intelligence, LogScale, workflows, and response actions. |
integrations | Operations supplied by configured third-party Fusion integrations; these commonly require an integration credential/configuration ID. |
Collections | Create, get, list, search, and delete objects in agent-managed collections. The category name is case-sensitive. |
action_requests | Human-in-the-loop actions that pause execution to request clarification. |
foundry-user-mcp | Tools from user-configured MCP servers connected through Foundry, such as Jira, Confluence, Slack, or Microsoft documentation tools. Availability is tenant-specific. |
Category availability is tenant-specific. A zero-result category is not an error; report it and only broaden the search after explaining that exact category matching found nothing.
⚠️ IMPORTANT - Avoid Overly-Broad Search Terms:
../../scripts/python.sh scripts/templates_search.py --filter 'category:"security"'
../../scripts/python.sh scripts/versions_search.py \
--filter 'agent_id:"<agent-id>"' \
--limit 10
../../scripts/python.sh scripts/spans_search.py \
--filter "trace_id:'abc123'+start_time:>='now-24h'" \
--limit 100
# Note: Time filter required (start_time or end_time)
# Note: Use FQL syntax - operators are :>=, :<=, :<, :>, values in single quotes
../../scripts/python.sh scripts/spans_search.py \
--filter "(attributes.aw_agent.id:'<agent-id>'+start_time:>='now-7d')+span_type:['aw_agent','aw_eval_run_started']" \
--limit 500
# Note: FQL uses + for AND, , for OR
# Note: Wrap complex filters in parentheses
# Note: Filter by span_type for efficiency (agent-level spans only)
# First get span IDs from query (--json: the default output is a header plus an indented list)
SPAN_IDS=$(../../scripts/python.sh scripts/spans_search.py \
--filter "trace_id:'abc123'+start_time:>='now-24h'" --json | jq -r '.resources[]')
# Then hydrate to full entities (SPAN_IDS is intentionally unquoted so each ID is its own argument)
../../scripts/python.sh scripts/spans_get.py --ids $SPAN_IDS
# Shows full span details: name, type, duration, status, credits, attributes
| Thought | Reality |
|---|---|
| "I'll use the agent ID from tool metadata to inspect it" | Use version_group_id instead. The agent_id field refers to a specific version. Use version_group_id to retrieve the current published definition. |
| "I just saw someone modify an agent, so inspection will show those changes" | Modifications create drafts. Agent inspection returns the latest published version, not draft versions. Changes are invisible until published. |
"A tool ID beginning with mcp/gce/ has category gce" | ID namespace and category differ. Filter the entity's exact category, such as falcon_platform, fusion_workflows, or integrations. |
| "Category matching ignores case" | Treat categories as case-sensitive. In particular, use Collections with a capital C. |
| "Discovery = get entities" | Query IDs only (except spans_get.py). Most scripts return IDs; use GET /entities/... to hydrate. |
| "Model name = model ID" | Model ID is UUID. Discovery returns IDs; filter only works by ID, not name. Query all models and grep client-side. |
| "I can filter models by name" | Models filter only works by ID. Query all (--limit 100) and filter client-side or use known model IDs. |
| "Span queries don't need time filters" | Time filter REQUIRED. The API enforces 90-day max age and adds default start_time>=<90d-ago> if missing. See docs/SPAN_TIME_CONSTRAINTS.md for full rules. |
| "I can query spans from 6 months ago" | 90-day hard limit. Spans older than 90 days cannot be queried. Use start_time:>=now-90d for maximum history. |
| Task | Reference Doc |
|---|---|
| FQL filter syntax (REQUIRED) | docs/FQL_SYNTAX_REFERENCE.md |
| API endpoints and parameters | references/api-reference.md |
| FQL filter syntax | references/fql-filters.md |
| OAuth 2.0 + scopes | ../setup/SKILL.md |
| Span time constraints (CRITICAL) | docs/SPAN_TIME_CONSTRAINTS.md |
| Span filter debugging | docs/SPAN_FILTER_DEBUGGING.md |
Allowed (all read-only):
GET /agentic-studio/queries/models/v1GET /agentic-studio/queries/tools/v1GET /agentic-studio/queries/agent-templates/v1GET /agentic-studio/queries/agent-versions/v1GET /agentic-studio/queries/spans/v1 (requires time filter)GET /agentic-studio/entities/spans/v1 (hydrate span IDs)scripts/diagnose_spans.py (opens in a new tab)scripts/models_search.py (opens in a new tab)scripts/probe_span_filters.py (opens in a new tab)scripts/spans_get.py (opens in a new tab)scripts/spans_search.py (opens in a new tab)scripts/templates_search.py (opens in a new tab)scripts/tools_get.py (opens in a new tab)scripts/tools_search.py (opens in a new tab)scripts/versions_search.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub crowdstrike/agentworks-skills --plugin crowdstrike-charlotte-ai-agentworks7 skills in this plugin
/agentsManage Charlotte AI AgentWorks agent lifecycle. Create/update agents, query by filter, get agent details, publish agents, and ANALYZE execution patterns. **Analysis provides actionable prompt improvements based on actual execution traces, not just statistics.** Uses the native FalconPy `Agents` and `AgentVersions` classes. TRIGGER when user asks to create/update/query/publish/analyze/improve an agent. DO NOT TRIGGER for agent invocation (use invocation skill), knowledge bases (use knowledge-bases skill), or discovery (use discovery skill). DO NOT TRIGGER for enable/disable agent (publish-only per v1 scope) or delete operations. DO NOT TRIGGER for agents defined in a Falcon Foundry app (manifest.yml `ai.agents`, `foundry agents create`); foundry-redirect handles those.
/agentworksOrchestrator skill for Charlotte AI AgentWorks. Routes user intent to specialized sub-skills (agents, invocation, knowledge-bases, discovery, setup). Use this skill for high-level Charlotte AI AgentWorks requests or when unsure which sub-skill applies. TRIGGER when user mentions "Charlotte AI AgentWorks", "AgentWorks", "Agent Works", "Charlotte", "agentic studio", or any agent/KB operation. DO NOT TRIGGER for other CrowdStrike products (Fusion, Foundry, etc.). Agents or knowledge bases defined in a Falcon Foundry app (manifest.yml `ai.agents` / `ai.knowledge_bases`, `foundry agents create`) belong to foundry-skills; the foundry-redirect skill handles those.
/foundry-redirectTRIGGER when the user asks for an AI agent or knowledge base that lives inside a Falcon Foundry app: mentions "Foundry app", manifest.yml, the `ai.agents` or `ai.knowledge_bases` manifest blocks, `foundry agents create`, `foundry knowledge-bases create`, or exposing a collection or API operation as an agent tool. DO NOT TRIGGER for an agent or knowledge base created and managed directly through the Falcon API (no app, no manifest.yml); the agents and knowledge-bases skills own those. This skill declines Foundry-app requests and points to the crowdstrike-falcon-foundry plugin, so the redirect works even without plugin hooks; it yields to the real Foundry plugin when that plugin is also installed.
/invocationInvoke Charlotte AI AgentWorks agents and manage invocations. Invoke published agents or specific versions, stream results, get messages, and cancel runs. Uses native FalconPy classes (`AgentInvocation`, `Stream`). TRIGGER when user asks to invoke an agent, run an agent, get agent results/messages, or cancel an invocation. DO NOT TRIGGER for agent creation (use agents skill), knowledge bases (use knowledge-bases skill), or discovery (use discovery skill).
/knowledge-basesManage Charlotte AI AgentWorks knowledge bases. Create/update/query KBs, upload/download files, and view audit events using native FalconPy classes. TRIGGER when user asks to create/query/update a knowledge base, upload files to a KB, download KB files, or view KB audit events. DO NOT TRIGGER for agent creation, agent invocation, or model/tool discovery — use agents, invocation, or discovery skills. DO NOT TRIGGER for knowledge bases defined in a Falcon Foundry app (manifest.yml `ai.knowledge_bases`, `foundry knowledge-bases create`); foundry-redirect handles those.
/setupConfigure credentials for Charlotte AI AgentWorks API access. Guides users through manual TOML configuration or environment variable setup. TRIGGER when user explicitly asks to "set up Charlotte AI AgentWorks", "configure credentials", or has auth errors. DO NOT TRIGGER for general Charlotte AI AgentWorks usage (orchestrator handles routing).