Skip to content

docs(apple-dev-skills): phase-2 body improvements for batches A–C (13 skills) - #73

Merged
wei18 merged 13 commits into
mainfrom
audit/p2-apple-body-abc
Sep 12, 2026
Merged

wei18 merged 13 commits into
mainfrom
audit/p2-apple-body-abc

Conversation

@wei18

@wei18 wei18 commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Summary

Applies the CONSOLIDATED.md §3 SHOULD-list body improvements (wording fixes,
prose-to-table conversions, forward-looking notes, project-private-identifier
generalization, cross-reference fixes) for the 13 apple-dev-skills skills
covered by phase-2 review batches A, B, and C:

apple-three-piece-analytics, telemetry-facade-pattern, oslog-logger-defaults,
swift-dependency-injection, xcode-cloud-single-track-ci,
local-archive-export-upload, asc-api-automation, mise-tool-management,
apple-public-repo-security, build-time-secret-injection,
monetization-sdk-integration, storekit2-iap-defaults,
app-store-review-rejections.

Out of scope for this PR (per BRIEF): description: frontmatter rewrites
(already landed in #70), and moving content into references//scripts/
(separate PR) — those items are marked N_A(done in #70) /
SKIPPED(deferred to references PR) in the ledger below.

One commit per skill: fix(<skill>): apply phase-2 body improvements.

Ledger A2 — phase-2 body improvements, batches A/B/C (13 skills)

Branch: audit/p2-apple-body-abc. Base: origin/main @ 3e7295c.

# skill item (short) status evidence (file:line after the change, or reason)
1 apple-three-piece-analytics description rewrite N_A(done in #70) description line unchanged this PR
2 apple-three-piece-analytics :29 "hard requirement" conditional wording N_A(already applied) apple-dev-skills/skills/apple-three-piece-analytics/SKILL.md:33 already reads "(hard App Store submission requirement since 2024-05-01 for any app using a required-reason API)"
3 apple-three-piece-analytics :30 manifest wording N_A(already applied) apple-three-piece-analytics/SKILL.md:34 already has the full required-reason-API wording
4 apple-three-piece-analytics :8-13 trigger list vs description alignment FIXED apple-three-piece-analytics/SKILL.md:10 — "Deciding on an analytics SDK."
5 apple-three-piece-analytics :22/:62 iOS 27 MetricManager forward note FIXED apple-three-piece-analytics/SKILL.md:27,67 (source: developer.apple.com/documentation/metrickit/metricmanager, WWDC26 session 222 — cited in A-fact)
6 telemetry-facade-pattern description rewrite N_A(done in #70) unchanged
7 telemetry-facade-pattern :56-92 generic role names FIXED telemetry-facade-pattern/SKILL.md:72,80,85 (GameCenterSink/achievement-evaluation logic, persistence sink + counter, interactive input handler → completion event)
8 telemetry-facade-pattern :56-92 move to references/wiring-traps.md SKIPPED(deferred to references PR) section still inline, per task scope
9 telemetry-facade-pattern :23 actor-vs-struct table FIXED telemetry-facade-pattern/SKILL.md:30 (table header "Facade type | Use when | Cost")
10 telemetry-facade-pattern :23/:41 iOS 27 forward note FIXED telemetry-facade-pattern/SKILL.md:51 (MetricKitSink row; source: developer.apple.com/documentation/metrickit/metricmanager)
11 oslog-logger-defaults description rewrite N_A(done in #70) unchanged
12 oslog-logger-defaults :13 drop Sentry FIXED oslog-logger-defaults/SKILL.md:13 — "OSLog vs SwiftLog vs CocoaLumberjack"
13 oslog-logger-defaults :49 OSLog backend is third-party FIXED oslog-logger-defaults/SKILL.md:52
14 swift-dependency-injection description rewrite N_A(done in #70) unchanged
15 swift-dependency-injection :38-45/:73/:146-151 inject-via table FIXED swift-dependency-injection/SKILL.md:20-29 ("## Inject via" table)
16 xcode-cloud-single-track-ci description rewrite N_A(done in #70) unchanged
17 xcode-cloud-single-track-ci :69 meetings/ generic wording FIXED xcode-cloud-single-track-ci/SKILL.md:83 — "Docs link checks, changelog/index generation, or any job that is cheaper on a Linux runner"
18 xcode-cloud-single-track-ci :41-47 version-number decision table FIXED xcode-cloud-single-track-ci/SKILL.md:43 (table header "Need | Setting / source | Where it's set | Action")
19 xcode-cloud-single-track-ci :27/:84 remove unsourced "Merge with base branch before building" toggle FIXED xcode-cloud-single-track-ci/SKILL.md:27,98 — replaced with "Pull Request Changes start condition"; grep -n "Merge with base branch" xcode-cloud-single-track-ci/SKILL.md returns zero hits
20 xcode-cloud-single-track-ci :32 scheduling granularity to doc-supportable wording FIXED xcode-cloud-single-track-ci/SKILL.md:32 — softened to Apple's actual example wording (frequency/time/branch, no cron), per B-fact B-XC-2/3 which marked the old hourly/daily/weekly enumeration "?" unconfirmed
21 local-archive-export-upload description rewrite N_A(done in #70) unchanged
22 local-archive-export-upload :127-144 War stories move to references/evidence.md SKIPPED(deferred to references PR) section still inline
23 local-archive-export-upload :59-60 private provenance reworded FIXED local-archive-export-upload/SKILL.md:60 — "(cross-checked against the key list in xcodebuild -help)"
24 local-archive-export-upload :80-89 one-step/two-step table FIXED local-archive-export-upload/SKILL.md:83 (table header "`destination` | Artifact | Gate before upload | Use when")
25 local-archive-export-upload :42 --api-key/--api-issuer spelling + --wait FIXED local-archive-export-upload/SKILL.md:43 (--api-key/--api-issuer already matched help spelling from a prior PR; this PR adds --wait)
26 local-archive-export-upload :72-73 Xcode 15 rename timing softened FIXED local-archive-export-upload/SKILL.md:72 — "Xcode 26.5's xcodebuild -help already marks it ... (the exact Xcode version the rename landed in is unconfirmed)"
27 asc-api-automation description rewrite N_A(done in #70) unchanged
28 asc-api-automation :47-76 mint-token script move to scripts/ SKIPPED(deferred to references PR) code block still inline at asc-api-automation/SKILL.md:47-76
29 asc-api-automation :119-146 move to references/no-api-steps.md SKIPPED(deferred to references PR) section still inline
30 asc-api-automation :111-117 three blockers table FIXED asc-api-automation/SKILL.md:115 (table header "Blocker | Symptom | Fix | Where")
31 asc-api-automation :43/:68/:169/:182 scoped GET-only token exception FIXED asc-api-automation/SKILL.md:43,171,184 (source: developer.apple.com/documentation/appstoreconnectapi/generating-tokens-for-api-requests, cited in B-fact as [JWT])
32 asc-api-automation :109 "2022+" -> "App Store Connect API 1.7" FIXED asc-api-automation/SKILL.md:109
33 mise-tool-management description rewrite N_A(done in #70) unchanged
34 mise-tool-management :22 hard-error wording FIXED mise-tool-management/SKILL.md:22
35 mise-tool-management :19/:26/:65 .mise.toml vs mise.toml FIXED_REWORDED mise-tool-management/SKILL.md:19 — kept .mise.toml per BRIEF D17, added sentence that both spellings are valid and mise.toml is the docs' primary spelling
36 mise-tool-management :40 "Xcode via a mise plugin" rewrite FIXED mise-tool-management/SKILL.md:44 — replaced with the aqua:XcodesOrg/xcodes installer caveat
37 mise-tool-management :46-50 fallback chain table FIXED mise-tool-management/SKILL.md:54 (table header "Tool available via | Install with | Note")
38 mise-tool-management :36 swiftlint version bump FIXED mise-tool-management/SKILL.md:35 — swiftlint = "0.65" # pinned 2026-09 (current release verified via gh api repos/realm/SwiftLint/releases/latest -> 0.65.1, 2026-08-21)
39 apple-public-repo-security description rewrite N_A(done in #70) unchanged
40 apple-public-repo-security :114 meetings/ plugin annotation FIXED apple-public-repo-security/SKILL.md:126
41 apple-public-repo-security :41/:69 drop NOTES.md.private FIXED apple-public-repo-security/SKILL.md:41 (parenthetical removed); grep -n "NOTES.md.private" apple-public-repo-security/SKILL.md returns zero hits
42 apple-public-repo-security Related: add build-time-secret-injection (was one-way) FIXED apple-public-repo-security/SKILL.md:187; reciprocal confirmed at build-time-secret-injection/SKILL.md:175 ("REQUIRED background": apple-public-repo-security) — now two-way
43 apple-public-repo-security :112 "deprecated" -> "not recommended" + filter-repo >=2.47 / --sensitive-data-removal FIXED apple-public-repo-security/SKILL.md:124
44 build-time-secret-injection description rewrite N_A(done in #70) unchanged
45 build-time-secret-injection :125 "A future PR should add..." reworded FIXED build-time-secret-injection/SKILL.md:133
46 build-time-secret-injection :151 "cite project memory file" wording N_A(already applied) grep -n "project memory" build-time-secret-injection/SKILL.md returns zero hits — already reads "Reference the out-of-repo vault entry ... by name" (SKILL.md:131) and "note which entry holds them" (:157)
47 build-time-secret-injection ## The pattern triage table FIXED build-time-secret-injection/SKILL.md:27 (table header "Value's consumer | Layer | Storage")
48 build-time-secret-injection :76-99 move to references/multi-app-ci-dispatch.md, merge two checklists SKIPPED(deferred to references PR) per task's special rule, checklist merge travels with the move
49 monetization-sdk-integration description rewrite N_A(done in #70) unchanged
50 monetization-sdk-integration :55/:57-59/:142-146 docs/foundations.md plugin annotation + merge duplicate section FIXED monetization-sdk-integration/SKILL.md:59,141 annotated; the near-duplicate "Documentation references:" block (old :57-59) removed, folded into "## Documentation pointers" (SKILL.md:139)
51 monetization-sdk-integration :93-110 AnyView rule -> isolation-contract invariant; v13 rename -> Anti-patterns FIXED monetization-sdk-integration/SKILL.md:45 (new "### Cross-boundary type invariant"); monetization-sdk-integration/SKILL.md:118 (Anti-patterns entry)
52 monetization-sdk-integration :96 rename version note (v12.0.0) FIXED monetization-sdk-integration/SKILL.md:118 — "AdMob dropped the GAD prefix from its Swift API at v12.0.0"
53 storekit2-iap-defaults description rewrite N_A(already precise; no rewrite needed per C-authoring) unchanged
54 storekit2-iap-defaults :72/:143 visionOS purchase(options:) unavailability FIXED storekit2-iap-defaults/SKILL.md:76,148
55 app-store-review-rejections description rewrite N_A(done in #70) unchanged
56 app-store-review-rejections :11 "(2.1)" -> "Guideline 2 Performance (含 2.1)" FIXED app-store-review-rejections/SKILL.md:11
57 app-store-review-rejections :12 "5.1.x" -> "Legal (Guideline 5)" FIXED app-store-review-rejections/SKILL.md:12
58 app-store-review-rejections :37 4.3(b) add "dating"/"simple timers" FIXED app-store-review-rejections/SKILL.md:39
59 app-store-review-rejections :41/:50 "ATT primer coordinator" -> generic wording FIXED app-store-review-rejections/SKILL.md:43,52
60 app-store-review-rejections :44 "user-owned" -> "a human must answer it in ASC" FIXED app-store-review-rejections/SKILL.md:46
61 app-store-review-rejections :50 name interactive-simulator-ux-audit FIXED app-store-review-rejections/SKILL.md:52
62 app-store-review-rejections :32 TestFlight prod ad ID wording N_A(done in #72) app-store-review-rejections/SKILL.md:32 already reads "Release" reads the production ad unit ID + "register each tester's device as a Google test device ... so it gets test ads on the prod ID" — matches monetization-sdk-integration's #if DEBUG/Release split (monetization-sdk-integration/SKILL.md:105)

Statistics (from command output)

$ git diff origin/main --stat   (run from worktree, branch audit/p2-apple-body-abc)
 .../skills/app-store-review-rejections/SKILL.md    | 14 ++++----
 .../skills/apple-public-repo-security/SKILL.md     |  8 ++---
 .../skills/apple-three-piece-analytics/SKILL.md    |  5 +--
 .../skills/asc-api-automation/SKILL.md             | 16 +++++----
 .../skills/build-time-secret-injection/SKILL.md    |  8 ++++-
 .../skills/local-archive-export-upload/SKILL.md    | 26 +++++++--------
 .../skills/mise-tool-management/SKILL.md           | 23 ++++++++-----
 .../skills/monetization-sdk-integration/SKILL.md   | 19 +++++------
 .../skills/oslog-logger-defaults/SKILL.md          |  4 +--
 .../skills/storekit2-iap-defaults/SKILL.md         |  8 +++--
 .../skills/swift-dependency-injection/SKILL.md     | 13 ++++++++
 .../skills/telemetry-facade-pattern/SKILL.md       | 38 +++++++++++++---------
 .../skills/xcode-cloud-single-track-ci/SKILL.md    | 21 +++++++-----
 13 files changed, 120 insertions(+), 83 deletions(-)
$ mise run check | grep -E "BLOCKER|MAJOR|MINOR|OK —"
OK — 2 plugins (26/12), catalog + counts + 3 README mirror(s) (README.zh-Hant.md/README.zh-Hans.md/README.ja.md) consistent.
BLOCKER 0 · MAJOR 0 · MINOR 8

Baseline (before any edit, same command): OK — 2 plugins, BLOCKER 0 · MAJOR 0 · MINOR 8 (BRIEF's stated baseline of MINOR 10 had already drifted down to 8 by the time this worktree was created — PRs #70-#72 landed first; no MINOR regression introduced by this PR, all 8 remaining MINORs are the same pre-existing "description may summarize workflow" / reserved-name items, none of which are apple-public-repo-security, build-time-secret-injection, monetization-sdk-integration, storekit2-iap-defaults, app-store-review-rejections, telemetry-facade-pattern, oslog-logger-defaults, swift-dependency-injection, apple-three-piece-analytics, or local-archive-export-upload).


Awaiting user review.

🤖 Generated with Claude Code

wei18 and others added 13 commits September 11, 2026 16:19
- Align "When to invoke" trigger wording with the description (drop the
  stale "starting a new App" prefix).
- Add an iOS 27 MetricManager forward note to the source table and the
  verification checklist (MXMetricManager family deprecates in iOS 27).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Turn the actor-vs-struct facade decision into a two-row table.
- Generalize project-private identifiers in the wiring-traps section
  (PersonalRecordSink/completedCount/placeMove -> generic sink/counter/
  interactive-handler language); moving the section to references/ is
  deferred to the references-restructuring PR.
- Generalize the example event name (puzzleCompleted -> sessionCompleted).
- Add an iOS 27 MetricManager forward note to the MetricKitSink row.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Drop Sentry from the logging-library trigger list; it's a crash
  reporter, not a logging library (already handled under Deviation
  considerations).
- Note that the OSLog backend for swift-log is a third-party package,
  not part of apple/swift-log's own distribution.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Front-load the three routing decisions (existential vs struct witness,
constructor vs environment vs task-local, swift-dependencies vs
Factory) into one "Inject via" table under Scope, ahead of the
detailed prose sections.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Convert the build-number & version-automation decisions into a
  Need/Setting/Where/Action table.
- Remove the unsourced "Merge with base branch before building" toggle
  wording (no such Apple UI control); describe the actual Pull Request
  Changes start condition instead.
- Soften the scheduling-granularity caveat to what Apple's docs
  actually state (frequency/time/branch, no cron), instead of an
  unconfirmed hourly/daily/weekly enumeration.
- Replace the project-private `meetings/` trigger with a generic one.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Replace private-project provenance ("four real ExportOptions.plist
  files") with a doc-checkable claim (cross-checked against xcodebuild
  -help's key list).
- Soften the app-store -> app-store-connect rename's Xcode-version
  claim; only the current xcodebuild -help deprecation note is
  confirmed.
- Turn the one-step vs two-step upload choice into a decision table.
- Note the --wait flag for xcrun altool --upload-package.
- War-stories section (:127-144) move to references/ is deferred to
  the references-restructuring PR, per scope.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Convert the three pre-submission blockers into a Blocker/Symptom/
  Fix/Where table.
- Add the scoped GET-only token exception (up to 6 months) to the
  token-lifetime claim, Common Mistakes, and the Review Checklist.
- Fix the reviewSubmissions model's introduction date: "App Store
  Connect API 1.7" (unconfirmed year) instead of "2022+".
- Script (scripts/mint-asc-token.swift) and no-API-steps content
  staying inline pending the references-restructuring PR, per scope.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Note both .mise.toml and mise.toml are valid; keep the dotfile
  convention per catalog policy (D17), state mise.toml is the docs'
  primary spelling.
- Describe the untrusted-config failure as the actual hard-error
  message instead of "silently doesn't apply".
- Bump the SwiftLint pin to a current version with a dated comment.
- Replace the vague "Xcode via a mise plugin" note with the actual
  xcodes installer caveat (it installs Xcode, it doesn't pin a
  version).
- Convert the not-in-registry fallback chain into a decision table.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Drop the project-private NOTES.md.private example; *.private.md
  already covers the same intent.
- Annotate the meetings/ incident-log step as a spec-phase-orchestration
  convention, not a universal one.
- Soften "git filter-branch is deprecated" to Git's own "not
  recommended" wording, and note GitHub's filter-repo >= 2.47 +
  --sensitive-data-removal requirement.
- Add build-time-secret-injection to Related skills (was a one-way
  reference from that skill).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Add a 3-row triage table before "## The pattern" (which layer a new
  value belongs in, before the detailed walkthrough).
- Reword the "A future PR should add..." TODO as a suggestion instead
  of a promise about this project's roadmap.
- Multi-app ci_post_clone.sh move to references/ and merging the two
  checklists are deferred to the references-restructuring PR, per
  scope.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Annotate docs/foundations.md mentions as a spec-phase-orchestration
  convention, and merge the two near-duplicate documentation-pointer
  lists into one (Documentation pointers).
- Elevate the AnyView cross-boundary rule from a war-story aside into
  a formal "Cross-boundary type invariant" in the isolation contract.
- Move the AdMob v12.0.0 GAD-prefix rename fact out of the narrative
  "Real-world incidents" section into a generalized Anti-patterns
  entry (don't assume symbol names survive a major SDK upgrade).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Note that Product.purchase(options:) is unavailable on visionOS
(use purchase(confirmIn:options:) there instead), at both mentions
in the bridge skeleton comment and the verified-symbols list.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Fix guideline-number attribution in the Overview: Apple's
  Transparency Report only breaks down to the top-level guideline
  (Guideline 2 Performance, Guideline 5 Legal), not to 2.1 / 5.1.x.
- Complete the 4.3(b) enumerated-examples list (add dating, correct
  "timer" to "simple timers").
- Replace the project-private "ATT primer coordinator" term with a
  generic "pre-prompt explainer before the ATT system prompt".
- Replace "user-owned" with "a human must answer it in ASC" for the
  export-compliance blocker.
- Name interactive-simulator-ux-audit as the tool for the ATT
  sim-verify step instead of a generic idb/simctl mention.
- :32's TestFlight prod-ad-ID guidance already matches the
  Release-reads-prod-ID + tester-registered-as-test-device wording
  from #72 and monetization-sdk-integration's #if DEBUG split; no
  change needed there.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant