/automation-pilot-skills:automation-pilot-command-authoringfrom SAP Automation Pilot
Authors and maintains SAP Automation Pilot commands and composite automations. Covers contract design, executor flows, expressions, error handling, and production-readiness reviews.
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.
Before API work, read the shared CLI operating rules for setup, authorization, secret handling, and response safety.
Produce or review an Automation Pilot command whose caller-facing contract, executor flow, and failure behavior match the intended operation. Completion follows the requested mode.
HttpRequest, and dynamic expressions over script executors (Bash ExecuteScript:2,
Python, or Node.js). Native composition keeps generated commands easier to maintain.
Use a script only for required behavior that those commands and expressions cannot
implement, and document the specific gap that makes the script necessary.You need two things from the user:
Resolve gaps in intent, scope, or success criteria before authoring. If the user ran the planning skill, author from its specification. Ask about an omitted choice only when it changes the contract or behavior; otherwise author from the documented defaults and state the assumption.
Select the requested mode first: review reads and reports findings with file paths and fixes; local authoring writes or edits files and runs lint; tenant authoring additionally deploys and verifies. Reviews do not deploy or trigger. Preserve the existing ID, version, contract, executor controls, descriptions, tags, and unrelated fields when updating. Fetch the current full definition before a tenant update; compare only the requested changes and exclude server-owned fields from the write. Use settled targets and prior authorization.
Then follow the five-step workflow below. The reference material is indexed at the end of this document. Each step points to the one it needs as you reach it.
Pin down, in this order:
configuration that orchestrates one or more executors. Use multiple executors for data flow, conditions, polling, or batching.autoRetry, asynchronous operations that need repeat polling, conditional steps (when), postconditions (validate), and errorMessages written for the caller. The pattern cookbook has the composition shapes for these.Record the evidence for every prior-executor path used by an input, condition, validation, or final output. Read path evidence and behavioral verification for nested-path evidence and acceptance scenarios.
Done when contract, shape, flow, and resilience are decided and every cross-executor path has supporting evidence or a named verification assumption. Each scripted step identifies the gap required by Native commands first. Tenant authoring also requires live executor/Input contracts; local-only work records unavailable contracts as assumptions.
Read the command model for the caller-facing contract and top-level JSON, then the composition controls for configuration, executors, conditions, retries, polling, errors, and delays. The facts that bite hardest if missed:
-sapcp suffix for SAP built-ins.defaultValue, every execution-time input value, and every values entry inside a condition block is a JSON string regardless of declared type: "5", "true", "[\"a\",\"b\"]". Condition values are ["200"], ["true"], ["1"]. A number/object/array output also serializes back as a string.automation-pilot-dynamic-expressions skill for every non-trivial expression. Supply its intended field, expected result type, and a non-sensitive execution-shaped fixture containing the parent input and prior executor outputs. Preserve evidenced siblings, nesting, declared types, and string-encoded structured values.when, validate, autoRetry, repeat, errorMessages, initialDelay, pause, progressMessage, description) with null or [] when unset; the examples show the shape.Done when the JSON expresses the designed contract, follows the naming and engine rules, and carries the explicit executor shape.
Read descriptions and sensitivity. Write the command description in terms of its caller-visible behavior. For its standard parameters, use the matching mandated sentence; for other keys, describe the caller-visible meaning and constraints.
Mark every secret-bearing input or output key sensitive: true. Use a Sensitive* executor variant when the step's output can contain sensitive data; a sensitive input alone does not require the sensitive variant when the ordinary executor keeps that input protected and its output is non-sensitive.
Done when the command and every key carry a caller-facing description, mandated strings are used verbatim, and every secret-bearing key is sensitive: true.
Run autopi lint <Name>.command.json before every deployment. Fix CRITICAL/HIGH findings;
resolve or explain lower-severity heuristic findings with evidence. For reviews, return prioritized
findings and proposals here. For local authoring, return the validated file and remaining live
contract assumptions and acceptance scenarios here.
For tenant authoring, use the exact target covered by the user's request. Create with
autopi commands create, replace with autopi commands update, or use autopi commands deploy
for a 404-only upsert. Preview the redacted request when it helps review. Ask for final approval
only if deployment is outside the existing authorization, after the definition is ready. Delete
only an exact target explicitly authorized by the user, with dependency impact understood.
When a validation execution needs diagnostic evidence, use the automation-pilot-tags skill to
apply execution logging, then hand the command to the executions skill.
Deploy dependencies first: catalog, reusable Inputs, leaf commands, then parent commands. Stop at a failed prerequisite or blocking read-back issue; dependent definitions and execution requests wait until it is repaired. Prefer sequential deployment for dependent resources.
Done when the selected mode's outcome is ready: prioritized review findings, a locally validated file with assumptions and acceptance scenarios, or an authorized deployment at the exact ID with verified prerequisites. Continue to Step 5 for tenant read-back.
Read the command back with autopi commands get and compare its contract, executor wiring, resilience blocks, descriptions, sensitivity flags, and issues array with the design. autopi commands get returns the validation issues for the command; autopi commands list --include-issues can include them, but use the full get for verification. When execution is requested and authorized, exercise each safe caller-visible branch and a representative value from each input partition using behavioral verification. Trace other cases against sanitized captured output when available and label the evidence obtained.
Done when no blocking validation issues remain, informational warnings are explained, and the authorized cases produce the intended statuses, paths, and output. Account for each planned branch and input partition as live-tested, traced, or unverified. If execution was not requested, report deployment/read-back validation and the specific runtime checks still needed.
Before using any composed executor or Input's name, keys, or version, read its contract from the tenant. Catalog contents change, so an example or a remembered contract never confirms what the tenant exposes now; infer the version from the live read, never from a name.
autopi commands contract (contract only) or autopi commands get (full definition plus validation issues).allowedValuesFromInputKeys or a configuration.values[].inputReference, such as metadata-sapcp:CfRegionData:1) resolves with autopi inputs get. An Input ID 404s on autopi commands get.Reference material. Load the row matching the current decision; do not load every reference:
| User goal | Read |
|---|---|
| Define or change the caller-facing contract, naming, serialization, or catalog placement | command model |
| Assemble executors, reusable values, conditions, retries, polling, errors, or delays | composition controls |
| Describe keys or decide sensitivity | descriptions and sensitivity |
| Poll, retry, branch, validate, listen for status, or chain steps | pattern cookbook |
| Call an API | HTTP |
| Run custom code or a CLI | scripting |
| Query or change HANA data | SQL |
| Process a collection sequentially or in parallel | iteration |
| Start, await, or inspect a separate child execution | execution orchestration |
| Pause for a human choice or free-text input | human-in-the-loop |
| Prove nested paths or plan branch/input-partition checks | path evidence and behavioral verification |
| Diagnose deployment validation or runtime authoring symptoms | troubleshooting |
| Apply tags, inheritance, retention, priority, or execution logging | Use the automation-pilot-tags skill |
For decisions that span rows, load every matching reference directly from this table. In particular, an HTTP retry, poll, validation, or status branch needs the composition controls, pattern cookbook, and HTTP references; a complete composite definition needs both the command model and composition controls. When troubleshooting identifies an owning topic, return to this table and load that reference directly. Reference files are terminal leaves; all cross-topic routing happens here.
Examples. Open the complete template matching the flow; each still needs tenant-ID substitution and live contract verification. Read the template acceptance scenarios before relying on retry, polling, collection, human-choice, or explicit child-execution behavior:
| Flow | Template |
|---|---|
| Sequential in-execution batching | ProcessAppsBatch.command.json |
| Caller-supplied collection with count/member validation before iteration | ProcessValidatedItems.command.json |
| Parallel child executions | ProcessItemsInParallel.command.json |
| Polling an asynchronous operation | WaitForOperation.command.json |
| Resolving an identifier and chaining the result | ResolveAndGetResource.command.json |
| Retrying transient HTTP failures | GetResourceWithRetry.command.json |
| Trigger a child, await successful completion, then read its output | TriggerAndAwaitCommand.command.json |
| Collect a runtime environment choice without changing that environment | ChooseEnvironment.command.json |
Sequence: plan → discovery → Inputs when needed → authoring → executions / scheduling.
issues): read the issues array with autopi commands get and fix the named key or executor.autopi commands update the same command.The command expresses the intended contract and behavior, reuses content that fits, follows the naming and engine rules, uses mandated descriptions, and marks secrets as sensitive. Completion follows the requested mode: review findings, a locally validated file, or an authorized
tenant deployment with read-back. Blocking issues are fixed; informational warnings are
reported with their meaning. Runtime behavior is claimed only for representative runs actually
performed within the user's authorization. Report what it does and how to run it, and point to executions for triggering and scheduling for recurring runs.
examples/ChooseEnvironment.command.json (opens in a new tab)examples/GetResourceWithRetry.command.json (opens in a new tab)examples/ProcessAppsBatch.command.json (opens in a new tab)examples/ProcessItemsInParallel.command.json (opens in a new tab)examples/ProcessValidatedItems.command.json (opens in a new tab)examples/ResolveAndGetResource.command.json (opens in a new tab)examples/TriggerAndAwaitCommand.command.json (opens in a new tab)examples/WaitForOperation.command.json (opens in a new tab)references/behavior-verification.md (opens in a new tab)references/command-model.md (opens in a new tab)references/commands/execution-orchestration.md (opens in a new tab)references/commands/http.md (opens in a new tab)references/commands/human-in-the-loop.md (opens in a new tab)references/commands/iteration.md (opens in a new tab)references/commands/scripting.md (opens in a new tab)references/commands/sql.md (opens in a new tab)references/composition-controls.md (opens in a new tab)references/descriptions-and-sensitivity.md (opens in a new tab)references/patterns.md (opens in a new tab)references/template-validation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
12 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-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.
npx claudepluginhub sap/automation-pilot-agent-skills --plugin automation-pilot-skillsOther plugins' skills for the same job