verify-swiftui-parity
Verify one approved SwiftUI feature slice against its behavioral parity contract with deterministic and conditional Apple-platform checks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 21
- Forks
- 15
01 前言 Front Matter
- name
- verify-swiftui-parity
- description
- Verify one approved SwiftUI feature slice against its behavioral parity contract with deterministic and conditional Apple-platform checks.
02 资源文件 7
- 参考文档agents/openai.yaml278 B
- 参考文档references/build-tools.md4.2 KB
- 参考文档references/micronaut.md2.6 KB
- 参考文档references/quarkus.md546 B
- 参考文档references/reachability-metadata.md5.9 KB
- 参考文档references/spring-boot.md5.8 KB
- 参考文档references/troubleshooting.md3.3 KB
03 SKILL.md 正文
Verify SwiftUI Parity
Assess evidence for one approved SwiftUI slice. Verification is contract-driven: a similar-looking screen is not proof of parity.
Required inputs
Require the approved parity contract, explicit target directory/module, named feature slice, expected deterministic checks, and any approved platform destinations. Stop if the contract, target, backend behavior, licensing status, or parity expectations are ambiguous.
Safety contract
- Read only the contract, declared source evidence, and explicit target directory needed for this verification.
- Do not change source, rewrite snapshots, bless new baselines, install dependencies, download Simulator runtimes, accept Apple licenses, or alter signing.
- If a command creates build products, caches, screenshots, or logs, place them only under the explicit target directory or an explicitly approved disposable verification directory.
- Never use real credentials, customer data, private URLs, or production backends. Use approved synthetic fixtures or a declared safe local test endpoint.
Verification order
- Check contract completeness: every required behavior, intentional native adaptation, deferred item, backend rule, persistence rule, error state, and accessibility criterion must have an evidence path.
- Run deterministic pure-Swift/domain checks first. Require stable fixtures and fixed seeds, clocks, identifiers, locale, and time zone where relevant.
- Inspect architecture boundaries: domain code must not import SwiftUI/UIKit; views and platform adapters should remain thin.
- Verify backend contract behavior with synthetic fixtures or declared safe test doubles, including success, empty, loading, failure, retry, auth, and offline cases required by the contract.
- Verify accessibility evidence for labels, hints, traits, focus order, Dynamic Type, contrast, reduced motion, and stable identifiers that apply to the slice.
- Use the bundled
scripts/native-port.mjs verifyguardrail when available. Its result is structural deterministic evidence, not proof of behavioral parity; then run the declared build/test gate with derived data inside the allowed boundary if Xcode is available and already licensed. - If a compatible Simulator runtime and destination are available, run the declared Simulator smoke and XCUITest path. Do not create, install, or download a missing runtime.
Missing-toolchain behavior
Missing Xcode, Swift, an accepted Apple license, a Simulator runtime, a bootable destination, or XCUITest support is a clear BLOCKED platform gate, never a pass. The bundled scripts/native-port.mjs toolchain guardrail reports XCODE_TOOLCHAIN_UNAVAILABLE when appropriate. Name the exact missing prerequisite, preserve deterministic results already obtained, and provide the smallest human-run next step without performing installation or license acceptance.
Result format
Return a table with one row per contract behavior or gate:
- status:
PASS,FAIL,BLOCKED, orNOT TESTED; - contract requirement;
- evidence command, fixture, file, or observation;
- mismatch or missing prerequisite;
- smallest next action.
Then summarize parity confidence, files/artifacts created inside the allowed boundary, skipped platform gates, and remaining risks. Do not claim full parity while required rows are failed, blocked, or untested.
04 同仓库更多 Skills
verify-engineering-design
Measure a study's CAD exports against its saved requirements, preserving failed or unknown results and the source, checker and artifact provenance.
prepare-engineering-handoff
Regenerate a study's checked CAD, source, measurements and BOM, then rebuild the delivered package in a separate destination and compare the results.
engineer-subsystem
Turn a mechanical design brief into a saved CAD study, author or revise its model, and preserve requirements and failed measurements through Text-to-CAD.
revise-pcba-assembly
Preview and apply a bounded, revision-bound PCBA placement or population correction using explicit authoritative geometry, then regenerate and recheck the assembly package.
review-pcba-package
Review supplied PCB assembly BOM and placement data, reconcile population and geometry evidence, and create a persistent local PCBA project with an offline visual assembly guide.
prepare-pcba-handoff
Export a consistent PCBA project into an immutable offline assembly packet and independently re-read its BOM, placements, provenance and artifact hashes before delivery.