CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

development-workflow

Orchestrates the complete Falcon Foundry app lifecycle from requirements through deployment. TRIGGER when user asks to "create a Foundry app", "build a Foundry app", "plan a Foundry app", runs any `foundry apps` CLI command, or discusses Foundry app architecture. DO NOT TRIGGER when user is working on a specific capability (UI, function, workflow, collection) within an existing app — use the appropriate sub-skill instead. This skill OWNS the entire Foundry development flow. Do not delegate Foundry app creation to superpowers:brainstorming or superpowers:writing-plans — those skills do not know about the Foundry CLI.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

SKILL.md
Quality
Evals
Security

Foundry Development Workflow

This skill owns the Foundry development flow. Follow the App Creation Flow below from user prompt to running app, scaffold with foundry apps create and related CLI commands, delegate capability-specific content to the Foundry sub-skills, and hand-write only what the CLI can't generate (OpenAPI content, workflow logic, UI code).

Don't hand Foundry app creation to superpowers:brainstorming or superpowers:writing-plans. They don't know the Foundry CLI and produce plans that hand-write manifest.yml and boilerplate files. They can supplement this flow (TDD discipline, code review), not replace it.

CRITICAL: add --no-prompt to every command that accepts it — without it, interactive prompts cause Error: EOF. The create, validate, deploy, release, and delete commands all accept it (apps delete also needs --force-delete). These reject it and fail with unknown flag: foundry version, apps list, apps list-deployments, ui extensions list-sockets, and auth scopes list. Verify with foundry <command> --help. When a command fails, MUST NOT fall back to mkdir — fix the command and retry.

CRITICAL: All foundry app commands MUST run from the app root directory (where manifest.yml lives). The CLI resolves manifest paths relative to os.Getwd(), not relative to the manifest's location. Running foundry apps validate, foundry apps deploy, or foundry ui run from a subdirectory (e.g., ui/extensions/my-ext/) causes doubled paths and misleading "file not found" errors. Commands that work from anywhere: foundry version, foundry profile *, foundry apps list.

This skill coordinates the full Falcon Foundry app lifecycle — from parsing requirements through scaffolding, implementation, and deployment. It delegates capability-specific work to sub-skills that know the platform details.

Decision Tree

What does the user need?

Create a new Foundry app
└── Follow the App Creation Flow below

Upgrade a template-installed app
└── app-upgrades

Audit an existing app for anti-patterns
└── app-audit

Add a capability to an existing app
├── API integration       → api-integrations
├── Workflow              → workflows-development
├── UI page/extension     → ui-development
├── Function              → functions-development
├── Collection            → collections-development
├── AI agent / knowledge base → ai-agents-development
└── Falcon API from funcs → functions-falcon-api

Execute / test a deployed function
├── "run my function", "execute function"     → functions-development
├── "check execution status", "exec status"   → functions-development
├── "get function logs", "show logs"          → functions-development
├── "list executions"                         → functions-development
├── "test my function" (function tests.yml)   → functions-development
└── "run tests", "test cases"                 → functions-development

Debug a function failure
├── "debug my function", "why did it fail"    → debugging-workflows
├── "function returning errors"               → debugging-workflows
└── "no logs available"                       → debugging-workflows

