@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
|
@@ -104,21 +104,29 @@ Code for this section: [App Router examples](references/app-router-examples.md).
|
|
|
104
104
|
|
|
105
105
|
### Fetch with Caching
|
|
106
106
|
|
|
107
|
+
Since Next.js 15, `fetch` is not cached by default. Caching is opt-in, per
|
|
108
|
+
request, with `cache: 'force-cache'` or `next: { revalidate }`.
|
|
109
|
+
|
|
107
110
|
```tsx
|
|
108
|
-
// Cached
|
|
109
|
-
const data = await fetch('https://api.example.com/data'
|
|
111
|
+
// Cached (opt in)
|
|
112
|
+
const data = await fetch('https://api.example.com/data', {
|
|
113
|
+
cache: 'force-cache',
|
|
114
|
+
});
|
|
110
115
|
|
|
111
116
|
// Revalidate every 60 seconds (ISR)
|
|
112
117
|
const data = await fetch('https://api.example.com/data', {
|
|
113
118
|
next: { revalidate: 60 },
|
|
114
119
|
});
|
|
115
120
|
|
|
116
|
-
// No cache (dynamic)
|
|
121
|
+
// No cache (dynamic): the default since 15, written out for clarity
|
|
117
122
|
const data = await fetch('https://api.example.com/data', {
|
|
118
123
|
cache: 'no-store',
|
|
119
124
|
});
|
|
120
125
|
```
|
|
121
126
|
|
|
127
|
+
Next.js 16 adds the `'use cache'` directive with Cache Components, which caches
|
|
128
|
+
a function or component instead of a single `fetch` call.
|
|
129
|
+
|
|
122
130
|
### Parallel Data Fetching
|
|
123
131
|
|
|
124
132
|
```tsx
|
|
@@ -231,6 +239,9 @@ export default function Error({
|
|
|
231
239
|
|
|
232
240
|
## Middleware
|
|
233
241
|
|
|
242
|
+
Next.js 16: the file is `proxy.ts` and exports `proxy`; `middleware.ts` is
|
|
243
|
+
deprecated.
|
|
244
|
+
|
|
234
245
|
Code for this section: [App Router examples](references/app-router-examples.md).
|
|
235
246
|
|
|
236
247
|
## Route Handlers (API Routes)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "nextjs-app-router",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "I'm migrating a Next.js 15 dashboard page from the Pages Router. The old code used getServerSideProps to fetch stats, recent orders and notifications one after another, and the whole page is marked 'use client' because one filter dropdown uses useState. Today one failed fetch crashes the whole page. Rewrite it for the App Router.",
|
|
7
|
+
"expected_output": "Replaces getServerSideProps with an async Server Component in app/, fetches the three sources in parallel with Promise.all instead of sequential awaits, streams slow sections with Suspense or loading.tsx, pushes 'use client' down to just the filter dropdown component, and adds an error.tsx boundary so a failed fetch shows a recoverable error instead of crashing the page.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Does not use getServerSideProps or getStaticProps; uses an async Server Component in the app directory",
|
|
11
|
+
"Fetches stats, orders and notifications in parallel with Promise.all rather than awaiting sequentially",
|
|
12
|
+
"Moves 'use client' down to the smallest component that needs interactivity (the dropdown)",
|
|
13
|
+
"Uses Suspense boundaries or loading.tsx for streaming or route-level loading",
|
|
14
|
+
"Adds an error.tsx error boundary (or an equivalent route-level error boundary) so a failed fetch does not crash the page"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "In our Next.js 15 App Router app, the 'Add to cart' form posts to an /api/cart route handler that we call with fetch from a client component, the client component imports our Prisma client to check stock first, and after adding, the cart page still shows old data. Fix the architecture.",
|
|
20
|
+
"expected_output": "Uses a Server Action marked 'use server' for the mutation instead of a custom API route, validates its input with Zod, keeps DB queries and secrets out of Client Components, and calls revalidatePath or revalidateTag after the mutation to fix stale data.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Uses a Server Action with 'use server' for the mutation instead of an API route",
|
|
24
|
+
"Validates the Server Action input with Zod",
|
|
25
|
+
"Removes the Prisma or DB access from the Client Component, keeping sensitive logic on the server",
|
|
26
|
+
"Calls revalidatePath() or revalidateTag() after the mutation to fix stale data"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "Our Next.js 15 blog has a few thousand posts at app/blog/[slug]/page.tsx. New posts 404 until we redeploy, the product listing should refresh about every minute without a full rebuild, the profile page reads the session cookie, and nav links use onClick={() => router.push('/blog')}. Set the right rendering strategy for each.",
|
|
32
|
+
"expected_output": "Uses generateStaticParams for known slugs with dynamicParams allowed for new ones, ISR with export const revalidate = 60 or fetch next.revalidate for the product listing, dynamic rendering via cookies() for the profile page, and replaces router.push navigation with Link for prefetching.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Uses generateStaticParams for known blog slugs",
|
|
36
|
+
"Fixes the new-post 404 by setting dynamicParams = true or regenerating params",
|
|
37
|
+
"Uses ISR (export const revalidate = 60 or fetch with next: { revalidate: 60 }) for the product listing",
|
|
38
|
+
"Renders the profile page dynamically by awaiting cookies() from next/headers or force-dynamic",
|
|
39
|
+
"Replaces router.push for simple navigation with <Link> for prefetching"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -76,6 +76,9 @@ export default function NewPostPage() {
|
|
|
76
76
|
|
|
77
77
|
## Middleware
|
|
78
78
|
|
|
79
|
+
On Next.js 16 the file is `proxy.ts` and the exported function is `proxy`;
|
|
80
|
+
`middleware.ts` still works but is deprecated.
|
|
81
|
+
|
|
79
82
|
```tsx
|
|
80
83
|
// middleware.ts (project root)
|
|
81
84
|
import { NextResponse } from 'next/server';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "nodejs-backend-patterns",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Our Node 22 ESM order service on Kubernetes reads process.env in a dozen files (a missing PAYMENT_URL shows up as undefined deep in a request), and every deploy drops in-flight requests with 502s. Show how to structure config and shutdown properly.",
|
|
7
|
+
"expected_output": "Parses process.env once with a zod schema, freezes the config, exits on invalid input and passes config down via a buildApp(config, deps) factory; on SIGTERM fails readiness, stops accepting work, drains in-flight requests and jobs, closes pools and exits within a bounded grace period, with liveness kept cheap.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Parses process.env once at startup with a schema such as zod, freezes it and exits on invalid input",
|
|
11
|
+
"Removes scattered process.env reads and passes config down",
|
|
12
|
+
"Builds the server from a side-effect-free buildApp(config, deps) factory with main.ts only loading config, building, listening and handling signals",
|
|
13
|
+
"On SIGTERM fails readiness first, stops accepting work, finishes in-flight requests, closes pools and exits within a bounded grace period",
|
|
14
|
+
"Keeps liveness cheap and separate from readiness, never touching dependencies"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Under load our Express 5 API's p99 latency jumps to 2 seconds. The handler hashes passwords with bcrypt at cost 14, reads a template with fs.readFileSync, parses a 40MB JSON upload, and sends a welcome email inline with fetch and no timeout. Diagnose and fix.",
|
|
20
|
+
"expected_output": "Explains that synchronous and CPU-heavy work blocks the single event loop, removes readFileSync from request paths, moves bcrypt and huge JSON parsing to worker threads or piscina, monitors loop delay with monitorEventLoopDelay, adds AbortSignal.timeout to outbound calls, and moves the email to an idempotent durable queue job with retries.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Identifies that CPU-heavy and *Sync calls block every request on the single event loop",
|
|
24
|
+
"Removes fs.readFileSync and other *Sync calls from request paths",
|
|
25
|
+
"Moves high-cost bcrypt and large JSON parsing to worker_threads or a pool like piscina",
|
|
26
|
+
"Adds AbortSignal.timeout (combined with the request signal via AbortSignal.any) to the outbound call",
|
|
27
|
+
"Moves the email to a durable queue (BullMQ, pg-boss, SQS) as an idempotent job with retries and a dead-letter destination",
|
|
28
|
+
"Mentions monitoring loop delay with perf_hooks.monitorEventLoopDelay"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 2,
|
|
33
|
+
"prompt": "Review this Node service snippet: route handlers call db.save(order) without await in some places, errors are caught and res.status(500).send(err.stack), process.on('uncaughtException') logs and continues, and a CSV export is streamed with readStream.pipe(transform).pipe(res).",
|
|
34
|
+
"expected_output": "Flags floating promises and adds no-floating-promises and no-misused-promises lint rules, routes errors through one handler returning RFC 9457 problem details without leaking stacks, crashes on uncaughtException and unhandledRejection to let the orchestrator restart, and replaces manual pipe with stream/promises pipeline.",
|
|
35
|
+
"files": [],
|
|
36
|
+
"expectations": [
|
|
37
|
+
"Flags the missing await as a floating promise and recommends no-floating-promises and no-misused-promises lint rules",
|
|
38
|
+
"Uses a typed AppError for expected failures and one central error handler returning RFC 9457 problem details",
|
|
39
|
+
"Does not leak stack traces or internals in responses",
|
|
40
|
+
"Crashes on uncaughtException and unhandledRejection instead of continuing, letting the orchestrator restart",
|
|
41
|
+
"Replaces manual .pipe() with pipeline from stream/promises so errors propagate and stages are destroyed"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "observability-engineer",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "We're instrumenting our orders service with OpenTelemetry. The draft adds a Prometheus counter http_requests_total labelled with user_id, url.path and the full error message, records average latency as a gauge, and logs lines like logger.info(`payment failed for ${email} order ${id}`). Our metrics bill tripled. Review it.",
|
|
7
|
+
"expected_output": "Removes unbounded metric attributes (user id, raw path, error message), uses http.route and bucketed values, moves high-cardinality detail to spans and logs, replaces average latency with a histogram (exponential histograms), and rewrites logs as JSON with a stable message, variables in fields, trace ids injected by the bridge and emails redacted.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Removes unbounded values like user_id, raw url.path and full error messages from metric attributes",
|
|
11
|
+
"Uses http.route (for example /orders/{id}) instead of url.path",
|
|
12
|
+
"Replaces average latency with a latency histogram, such as an OpenTelemetry exponential histogram",
|
|
13
|
+
"Rewrites logs as one JSON object per line with a stable event message and variables in fields",
|
|
14
|
+
"Includes trace_id and span_id in logs via the logging bridge",
|
|
15
|
+
"Redacts emails and other personal data at the source and in the Collector"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 1,
|
|
20
|
+
"prompt": "Our checkout service has a 99.9% availability SLO over 28 days. Today we page on 'error rate > 1% for 5 minutes' and on 'CPU > 80%', and on-call is exhausted by noise. Design better alerts with PromQL.",
|
|
21
|
+
"expected_output": "Replaces raw thresholds with multi-window burn-rate alerts (1h and 5m at 14.4, 6h and 30m at 6 as pages, 3d and 6h at 1 as a ticket), both windows must exceed the rate, each page links a runbook and dashboard, and CPU becomes a ticket or dashboard panel unless it predicts user impact.",
|
|
22
|
+
"files": [],
|
|
23
|
+
"expectations": [
|
|
24
|
+
"Alerts on error budget burn rate instead of raw thresholds",
|
|
25
|
+
"Uses a multi-window page at burn rate 14.4 with 1 h long and 5 min short windows, with threshold 14.4 * 0.001",
|
|
26
|
+
"Includes the 6 h / 30 min burn rate 6 page and a slower ticket-level alert",
|
|
27
|
+
"Requires both the long and short window to exceed the rate so the alert resets soon after recovery",
|
|
28
|
+
"Downgrades the CPU alert to a ticket or dashboard panel because it is cause-based",
|
|
29
|
+
"Links a runbook and dashboard on every page"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": 2,
|
|
34
|
+
"prompt": "We use head sampling at 10% across 12 microservices and keep missing traces for the rare 500 errors and slow checkouts. We also compute RED metrics from the sampled spans. How should we change sampling?",
|
|
35
|
+
"expected_output": "Moves to tail sampling in the Collector that keeps all errors, all traces above a latency threshold and a small percentage of the rest, routes all spans of a trace to the same Collector via a load-balancing exporter keyed by trace id, and derives RED metrics before sampling (span metrics connector) because metrics are never sampled.",
|
|
36
|
+
"files": [],
|
|
37
|
+
"expectations": [
|
|
38
|
+
"Explains head sampling is decided at the root and is blind to outcome",
|
|
39
|
+
"Uses tail sampling in the Collector to keep all error traces and all slow traces plus a small percentage of the rest",
|
|
40
|
+
"Routes every span of a trace to the same Collector instance with a load-balancing exporter keyed by trace id",
|
|
41
|
+
"Derives RED metrics before sampling (span metrics connector) or emits them directly, since metrics are never sampled"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -235,6 +235,16 @@ Passes arrive as signed `.pkpass` data, usually from your server.
|
|
|
235
235
|
does not verify. Name those two failures in your error handling and show the
|
|
236
236
|
user something recoverable; a bare `try?` hides both.
|
|
237
237
|
|
|
238
|
+
To tell which of the two a failing pass is, check it before blaming the app
|
|
239
|
+
code: `multi-agent-toolkit:pass_inspect` (`pkpass`) reports what the bundle
|
|
240
|
+
holds, whether the manifest matches and who signed it;
|
|
241
|
+
`multi-agent-toolkit:pass_validate` (`pass_json`, `pass_dir` or `pkpass`)
|
|
242
|
+
grades it against Wallet's rules; `multi-agent-toolkit:pass_certificates`
|
|
243
|
+
(`certificate`) says whether the Pass Type ID certificate has expired, which
|
|
244
|
+
Wallet refuses without saying why. For a test pass, `multi-agent-toolkit:pass_build`
|
|
245
|
+
(`pass_json`, `assets_dir`, `output`, plus the signing inputs) assembles and signs
|
|
246
|
+
one after validating it.
|
|
247
|
+
|
|
238
248
|
```swift
|
|
239
249
|
@MainActor
|
|
240
250
|
func offerPass(_ data: Data, from presenter: UIViewController) throws {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "photos-camera-media",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Our iOS 17 SwiftUI expense app lets users attach up to 5 receipt photos. The current code requests PHPhotoLibrary .readWrite authorization at launch, presents UIImagePickerController, and builds UIImage(data:) from each full-size photo to show 60pt thumbnails in a grid; memory spikes to 1 GB. Rewrite the picking and thumbnail flow.",
|
|
7
|
+
"expected_output": "Uses PhotosPicker with maxSelectionCount 5 and an images filter, which needs no library permission, removes the launch-time authorization request, loads items with loadTransferable inside a Task handling nil and thrown errors, and downsamples the raw Data with CGImageSource and kCGImageSourceThumbnailMaxPixelSize at the display scale before any UIImage exists.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Replaces UIImagePickerController with PhotosPicker",
|
|
11
|
+
"Removes the photo library authorization request because PhotosPicker needs no grant for pick-and-use",
|
|
12
|
+
"Calls loadTransferable(type:) inside a Task, not on the main thread, and handles both a nil result and a thrown error",
|
|
13
|
+
"Downsamples with CGImageSourceCreateThumbnailAtIndex and kCGImageSourceThumbnailMaxPixelSize sized to points times display scale",
|
|
14
|
+
"Feeds raw Data to the downsampler before creating a full-size UIImage"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Build a receipt scanning camera screen in SwiftUI for iOS 17. Our draft creates the AVCaptureSession inside makeUIView of a UIViewRepresentable, calls session.startRunning() right there on the main thread, never stops it, and assumes the user granted camera access. It also crashed on first launch on a test device.",
|
|
20
|
+
"expected_output": "Owns the session in an @Observable model, checks AVCaptureDevice.authorizationStatus and requests access before configuring, starts the session on a dedicated serial queue, stops it in onDisappear or dismantleUIView, sends denied or restricted users to Settings, and explains the crash as a missing NSCameraUsageDescription.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Moves the AVCaptureSession into an @Observable model instead of the UIViewRepresentable",
|
|
24
|
+
"Checks AVCaptureDevice.authorizationStatus(for: .video) and requests access when notDetermined before configuring",
|
|
25
|
+
"Calls startRunning() on a dedicated serial queue, not the main thread",
|
|
26
|
+
"Stops the session in onDisappear or dismantleUIView",
|
|
27
|
+
"Handles .denied and .restricted with a link to Settings instead of re-prompting or silently dropping the feature",
|
|
28
|
+
"Attributes the first-launch crash to a missing NSCameraUsageDescription"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 2,
|
|
33
|
+
"prompt": "Our SwiftUI app saves edited photos back into the user's library and shows a feed of 200 remote product images with AsyncImage that re-download every time the user scrolls back. Which permissions and Info.plist keys do we need for saving, and how do we fix the feed?",
|
|
34
|
+
"expected_output": "Uses add-only access with NSPhotoLibraryAddUsageDescription for saving without reading the library, notes a missing usage key crashes at the prompt, and explains AsyncImage keeps no cache so the feed needs a real loader or URLCache-backed caching.",
|
|
35
|
+
"files": [],
|
|
36
|
+
"expectations": [
|
|
37
|
+
"Uses add-only library access with NSPhotoLibraryAddUsageDescription rather than full read-write access",
|
|
38
|
+
"Notes that a missing usage description key crashes the app when the prompt would appear",
|
|
39
|
+
"States that AsyncImage keeps no cache between redraws",
|
|
40
|
+
"Proposes a real image loader or URLCache-backed caching for many remote images",
|
|
41
|
+
"Shows a loading state with the AsyncImage phases or the loader"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "play-store-review",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "We're submitting an update to our Android fitness app in 2025. It targets SDK 33, uses Firebase Analytics, Crashlytics and AdMob, and our Data Safety form only lists the email we collect at sign-up. Users can create accounts. What must change before we submit?",
|
|
7
|
+
"expected_output": "Raises targetSdk to 35 for 2025 updates and handles API 34/35 behavior changes such as edge-to-edge and predictive back, declares data collected by all SDKs (device identifiers, app activity, crash logs, advertising ID and location for AdMob), declares ads in the store listing, and adds in-app and web account deletion.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Raises targetSdk to 35 because 2025 updates require API 35",
|
|
11
|
+
"Mentions handling API 35 behavior changes such as enforced edge-to-edge or predictive back",
|
|
12
|
+
"Declares data collected by every SDK in the Data Safety form, not just the app's own code (Firebase Analytics, Crashlytics, AdMob)",
|
|
13
|
+
"Declares the app as ad-supported in the store listing because it contains AdMob",
|
|
14
|
+
"Requires account deletion because the app allows account creation"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Our Android language-learning app sells a Premium subscription and gem packs. To avoid Google's fee we want to take payments through a Stripe web checkout opened from the app. We also sell physical flashcard boxes. Is this allowed on Google Play?",
|
|
20
|
+
"expected_output": "Says digital goods (premium features, subscriptions, virtual currencies like gems) must use Google Play Billing with no external alternative, physical goods may use external payment, and subscriptions need clear pricing, trial terms, easy cancellation and grace period handling.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"States the Premium subscription and gem packs must use Google Play Billing",
|
|
24
|
+
"Says bypassing Play Billing for digital goods with an external checkout is not allowed",
|
|
25
|
+
"Allows external payment for physical goods such as the flashcard boxes",
|
|
26
|
+
"Lists subscription requirements: clear pricing, trial terms, easy cancellation, grace period or account hold handling",
|
|
27
|
+
"Mentions the Google Play Billing Library dependency"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 2,
|
|
32
|
+
"prompt": "First Play Store submission for our new Android app. We built a signed release APK with our keystore password in build.gradle.kts, the privacy policy is a Google Doc shared with our team only, and the app has a community chat but no objectionable content so we plan to skip the UGC questions in the content rating. Review our plan.",
|
|
33
|
+
"expected_output": "Requires an AAB (not APK) with Play App Signing and an upload key, keystore values from environment variables rather than source, a public app-specific privacy policy URL linked in Play Console and in the app, and honest answers to the UGC questions in the IARC questionnaire because the app has user interaction.",
|
|
34
|
+
"files": [],
|
|
35
|
+
"expectations": [
|
|
36
|
+
"Uploads an AAB built with bundleRelease instead of an APK",
|
|
37
|
+
"Uses Play App Signing with Google holding the app signing key and the team using an upload key",
|
|
38
|
+
"Reads keystore credentials from environment variables, not committed build files",
|
|
39
|
+
"Requires a privacy policy at an accessible URL, not behind a login or a shared document, linked both in Play Console and inside the app",
|
|
40
|
+
"Says UGC questions must be answered even when the app itself has no objectionable content",
|
|
41
|
+
"Mentions UGC moderation, reporting or blocking requirements for the chat"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "python-patterns",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Modernize this Python 3.12 module: `def add_tag(user, tag, tags=[]): tags.append(tag)`, users are plain dicts with a 'role' string that can be 'admin', 'user' or 'viewer', generics are declared with TypeVar('T'), and errors are handled with a bare `except:` that returns None.",
|
|
7
|
+
"expected_output": "Replaces the mutable default with None or a default_factory, models users as a frozen slotted dataclass with a StrEnum role, uses PEP 695 type parameter syntax instead of TypeVar, adds full type hints, and catches specific exception types instead of a bare except.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Removes the mutable default argument (tags=[])",
|
|
11
|
+
"Models the user as @dataclass(frozen=True, slots=True) with field(default_factory=list) for lists",
|
|
12
|
+
"Uses a StrEnum for role instead of plain strings",
|
|
13
|
+
"Uses PEP 695 syntax such as def first[T](items: Sequence[T]) -> T | None or a type alias statement",
|
|
14
|
+
"Replaces bare except: with specific exception types",
|
|
15
|
+
"Adds type hints on all signatures and avoids Any"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 1,
|
|
20
|
+
"prompt": "Our Python 3.12 async scraper fetches 500 URLs with `for url in urls: results.append(await fetch(url))`, and inside a FastAPI handler someone calls asyncio.run(fetch_all()) which raises 'event loop already running'. A sync PDF parser is also called directly inside an async function. Fix it.",
|
|
21
|
+
"expected_output": "Runs fetches concurrently with asyncio.gather or TaskGroup bounded by an asyncio.Semaphore, awaits directly instead of calling asyncio.run inside a running loop, and bridges the sync parser with asyncio.to_thread.",
|
|
22
|
+
"files": [],
|
|
23
|
+
"expectations": [
|
|
24
|
+
"Replaces sequential awaits with asyncio.gather() or asyncio.TaskGroup for concurrency",
|
|
25
|
+
"Bounds concurrency with asyncio.Semaphore for 500 URLs",
|
|
26
|
+
"Removes asyncio.run() inside the already-running event loop and awaits directly or uses create_task",
|
|
27
|
+
"Wraps the synchronous parser with asyncio.to_thread",
|
|
28
|
+
"Keeps type hints on the async functions"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 2,
|
|
33
|
+
"prompt": "Write a Pydantic v2 model for a signup request (email, password, password_confirm, display name with surrounding whitespace trimmed) and a response model built from our SQLAlchemy User object. Then process a 5 GB CSV of signups lazily without loading it into memory.",
|
|
34
|
+
"expected_output": "Uses Pydantic v2 APIs (ConfigDict with str_strip_whitespace, field_validator for email, model_validator(mode='after') for password match, from_attributes=True for the response, model_dump), not v1 validators, and processes the CSV with a generator pipeline using pathlib.",
|
|
35
|
+
"files": [],
|
|
36
|
+
"expectations": [
|
|
37
|
+
"Uses model_config = ConfigDict(...) with str_strip_whitespace=True rather than a v1 class Config",
|
|
38
|
+
"Uses @field_validator rather than the v1 @validator",
|
|
39
|
+
"Checks password match with @model_validator(mode='after')",
|
|
40
|
+
"Builds the response model with ConfigDict(from_attributes=True) and serializes with model_dump or model_dump_json",
|
|
41
|
+
"Processes the CSV lazily with generators (yield) rather than reading it all into a list",
|
|
42
|
+
"Uses pathlib.Path rather than os.path"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "react-best-practices",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Refactor this React 19 'Add to cart' form: it keeps isLoading and error in three useState hooks, calls fetch in an onSubmit handler with e.preventDefault(), and the cart counter only updates after the server responds, which feels slow. Use current React patterns.",
|
|
7
|
+
"expected_output": "Replaces the manual loading and error state with useActionState bound to the form action, shows pending state from isPending, and uses useOptimistic for instant cart feedback while the request runs.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses useActionState instead of manual useState for pending and error",
|
|
11
|
+
"Passes the action to <form action={...}> instead of an onSubmit handler with preventDefault",
|
|
12
|
+
"Uses the isPending value to disable the button or show progress",
|
|
13
|
+
"Uses useOptimistic for instant UI feedback on the cart counter",
|
|
14
|
+
"When it writes TypeScript, types the action state and form data instead of falling back to any"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Review this React 19 code: a ProductPage component is marked 'use client' and loads the product with useEffect + fetch + useState, another useEffect copies props.items filtered by props.query into state, every child is wrapped in React.memo 'just in case', and global auth state lives in a new Redux store.",
|
|
20
|
+
"expected_output": "Moves data loading to a Server Component (or React Query) instead of useEffect fetching, removes 'use client' where not needed, replaces the derived-state effect with useMemo, removes blanket React.memo until profiling shows a problem, and suggests a lighter client-state option (Zustand, Jotai or an equivalent) instead of a new Redux store for auth state.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Says not to fetch data in useEffect and moves it to a Server Component or React Query",
|
|
24
|
+
"Removes 'use client' from components that do not need interactivity",
|
|
25
|
+
"Replaces the useEffect that syncs derived state from props with useMemo",
|
|
26
|
+
"Removes blanket React.memo and says to profile before memoizing",
|
|
27
|
+
"Recommends a lighter client-state option (Zustand, Jotai or an equivalent) instead of a new Redux store for the auth state"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 2,
|
|
32
|
+
"prompt": "Our React 19 dashboard bundles a 400 KB charting library that loads on first paint, a Client Component receives a promise for the user from a Server Component parent and awaits it in useEffect, and when the chart throws the entire page goes blank. Fix these.",
|
|
33
|
+
"expected_output": "Code-splits the chart with React.lazy inside a Suspense boundary, reads the passed promise with the use() hook under Suspense instead of useEffect, and wraps the chart in an error boundary that reports the error and shows a fallback.",
|
|
34
|
+
"files": [],
|
|
35
|
+
"expectations": [
|
|
36
|
+
"Loads the chart with React.lazy and a Suspense fallback",
|
|
37
|
+
"Reads the promise with the use() hook instead of awaiting in useEffect",
|
|
38
|
+
"Places a Suspense boundary at a meaningful loading boundary",
|
|
39
|
+
"Adds an error boundary (getDerivedStateFromError and componentDidCatch) with a fallback so one failure does not blank the page"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "rest-api-design",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Review our order API: POST /getOrders returns the list, POST /createOrder returns 200 with {\"success\": false, \"error\": \"...\"} on validation failure, GET /users/42/orders/7/items/3/notes exists, unauthenticated calls and calls for someone else's order both return 401, and errors include the Java stack trace. Propose a corrected design.",
|
|
7
|
+
"expected_output": "Uses plural noun resources with HTTP methods (GET /api/v1/orders, POST /api/v1/orders returning 201 with Location), returns proper 4xx codes instead of 200 with an error body, limits nesting to one level, distinguishes 401 (unauthenticated) from 403 (not authorized), and returns a consistent error envelope with request_id and no stack traces.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Replaces verb URLs with plural noun resources and HTTP methods, e.g. GET and POST /api/v1/orders",
|
|
11
|
+
"Returns 201 Created with a Location header for a successful POST",
|
|
12
|
+
"Returns 400 or 422 for validation errors instead of 200 with an error body",
|
|
13
|
+
"Limits resource nesting to one level deep",
|
|
14
|
+
"Uses 401 for missing or invalid authentication and 403 for authenticated but not authorized",
|
|
15
|
+
"Uses a consistent error envelope with request_id and no stack traces in production"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 1,
|
|
20
|
+
"prompt": "Our activity feed endpoint GET /api/v1/events?page=500&per_page=50 gets slow and users see duplicates when new events arrive while paging. Clients also hammer it, and the mobile team wants to rename the 'ts' field to 'created_at'. What should we do?",
|
|
21
|
+
"expected_output": "Switches to cursor-based pagination for the large, frequently changing feed, adds rate limiting with X-RateLimit headers and 429 with Retry-After, and treats renaming a field as a breaking change: add created_at without a bump, deprecate ts with Deprecation and Sunset headers, and remove it only in a new version while supporting N-1.",
|
|
22
|
+
"files": [],
|
|
23
|
+
"expectations": [
|
|
24
|
+
"Recommends cursor-based pagination for large or frequently changing datasets",
|
|
25
|
+
"Adds rate limit headers (X-RateLimit-Limit, Remaining, Reset) on responses",
|
|
26
|
+
"Returns 429 Too Many Requests with Retry-After when the limit is exceeded",
|
|
27
|
+
"Treats renaming or removing a field as breaking, requiring a new version",
|
|
28
|
+
"Adds the new field without a version bump and deprecates the old one with Deprecation and Sunset headers",
|
|
29
|
+
"Supports at least N-1 versions"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": 2,
|
|
34
|
+
"prompt": "Add caching to our REST API: GET /api/v1/posts/:id (public blog posts updated occasionally), GET /api/v1/me/billing (the logged-in user's invoices), and /static/app.3f9a1c.js. Our post IDs are sequential integers. Show the headers.",
|
|
35
|
+
"expected_output": "Uses ETag with If-None-Match returning 304 and a short max-age for posts, Cache-Control private, no-cache, no-store for billing so sensitive data is never cached, public max-age=31536000 immutable for the hashed asset, and recommends UUIDs over sequential integer IDs in URLs.",
|
|
36
|
+
"files": [],
|
|
37
|
+
"expectations": [
|
|
38
|
+
"Sets an ETag on posts and returns 304 Not Modified when If-None-Match matches",
|
|
39
|
+
"Uses a short public max-age or must-revalidate for occasionally updated posts",
|
|
40
|
+
"Uses Cache-Control: private, no-cache, no-store for the user's billing data",
|
|
41
|
+
"Uses public, max-age=31536000, immutable for the content-hashed static asset",
|
|
42
|
+
"Recommends UUIDs instead of exposing sequential integer IDs in URLs"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: retrofit-networking
|
|
3
|
-
description: "
|
|
3
|
+
description: "Builds networking layers on Android with Retrofit, OkHttp, and Kotlin Coroutines. Covers suspend functions in API interfaces, OkHttp interceptors (auth, logging, retry), sealed Result error handling, multipart uploads, WebSocket support, network-bound resource pattern (cache + API), and Hilt integration for Retrofit instances. Use when building API clients, handling network errors, implementing caching, or setting up networking infrastructure."
|
|
4
4
|
metadata:
|
|
5
5
|
source: multi-agent-pipeline
|
|
6
6
|
---
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "retrofit-networking",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Review this Android repository helper before merge: `suspend fun <T> safeApiCall(block: suspend () -> T): NetworkResult<T> = try { NetworkResult.Success(block()) } catch (e: Exception) { NetworkResult.Exception(e) }`. The API service uses `fun getOrders(): Call<List<OrderDto>>` with `enqueue`, and the app parses JSON with Gson. What should change?",
|
|
7
|
+
"expected_output": "Points out that the generic catch swallows CancellationException and must rethrow it, replaces Call/enqueue with suspend functions in the Retrofit interface, and recommends kotlinx.serialization or Moshi instead of Gson for new code.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Says CancellationException must be rethrown and not caught by the generic catch in safeApiCall",
|
|
11
|
+
"Replaces Call<T> and enqueue() callbacks with suspend functions in the API interface",
|
|
12
|
+
"Recommends kotlinx.serialization or Moshi over Gson for new projects",
|
|
13
|
+
"Keeps outcomes in a sealed NetworkResult (Success / Error / Exception) consumed by repositories"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": 1,
|
|
18
|
+
"prompt": "Our backend returns every response as `{\"success\": true|false, \"code\": \"...\", \"message\": \"...\", \"data\": {...}}` and an `orderStatus` enum field. Last week the server added a new status value and the whole order list screen crashed with a JsonDecodingException even though we set `ignoreUnknownKeys = true`. Right now every call site checks `response.success`. How should we restructure the Retrofit layer?",
|
|
19
|
+
"expected_output": "Explains that ignoreUnknownKeys only tolerates unknown object keys, not unknown enum values, and adds an unknown-tolerant KSerializer mapping unrecognized values to a default like UNKNOWN; folds the success envelope into a typed ApiException via a delegating Converter.Factory and maps all throwables centrally to one NetworkResult.Error.",
|
|
20
|
+
"files": [],
|
|
21
|
+
"expectations": [
|
|
22
|
+
"States that ignoreUnknownKeys does not protect against unknown enum values",
|
|
23
|
+
"Adds an unknown-tolerant enum KSerializer that maps unrecognized values to a declared default such as UNKNOWN",
|
|
24
|
+
"Uses a delegating Converter.Factory that throws a typed ApiException(code, message) when success == false",
|
|
25
|
+
"Maps ApiException, HttpException and IO failures through one central throwable-to-error mapper so safeApiCall has a single catch path",
|
|
26
|
+
"Removes per-call-site checks of the success flag"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "In our Android app the auth interceptor does `val token = runBlocking { tokenRepository.fetchToken() }` inside `intercept()`. We also need a separate OkHttp client for loading images from a CDN that must not send our auth header, and QA wants to switch the base URL at runtime. Sketch how to set this up with Hilt.",
|
|
32
|
+
"expected_output": "Replaces the bare runBlocking with a bridge pinned to a dedicated single-thread dispatcher, derives the image client from the shared base client with newBuilder() and clears inherited interceptors, reads base URL and pin hashes from build config, and gates the runtime override to non-production builds only.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Does not keep a bare runBlocking { } in intercept(); pins it to a dedicated single-thread dispatcher to avoid deadlock",
|
|
36
|
+
"Derives the image client from one base OkHttpClient with newBuilder() and clears inherited interceptors so no auth header is sent",
|
|
37
|
+
"Reads the base URL (and certificate pin hashes) from BuildConfig / build config instead of hardcoding",
|
|
38
|
+
"Restricts the runtime base-URL override to non-production builds",
|
|
39
|
+
"Provides OkHttpClient and Retrofit as Hilt singletons rather than creating clients per request"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: room-database
|
|
3
|
-
description: "
|
|
3
|
+
description: "Implements Room database persistence on Android with @Entity, @Dao, @Database, Flow-based reactive queries, TypeConverters for complex types, migration strategies (auto and manual), relations with @Embedded/@Relation and junction tables, in-memory database testing, and Hilt integration. Use when adding local persistence, defining database schemas, writing DAOs, handling migrations, or testing Room queries."
|
|
4
4
|
metadata:
|
|
5
5
|
source: multi-agent-pipeline
|
|
6
6
|
---
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "room-database",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Our Android app ships Room 2.6 version 3 with `exportSchema = false` and `.fallbackToDestructiveMigration()` in the release build. For version 4 we need to rename the `user_name` column to `display_name` in the `users` table and split a `full_address` column into `street` and `city`. How should we handle the migration and test it?",
|
|
7
|
+
"expected_output": "Removes destructive fallback from release, turns on exportSchema with a KSP schemaLocation and committed JSON, uses an AutoMigration with an AutoMigrationSpec @RenameColumn for the rename and a manual Migration with execSQL for the data split, and tests with MigrationTestHelper.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Says fallbackToDestructiveMigration must not be used in production builds",
|
|
11
|
+
"Sets exportSchema = true with ksp arg room.schemaLocation and commits the schema JSON",
|
|
12
|
+
"Uses AutoMigrationSpec with @RenameColumn for the column rename",
|
|
13
|
+
"Uses a manual Migration with execSQL for the address split, registered via addMigrations",
|
|
14
|
+
"Tests migrations with MigrationTestHelper (createDatabase at old version, then runMigrationsAndValidate)"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "I have `@Query(\"SELECT * FROM playlists\") fun getPlaylistsWithSongs(): Flow<List<PlaylistWithSongs>>` in a Room DAO where PlaylistWithSongs uses @Relation with a many-to-many junction, but sometimes the songs list comes back empty or inconsistent. Also, our sync code inserts server data with `@Insert(onConflict = REPLACE)` and child rows keep disappearing. What is wrong?",
|
|
20
|
+
"expected_output": "Adds @Transaction to the relation query and verifies the Junction / parentColumn / entityColumn mapping, and explains that REPLACE deletes and re-inserts (triggering cascades), recommending @Upsert for syncing remote data.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Adds @Transaction to the @Relation query for consistent reads",
|
|
24
|
+
"Uses associateBy = Junction(...) with a cross-ref entity and checks parentColumn / entityColumn",
|
|
25
|
+
"Explains that @Insert(REPLACE) deletes and re-inserts on conflict, which triggers delete cascades",
|
|
26
|
+
"Recommends @Upsert for sync-from-server writes"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "We need to encrypt our Android Room database with SQLCipher. The passphrase is derived asynchronously from a Keystore-wrapped key, so it is not available when Hilt's `@Provides fun provideDatabase()` runs. The database is write-heavy (event logging) and we dedupe, insert and trim to a 10k cap on each write. How should this be wired?",
|
|
32
|
+
"expected_output": "Passes a SQLCipher SupportOpenHelperFactory to openHelperFactory, sources the passphrase from the android-security key hierarchy rather than reimplementing it, builds the database from a suspend Mutex-guarded double-checked lazy provider, caps WAL with an onOpen PRAGMA wal_autocheckpoint, and puts dedupe-insert-trim in a @Transaction DAO default method.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Uses a SQLCipher SupportOpenHelperFactory passed to .openHelperFactory(...)",
|
|
36
|
+
"Defers passphrase derivation and storage to the android-security skill's key hierarchy instead of inventing it",
|
|
37
|
+
"Replaces the synchronous @Provides with a suspend, Mutex-guarded, double-checked lazy database provider",
|
|
38
|
+
"Adds an onOpen callback issuing PRAGMA wal_autocheckpoint to cap WAL growth",
|
|
39
|
+
"Wraps dedupe, insert and trim-to-cap in a single @Transaction DAO default method rather than separate DAO calls"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: scenario-gap-analysis
|
|
3
|
-
description: "
|
|
3
|
+
description: "Sets an inventory against existing tests, sorts each behaviour into COVERED, WRONGLY COVERED or MISSING, and writes gaps as measurable, prioritised scenarios with cross-screen flows. Use when planning tests or auditing coverage. Not for writing tests or judging a run."
|
|
4
4
|
metadata:
|
|
5
5
|
source: multi-agent-pipeline
|
|
6
6
|
version: 1.0.0
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "scenario-gap-analysis",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "Audit test coverage for our web checkout module (cart, shipping, payment, confirmation screens). The existing Playwright suite has `cart.spec.ts:42` which checks that the coupon badge is visible after applying a coupon, and `api/order.spec.ts:17` which asserts the create-order call returns HTTP 200. Give me the gap analysis.",
|
|
7
|
+
"expected_output": "Searches existing tests before listing gaps, flags both cited tests as WRONGLY COVERED with file:line and the defect each cannot see (badge existence instead of total value, status code while the body may carry an error), and outputs ranked measurable scenarios opening with the top three.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Classifies behaviours into COVERED, WRONGLY COVERED and MISSING buckets",
|
|
11
|
+
"Marks cart.spec.ts:42 as WRONGLY COVERED because it checks existence of the badge, not the total value",
|
|
12
|
+
"Marks api/order.spec.ts:17 as WRONGLY COVERED because a 200 status can pass while the body carries an error",
|
|
13
|
+
"Opens with a top three to do first rather than an unranked list",
|
|
14
|
+
"Gives each scenario a priority (bug-catching / edge / baseline), a business reason and a measurable expectation"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "Write the cross-screen flow scenarios for our mobile booking module: search results -> flight detail -> passenger info -> payment. To keep them fast, I was planning to seed the passenger store and deep link straight into the payment screen, and mock the fare quote request.",
|
|
20
|
+
"expected_output": "Writes at least two flow scenarios that enter from the first screen and carry state forward step by step, and rejects seeding the store, deep linking to an intermediate screen and mocking the fare data the flow carries; noise like analytics may be mocked.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Writes at least two cross-screen flow scenarios",
|
|
24
|
+
"Rejects seeding the store or injecting state inside a flow scenario",
|
|
25
|
+
"Rejects deep linking or routing directly to an intermediate screen such as payment",
|
|
26
|
+
"Does not mock the fare quote because it is data the flow carries; only noise outside the flow may be mocked",
|
|
27
|
+
"Notes that a long flow may be split into segments that each start where the previous ended"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 2,
|
|
32
|
+
"prompt": "Plan scenarios for our order history screen. We have no test account with a completed order and the staging refund service is down. The test writer will need a login for the scenarios. Also, locate rows in the order list as `list[2]` like the existing tests do.",
|
|
33
|
+
"expected_output": "Includes a could-not-measure section naming the refund screen and order history data with why and what would make them measurable, states data needs without inventing credentials (a human supplies them), and asks for identity-carrying handles keyed by order id instead of list indexes.",
|
|
34
|
+
"files": [],
|
|
35
|
+
"expectations": [
|
|
36
|
+
"Includes a separate Could not measure section with what, why and what would make it measurable",
|
|
37
|
+
"Does not fold unmeasured items into COVERED",
|
|
38
|
+
"States data needs but does not invent a credential; a human supplies the value",
|
|
39
|
+
"Asks for identity-carrying handles such as data-order-id instead of a list index like list[2]"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|