contract-conformance-testing
Use when building conformance tests from specs, contracts, examples, or compatibility matrices. Triggers:
What this skill does
# Testing Conformance Harnesses Use this skill to turn an explicit authority set into an implementation-agnostic harness that proves whether one or more implementations conform across cases, platforms, and versions. ## Authority Set Start by naming the sources that define correct behavior: - Specifications, protocol documents, schemas, API contracts, or formal requirements. - Canonical examples, golden transcripts, fixtures, or reference outputs. - Version notes, compatibility promises, migration guides, and documented exceptions. - Existing implementation behavior only when it is explicitly accepted as a reference oracle. State precedence before designing tests. When sources conflict, the higher-precedence source controls and the conflict becomes a harness case or documented exclusion. ## Harness Shape Build the harness around these pieces: - **Adapter:** a narrow interface that drives each implementation without embedding product-specific behavior in assertions. - **Case corpus:** structured cases with id, source citation, version scope, inputs, expected behavior, and tags. - **Fixture store:** immutable inputs and expected outputs, versioned when behavior changes intentionally. - **Oracle:** spec assertions, golden examples, reference implementations, differential checks, or metamorphic properties. - **Runner:** deterministic execution with setup, teardown, retries only for declared nondeterminism, and isolated state. - **Reporter:** pass, fail, skip, xfail, and unsupported verdicts with enough evidence to reproduce the result. Keep harness code separate from implementation code. The same case should be runnable against every compatible implementation through the adapter layer. ## Case Design Cover the behavior surface deliberately: - Positive cases for required behavior and canonical examples. - Negative cases for invalid input, malformed data, permission failures, and unsupported operations. - Boundary cases for limits, empty values, ordering, precision, encoding, time, and concurrency. - Regression cases for defects that represent conformance gaps. - Cross-version cases for behavior that must remain stable, migrate cleanly, or intentionally diverge. - Matrix cases for implementation, version, platform, feature flag, schema version, and protocol mode. Each case should include a clear source, expected verdict, and reason. Avoid cases whose expected behavior is "whatever the current implementation does" unless that implementation is the declared oracle. ## Versioning Rules Model compatibility as data: - Define the supported version matrix before writing cases. - Mark each case with the versions or feature states where it applies. - Use `xfail` for known, accepted nonconformance with an owner and removal condition. - Use `skip` only when the harness cannot run a case for a declared environmental reason. - Preserve old fixtures when they represent stable compatibility requirements. When behavior intentionally changes, add a new expected result scoped to the new version instead of rewriting historical expectations. ## Validation Bar A conformance harness is ready when: - The authority set and precedence are written down. - Every required behavior has at least one case or a documented gap. - The adapter can run the same corpus against at least one implementation. - The report distinguishes conformance failures from harness failures. - Failures include case id, source, inputs or fixture id, observed result, expected result, and reproduction command. - The harness can be run in local development and in CI without hidden credentials unless the contract explicitly requires them. ## Output Return the harness design and the concrete next artifact: - Case matrix with ids, tags, versions, sources, and expected verdicts. - Adapter interface and runner command. - Fixture layout and golden update policy. - Oracle strategy for each behavior class. - CI command and report format. - Open gaps, exclusions, and accepted divergences.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.