agentleFS
huihuisanghuihuisang/ajigu-skills/skills/xcode-cloud-setup/SKILL.md

xcode-cloud-setup

Skill0 starsChanged 18 days agoMITView on GitHub

Audit, configure, update, and verify Xcode Cloud workflows for Apple-platform projects using asc. Use for repository readiness, workflow triggers and toolchains, TestFlight or App Store build eligibility, and Xcode Cloud build diagnosis; do not use for ordinary local Xcode builds.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat an Xcode Cloud pipeline as three connected configuration planes:

    line 8
  2. Very specific:

    Use APP_STORE_ELIGIBLE at archive time whenever a build may need external TestFlight testing or App Store submission.

    line 18
  3. Distinctive:

    Never expose secret environment-variable values.

    line 26
  4. Distinctive:

    Read the applicable repository instructions and preserve unrelated changes.

    line 30
  5. Very specific:

    Run scripts/audit.sh APP_SELECTOR [WORKFLOW_ID] for a concise public-API snapshot.

    line 32
  6. Distinctive:

    Keep repository hooks minimal and conditional.

    line 42
  7. Distinctive:

    After a workflow mutation:

    line 46
  8. Very specific:

    Read the workflow back with asc xcode-cloud workflows view and confirm its repository.

    line 48
  9. Very specific:

    Read the run's builds and require the expected buildAudienceType and processingState.

    line 50
  10. Distinctive:

    Stop after a failed run and diagnose its actions and issues before retrying.

    line 52
  11. Distinctive:

    Read references/troubleshooting.md when a workflow, archive, signing step, or TestFlight handoff fails.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Xcode Cloud Setup

Treat an Xcode Cloud pipeline as three connected configuration planes:

  1. The repository supplies a shared scheme, signing settings, capabilities, and optional ci_scripts hooks.
  2. App Store Connect stores the workflow trigger, toolchain, clean-build policy, and actions.
  3. The archive audience determines where the resulting build can be distributed.

Audit all three before proposing a change. Do not copy identifiers, team values, paths, or secrets from another project.

Core invariant

Use APP_STORE_ELIGIBLE at archive time whenever a build may need external TestFlight testing or App Store submission. An INTERNAL_ONLY build cannot later be promoted to an external group; changing the workflow affects only future builds.

TestFlight group assignment and beta review are separate from archive eligibility. Do not describe a successful archive as externally distributed until the build and group state confirm it.

Authorization boundary

Perform repository inspection and asc list/view operations without extra approval. Before creating, updating, enabling, disabling, deleting, or triggering a workflow—or distributing a build—show the proposed change and obtain authorization unless the user already explicitly requested that mutation.

Never expose secret environment-variable values. If a web-session command requires renewed login or 2FA, report that requirement; do not work around it or store credentials in the repository.

Audit workflow

  1. Read the applicable repository instructions and preserve unrelated changes.
  2. Resolve the app dynamically with asc; do not assume an App ID from the bundle identifier alone.
  3. Run scripts/audit.sh APP_SELECTOR [WORKFLOW_ID] for a concise public-API snapshot.
  4. Inspect the repository for shared schemes, project/workspace paths, automatic signing, entitlements, and ci_scripts hooks.
  5. Classify every finding as repository, workflow, or distribution state so the proposed fix targets the correct plane.

The audit script is read-only. When multiple workflows exist, pass the intended workflow ID to collect its repository, latest run, and produced build details.

Configure or update

Read references/setup.md before creating or changing a workflow. Use asc for App Store Connect operations and query asc schema --pretty ciWorkflows before generating a create or update payload. Prefer the public API commands under asc xcode-cloud; use asc web xcode-cloud only for fields the public API does not expose and only with an authorized user session.

Keep repository hooks minimal and conditional. For example, only add Swift package macro trust configuration when the project actually uses package macros and Cloud builds fail fingerprint validation.

Verify the outcome

After a workflow mutation:

  1. Read the workflow back with asc xcode-cloud workflows view and confirm its repository.
  2. Trigger a run only when authorized, then wait for a terminal state.
  3. Read the run's builds and require the expected buildAudienceType and processingState.
  4. For external TestFlight, separately verify group assignment and beta review state.
  5. Stop after a failed run and diagnose its actions and issues before retrying. Do not create retry loops.

Read references/troubleshooting.md when a workflow, archive, signing step, or TestFlight handoff fails.

Report server-side changes, repository changes, verification evidence, and any fields that could not be inspected. Do not claim success from configuration writes or archive completion alone.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.