@mmerterden/multi-agent-pipeline 20.37.0 → 20.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +123 -49
- package/README.md +12 -10
- package/README.tr.md +12 -10
- package/docs/adr/0006-skills-core-external-split.md +5 -5
- package/docs/adr/0010-own-code-graph.md +6 -7
- package/docs/adr/0013-lsp-code-intelligence.md +6 -8
- package/docs/adr/0017-change-impact-from-the-graph.md +4 -5
- package/docs/adr/0018-cross-repo-links-not-a-global-graph.md +1 -1
- package/docs/adr/README.md +1 -1
- package/docs/ecosystem.md +53 -41
- package/docs/facts.json +15 -13
- package/docs/features.md +2 -2
- package/docs/recovery-guide.md +1 -1
- package/install/_dev-only-files.mjs +3 -0
- package/install/_platform-filter.mjs +1 -23
- package/install/catalog-history.json +1 -1
- package/install/claude.mjs +8 -1
- package/install/codex.mjs +0 -2
- package/install/copilot.mjs +0 -2
- package/install/templates/claude-hooks.json +47 -1
- package/manifest.json +455 -332
- package/package.json +5 -2
- package/pipeline/agents/security-auditor.md +58 -6
- package/pipeline/commands/multi-agent/build-optimize/SKILL.md +1 -2
- package/pipeline/commands/multi-agent/complaint-analysis/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/design-check/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/graph/SKILL.md +12 -3
- package/pipeline/commands/multi-agent/manual-test/SKILL.md +12 -7
- package/pipeline/commands/multi-agent/research/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/search/SKILL.md +10 -1
- package/pipeline/commands/multi-agent/security-review/SKILL.md +4 -0
- package/pipeline/commands/multi-agent/setup/SKILL.md +1 -0
- package/pipeline/commands/multi-agent/stack/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/store-ready/SKILL.md +1 -1
- package/pipeline/commands/sim-test.md +34 -1
- package/pipeline/lib/context-budget.mjs +103 -0
- package/pipeline/lib/credential-inventory.sh +2 -3
- package/pipeline/lib/identifier-scan.mjs +145 -0
- package/pipeline/lib/outbound-gate.mjs +28 -1
- package/pipeline/lib/unattended-profile-check.mjs +13 -4
- package/pipeline/multi-agent-refs/analysis/locked.md +1 -1
- package/pipeline/multi-agent-refs/analysis/redesign.md +17 -3
- package/pipeline/multi-agent-refs/analysis-template-corporate.md +8 -4
- package/pipeline/multi-agent-refs/analysis-template.md +7 -5
- package/pipeline/multi-agent-refs/audit-guide.md +20 -0
- package/pipeline/multi-agent-refs/complaint-analysis/phases.md +1 -0
- package/pipeline/multi-agent-refs/features/autopilot-circuit-breaker.md +1 -1
- package/pipeline/multi-agent-refs/features/code-graph.md +25 -0
- package/pipeline/multi-agent-refs/features/commit-multi-repo.md +63 -0
- package/pipeline/multi-agent-refs/features/design-conformance.md +20 -4
- package/pipeline/multi-agent-refs/features/dev-multi-repo.md +51 -0
- package/pipeline/multi-agent-refs/features/free-models.md +10 -3
- package/pipeline/multi-agent-refs/features/research.md +4 -3
- package/pipeline/multi-agent-refs/features/security-audit.md +25 -3
- package/pipeline/multi-agent-refs/features/test-gap.md +40 -0
- package/pipeline/multi-agent-refs/features/unattended-security.md +20 -0
- package/pipeline/multi-agent-refs/features/worktree-finalize.md +1 -1
- package/pipeline/multi-agent-refs/help/en.md +15 -9
- package/pipeline/multi-agent-refs/help/tr.md +15 -9
- package/pipeline/multi-agent-refs/knowledge.md +17 -0
- package/pipeline/multi-agent-refs/orchestrator/phase-3-user-test.md +12 -9
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +9 -0
- package/pipeline/multi-agent-refs/phases/log-format.md +5 -0
- package/pipeline/multi-agent-refs/phases/operations.md +3 -5
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +4 -4
- package/pipeline/multi-agent-refs/phases/phase-2-dev.md +8 -47
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +21 -65
- package/pipeline/multi-agent-refs/phases/phase-4-commit.md +9 -59
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +0 -31
- package/pipeline/multi-agent-refs/picker-contract.md +1 -1
- package/pipeline/multi-agent-refs/research/engine.md +2 -1
- package/pipeline/multi-agent-refs/rules.md +1 -1
- package/pipeline/multi-agent-refs/setup/free-models.md +10 -0
- package/pipeline/multi-agent-refs/store-ready/gate-3-policy.md +15 -0
- package/pipeline/multi-agent-refs/web-guide.md +2 -1
- package/pipeline/office/index.html +8 -9
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/rules/figma-pipeline.md +6 -3
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/learnings-ledger.schema.json +7 -2
- package/pipeline/schemas/prefs.schema.json +17 -4
- package/pipeline/schemas/reviewer-output.schema.json +113 -5
- package/pipeline/schemas/secret-patterns.json +49 -0
- package/pipeline/schemas/security-finding.schema.json +49 -5
- package/pipeline/scripts/_code-graph.mjs +3 -3
- package/pipeline/scripts/_graph-analysis.mjs +51 -0
- package/pipeline/scripts/_memory-policy.mjs +37 -7
- package/pipeline/scripts/_secret-scan.mjs +1 -1
- package/pipeline/scripts/_skill-practices.mjs +178 -0
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/autopilot-runner.mjs +8 -3
- package/pipeline/scripts/build-stack-plugins.mjs +8 -44
- package/pipeline/scripts/capture-resume.sh +19 -0
- package/pipeline/scripts/checkpoint-fold.sh +59 -0
- package/pipeline/scripts/file-context.mjs +306 -70
- package/pipeline/scripts/gate-ledger.mjs +1 -1
- package/pipeline/scripts/gen-skills-index.mjs +1 -1
- package/pipeline/scripts/graph-hint.mjs +197 -0
- package/pipeline/scripts/graph-hint.sh +20 -0
- package/pipeline/scripts/graph-query.mjs +306 -11
- package/pipeline/scripts/graph-report.mjs +29 -1
- package/pipeline/scripts/learnings-ledger.mjs +71 -15
- package/pipeline/scripts/note-agent-event.mjs +160 -0
- package/pipeline/scripts/note-agent-event.sh +19 -0
- package/pipeline/scripts/office-control.mjs +41 -15
- package/pipeline/scripts/offload-ref.sh +1 -1
- package/pipeline/scripts/parity-score.mjs +139 -0
- package/pipeline/scripts/pre-commit-check.sh +25 -4
- package/pipeline/scripts/pre-push-check.sh +3 -0
- package/pipeline/scripts/repo-recommend.mjs +321 -0
- package/pipeline/scripts/rework-rulings.mjs +5 -3
- package/pipeline/scripts/scan-agent-config.sh +1 -2
- package/pipeline/scripts/scope-check-gate.mjs +15 -2
- package/pipeline/scripts/security-evidence-gate.mjs +282 -0
- package/pipeline/scripts/unattended_policy.py +3 -2
- package/pipeline/scripts/user-test-handoff.sh +203 -0
- package/pipeline/scripts/validate-analysis-doc.mjs +17 -1
- package/pipeline/scripts/validate-planning.mjs +5 -3
- package/pipeline/scripts/validate-triage.mjs +2 -1
- package/pipeline/scripts/write-state.mjs +13 -4
- package/pipeline/skills/.skill-manifest.json +73 -69
- package/pipeline/skills/shared/README.md +41 -40
- package/pipeline/skills/shared/core/apple-archive-compliance/SKILL.md +6 -6
- package/pipeline/skills/shared/core/apple-archive-compliance/references/examples.md +1 -1
- package/pipeline/skills/shared/core/apple-archive-compliance/references/version-history.md +1 -1
- package/pipeline/skills/shared/core/google-play-compliance/SKILL.md +1 -1
- package/pipeline/skills/shared/core/google-play-compliance/references/notes.md +1 -1
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-build-optimize/SKILL.md +0 -1
- package/pipeline/skills/shared/core/multi-agent-complaint-analysis/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-design-check/SKILL.md +5 -5
- package/pipeline/skills/shared/core/multi-agent-graph/SKILL.md +10 -0
- package/pipeline/skills/shared/core/multi-agent-manual-test/SKILL.md +12 -7
- package/pipeline/skills/shared/core/multi-agent-research/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-search/SKILL.md +9 -0
- package/pipeline/skills/shared/core/multi-agent-security-review/SKILL.md +3 -2
- package/pipeline/skills/shared/core/multi-agent-setup/SKILL.md +1 -0
- package/pipeline/skills/shared/core/multi-agent-stack/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-store-ready/SKILL.md +4 -3
- package/pipeline/skills/shared/core/multi-agent-test/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-test-accessibility/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-test-dark-mode/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-test-dynamic-type/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-test-gen/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-test-screenshots/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-testflight-validation/SKILL.md +2 -2
- package/pipeline/skills/shared/external/accessibility-compliance-accessibility-audit/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/agent-introspection-debugging/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/android-architecture/SKILL.md +1 -1
- package/pipeline/skills/shared/external/android-architecture/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/android-build-quality-gates/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/android-datastore/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/android-design-tokens-codegen/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/android-mvi-viewmodel/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/android-performance/SKILL.md +1 -1
- package/pipeline/skills/shared/external/android-performance/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/android-security/SKILL.md +1 -1
- package/pipeline/skills/shared/external/android-security/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/api-patterns/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/api-security-best-practices/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/app-store-changelog/SKILL.md +65 -49
- package/pipeline/skills/shared/external/app-store-changelog/evals/evals.json +40 -0
- package/pipeline/skills/shared/external/app-store-changelog/references/release-notes-guidelines.md +64 -34
- package/pipeline/skills/shared/external/app-store-changelog/scripts/collect_release_changes.sh +21 -23
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +4 -1
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +6 -0
- package/pipeline/skills/shared/external/architecture/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/backlog/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/ci-cd-pipelines/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/clean-code/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/compose-components/SKILL.md +1 -1
- package/pipeline/skills/shared/external/compose-components/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/compose-navigation/SKILL.md +1 -1
- package/pipeline/skills/shared/external/compose-navigation/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/compose-testing/SKILL.md +1 -1
- package/pipeline/skills/shared/external/compose-testing/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/context-compression/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/core-data/SKILL.md +1 -1
- package/pipeline/skills/shared/external/council/evals/evals.json +41 -0
- package/pipeline/skills/shared/external/css-modern/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/css-modern/references/code-examples.md +5 -0
- package/pipeline/skills/shared/external/database-patterns/evals/evals.json +46 -0
- package/pipeline/skills/shared/external/database-patterns/references/orm-examples.md +5 -0
- package/pipeline/skills/shared/external/debugging-strategies/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/docker-expert/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/e2e-testing/SKILL.md +21 -21
- package/pipeline/skills/shared/external/e2e-testing/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/e2e-testing/references/document-fixtures.md +5 -5
- package/pipeline/skills/shared/external/evidence-github/evals/evals.json +41 -0
- package/pipeline/skills/shared/external/evidence-registry/SKILL.md +1 -1
- package/pipeline/skills/shared/external/evidence-registry/evals/evals.json +41 -0
- package/pipeline/skills/shared/external/fastapi-pro/evals/evals.json +57 -0
- package/pipeline/skills/shared/external/firebase/SKILL.md +132 -54
- package/pipeline/skills/shared/external/firebase/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/firebase/references/functions-and-products.md +51 -0
- package/pipeline/skills/shared/external/firebase/references/security-rules.md +59 -0
- package/pipeline/skills/shared/external/fix-review-verdicts/evals/evals.json +57 -0
- package/pipeline/skills/shared/external/free-llm-apis/SKILL.md +70 -0
- package/pipeline/skills/shared/external/free-llm-apis/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/free-llm-apis/references/providers.md +33 -0
- package/pipeline/skills/shared/external/github-actions-templates/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/SKILL.md +1 -1
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/evals/evals.json +58 -0
- package/pipeline/skills/shared/external/handle-request/SKILL.md +2 -2
- package/pipeline/skills/shared/external/handle-request/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/hig-app-icons/SKILL.md +2 -2
- package/pipeline/skills/shared/external/hig-app-icons/references/icon-workflow.md +1 -1
- package/pipeline/skills/shared/external/hig-components-content/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/hig-components-status/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/hig-components-system/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/hig-inputs/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/hig-patterns/evals/evals.json +46 -0
- package/pipeline/skills/shared/external/hig-platforms/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/hig-technologies/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/html-semantic/evals/evals.json +46 -0
- package/pipeline/skills/shared/external/humanizer/evals/evals.json +46 -0
- package/pipeline/skills/shared/external/ios-coding-standard/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/ios-debugger-agent/SKILL.md +91 -52
- package/pipeline/skills/shared/external/ios-debugger-agent/evals/evals.json +41 -0
- package/pipeline/skills/shared/external/ios-design-review/SKILL.md +12 -12
- package/pipeline/skills/shared/external/ios-design-review/references/appearance-matrix.md +16 -16
- package/pipeline/skills/shared/external/ios-design-review/references/checklist.md +1 -1
- package/pipeline/skills/shared/external/ios-iphone-duo/SKILL.md +0 -1
- package/pipeline/skills/shared/external/ios-module-structure/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/ios-security/SKILL.md +1 -1
- package/pipeline/skills/shared/external/ios-security/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/localization-reuse-map/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/macos-menubar-tuist-app/SKILL.md +170 -74
- package/pipeline/skills/shared/external/macos-menubar-tuist-app/evals/evals.json +52 -0
- package/pipeline/skills/shared/external/macos-spm-app-packaging/SKILL.md +119 -77
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/bootstrap/Package.swift +5 -5
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/bootstrap/Sources/MyApp/MyApp.swift +24 -0
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/bootstrap/version.env +2 -0
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/build_icon.sh +46 -39
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/compile_and_run.sh +70 -49
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/launch.sh +24 -17
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/make_appcast.sh +74 -59
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/package_app.sh +201 -170
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/setup_dev_signing.sh +50 -42
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/sign-and-notarize.sh +65 -35
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/version.env +2 -0
- package/pipeline/skills/shared/external/macos-spm-app-packaging/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/macos-spm-app-packaging/references/packaging.md +49 -17
- package/pipeline/skills/shared/external/macos-spm-app-packaging/references/release.md +48 -23
- package/pipeline/skills/shared/external/macos-spm-app-packaging/references/scaffold.md +74 -44
- package/pipeline/skills/shared/external/monorepo-architect/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/nextjs-app-router/SKILL.md +14 -3
- package/pipeline/skills/shared/external/nextjs-app-router/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/nextjs-app-router/references/app-router-examples.md +3 -0
- package/pipeline/skills/shared/external/nodejs-backend-patterns/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/observability-engineer/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +10 -0
- package/pipeline/skills/shared/external/photos-camera-media/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/play-store-review/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/python-patterns/evals/evals.json +46 -0
- package/pipeline/skills/shared/external/react-best-practices/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/rest-api-design/evals/evals.json +46 -0
- package/pipeline/skills/shared/external/retrofit-networking/SKILL.md +1 -1
- package/pipeline/skills/shared/external/retrofit-networking/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/room-database/SKILL.md +1 -1
- package/pipeline/skills/shared/external/room-database/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/scenario-gap-analysis/SKILL.md +1 -1
- package/pipeline/skills/shared/external/scenario-gap-analysis/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/search-first/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/security-review/SKILL.md +14 -3
- package/pipeline/skills/shared/external/security-review/evals/evals.json +48 -0
- package/pipeline/skills/shared/external/security-review/references/agentic-systems.md +93 -0
- package/pipeline/skills/shared/external/security-review/references/firebase-rules.md +100 -0
- package/pipeline/skills/shared/external/security-review/references/graphql.md +82 -0
- package/pipeline/skills/shared/external/security-review/references/llm-prompt-injection.md +93 -0
- package/pipeline/skills/shared/external/security-review/references/oauth-oidc.md +100 -0
- package/pipeline/skills/shared/external/security-review/references/owasp-mobile-top10-2024.md +1 -1
- package/pipeline/skills/shared/external/security-review/references/owasp-web-api-top10-2021.md +1 -1
- package/pipeline/skills/shared/external/security-review/references/supabase.md +73 -0
- package/pipeline/skills/shared/external/signal-community/SKILL.md +29 -10
- package/pipeline/skills/shared/external/signal-community/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/skill-creator/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/skill-creator/template.md +1 -3
- package/pipeline/skills/shared/external/spm-build-analysis/SKILL.md +80 -61
- package/pipeline/skills/shared/external/spm-build-analysis/evals/evals.json +56 -0
- package/pipeline/skills/shared/external/spm-build-analysis/references/build-optimization-sources.md +83 -133
- package/pipeline/skills/shared/external/spm-build-analysis/references/recommendation-format.md +41 -40
- package/pipeline/skills/shared/external/spm-build-analysis/references/spm-analysis-checks.md +89 -87
- package/pipeline/skills/shared/external/spm-build-analysis/scripts/check_spm_pins.py +90 -85
- package/pipeline/skills/shared/external/swift-concurrency-expert/SKILL.md +78 -69
- package/pipeline/skills/shared/external/swift-concurrency-expert/evals/evals.json +54 -0
- package/pipeline/skills/shared/external/swift-concurrency-expert/references/approachable-concurrency.md +52 -48
- package/pipeline/skills/shared/external/swift-concurrency-expert/references/swift-6-2-concurrency.md +118 -184
- package/pipeline/skills/shared/external/swift-concurrency-expert/references/swiftui-concurrency-tour-wwdc.md +68 -22
- package/pipeline/skills/shared/external/swift-concurrency-pro/SKILL.md +117 -94
- package/pipeline/skills/shared/external/swift-concurrency-pro/evals/evals.json +57 -0
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/actors.md +102 -97
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/async-streams.md +36 -37
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/bridging.md +82 -34
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/bug-patterns.md +90 -52
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/cancellation.md +55 -55
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/diagnostics.md +66 -43
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/hotspots.md +39 -23
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/interop.md +66 -68
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/new-features.md +152 -131
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/structured.md +60 -57
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/testing.md +131 -118
- package/pipeline/skills/shared/external/swift-concurrency-pro/references/unstructured.md +37 -29
- package/pipeline/skills/shared/external/swift-formatstyle/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/swift-testing-pro/SKILL.md +77 -58
- package/pipeline/skills/shared/external/swift-testing-pro/evals/evals.json +59 -0
- package/pipeline/skills/shared/external/swift-testing-pro/references/async-tests.md +139 -144
- package/pipeline/skills/shared/external/swift-testing-pro/references/core-rules.md +90 -28
- package/pipeline/skills/shared/external/swift-testing-pro/references/migrating-from-xctest.md +38 -21
- package/pipeline/skills/shared/external/swift-testing-pro/references/new-features.md +139 -156
- package/pipeline/skills/shared/external/swift-testing-pro/references/writing-better-tests.md +173 -147
- package/pipeline/skills/shared/external/swiftdata-pro/SKILL.md +75 -59
- package/pipeline/skills/shared/external/swiftdata-pro/evals/evals.json +50 -0
- package/pipeline/skills/shared/external/swiftdata-pro/references/cloudkit.md +34 -7
- package/pipeline/skills/shared/external/swiftdata-pro/references/indexing.md +20 -14
- package/pipeline/skills/shared/external/swiftdata-pro/references/inheritance.md +127 -0
- package/pipeline/skills/shared/external/swiftdata-pro/references/model-rules.md +141 -0
- package/pipeline/skills/shared/external/swiftdata-pro/references/predicates.md +37 -44
- package/pipeline/skills/shared/external/swiftlint/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/swiftui-expert-skill/SKILL.md +89 -88
- package/pipeline/skills/shared/external/swiftui-expert-skill/evals/evals.json +55 -0
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/accessibility-patterns.md +104 -122
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/animation-advanced.md +73 -93
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/animation-basics.md +144 -169
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/animation-transitions.md +122 -133
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/charts-accessibility.md +141 -99
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/charts.md +273 -333
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/image-optimization.md +105 -128
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/latest-apis.md +199 -312
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/layout-best-practices.md +129 -169
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/liquid-glass.md +17 -30
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/list-patterns.md +198 -258
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/macos-scenes.md +145 -218
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/macos-views.md +150 -249
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/macos-window-styling.md +109 -208
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/performance-patterns.md +225 -271
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/scroll-patterns.md +117 -210
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/sheet-navigation-patterns.md +171 -237
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/state-management.md +196 -260
- package/pipeline/skills/shared/external/swiftui-expert-skill/references/view-structure.md +167 -230
- package/pipeline/skills/shared/external/swiftui-gestures/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/swiftui-layout-components/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/swiftui-navigation/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/swiftui-navigation/references/navigationstack.md +1 -2
- package/pipeline/skills/shared/external/swiftui-patterns/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/swiftui-performance/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/SKILL.md +71 -79
- package/pipeline/skills/shared/external/swiftui-performance-audit/evals/evals.json +55 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/audit-layout.md +50 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/capture-checklist.md +51 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/hangs.md +34 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/instruments-guide.md +68 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/smell-catalog.md +191 -0
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/update-model.md +69 -0
- package/pipeline/skills/shared/external/swiftui-pro/SKILL.md +65 -63
- package/pipeline/skills/shared/external/swiftui-pro/evals/evals.json +45 -0
- package/pipeline/skills/shared/external/swiftui-pro/references/accessibility.md +40 -13
- package/pipeline/skills/shared/external/swiftui-pro/references/api.md +74 -29
- package/pipeline/skills/shared/external/swiftui-pro/references/data.md +44 -24
- package/pipeline/skills/shared/external/swiftui-pro/references/design.md +45 -31
- package/pipeline/skills/shared/external/swiftui-pro/references/hygiene.md +17 -8
- package/pipeline/skills/shared/external/swiftui-pro/references/navigation.md +19 -9
- package/pipeline/skills/shared/external/swiftui-pro/references/performance.md +50 -34
- package/pipeline/skills/shared/external/swiftui-pro/references/swift.md +73 -45
- package/pipeline/skills/shared/external/swiftui-pro/references/views.md +48 -23
- package/pipeline/skills/shared/external/swiftui-ui-patterns/SKILL.md +89 -83
- package/pipeline/skills/shared/external/swiftui-ui-patterns/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/app-wiring.md +119 -114
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/async-state.md +76 -61
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/components-index.md +63 -46
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/controls.md +32 -31
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/deeplinks.md +49 -38
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/focus.md +77 -49
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/form.md +61 -44
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/grids.md +40 -42
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/input-toolbar.md +44 -31
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/lightweight-clients.md +90 -64
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/list.md +48 -49
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/loading-placeholders.md +36 -25
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/macos-settings.md +30 -30
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/matched-transitions.md +49 -32
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/media.md +49 -41
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/menu-bar.md +52 -48
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/navigationstack.md +119 -104
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/overlay.md +30 -27
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/performance.md +33 -31
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/previews.md +27 -27
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/scroll-reveal.md +79 -86
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/scrollview.md +47 -40
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/searchable.md +55 -40
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/sheets.md +113 -84
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/split-views.md +37 -34
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/tabview.md +75 -75
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/theming.md +37 -32
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/title-menus.md +41 -51
- package/pipeline/skills/shared/external/swiftui-ui-patterns/references/top-bar.md +46 -30
- package/pipeline/skills/shared/external/swiftui-uikit-interop/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/swiftui-view-refactor/SKILL.md +152 -121
- package/pipeline/skills/shared/external/swiftui-view-refactor/evals/evals.json +56 -0
- package/pipeline/skills/shared/external/swiftui-view-refactor/references/mv-patterns.md +107 -98
- package/pipeline/skills/shared/external/swiftui-webkit/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/tailwind-css/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/test-result-triage/SKILL.md +2 -2
- package/pipeline/skills/shared/external/test-result-triage/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/testing-backend/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/tipkit/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/typescript-patterns/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/valven-rules/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/vision-framework/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/vue-composition/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/weatherkit/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/web-accessibility/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/web-performance/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/web-testing/SKILL.md +2 -2
- package/pipeline/skills/shared/external/web-testing/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/web-testing/references/testing-examples.md +2 -2
- package/pipeline/skills/shared/external/widgetkit/evals/evals.json +44 -0
- package/pipeline/skills/shared/external/xcode-build-benchmark/SKILL.md +61 -55
- package/pipeline/skills/shared/external/xcode-build-benchmark/evals/evals.json +42 -0
- package/pipeline/skills/shared/external/xcode-build-benchmark/references/benchmark-artifacts.md +69 -67
- package/pipeline/skills/shared/external/xcode-build-benchmark/references/benchmarking-workflow.md +39 -47
- package/pipeline/skills/shared/external/xcode-build-benchmark/schemas/build-benchmark.schema.json +72 -154
- package/pipeline/skills/shared/external/xcode-build-benchmark/scripts/benchmark_builds.py +207 -245
- package/pipeline/skills/shared/external/xcode-build-fixer/SKILL.md +145 -139
- package/pipeline/skills/shared/external/xcode-build-fixer/evals/evals.json +54 -0
- package/pipeline/skills/shared/external/xcode-build-fixer/references/build-settings-best-practices.md +81 -175
- package/pipeline/skills/shared/external/xcode-build-fixer/references/fix-patterns.md +188 -143
- package/pipeline/skills/shared/external/xcode-build-fixer/references/recommendation-format.md +41 -40
- package/pipeline/skills/shared/external/xcode-build-fixer/scripts/benchmark_builds.py +207 -245
- package/pipeline/skills/shared/external/xcode-build-orchestrator/SKILL.md +107 -98
- package/pipeline/skills/shared/external/xcode-build-orchestrator/evals/evals.json +54 -0
- package/pipeline/skills/shared/external/xcode-build-orchestrator/references/benchmark-artifacts.md +69 -67
- package/pipeline/skills/shared/external/xcode-build-orchestrator/references/build-settings-best-practices.md +81 -175
- package/pipeline/skills/shared/external/xcode-build-orchestrator/references/orchestration-report-template.md +81 -69
- package/pipeline/skills/shared/external/xcode-build-orchestrator/references/recommendation-format.md +41 -40
- package/pipeline/skills/shared/external/xcode-build-orchestrator/scripts/benchmark_builds.py +207 -245
- package/pipeline/skills/shared/external/xcode-build-orchestrator/scripts/diagnose_compilation.py +155 -210
- package/pipeline/skills/shared/external/xcode-build-orchestrator/scripts/generate_optimization_report.py +355 -480
- package/pipeline/skills/shared/external/xcode-compilation-analyzer/SKILL.md +70 -69
- package/pipeline/skills/shared/external/xcode-compilation-analyzer/evals/evals.json +54 -0
- package/pipeline/skills/shared/external/xcode-compilation-analyzer/references/build-optimization-sources.md +83 -133
- package/pipeline/skills/shared/external/xcode-compilation-analyzer/references/code-compilation-checks.md +85 -73
- package/pipeline/skills/shared/external/xcode-compilation-analyzer/references/recommendation-format.md +41 -40
- package/pipeline/skills/shared/external/xcode-compilation-analyzer/scripts/diagnose_compilation.py +155 -210
- package/pipeline/skills/shared/external/xcode-project-analyzer/SKILL.md +54 -52
- package/pipeline/skills/shared/external/xcode-project-analyzer/evals/evals.json +54 -0
- package/pipeline/skills/shared/external/xcode-project-analyzer/references/build-optimization-sources.md +83 -133
- package/pipeline/skills/shared/external/xcode-project-analyzer/references/build-settings-best-practices.md +81 -175
- package/pipeline/skills/shared/external/xcode-project-analyzer/references/project-audit-checks.md +115 -83
- package/pipeline/skills/shared/external/xcode-project-analyzer/references/recommendation-format.md +41 -40
- package/pipeline/scripts/_notices.mjs +0 -171
- package/pipeline/skills/shared/external/NOTICE-avdlee-swiftui-agent-skill.md +0 -48
- package/pipeline/skills/shared/external/NOTICE-dimillian-skills.md +0 -63
- package/pipeline/skills/shared/external/NOTICE-paul-hudson-skills.md +0 -54
- package/pipeline/skills/shared/external/NOTICE-vibeship-spawner-skills.md +0 -203
- package/pipeline/skills/shared/external/NOTICE-xcode-build-skills.md +0 -60
- package/pipeline/skills/shared/external/ios-iphone-duo/NOTICE.md +0 -53
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/bootstrap/Sources/MyApp/main.swift +0 -11
- package/pipeline/skills/shared/external/swiftdata-pro/references/class-inheritance.md +0 -104
- package/pipeline/skills/shared/external/swiftdata-pro/references/core-rules.md +0 -20
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/code-smells.md +0 -158
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/demystify-swiftui-performance-wwdc23.md +0 -46
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/optimizing-swiftui-performance-instruments.md +0 -29
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/profiling-intake.md +0 -44
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/report-template.md +0 -47
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/understanding-hangs-in-your-app.md +0 -33
- package/pipeline/skills/shared/external/swiftui-performance-audit/references/understanding-improving-swiftui-performance.md +0 -52
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "vision-framework",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Our iOS 18+ app reads serial numbers like 'XK7-00Q3B' off product labels from photos. Current code creates a `VNRecognizeTextRequest`, runs `VNImageRequestHandler.perform` on the main thread, and draws each `boundingBox` straight onto a SwiftUI overlay, but boxes appear vertically flipped and the text often gets 'corrected' into words. Rewrite it.",
|
|
7
|
+
"expected_output": "Uses the Swift-native RecognizeTextRequest with await perform(on:) off the main actor, sets .accurate for stills, turns off usesLanguageCorrection for codes, filters by confidence, and converts normalized lower-left-origin coordinates to top-left image coordinates before drawing.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses Swift-native RecognizeTextRequest with try await request.perform(on:) for an iOS 18+ target",
|
|
11
|
+
"Does not run Vision work on the main thread",
|
|
12
|
+
"Sets usesLanguageCorrection = false for serial-number style strings",
|
|
13
|
+
"Explains Vision coordinates are normalized 0...1 with a lower-left origin and converts them (toImageCoordinates or a manual flip) before drawing",
|
|
14
|
+
"Filters candidates by a confidence threshold"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Add live QR code scanning for event tickets to our iOS 17 app using the camera. A teammate wants to analyse each frame with the `.accurate` recognition level and enable all barcode symbologies 'just in case'. Some test devices are old iPhone Xs and the app crashes when users deny camera permission.",
|
|
20
|
+
"expected_output": "Uses VisionKit DataScannerViewController, checks isSupported (hardware) and isAvailable (hardware plus camera authorization) before presenting, adds NSCameraUsageDescription, restricts symbologies to .qr, and avoids .accurate on a live feed.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Uses DataScannerViewController for live camera scanning",
|
|
24
|
+
"Checks DataScannerViewController.isSupported and isAvailable before presenting",
|
|
25
|
+
"Adds NSCameraUsageDescription to Info.plist",
|
|
26
|
+
"Restricts symbologies to only .qr instead of all symbologies",
|
|
27
|
+
"Notes .accurate cannot keep up with live video and .fast suits video"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 2,
|
|
32
|
+
"prompt": "We track a user-selected object across video frames in an app that must still support iOS 16. The current code creates a new `VNImageRequestHandler` and a new `VNTrackObjectRequest` for every frame, and tracking keeps losing the object. How should it work, and what changes once we drop to an iOS 18 minimum?",
|
|
33
|
+
"expected_output": "For the legacy path, reuses one VNSequenceRequestHandler across frames with VNTrackObjectRequest(detectedObjectObservation:), trackingLevel .accurate, feeding each result back as inputObservation; on iOS 18 uses a single long-lived TrackObjectRequest instance (a stateful final class) performed on each frame, noting it has no trackingLevel.",
|
|
34
|
+
"files": [],
|
|
35
|
+
"expectations": [
|
|
36
|
+
"Uses one VNSequenceRequestHandler for all frames instead of a new handler per frame",
|
|
37
|
+
"Feeds each result back through inputObservation on VNTrackObjectRequest",
|
|
38
|
+
"Sets trackingLevel = .accurate on the legacy request",
|
|
39
|
+
"On iOS 18 keeps one TrackObjectRequest instance alive for the whole sequence because it is a StatefulRequest",
|
|
40
|
+
"Notes the Swift-native TrackObjectRequest has no trackingLevel"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "vue-composition",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Convert this Vue component to modern Vue 3: it uses the Options API with `data() { return { count: 0, user: { name: '' } } }`, mutates `this.modelValue` (a prop) directly in a method, and reads global state from a Vuex store. We use TypeScript.",
|
|
7
|
+
"expected_output": "Rewrites with <script setup lang=\"ts\">, uses ref() for state, replaces direct prop mutation with defineModel or an emitted event, types props and emits with generics, and moves global state to a Pinia store defined with the setup-function syntax.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses <script setup lang=\"ts\"> instead of the Options API",
|
|
11
|
+
"Uses ref() as the default reactive primitive and remembers .value in script",
|
|
12
|
+
"Stops mutating the prop directly and uses defineModel or emits an event",
|
|
13
|
+
"Replaces Vuex with Pinia using defineStore with a setup function",
|
|
14
|
+
"Does not use this inside <script setup>"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "In our Vue 3 app, `const state = reactive({ query: '', results: [] }); const { query, results } = state;` loses reactivity in the template, `const loading = reactive(false)` throws a warning, and `watch(state.query, fetchResults)` never fires. Fix these.",
|
|
20
|
+
"expected_output": "Explains destructuring reactive loses reactivity and uses toRefs(), replaces reactive(false) with ref(false) since reactive is not for primitives, and watches a getter () => state.query instead of the raw value.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Uses toRefs() when destructuring a reactive object (or keeps using the object directly)",
|
|
24
|
+
"Replaces reactive(false) with ref(false) because reactive() is not for primitives",
|
|
25
|
+
"Watches the getter () => state.query instead of state.query",
|
|
26
|
+
"Explains why each original version loses or never had reactivity"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "Our Vue 3 product page component has 300 lines of fetching, pagination and filtering logic inline, the same logic is copy-pasted in the search page, and all routes are imported eagerly at the top of router.ts. Refactor.",
|
|
32
|
+
"expected_output": "Extracts the shared fetch, pagination and filter logic into a useXxx composable reused by both pages, keeps business logic out of components, and lazy-loads routes with dynamic imports in Vue Router 4.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Extracts the shared logic into a composable named in the useXxx pattern",
|
|
36
|
+
"Reuses that composable in both product and search pages",
|
|
37
|
+
"Keeps business logic out of components",
|
|
38
|
+
"Lazy-loads routes with dynamic imports (() => import(...)) in Vue Router 4"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "weatherkit",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Add a small widget-like card to our iOS 26 running app that shows only the current temperature and condition symbol at the user's location. The draft calls `try await WeatherService.shared.weather(for: location)` every time the view appears, and the designer removed the Apple Weather logo because it clutters the card.",
|
|
7
|
+
"expected_output": "Requests only the current dataset with weather(for:including: .current), caches results for a staleness window (5 to 15 minutes), and keeps Apple Weather attribution with the color-scheme-appropriate mark and a link to legalPageURL because attribution is a legal requirement.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses weather(for:including: .current) instead of fetching every dataset",
|
|
11
|
+
"Explains each dataset counts against the WeatherKit quota",
|
|
12
|
+
"Caches responses with a staleness window rather than refetching on every appearance",
|
|
13
|
+
"Keeps Apple Weather attribution as a legal requirement and warns omission can cause App Review rejection",
|
|
14
|
+
"Uses combinedMarkLightURL / combinedMarkDarkURL by color scheme and links legalPageURL (or shows legalAttributionText)"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Our iOS app shows a 'rain in the next hour' minute-by-minute chart and severe weather alerts. It crashes for users in some countries on `weather.minuteForecast!`, and we show alert titles without any link. Fix it.",
|
|
20
|
+
"expected_output": "Treats minuteForecast and weatherAlerts as optional (nil in unsupported regions), checks WeatherAvailability before building region-limited UI, and links each alert's non-optional detailsURL to the issuing agency notice.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Removes the force unwrap and handles minuteForecast as optional with if let",
|
|
24
|
+
"Nil-checks weatherAlerts, which is nil where alerts are not provided",
|
|
25
|
+
"Checks WeatherAvailability (.available, .unsupported, and so on) before showing minute or alert UI",
|
|
26
|
+
"Links each alert's detailsURL so users can read the full notice"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "I added `import WeatherKit` and the WeatherService calls throw an auth error at runtime in our iOS app. We pass the device's CLLocation. What setup are we missing?",
|
|
32
|
+
"expected_output": "Lists the WeatherKit capability in Xcode, enabling WeatherKit for the App ID in the developer portal, an active paid developer membership, and NSLocationWhenInUseUsageDescription with permission granted before passing the device location.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Adds the WeatherKit capability in Xcode (entitlement)",
|
|
36
|
+
"Enables the WeatherKit service for the same App ID in the developer portal",
|
|
37
|
+
"Requires an active paid developer program membership",
|
|
38
|
+
"Adds NSLocationWhenInUseUsageDescription and obtains location permission before passing a device CLLocation"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "web-accessibility",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Audit this React snippet against WCAG 2.2 AA: `<div className=\"btn\" onClick={save}>Save</div>`, `<input placeholder=\"Email\" />` with no label, a global CSS rule `*:focus { outline: none; }`, and a nav link with `tabIndex={3}`. Fix each issue.",
|
|
7
|
+
"expected_output": "Replaces the div with a native <button>, adds a visible associated label instead of relying on placeholder, restores a visible focus indicator with :focus-visible rather than removing outlines, and removes tabindex greater than 0 so the natural tab order is used.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Replaces the clickable div with a native <button> rather than adding ARIA to the div",
|
|
11
|
+
"Adds a real <label> for the input and does not rely on placeholder as the only label",
|
|
12
|
+
"Does not remove focus outlines without an alternative; adds a visible :focus-visible style",
|
|
13
|
+
"Removes tabIndex greater than 0 because it breaks natural tab order",
|
|
14
|
+
"Prefers semantic HTML over ARIA where native elements suffice"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Our web form shows validation errors only by turning the field border red, and a 'Saved!' toast appears after submit that screen reader users never hear. The error text is #ef4444 on white at 14px regular. Make it accessible.",
|
|
20
|
+
"expected_output": "Adds an icon or text so color is not the only signal, checks the error text meets 4.5:1 for normal text and adjusts the color if not, and announces the toast through an aria-live polite region that exists in the DOM before content is injected.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Does not rely on color alone; adds an icon, text or pattern to the error state",
|
|
24
|
+
"Requires 4.5:1 contrast for normal-size text (3:1 only for large text and UI components)",
|
|
25
|
+
"Uses an aria-live=\"polite\" region for the toast",
|
|
26
|
+
"Injects the message after the live region already exists in the DOM so it is announced"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "We built a custom modal dialog for our web app. Keyboard users can Tab out of it into the page behind, and when it closes focus jumps to the top of the page. We hide the dialog with `display: none` but also want a visually hidden heading inside it for screen readers. How do we fix this and test it automatically?",
|
|
32
|
+
"expected_output": "Implements a focus trap inside the modal and restores focus to the triggering element on close, uses an .sr-only visually hidden class instead of display:none for the heading meant for screen readers, and adds axe-core automated tests alongside manual screen reader testing.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Traps focus inside the open modal",
|
|
36
|
+
"Restores focus to the triggering element when the modal closes",
|
|
37
|
+
"Uses an .sr-only class for the visually hidden heading because display:none hides it from screen readers",
|
|
38
|
+
"Adds automated checks with axe-core",
|
|
39
|
+
"Recommends testing with real screen readers such as VoiceOver, NVDA or JAWS"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "web-performance",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Our Next.js landing page has an LCP of 4.6s and CLS of 0.31. The hero image is a 3MB JPEG rendered with `<img loading=\"lazy\">` and no width or height, and a cookie banner is injected at the top after load. Fix it.",
|
|
7
|
+
"expected_output": "Classifies both metrics as Poor against the LCP 2.5s and CLS 0.1 thresholds, makes the hero an eager priority image in a modern format (AVIF or WebP) with explicit dimensions and sizes, stops lazy-loading above-the-fold content, and reserves space for the injected banner.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses the Good thresholds: LCP <= 2.5s and CLS <= 0.1, classifying 4.6s and 0.31 as Poor",
|
|
11
|
+
"Removes loading=\"lazy\" from the above-the-fold hero and sets priority / preload on the LCP image",
|
|
12
|
+
"Serves a modern format (AVIF or WebP) with srcset/sizes",
|
|
13
|
+
"Sets explicit width and height on the image to prevent layout shift",
|
|
14
|
+
"Reserves space for the late-injected cookie banner instead of pushing content down"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Users say typing in our React dashboard's filter box feels laggy; Chrome reports INP of 650ms. Each keystroke filters and re-sorts 20,000 rows synchronously. Also our bundle is 1.8MB because we `import _ from 'lodash'` and `import moment from 'moment'` at the top of every page. What should we do?",
|
|
20
|
+
"expected_output": "Measures first, then debounces the input handler and breaks the long filtering work into chunks that yield to the browser (scheduler.yield or a Web Worker), and cuts the bundle with tree-shakeable per-function imports, route-level code splitting, and a bundle analyzer.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Identifies 650ms INP as Poor against the 200ms Good threshold",
|
|
24
|
+
"Debounces the expensive input handler",
|
|
25
|
+
"Breaks long tasks into chunks and yields to the browser (scheduler.yield) or moves work to a Web Worker",
|
|
26
|
+
"Replaces whole-library imports with tree-shakeable per-function imports",
|
|
27
|
+
"Uses route-level code splitting and a bundle analyzer to find unused JavaScript"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 2,
|
|
32
|
+
"prompt": "Set up caching for our web app: hashed static JS/CSS bundles, product images that rarely change, and a JSON API that must stay fresh. We're adding a Workbox service worker. Our web fonts also cause a flash of invisible text.",
|
|
33
|
+
"expected_output": "Uses long-lived immutable HTTP caching for hashed assets, a Workbox setup with precache for static assets, cache-first for images, stale-while-revalidate for CSS and JS, and network-first for API calls, plus font-display swap or optional with preloaded critical fonts.",
|
|
34
|
+
"files": [],
|
|
35
|
+
"expectations": [
|
|
36
|
+
"Precaches static assets in the service worker",
|
|
37
|
+
"Uses cache-first for long-lived images",
|
|
38
|
+
"Uses stale-while-revalidate for CSS and JS",
|
|
39
|
+
"Uses network-first for API calls",
|
|
40
|
+
"Uses font-display: swap (or optional) and preloads critical fonts"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -226,8 +226,8 @@ Error and empty states come from the network layer, not from a seeded backend.
|
|
|
226
226
|
Session expiry, countdowns and dates use the clock instead of waiting.
|
|
227
227
|
|
|
228
228
|
The multi-agent-toolkit MCP server exposes the same capabilities to an agent
|
|
229
|
-
driving a live browser (`web_route`, `web_network_state`, `web_clock`,
|
|
230
|
-
`web_assert_aria`); `web_generate_locator` turns a snapshot ref into the
|
|
229
|
+
driving a live browser (`multi-agent-toolkit:web_route`, `multi-agent-toolkit:web_network_state`, `multi-agent-toolkit:web_clock`,
|
|
230
|
+
`multi-agent-toolkit:web_assert_aria`); `multi-agent-toolkit:web_generate_locator` turns a snapshot ref into the
|
|
231
231
|
`getByRole` / `getByTestId` locator to paste into a spec like the ones in the reference.
|
|
232
232
|
|
|
233
233
|
Code for this section: [Web testing examples](references/testing-examples.md).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "web-testing",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Review this React Testing Library test: it renders `<LoginForm />`, does `container.querySelector('.submit-btn')`, calls `fireEvent.click`, then `await waitFor(() => screen.getByText('Welcome'))`, and asserts `expect(component.state.isLoggedIn).toBe(true)` via a ref. What would you change?",
|
|
7
|
+
"expected_output": "Replaces querySelector with getByRole, fireEvent with userEvent, waitFor around getBy with a findBy query, and drops the internal-state assertion in favour of asserting what the user sees.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Replaces container.querySelector with an RTL query, preferably screen.getByRole",
|
|
11
|
+
"Uses userEvent instead of fireEvent",
|
|
12
|
+
"Replaces waitFor wrapping getByText with findByText",
|
|
13
|
+
"Removes the internal state assertion because it tests implementation details"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": 1,
|
|
18
|
+
"prompt": "Write Playwright E2E tests for our orders page covering the empty list, a server error, and the 'session expired' banner that appears after 30 minutes idle. Right now the team seeds the staging database for the empty case and uses `await page.waitForTimeout(1800000)` for the expiry test.",
|
|
19
|
+
"expected_output": "Produces empty and error states from the network layer with page.route fulfilling an empty array or a 500 instead of seeding the backend, uses page.clock.install and fastForward for the session expiry instead of waiting, and asserts structure with getByRole locators or toMatchAriaSnapshot.",
|
|
20
|
+
"files": [],
|
|
21
|
+
"expectations": [
|
|
22
|
+
"Uses page.route with route.fulfill to return an empty list for the empty state",
|
|
23
|
+
"Uses page.route to return a 500 for the error state instead of a seeded backend",
|
|
24
|
+
"Uses page.clock.install and fastForward for the 30-minute expiry instead of a fixed timeout",
|
|
25
|
+
"Does not use sleep or fixed timeouts",
|
|
26
|
+
"Uses role-based locators or toMatchAriaSnapshot, with regex names for localized copy"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "Set up unit tests for our Vite + React app's `useOrders` hook, which fetches from `/api/orders`. Tests currently mock `fetch` inline in each file, pass alone but fail when run as a suite, and one flaky test was marked `.skip` months ago.",
|
|
32
|
+
"expected_output": "Uses Vitest with MSW handlers for the API (server.listen in setup, resetHandlers in afterEach), tests the hook with renderHook and async waiters, adds cleanup and mock resets between tests to stop shared state, and fixes the flaky test's root cause instead of skipping it.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Uses MSW to mock /api/orders, with server.listen() in setup",
|
|
36
|
+
"Tests the hook with renderHook and async queries or waiters rather than sleeps",
|
|
37
|
+
"Adds cleanup and mock resets in afterEach to remove shared state between tests",
|
|
38
|
+
"Does not keep the flaky test skipped; fixes the root cause",
|
|
39
|
+
"Covers loading, error and empty states"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -208,6 +208,6 @@ test('logs out after 30 idle minutes', async ({ page }) => {
|
|
|
208
208
|
```
|
|
209
209
|
|
|
210
210
|
The multi-agent-toolkit MCP server exposes the same capabilities to an agent
|
|
211
|
-
driving a live browser (`web_route`, `web_network_state`, `web_clock`,
|
|
212
|
-
`web_assert_aria`); `web_generate_locator` turns a snapshot ref into the
|
|
211
|
+
driving a live browser (`multi-agent-toolkit:web_route`, `multi-agent-toolkit:web_network_state`, `multi-agent-toolkit:web_clock`,
|
|
212
|
+
`multi-agent-toolkit:web_assert_aria`); `multi-agent-toolkit:web_generate_locator` turns a snapshot ref into the
|
|
213
213
|
`getByRole` / `getByTestId` locator to paste into a spec like the ones above.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "widgetkit",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Build a configurable 'favorite stock' Home Screen widget for our iOS 26 app where users pick the ticker. The draft uses `IntentTimelineProvider`, fetches prices over the network inside `placeholder(in:)`, reads the user's watchlist from `UserDefaults.standard`, and calls `WidgetCenter.shared.reloadAllTimelines()` every time a price ticks in the app.",
|
|
7
|
+
"expected_output": "Uses AppIntentConfiguration with AppIntentTimelineProvider instead of IntentTimelineProvider, returns sample data synchronously from placeholder and fetches in timeline(for:in:), shares data via an App Group with UserDefaults(suiteName:), and reloads only on real changes with a fitting reload policy to stay within the refresh budget.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Replaces IntentTimelineProvider with AppIntentTimelineProvider and AppIntentConfiguration",
|
|
11
|
+
"Makes placeholder(in:) return sample data synchronously with no networking",
|
|
12
|
+
"Enables App Groups on app and extension and uses UserDefaults(suiteName:) or the shared container",
|
|
13
|
+
"Stops reloading timelines on every tick; batches changes and picks a TimelineReloadPolicy within roughly 40 to 70 refreshes a day",
|
|
14
|
+
"Puts @main on the WidgetBundle"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Add a Live Activity for food delivery tracking in our iOS 26 app with Dynamic Island support. The current code calls `Activity.request(attributes: attrs, contentState: state)` and nothing shows up on device. When the server stops sending updates, the activity keeps showing an old ETA.",
|
|
20
|
+
"expected_output": "Adds NSSupportsLiveActivities = YES to the main app's Info.plist, puts static fields on ActivityAttributes and changing fields on a Codable Hashable ContentState, uses ActivityContent with request(attributes:content:pushType:) instead of the deprecated contentState calls, writes every Dynamic Island closure, and shows an updating state when context.isStale is true.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Adds NSSupportsLiveActivities = YES to the main app's Info.plist",
|
|
24
|
+
"Uses ActivityContent with Activity.request(attributes:content:pushType:) instead of the deprecated contentState form",
|
|
25
|
+
"Separates fixed fields on ActivityAttributes from changing fields on a Codable, Hashable ContentState",
|
|
26
|
+
"Implements expanded regions plus compactLeading, compactTrailing and minimal in the dynamicIsland closure",
|
|
27
|
+
"Reads context.isStale and shows something like 'Updating...' when stale"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 2,
|
|
32
|
+
"prompt": "Design a Lock Screen circular widget showing battery percentage of our Bluetooth earbuds, plus a Home Screen small widget with a 'Find my earbuds' button that plays a sound without opening the app, and a 25-minute focus countdown. Our designer colored low battery red to signal urgency. Target iOS 26.",
|
|
33
|
+
"expected_output": "Uses .accessoryCircular with a Gauge in .accessoryCircular style and AccessoryWidgetBackground, does not rely on color alone because Lock Screen renders vibrant or accented, uses a Button with an AppIntent for the interactive action, and uses Text(timerInterval:countsDown:) for the countdown instead of one entry per tick.",
|
|
34
|
+
"files": [],
|
|
35
|
+
"expectations": [
|
|
36
|
+
"Uses .accessoryCircular with Gauge and .gaugeStyle(.accessoryCircular)",
|
|
37
|
+
"Notes Lock Screen widgets render in .vibrant or .accented, not .fullColor, so red must not carry meaning alone",
|
|
38
|
+
"Uses a Button driven by an AppIntent for the find action so it runs without opening the app",
|
|
39
|
+
"Uses Text(timerInterval:countsDown:) for the countdown rather than an entry per second",
|
|
40
|
+
"Uses .containerBackground(_:for: .widget) for the Home Screen widget background"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -1,91 +1,97 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: xcode-build-benchmark
|
|
3
|
-
description:
|
|
3
|
+
description: "Times Xcode builds (clean, cached, zero-change, incremental) with a fixed command and stores medians and logs in .build-benchmark/. Use when a build-time baseline or before and after numbers are needed."
|
|
4
4
|
user-invocable: false
|
|
5
5
|
metadata:
|
|
6
|
-
source:
|
|
6
|
+
source: multi-agent-pipeline
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Xcode Build Benchmark
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Produces the baseline every build optimization is judged against. Measuring is
|
|
12
|
+
read-only: no project file changes here.
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
+
## Rules
|
|
14
15
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
- Do not change project files as part of benchmarking.
|
|
16
|
+
- Numbers come before advice. No recommendation without a measurement.
|
|
17
|
+
- Clean and incremental builds are measured and reported separately; measure both by default.
|
|
18
|
+
- Command, scheme, configuration, destination and warm-up stay identical across runs.
|
|
19
|
+
- Every run ends as a timestamped JSON artifact in `.build-benchmark/`.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Collect first
|
|
22
22
|
|
|
23
23
|
Confirm or infer:
|
|
24
24
|
|
|
25
25
|
- workspace or project path
|
|
26
|
-
- scheme
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
- whether the user wants simulator or device numbers
|
|
30
|
-
- whether a custom `DerivedData` path is needed
|
|
26
|
+
- scheme and configuration
|
|
27
|
+
- destination: simulator numbers or device numbers
|
|
28
|
+
- DerivedData: default location or a custom path
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
### Worktrees
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
A git worktree has no gitignored content. If a SwiftPM package lists a
|
|
33
|
+
gitignored folder (for example `__Snapshots__`) under `exclude:`,
|
|
34
|
+
`xcodebuild -resolvePackageDependencies` crashes. Create those empty folders
|
|
35
|
+
before the first build.
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
## Workflow
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
1. Fix the command once; write down each flag that can change caching or module reuse.
|
|
40
|
+
2. Let the warm-up prove the command works (the script runs build, clean, build unless `--skip-warmup`).
|
|
41
|
+
3. Measure 3 clean builds.
|
|
42
|
+
4. If `COMPILATION_CACHE_ENABLE_CACHING = YES` resolves for the scheme, measure 3 cached clean builds: one build warms the cache, then DerivedData (not the cache) is deleted before each measured run. This is the branch-switch, pull and Clean Build Folder case. The script does it automatically; `--no-cached-clean` skips it.
|
|
43
|
+
5. Measure 3 zero-change builds (rebuild right after a successful build, no edits; the default when `--touch-file` is absent). They expose the fixed floor: dependency computation, sending the project description, creating the build description, script phases, code signing and validation. More than a few seconds here means per-build overhead that can probably be removed.
|
|
44
|
+
6. Optionally measure 3 real edit loops with `--touch-file Sources/Feature/SomeView.swift`, which touches that file before each build.
|
|
45
|
+
7. Keep the raw logs and the summary in `.build-benchmark/`.
|
|
46
|
+
8. Report medians with their spread, never only the fastest run.
|
|
39
47
|
|
|
40
|
-
|
|
41
|
-
2. Run one warm-up build if needed to validate that the command succeeds.
|
|
42
|
-
3. Run 3 clean builds.
|
|
43
|
-
4. If `COMPILATION_CACHE_ENABLE_CACHING = YES` is detected, run 3 cached clean builds. These measure clean build time with a warm compilation cache -- the realistic scenario for branch switching, pulling changes, or Clean Build Folder. The script handles this automatically by building once to warm the cache, then deleting DerivedData (but not the compilation cache) before each measured run. Pass `--no-cached-clean` to skip.
|
|
44
|
-
5. Run 3 zero-change builds (build immediately after a successful build with no edits). This measures the fixed overhead floor: dependency computation, project description transfer, build description creation, script phases, codesigning, and validation. A zero-change build that takes more than a few seconds indicates avoidable per-build overhead. Use the default `benchmark_builds.py` invocation (no `--touch-file` flag).
|
|
45
|
-
6. Optionally run 3 incremental builds with a file touch to measure a real edit-rebuild loop. Use `--touch-file path/to/SomeFile.swift` to touch a representative source file before each build.
|
|
46
|
-
7. Save the raw results and summary into `.build-benchmark/`.
|
|
47
|
-
8. Report medians and spread, not just the single fastest run.
|
|
48
|
-
|
|
49
|
-
## Preferred Command Path
|
|
50
|
-
|
|
51
|
-
Use the shared helper when possible:
|
|
48
|
+
## Command
|
|
52
49
|
|
|
53
50
|
```bash
|
|
54
51
|
python3 scripts/benchmark_builds.py \
|
|
55
|
-
--workspace
|
|
56
|
-
--scheme
|
|
52
|
+
--workspace Shop.xcworkspace \
|
|
53
|
+
--scheme Shop \
|
|
54
|
+
--destination "platform=iOS Simulator,name=iPhone 17 Pro" \
|
|
57
55
|
--configuration Debug \
|
|
58
|
-
--destination "platform=iOS Simulator,name=iPhone 16" \
|
|
59
56
|
--output-dir .build-benchmark
|
|
60
57
|
```
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
Other flags: `--project` instead of `--workspace`, `--derived-data-path`,
|
|
60
|
+
`--repeats N` (default 3), `--skip-warmup`, `--touch-file`, `--no-cached-clean`,
|
|
61
|
+
and `--extra-arg` (repeatable) for anything else passed to `xcodebuild`. The
|
|
62
|
+
script prints the artifact path and the clean, cached clean and zero-change or
|
|
63
|
+
incremental medians.
|
|
63
64
|
|
|
64
|
-
|
|
65
|
+
Without the script, run the same `xcodebuild` commands with
|
|
66
|
+
`-showBuildTimingSummary` and keep the full output.
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
## Report back
|
|
67
69
|
|
|
68
|
-
- clean
|
|
69
|
-
- cached clean
|
|
70
|
-
- zero-change
|
|
71
|
-
- incremental
|
|
72
|
-
-
|
|
73
|
-
- environment details that could
|
|
74
|
-
-
|
|
70
|
+
- clean: median, min, max
|
|
71
|
+
- cached clean: median, min, max (only when compilation caching is on)
|
|
72
|
+
- zero-change: median, min, max
|
|
73
|
+
- incremental: median, min, max (only with `--touch-file`)
|
|
74
|
+
- the largest timing-summary categories, labelled as summed task time
|
|
75
|
+
- environment details that could skew a comparison
|
|
76
|
+
- the artifact path
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
When the spread is wide, say the numbers are noisy and suggest rerunning on a
|
|
79
|
+
quieter machine.
|
|
77
80
|
|
|
78
|
-
##
|
|
81
|
+
## Stop or hand off
|
|
79
82
|
|
|
80
|
-
|
|
83
|
+
If the user only wanted numbers, stop here. When advice is wanted, open the
|
|
84
|
+
matching skill below, follow its workflow on this project, and give it the
|
|
85
|
+
artifact path:
|
|
81
86
|
|
|
82
|
-
- [
|
|
83
|
-
- [
|
|
84
|
-
- [
|
|
85
|
-
- [
|
|
87
|
+
- [Compile hotspots](../xcode-compilation-analyzer/SKILL.md): slow type checking, big compile categories
|
|
88
|
+
- [Project configuration](../xcode-project-analyzer/SKILL.md): settings, scripts and schemes
|
|
89
|
+
- [Packages and plugins](../spm-build-analysis/SKILL.md): SwiftPM graph and build plugins
|
|
90
|
+
- [End-to-end loop](../xcode-build-orchestrator/SKILL.md): recommend, approve, fix and verify
|
|
86
91
|
|
|
87
|
-
##
|
|
92
|
+
## References
|
|
88
93
|
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
94
|
+
- [Measurement contract](references/benchmarking-workflow.md): run counts, clean and incremental rules, minimum record
|
|
95
|
+
- [Artifact layout](references/benchmark-artifacts.md): file names, wall clock versus task time, caching caveats
|
|
96
|
+
- [JSON schema](schemas/build-benchmark.schema.json): field-level contract of the artifact
|
|
97
|
+
- [Measuring script](scripts/benchmark_builds.py): what the command above runs
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "xcode-build-benchmark",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Before we touch anything, I want hard numbers on how long Debug builds of our Shop.xcworkspace (scheme Shop) take on the iPhone 17 Pro simulator. Give me the command and tell me what you will report back.",
|
|
7
|
+
"expected_output": "Runs scripts/benchmark_builds.py with --workspace Shop.xcworkspace, --scheme Shop, --configuration Debug, the simulator destination and --output-dir .build-benchmark; explains warm-up, 3 clean runs, cached clean runs when compilation caching is on, and 3 zero-change runs; reports median, min and max per build type, the largest timing categories as summed task time, environment details and the artifact path; changes no project files.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses benchmark_builds.py with --workspace, --scheme, --configuration Debug, a simulator --destination and --output-dir .build-benchmark",
|
|
11
|
+
"Measures clean and zero-change builds separately with 3 runs each by default",
|
|
12
|
+
"Mentions the cached clean phase that runs only when COMPILATION_CACHE_ENABLE_CACHING resolves to YES",
|
|
13
|
+
"Reports median, min and max rather than only the fastest run",
|
|
14
|
+
"States that benchmarking does not modify project files"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Our benchmark shows SwiftCompile at 310 seconds but the clean build only takes 84 seconds on the clock. My lead says compilation is obviously the bottleneck. Is that right?",
|
|
20
|
+
"expected_output": "Explains that timing_summary_categories are summed task times across cores while duration_seconds and median_seconds are wall clock, so a category total above the wall-clock median shows heavy parallel compiler work, not that compilation blocks the build; recommends comparing category totals against the wall-clock median before calling something a bottleneck.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Distinguishes wall-clock duration from summed task time in the timing summary",
|
|
24
|
+
"Explains that Xcode runs tasks in parallel so category totals can exceed wall-clock time",
|
|
25
|
+
"Does not conclude that compilation is the bottleneck from the 310 second figure alone",
|
|
26
|
+
"Advises comparing category totals with the wall-clock median"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "I'm benchmarking inside a git worktree and xcodebuild -resolvePackageDependencies crashes right away. One of our local packages has exclude: [\"__Snapshots__\"] in Package.swift. Also, how do I measure what a real one-file edit costs instead of a no-op rebuild?",
|
|
32
|
+
"expected_output": "Explains that worktrees lack gitignored folders, so excluded paths such as __Snapshots__ must be created before building; then recommends --touch-file with a representative Swift file so incremental runs touch it before each build, noting that without the flag the script measures zero-change rebuilds.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Identifies the missing gitignored __Snapshots__ directory in the worktree as the cause",
|
|
36
|
+
"Recommends creating the excluded directories before running builds",
|
|
37
|
+
"Recommends --touch-file with a source file path for edit-loop measurement",
|
|
38
|
+
"Explains that without --touch-file the incremental phase measures zero-change builds"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|