Use this workflow for controlled iOS development instead of direct
implementation. Keep the work grounded in the repository's real iOS architecture,
Xcode schemes, simulator/device constraints, and documented harness. Apply the
workflow as three distinct intents:
When the user asks to determine the development plan first:
start implementation.
AGENTS.md, iOS architecture docs,reliability or harness docs, relevant execution plans, Xcode scheme notes,
Maestro flows, and verification scripts.
rg, find, sed, git status, `git diff --stat, xcodebuild -list`, XcodeBuildMCP discovery, and file reads are OK.
Do not run formatters, generators, migrations, app-changing scripts, or
commands that mutate DerivedData/results unless the user has approved
execution.
file ownership, harness/verification commands, risks, and open questions.
should be created or updated during execution.
context. Otherwise make a reasonable recommendation.
The output should be a concrete plan, not a proposal to start coding. Use this
shape unless the user asks for something shorter:
Recommended approach:
Affected iOS areas:
File ownership:
Harness and verification:
Risks:
Open questions:
Agent split recommendation:
Mention exact commands when known, such as the relevant xcodebuild command,
XcodeBuildMCP build/test action, Maestro flow, snapshot/visual review command,
or project-specific harness script. If the command is unknown, name the file or
directory to inspect during execution instead of inventing one.
When the user asks whether the work can be split across multiple agents:
cluster, or would create merge conflicts.
can run in parallel without blocking each other.
scope, expected output, integration order, and what must stay serial.
verification must remain serial even if implementation work is parallel.
file, asset catalog, localization, build settings, and generated files.
project settings before build validation, fixture updates before Maestro.
scheme, shared DerivedData, or long-running UI flows.
.pbxproj, shared snapshots, storyboard/xib, package files,generated screenshots, and global test fixtures.
Do not spawn subagents during this assessment unless the user has explicitly
asked for delegation or parallel agent work and approved execution.
Recommending multiple agents is only an assessment; actual subagent spawning
waits until the user approves execution.
When the user explicitly approves executing the recommended plan:
or rebuild the intended plan and ask for confirmation before editing files.
implementing the current plan or a named option.
or requests for your opinion as approval. Answer them directly and continue
planning unless the user then gives a clear execution instruction.
and the approved plan recommended it.
commands and artifacts.
tracker or execution plan according to repo rules.
"参考项目的 harness engineering" means:
runtime paths just to make implementation or visual review easier.
xcodebuild wrapper for build,test, install, launch, screenshots, and simulator logs. Check session defaults
before the first XcodeBuildMCP build/run/test call.
launchApp.permissions or setPermissions topreconfigure system permissions instead of making smoke flows tap permission
alerts. Keep ATT/usertracking prompt taps optional when the local
Maestro/Xcode/iOS Simulator stack still shows the alert after
usertracking: allow.
screenshots, visual review captures, build logs, DerivedData, result bundles,
and simulator output; keep them local, ignored, or cleaned up unless the repo
explicitly requires preserving them.
Use these examples to keep the skill honest:
Expected: read only the relevant iOS files and harness docs, then return a
plan with affected areas, verification commands, risks, and agent split. Make
no edits.
Expected: assess file ownership, simulator bottlenecks, .pbxproj risk, and
UI flow verification. Do not spawn subagents unless execution is approved.
Expected: execute only if a concrete plan exists in the current thread. If the
plan is missing or stale, restate it and ask for confirmation before editing.
共 4 个版本