dart-use-pattern-matching은(는) 무엇을 하나요?
적절한 곳에서 switch 표현식과 패턴 매칭을 사용하세요.
적절한 곳에서 switch 표현식과 패턴 매칭을 사용하세요.
이 스킬은 Dart 언어에서 switch 표현식과 패턴 매칭을 효과적으로 활용하도록 안내합니다. Dart 3.0부터 도입된 패턴 매칭 기능을 사용하면 코드를 더 간결하고 표현력 있게 작성할 수 있으며, 기존의 if-else 체인이나 복잡한 조건문을 대체할 수 있습니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 코딩 에이전트에서 사용 가능하며, 개발자에게 적절한 상황에서 패턴 매칭을 권장하여 코드 품질을 향상시킵니다. SKILL.md 문서를 기반으로 에이전트가 Dart 프로젝트에서 패턴 매칭이 유용한 사례를 인식하고 자동으로 제안하도록 설계되어 있습니다.
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-use-pattern-matchingInstalled? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
적절한 곳에서 switch 표현식과 패턴 매칭을 사용하세요.
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Collect coverage using the coverage packge and create an LCOV report
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.