Implement a known pattern (pagination, enrichment, ingestion)
└── Search use-cases/*.md for matching pattern → load for context

Debug / troubleshoot      → debugging-workflows
Security review           → security-patterns
E2E testing / Playwright  → e2e-testing

Standalone Fusion workflow (no app — trigger + existing actions only)
└── fusion-redirect (declines and points to the Falcon Fusion plugin)

Routing When Sub-Skills Are Not Registered

Sub-skills live beside this one as ../<name>/SKILL.md. On a single-entry-point install only this skill is discoverable, so capability-level requests land here — that is intended, not a mis-route. Read the sub-skill file from disk before writing any capability content, then:

  • manifest.yml already present — skip Steps 1-2 and Step 4. Run the Step 3 prerequisite check, add the capability with its command from Capability Create Commands in references/advanced-patterns.md, and follow Manifest Coordination.
  • No app yet — run the full App Creation Flow.

This never overrides the fusion-redirect skill: a standalone Fusion workflow request is still a redirect, not a capability to add.

App Creation Flow

Step 1: Parse Requirements

Map user requests to Foundry capabilities:

User SaysCapabilityCLI Command
"API integration", "connect to X API"API Integrationfoundry api-integrations create
"workflow", "on-demand", "automate"Workflowfoundry workflows create
"UI", "page", "dashboard"UI Pagefoundry ui pages create
"extension", "sidebar", "widget"UI Extensionfoundry ui extensions create
"function", "serverless", "backend"Functionfoundry functions create
"store data", "collection", "database"Collectionfoundry collections create
"AI agent", "Charlotte agent", "agentic"AI Agentfoundry agents create
"knowledge base", "give the agent docs"Knowledge Basefoundry knowledge-bases create
"run function", "execute", "test handler"Function Executionfoundry functions exec
"get logs", "show execution logs"Log Retrievalfoundry functions logs
"check status", "execution result"Execution Statusfoundry functions exec status
"test function", "run tests", "test cases"Function Testingfoundry functions test
"debug function", "why did it fail"Function Debugging→ debugging-workflows skill

⚠️ "Summarize/list alerts, detections, or incidents" (a population the workflow doesn't already have) implies a source-of-truth fetch. A request like "a workflow that emails a summary of high-severity alerts" needs the set of alerts, which is not reliably in NG-SIEM (Event Query can silently return nothing — repo contents are connector-dependent). Fetch it from the source of truth: a native platform action (e.g. Cases → Search Cases) first, or a FalconPy Alerts/Detects function when none fits — so the app needs BOTH that capability (plan the alerts:read scope) AND a workflow to schedule it and send email. Exception: enriching a detection the workflow was already triggered on (query by its ID) stays an Event Query and needs no function. See the functions-falcon-api skill and the workflows-development skill's references/event-query-vs-api.md.

Step 1b: Check for Known Patterns

Before scaffolding, check if the user's request matches a known use case. Glob use-cases/*.md and scan the description field in each file's frontmatter. If a match is found, read the use case file for implementation context (architecture, capability order, gotchas) before proceeding.

Use cases cover common scenarios like API pagination, detection enrichment, lookup table creation, LogScale data ingestion, SOAR custom actions, and more. See use-cases/README.md for the full catalog.

Step 2: Confirm App Name and Capabilities

Always confirm the app name with the user before creating anything. Use the assistant's available user-input mechanism; if none exists, ask directly in chat. Derive a reasonable default from the user's request (e.g., "okta-integration" for an Okta API integration), then present it as the recommended option with 1-2 alternatives. Include a brief description of what will be created.

Page vs Extension disambiguation: When the user mentions "UI" without specifying "page" or "extension", ask which they want using the available user-input mechanism. Offer two options: "Page" (standalone full-page view — dashboards, lists, management UIs) and "Extension" (sidebar widget embedded in detection/host/incident pages). Default to Page when running non-interactively (e.g., agent batch mode or test automation) since pages are the more common case.

For other decisions, prefer reasonable defaults: use React for UI, download public OpenAPI specs from vendor GitHub repos. Only ask additional clarifying questions when the prompt is genuinely ambiguous and a wrong guess would produce an unusable app.

Plan functions by domain, not one per feature. Each function is a separate container build at deploy, and fresh installs with dozens of functions can fail outright (a 43-function app failed where the same handlers in 11 functions deployed in about 9 minutes). Before adding a function, extend an existing one in the same language. The functions-development skill's references/function-count-and-build-time.md covers consolidation patterns.

Step 3: CLI Prerequisite Check

foundry version          # Verify CLI installed
foundry profile list     # First line shows the active profile
foundry apps list        # Check existing apps (avoid name collisions)

If a tenant command fails with only connection issue, the usual cause is a sandbox denying the CLI's token-cache write to ~/.config/foundry/ — an expected refresh, not a network fault. Request write access to that directory and retry; see headless operation. Never redirect the config path into the workspace or copy credentials.

Step 4: Scaffold the App

Prerequisite: User must have confirmed the app name in Step 2. Do not run this without confirmation.

Choose the location automatically: use an existing app when manifest.yml is present; otherwise create in the current directory, or beside it when the current directory is an unrelated repository. Request sandbox write access when needed; never put the app inside an unrelated repository as a fallback.

foundry apps create --name "app-name" --description "description" --no-prompt --no-git
cd app-name

--no-prompt prevents interactive prompts that fail in non-interactive environments with Error: EOF. --no-git skips git initialization. The command is foundry apps create (there is no init command). If it fails, fix the command and retry — MUST NOT fall back to mkdir, which produces invalid manifest structure.

foundry apps create always makes a subdirectory named after the app (spaces included). When converting an existing repo, run create beside it and move the freshly generated manifest.yml to the repo root rather than leaving a nested app directory.

Step 5: Add Capabilities (CLI Commands)

Run in dependency order (API integrations → collections → validate → functions → knowledge bases → agents → workflows → UI pages → extensions). Write spec/schema files to /tmp/ — the CLI copies them into the project and updates manifest.yml with generated IDs.

foundry api-integrations create --name "MyApi" --description "desc" --spec /tmp/MyApi.yaml --no-prompt
foundry collections create --name "my_col" --schema /tmp/my_schema.json --description "desc" --no-prompt  # letters, digits, _ only
foundry apps validate --no-prompt   # fail fast on specs and schemas
foundry functions create --name "my-fn" --language python --description "desc" \
  --handler-name process --handler-method POST --handler-path /api/process --no-prompt
foundry knowledge-bases create --name "Runbook Docs" --description "desc" --files /tmp/runbook.md --no-prompt
foundry agents create --name "My Agent" --description "desc" --system-prompt /tmp/system_prompt.md \
  --knowledge-bases "Runbook Docs" --expose-charlotte-chat --no-prompt
foundry workflows create --name "My Workflow" --spec /tmp/My_workflow.yml --no-prompt
foundry ui pages create --name "my-page" --description "desc" --from-template React --homepage --no-prompt
foundry ui navigation add --name "My Page" --path / --ref pages.my-page --no-prompt
foundry ui extensions create --name "my-ext" --description "desc" --from-template React \
  --sockets "activity.detections.details" --no-prompt   # sockets: ui-development → Extension Socket Locations

Annotated notes for each command (KB --files forms, agent exposure flags, workflow-to-agent calls) are in references/advanced-patterns.md → Capability Create Commands.

Fail fast: Validate right after API integrations and collections — foundry apps validate --no-prompt is a seconds-long dry-run of deploy validation (specs + schemas; NOT workflow semantics or app-name uniqueness, which only deploy checks). If it fails, STOP and fix the spec/schema before building UI on a broken backend; let adapt_spec_for_foundry.py fix known spec issues and tell the user what it missed. Don't validate right before deploy — deploy runs the same checks plus more.

Step 6: Write Domain-Specific Content

The CLI scaffolds structure but cannot generate app logic. Delegate to sub-skills:

  • OpenAPI spec → api-integrations
  • Workflow YAML → workflows-development
  • UI components → ui-development
  • Function handlers → functions-development
  • Collection schemas → collections-development
  • AI agents / knowledge bases → ai-agents-development

Load the relevant sub-skill before writing domain-specific code. Foundry formats and SDK calls differ from what general knowledge suggests — writing without the sub-skill loaded is the top cause of invented formats (wrong workflow YAML, raw HTTP instead of FalconPy, agents created before their KBs). The per-capability "what goes wrong without it" table is in references/advanced-patterns.md → Sub-Skill Loading.

Save turns. Every turn resends the whole conversation, so the number of turns drives a build's cost more than the size of any file. Load each sub-skill when you reach its step, in the same turn as that step's first command, not in a turn of its own. Read each SKILL.md separately: concatenating several in one shell command overflows the output limit and costs a turn to read back. Each sub-skill's SKILL.md covers the common case. Open a reference only for what it doesn't cover, and read it once rather than in several grep/sed slices. Chain dependent commands with && in one Bash call.

Step 7: Final Build and Deploy

# Build UI (required before deploy) — MUST cd back to app root afterward
cd ui/pages/my-page && npm install && npm run build && cd ../../..
# For extensions: cd ui/extensions/my-ext && npm install && npm run build && cd ../../..

# From the app root (where manifest.yml lives): deploy once, wait, and release, in ONE call
python3 <skill-dir>/scripts/deploy_and_release.py --change-type Patch --change-log "Complete app"

<skill-dir> is this SKILL.md's directory, not the app workspace. The script (standard library only, no venv) runs foundry apps deploy --no-prompt once, polls list-deployments for the version deploy printed (release numbers differ), and releases that deployment ID. --no-release stops after the deploy. It prints the packaged dist/ files, because Deploy never builds a UI: it ships dist/ as it is.

  • Exit 1: the deploy, the deployment, or the release failed. On Failed, the script prints the failed artifacts from foundry apps logs; the cause is in the console (App manager > the app > "Show errors (N)").
  • Exit 3: still in progress at the timeout. Don't deploy again (it duplicates); poll foundry apps list-deployments, then run the release command it printed.

When re-deploying an existing app after a UI change, check that the new dist/assets files are listed first: foundry apps deploy --diff-only --no-prompt. While a deploy runs, foundry apps validate fails with deployment is currently in progress. Wait; it isn't a manifest error. Without the script, the manual steps are foundry apps deploy --no-prompt --change-type Patch --change-log "...", then foundry apps list-deployments (no sleep before the first poll), then foundry apps release --change-type Patch --deployment-id <id> --notes "..." --no-prompt.

There is no list-releases command — check status via the App Manager URL printed in the output. foundry ui run serves UI locally only; backend capabilities resolve from the cloud, so deploy those first.

Deploy & release operational depth — --re-deploy retries the latest failed deployment (never to test an edit); the post-update console-cache hard-refresh (Cmd/Ctrl+Shift+R, don't re-deploy to "fix" a stale view); patch-release credential entry (Modify settings vs a --change-type Major Accept update); and the version numbers (catalog vs deployment vs any version shown in the UI) — all in references/advanced-patterns.md → Deploy & Release.

Multi-Cloud Deployment

To deploy the same app to a second cloud (US-1/US-2/US-3/EU-1): strip all IDs (yq -i 'del(.. | select(has("id")).id) | del(.. | select(has("app_id")).app_id)' manifest.yml — delete, don't null), foundry profile activate the target cloud, deploy + release, then explicitly install from the App Catalog (no auto-install; allow a few minutes for propagation). Full steps + the manifest-backup note in references/advanced-patterns.md → Multi-Cloud Deployment.

Existing App Workflow

With an existing manifest.yml, edit files; use the CLI only for:

  • foundry apps run / foundry ui run — local development
  • foundry apps deploy / foundry apps release — deployment
  • foundry api-integrations create etc. — adding capabilities

Manifest Coordination

Dependency order: the Step 5 order (each may depend on the previous)

  • MUST NOT edit manifest.yml unless a deploy fails with "app name already exists" on a true name collision (rename only); if the deploy-written IDs were lost, restore them instead (see below). The CLI sets path, entrypoint, scopes, and IDs correctly — manual edits cause double-path errors and wasted deploy cycles.
  • The first (cold) deploy writes the provisioned app_id + page/function/workflow/agent IDs back into manifest.yml — COMMIT those. They identify your app on that cloud; without them the next deploy fails with an app with the provided name already exists. This is the OPPOSITE of the e2e-sample git checkout manifest.yml step (see references/advanced-patterns.md → Testing an Existing App Locally), which is for throwaway CI runs of the public foundry-sample-* repos that commit blanked IDs to install into any CID. For an app you own and operate, keep the written-back IDs.
  • Narrow exceptions: ai.agents[].model and .tools (see ai-agents-development), auth.scopes names scopes add rejects (see security-patterns), renaming a deployed KB (see knowledge-bases.md), and RBAC permissions: keys. (Agent exposure does have --expose-* flags; set it at create time.)
  • MUST NOT edit vite.config.js — the React blueprint is turnkey. Do not change base, root, or noAttr(). Just edit React/JS component code and deploy.
  • OAuth scopes are auto-managed for CLI-created artifacts — MUST NOT manually add api-integrations:read
  • Use npx @redocly/cli lint for OpenAPI validation (not Python/Ruby YAML parsers)
  • Validate early with foundry apps validate --no-prompt after adding API integrations and collections — but don't validate right before deploy (deploy runs the same checks plus more)

Reading Guide

TaskReference
Headless/CI setup, env vars, US-GOV-1references/headless-operation.md
Superpowers plugin coordinationreferences/superpowers-integration.md
Token management, performance targetsreferences/performance-optimization.md
Common wrong turns (CLI vs hand-written files)references/counter-rationalizations.md
Lifecycle phases, manifest patterns, CLI state, app operations, local e2e runsreferences/advanced-patterns.md
Capability create commands, sub-skill loading, deploy & release depth, multi-cloudreferences/advanced-patterns.md

Improving These Skills

If a skill gave incorrect guidance, was missing a pattern, or required extra trial-and-error to get right, the user can ask you to capture the fix at the end of the session:

What did you learn from this session that could improve the Foundry skills?
Clone https://github.com/CrowdStrike/foundry-skills.git,
create a branch, update the skills with this knowledge, and
create a PR on GitHub.

Steps Claude will handle: create a branch, update the relevant skills/*/SKILL.md, and create a PR.

This turns a one-session fix into a permanent improvement for all users.

Repository

CrowdStrike/foundry-skills

Path

skills/development-workflow/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.