ai/ios-skills/ios-asc-workflow/SKILL.md
Define, validate, and run repo-local multi-step automations with `asc workflow` and `.asc/workflow.json`. Use when migrating from lane tools, wiring CI pipelines, or orchestrating repeatable `asc` + shell release flows with hooks, conditionals, and sub-workflows.
npx skillsauth add kurko/dotfiles asc-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you need lane-style automation inside the CLI using:
asc workflow runasc workflow validateasc workflow listThis feature is best for deterministic automation that lives in your repo, is reviewable in PRs, and can run the same way locally and in CI.
--help to confirm flags and subcommands:
asc workflow --helpasc workflow run --helpasc workflow validate --helpasc workflow list --help.asc/workflow.jsonasc workflow validateasc workflow listasc workflow list --all (includes private helpers)asc workflow run --dry-run betaasc workflow run beta BUILD_ID:123456789 GROUP_ID:abcdef.asc/workflow.jsonasc workflow run --file ./path/to/workflow.json <name>// and /* ... */)stdout: structured JSON result (status, steps, durations)stderr: step command output, hook output, dry-run previewsasc workflow validate always prints JSON and returns non-zero when invalidThis enables machine-safe checks:
asc workflow validate | jq -e '.valid == true'
asc workflow run beta BUILD_ID:123 GROUP_ID:xyz | jq -e '.status == "ok"'
Top-level keys:
env: global defaultsbefore_all: command run once before stepsafter_all: command run once after successful stepserror: command run when any failure occursworkflows: named workflow mapWorkflow keys:
descriptionprivate (not directly runnable)envstepsStep forms:
"echo hello" -> run steprun: shell commandworkflow: call sub-workflowname: label for reportingif: conditional var namewith: env overrides for workflow-call steps onlyKEY:VALUE / KEY=VALUE)asc workflow run <name> [KEY:VALUE ...] supports both separators:
VERSION:2.1.0VERSION=2.1.0$VAR)..asc/workflow.json; pass them via CI secrets/env.asc workflow run also accepts core flags after the workflow name:
--dry-run--pretty--fileExamples:
asc workflow run beta --dry-runasc workflow run beta --file .asc/workflow.json BUILD_ID:123before_all runs once before step executionafter_all runs only when steps succeederror runs on failure (step failure, before/after hook failure)Main workflow run:
definition.env < workflow.env < CLI paramsSub-workflow call step ("workflow": "...", "with": {...}):
env defaultswith overrides all"workflow": "<name>" to call helper workflows."private": true for helper-only workflows.asc workflow list unless --all is usedif)"if": "VAR_NAME" on a step.VAR_NAME is truthy.1, true, yes, y, on (case-insensitive).if lookup:
os.Getenv(VAR_NAME)asc workflow run --dry-run <name> does not execute commands.stderr.bash -o pipefail -c when bash is available.sh -c when bash is unavailable.--confirm for destructive asc operations inside steps.{
"env": {
"APP_ID": "123456789",
"VERSION": "1.0.0"
},
"before_all": "asc auth status",
"after_all": "echo workflow_done",
"error": "echo workflow_failed",
"workflows": {
"beta": {
"description": "Distribute a build to a TestFlight group and notify",
"env": {
"GROUP_ID": ""
},
"steps": [
{
"name": "list_builds",
"run": "asc builds list --app $APP_ID --sort -uploadedDate --limit 5"
},
{
"name": "list_groups",
"run": "asc testflight beta-groups list --app $APP_ID --limit 20"
},
{
"name": "add_build_to_group",
"if": "BUILD_ID",
"run": "asc builds add-groups --build $BUILD_ID --group $GROUP_ID"
},
{
"name": "notify",
"if": "SLACK_WEBHOOK",
"run": "echo sent_release_notice"
}
]
},
"release": {
"description": "Submit a version for App Store review",
"steps": [
{
"workflow": "sync-metadata",
"with": {
"METADATA_DIR": "./metadata"
}
},
{
"name": "submit",
"run": "asc submit create --app $APP_ID --version $VERSION --build $BUILD_ID --confirm"
}
]
},
"sync-metadata": {
"private": true,
"description": "Private helper workflow (callable only via workflow steps)",
"steps": [
{
"name": "migrate_validate",
"run": "echo METADATA_DIR_is_$METADATA_DIR"
}
]
}
}
}
# Validate and fail CI on invalid file
asc workflow validate | jq -e '.valid == true'
# Show discoverable workflows
asc workflow list --pretty
# Include private helpers
asc workflow list --all --pretty
# Preview a real run
asc workflow run --dry-run beta BUILD_ID:123 GROUP_ID:grp_abc
# Run with params and assert success
asc workflow run beta BUILD_ID:123 GROUP_ID:grp_abc | jq -e '.status == "ok"'
data-ai
Merge the current worktree branch into main and sync main back. Use when the user says "merge to main", "ship it", "merge and continue", or after completing a task in a worktree and wanting to continue with the next one.
tools
Synchronize AI agent skills, commands, configs, permissions, hooks, and instructions across Claude Code, Codex CLI, and other Agent Skills-compatible tools. Use when the user asks to pull skills from Claude into Codex, sync Codex work back to Claude, migrate agent commands, reconcile frontmatter, update permissions, or keep agent setup files in parity.
testing
Write or update UI-independent use cases for QA. Use when the user says "write use cases", "add use cases", "QA use cases", "update use cases", "compose use cases", or when starting implementation of a new feature (after plan approval). Also activates for "what should we test", "regression cases", or "use cases for QA".
documentation
Skill on how to write a task. Use when user asks you to write a task (for Asana, Linear, Jira, Notion and equivalent). Also activates when user says "create task", "write task", or similar task creation workflow requests.