/crowdstrike-charlotte-ai-agentworks:knowledge-basesfrom crowdstrike-charlotte-ai-agentworks
Manage 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.
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 with expertise in Charlotte AI AgentWorks knowledge base operations. Your role is to help users create, query, update, upload files to, download from, and audit knowledge bases using native FalconPy service classes (
KnowledgeBases,KnowledgeBaseFiles,KnowledgeBaseAuditEvents).IMMEDIATE ACTIONS REQUIRED:
- Read this entire skill file before taking any action
- Verify credentials are configured (TOML profile or env vars)
- Only use the scripts documented below — never guess API parameters
- Run scripts via
cd ${CLAUDE_PLUGIN_ROOT}/skills/knowledge-bases && ../../scripts/python.sh scripts/<script>.py- Parse script output and present results clearly to the user
MUST NOT:
- Delete KBs or files (delete operations excluded from v1 scope)
- Guess knowledge_base_id or file IDs — always query first
All scripts must be invoked through the managed venv wrapper so dependencies (FalconPy) are available:
cd ${CLAUDE_PLUGIN_ROOT}/skills/knowledge-bases
../../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/knowledge-bases) and run ../../scripts/python.sh scripts/<script_name>.py [args] from there.The wrapper auto-builds the venv on first use if the SessionStart hook didn't run.
~/.cache/crowdstrike-charlotte-ai-agentworks/credentials.toml) OR env vars (FALCON_CLIENT_ID, FALCON_CLIENT_SECRET, optional FALCON_BASE_URL). Run /crowdstrike-charlotte-ai-agentworks:setup if needed.csrn:charlotte-ai:agent:knowledge-base (read + write)KnowledgeBases, KnowledgeBaseFiles, KnowledgeBaseAuditEvents classes (common/scripts/auth.py enforces a shared 1.6.6+ floor across all skills)kb_list.py --contains "topic" → table of matches, no exact-syntax guessing neededkb_search.py --filter "name:'my-kb'" (single-quoted FQL values only — see references/fql-filters.md) → returns KB IDskb_get.py --ids <id1> <id2> → full KB entitieskb_upsert.py --name "..." --description "..." (optional --id for update)kb_file_upload.py --kb-id <id> --file <path> --description "..."kb_files_list.py --kb-id <id> → table of files with size, type, statuskb_file_download.py --kb-id <id> --file-id <id> --output <path>kb_audit.py --kb-id <id> --limit 50Stop after each script; confirm with user before proceeding to the next step.
| Script | Purpose | Key Flags |
|---|---|---|
kb_list.py | Browse/search KBs by name+description substring (table output) | --name-contains, --contains (name OR description), --modified-since, --sort, --limit |
kb_search.py | Query KB IDs by exact/known FQL filter | --filter "name:'...'" (single-quoted!), --limit 100 |
kb_get.py | Get KB entities by IDs | --ids <id> [id...] |
kb_upsert.py | Create or update a KB | --name, --description, optional --id (update) |
kb_file_upload.py | Upload file to a KB | --kb-id, --file <path>, --description |
kb_files_list.py | List files in a KB (table output) | --kb-id, --name-contains |
kb_file_download.py | Download file from KB | --kb-id, --file-id, --output <path> |
kb_audit.py | Query KB audit events | --kb-id, --limit 100 |
All scripts support --help for full arg lists and --json for raw JSON output.
When the user asks to find/list/browse KBs by topic (not an exact known name), use
kb_list.py --contains "topic", not kb_search.py. kb_search.py's name filter only works
for exact or wildcard-substring matches you already know how to spell, and there's no
server-side full-text search across name+description.
../../scripts/python.sh scripts/kb_list.py --contains "root access"
# Table of matches across name AND description, paginated; use this when you don't
# already know the exact KB name.
../../scripts/python.sh scripts/kb_search.py --filter "name:'Insurance'" --limit 10
# Returns KB IDs. Values MUST be single-quoted -- name:"Insurance" silently matches nothing.
../../scripts/python.sh scripts/kb_get.py --ids abc123-kb-id
../../scripts/python.sh scripts/kb_upsert.py \
--name "Insurance Terms & Conditions" \
--description "Romanian insurance policy documentation"
# Returns KB ID
../../scripts/python.sh scripts/kb_upsert.py \
--id abc123-kb-id \
--description "Updated description..."
../../scripts/python.sh scripts/kb_file_upload.py \
--kb-id abc123-kb-id \
--file /path/to/document.pdf \
--description "Insurance policy terms"
# Returns file ID
../../scripts/python.sh scripts/kb_files_list.py --kb-id abc123-kb-id
# Table: name, description, size, content type, status, last modified, modified by, file ID
../../scripts/python.sh scripts/kb_file_download.py \
--kb-id abc123-kb-id \
--file-id file123 \
--output ./downloaded-policy.pdf
../../scripts/python.sh scripts/kb_audit.py \
--kb-id abc123-kb-id \
--limit 50
# Shows file uploads, KB updates, etc.
cd ../agents
../../scripts/python.sh scripts/agent_upsert.py \
--id <agent-id> \
--knowledge-base-ids abc123-kb-id
| Thought | Reality |
|---|---|
| "I'll guess the KB ID" | Query first. KB IDs are UUIDs; guessing fails 100%. Use kb_search.py or kb_list.py. |
| "I'll skip the filter and list all KBs" | Always filter. Unfiltered queries on large CIDs can time out or return truncated results. Use --filter "name:'...'" or a date range, or use kb_list.py which paginates for you. |
"--filter 'name:\"my-kb\"' with double quotes should work" | Silently wrong. FQL string values must be single-quoted (name:'my-kb'). Double quotes return 200 OK with zero results — no error — which looks identical to "no such KB exists." See references/fql-filters.md. |
| "I searched by name and got nothing, so no matching KB exists" | Rule out syntax first. name filtering does work on this endpoint (unlike agents), but only exact/wildcard matches with correct quoting. Before concluding nothing exists, either fix the quoting or use kb_list.py --contains "..." for substring search across name+description. |
| "File upload is just POST + JSON body" | Multipart/form-data required. kb_file_upload.py uses FalconPy's multipart handling; manual curl won't work without exact boundary formatting. |
| "I can delete a KB by setting is_deleted:true" | Delete out of scope. Per v1 plan, no delete operations. KBs persist once created. |
"I'll list a KB's files with kb_search.py --kb-id" | That flag doesn't exist. Use kb_files_list.py --kb-id <id> instead. |
"I'll pass just ids to get file entities" | knowledge_base_id is also required. EntitiesKnowledgeBaseFilesV1(ids=[...]) alone fails with "knowledge_base_id parameter is required" — pass both, e.g. EntitiesKnowledgeBaseFilesV1(knowledge_base_id=kb_id, ids=[...]). Matches what the Falcon UI itself sends. |
| "The native FalconPy class means I don't need auth.py" | Auth.py is required. It builds the clients with credential resolution. Never instantiate KnowledgeBases() directly in scripts. |
For deep dives, see references/:
| Task | Reference Doc |
|---|---|
| Full endpoint table (methods, paths, params) | references/api-reference.md |
| FQL filter syntax + confirmed examples (the double-quote trap, substring matching) | references/fql-filters.md |
| OAuth 2.0 flow + scope requirements | ../setup/SKILL.md |
Load these on demand — don't read upfront.
This skill uses native typed FalconPy service classes. Benefits:
client.EntitiesKnowledgeBasesCreateV1(body={...})references/api-reference.md (opens in a new tab)references/fql-filters.md (opens in a new tab)scripts/kb_audit.py (opens in a new tab)scripts/kb_file_download.py (opens in a new tab)scripts/kb_file_upload.py (opens in a new tab)scripts/kb_files_list.py (opens in a new tab)scripts/kb_get.py (opens in a new tab)scripts/kb_list.py (opens in a new tab)scripts/kb_search.py (opens in a new tab)scripts/kb_upsert.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.
/discoveryDiscover 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.
/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).
/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).