Skip to main content

Dart Matcher Best Practices

Skill Verified Active

Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.

Purpose

To improve the quality and readability of Dart tests by applying best practices for assertion matchers, thereby reducing common pitfalls and debugging time.

Features

  • Readable assertions with `expect`
  • Proper matcher selection guidance
  • Avoiding common pitfalls in tests
  • Improving error messages on test failures

Use Cases

  • Writing new assertions using `expect` and `package:matcher`
  • Migrating manual checks to cleaner matchers
  • Debugging confusing test failures related to assertions

Non-Goals

  • Core testing concepts or test structure
  • Migrating from `package:matcher` to `package:checks`
  • General Dart code formatting or linting

Installation

npx skills add flutter/skills

Runs the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.

Quality Score

Verified
100 /100
Analyzed about 16 hours ago

Trust Signals

Last commit1 day ago
Stars1.9k
LicenseBSD-3-Clause
Status
View Source

Similar Extensions

Definition Of Done

100

Mandatory checks to run before completing any task that touches md files or dart code in this repository.

Skill
flutter

Neon Postgres

100

Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's Platform API/SDKs. Use for any Neon-related questions.

Skill
neondatabase

Sdk Dx

100

Design SDKs that developers love to use—APIs that feel native, error messages that guide, and experiences that reduce friction. This skill covers creating SDKs that drive adoption through exceptional developer experience rather than aggressive marketing. Trigger phrases: "SDK design", "developer experience", "API design", "SDK DX", "error messages", "type safety", "IDE integration", "SDK versioning", "migration guides", "client library design", "making SDKs feel native", "SDK best practices"

Skill
jonathimer

Csharp Async

100

Get best practices for C# async programming

Skill
github

Golang Concurrency Patterns

100

Go concurrency patterns for production services: context cancellation, errgroup, worker pools, bounded parallelism, fan-in/fan-out, and common race/deadlock pitfalls

Skill
bobmatnyc

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

Skill
affaan-m

© 2025 SkillRepo · Find the right skill, skip the noise.