/automation-pilot-skills:automation-pilot-dynamic-expressionsfrom SAP Automation Pilot
Writes, explains, and debugs SAP Automation Pilot dynamic $(...) expressions and responseBodyTransformer pipelines against execution-shaped input data.
Ships in SAP Automation Pilot. 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.
Produce an Automation Pilot dynamic expression, or a responseBodyTransformer pipeline, that is correct for its placement and reasoned against representative, non-sensitive data.
Automation Pilot evaluates expressions with a custom jq implementation that adds product-specific functions, restrictions, and output behavior and deviates from stock jq in places. Local jq is not proof that an expression behaves the same in Automation Pilot.
responseBodyTransformer, or another field).An expression cannot read a later executor, and a conditionally skipped executor may have no output. When Command Authoring delegates expression work, it owns the accuracy of the execution-shaped fixture and the placement requirements.
Ask about omitted choices that change the value or its type; otherwise reason from the documented behavior.
An expression is jq-compatible syntax wrapped in $( and ), evaluated against an execution-shaped root. Reach data by its path:
.execution.input.<key>, .execution.metadata.<key>, .execution.error.originalMessage — command input, metadata, and the original failure message..<alias>.output.<key>, .<alias>.executed / .retriesCount / .repetitionsCount — an earlier executor's output and run state (later executors are not readable).. is the current pipeline scope and is rebound by |, map, filter, select; use $ (for example $.execution.input.name) to reach the root from inside those.Never return a whole container (.execution, a bare .<alias>, .<alias>.output): the engine resolves it to a silent null. Reach the specific field. Values that crossed an executor boundary arrive as JSON strings; parse with toObject/toArray before selecting inside them.
Use the wire-shaped fixture scenarios for collection boundaries and operator edge cases. Their expected results are documented predictions, not engine test results; record service version and observed output when validating them on a tenant.
Read the expression reference for the full fixture shape, expression forms, engine behavior, scope restrictions, and limits before writing a non-trivial expression or diagnosing a failure.
Load the matching element reference when the expression needs functions from that group, and adapt its documented spellings and gotchas:
toObject, toArray, toNumber, fromXml, toMinifiedJsonString, and the encodings and hashes.split/join, and regular expressions.map, filter, select, sort, reduce, grouping, and the minBy/maxBy analysis functions.getCaseInsensitive, has/in, //, and the null-handling forms.now, nowMillis, toDate, fromDate, compareVersions, and GUIDs.if/then/else, variables, the comma, and range.Read engine gotchas before relying on any non-obvious behavior, and whenever an expression produces an unexpected or empty result.
Confirm the placement, the required value and type, and the available data from Required inputs. Build the smallest representative JSON fixture that preserves the relevant paths and types, using the shape in the expression reference. Replace credentials, tokens, personal data, and production payloads with fake values.
Done when the fixture includes the placement, expected type, all referenced paths, and the serialized boundary values that affect the expression.
Write the smallest expression that produces the intended value. Use only documented Automation Pilot elements and their exact spellings; load the matching element reference above. Avoid conversions unless the source representation requires them.
Match the wrapper syntax to the placement: a $() substitution, a multi-substitution command value, or a bare responseBodyTransformer (expression forms). For a value with several substitutions, reason about each separately, then about the assembled value.
Done when the expression uses documented elements, preserves the expected result type, and does not add avoidable conversions or wrapper syntax for its placement.
Trace the expression against the fixture and predict the serialized output, then compare it semantically with the expected value. A result that is no value or null serializes as empty output, so do not read a silent empty as proof of a working null-handling path.
Reason through every case the engine behavior and scope restrictions raise that can change this expression's behavior. If the trace exposes a problem, change the expression according to the evidence; do not substitute stock jq behavior for the Automation Pilot behavior in the reference. Reason about result type from the elements used, not from the serialized shape.
Done when the representative case and every relevant edge case has a predicted output and any discovered mismatch has been corrected.
Return the exact expression, its intended placement, the fixture shape, the expected result type, and the predicted representative and edge-case outcomes. Do not deploy or execute a command unless the user also requested command work.
Command Authoring owns inserting the expression, preserving its reasoned context, validating the complete definition, and deploying. Execution troubleshooting owns collecting failed-run evidence; expression failures come here for focused reproduction and correction before Command Authoring updates the definition.
Done when the hand-off includes enough context for the caller to insert the expression without changing its meaning.
The expression uses documented Automation Pilot syntax, references data available at its placement, and produces the intended value and representation for a representative fixture when traced by hand, including the relevant edge cases.
Report the symptom in terms of the engine behavior that produces it (engine gotchas): a silent null from missing data or an impossible conversion, accidental text concatenation from a multiple-result stream, a limit error, or a scope restriction. Diagnose against the fixture rather than inventing runtime state. When the failure is a real execution, request the failed-run data from execution troubleshooting and reproduce it against the fixture here.
references/elements/collections.md (opens in a new tab)references/elements/conversions.md (opens in a new tab)references/elements/math-and-control-flow.md (opens in a new tab)references/elements/objects.md (opens in a new tab)references/elements/strings.md (opens in a new tab)references/elements/time-and-identifiers.md (opens in a new tab)references/engine-gotchas.md (opens in a new tab)references/expression-reference.md (opens in a new tab)references/fixtures.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sap/automation-pilot-agent-skills --plugin automation-pilot-skills12 skills in this plugin
/automation-pilot-catalogsCreates and manages custom SAP Automation Pilot catalogs. Use when a user wants a new catalog, changes its metadata, or requests catalog deletion. Discovery owns finding commands and Inputs within catalogs.
/automation-pilot-cliCalls the SAP Automation Pilot REST API through the verified, prebuilt autopi CLI. Use when configuring Bearer authentication, choosing API calls, or validating request payloads. Shared CLI transport for every Automation Pilot skill./automation-pilot-command-authoringAuthors and maintains SAP Automation Pilot commands and composite automations on the tenant. Use when a user wants to create a reusable command, build an orchestration flow (HTTP calls, scripts, polling, batching, conditionals), or change an existing command's contract, executor flow, expressions, or error handling. Also use for production-readiness reviews and local-only command definitions.
/automation-pilot-connectionValidates the configured SAP Automation Pilot connection and reports its non-secret account summary. Use when a user wants to test connectivity, confirm which tenant is configured, or inspect effective access.
/automation-pilot-discoveryFinds and evaluates existing SAP Automation Pilot catalogs, commands, child dependencies, and reusable Inputs. Use when a user wants to locate something to run, check for an existing capability before building, identify reusable building blocks, or understand a command's contract and behavior. Do not use to create, change, or execute content.
/automation-pilot-executionsRuns SAP Automation Pilot commands and operates their executions. Use to trigger/monitor runs or webhooks, inspect execution data, diagnose failures, analyze history, request single/bulk actions or operator choices, and delete execution history. Do not use to repair command definitions or schedules that failed to trigger.
Other plugins' skills for the same job