dart-use-pattern-matching SKILL.md skillA

dart-use-pattern-matching from linux4life1/front-porch-ai is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add linux4life1/front-porch-ai/dart-use-pattern-matching@git:20260728.93025d2

Pins git:20260728.93025d2 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
linux4life1/front-porch-ai
Path
.claude/skills/dart-use-pattern-matching/SKILL.md
Versions recorded
1
Latest version
git:20260728.93025d2, committed Jul 28, 2026
Size
6,095 bytes
Repository stars
84
License
AGPL-3.0

Use switch expressions and pattern matching where appropriate.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Implementing Dart Patterns

## Contents
- [Pattern Selection Strategy](#pattern-selection-strategy)
- [Switch Statements vs. Expressions](#switch-statements-vs-expressions)
- [Core Pattern Implementations](#core-pattern-implementations)
- [Workflows](#workflows)
- [Examples](#examples)

## Pattern Selection Strategy

Apply specific pattern types based on the data structure and desired outcome. Follow these conditional guidelines:

*   **If validating and extracting from deserialized data (e.g., JSON):** Use Map and List patterns to simultaneously check structure and destructure key-value pairs.
*   **If handling multiple return values:** Use Record patterns to destructure fields directly into local variables.
*   **If executing type-specific behavior (Algebraic Data Types):** Use Object patterns combined with `sealed` classes to ensure exhaustiveness.
*   **If matching numeric ranges or conditions:** Use Relational (`>=`, `<=`) and Logical-and (`&&`) patterns.
*   **If multiple cases share logic:** Use Logical-or (`||`) patterns to share a single case body or guard clause.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add linux4life1/front-porch-ai/dart-use-pattern-matching@sha256:39d71b585417a2cc

The line at the top of this page pins the label git:20260728.93025d2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ipkexk6xciy4vukl.svg)](https://markdownregistry.com/a/art_ipkexk6xciy4vukl)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jul 28, 2026.

versioncommittedcommitsizeaudit
git:20260728.93025d2 latest2026-07-28 93025d2 6,095 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6095 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

linux4life1/front-porch-ai · 84 stars · license AGPL-3.0 · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ipkexk6xciy4vukl
GET https://markdownregistry.com/api/v1/resolve?ref=linux4life1/front-porch-ai/dart-use-pattern-matching
GET https://markdownregistry.com/api/v1/blob/39d71b585417a2cca7958d41e19916303053c654a4de5aade8564addfaba1968

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from linux4life1/front-porch-ai

dart-collect-coverage SKILL.md skill
linux4life1/front-porch-ai · .claude/skills/dart-collect-coverage/SKILL.md · Collect coverage using the coverage packge and create an LCOV report
git:20260728.93025d2 · audit B · 84 stars
flutter-add-integration-test SKILL.md skill
linux4life1/front-porch-ai · .claude/skills/flutter-add-integration-test/SKILL.md · Configures Flutter Driver for app interaction and converts MCP actions into permanent integration tests. Use when…
git:20260728.93025d2 · audit A · 84 stars
path-complete-chat SKILL.md skill
linux4life1/front-porch-ai · .claude/skills/path-complete-chat/SKILL.md · Enforce path-complete chat/realism/memory work: Continue vs regen, 1:1 vs group, Journal vs Growth twins, desktop vs…
git:20260811.1c3a519 · audit A · 84 stars
AGENTS.md AGENTS.md file
linux4life1/front-porch-ai · AGENTS.md
git:20261027.2cadf6c · audit A · 84 stars
CLAUDE.md CLAUDE.md file
linux4life1/front-porch-ai · CLAUDE.md
git:20261027.2cadf6c · audit A · 84 stars

Every file in linux4life1/front-porch-ai

Other files named dart-use-pattern-matching

dart-use-pattern-matching SKILL.md skill
sutchan/agent-skills-hub · skills/dart-use-pattern-matching/SKILL.md · 在合适处使用 switch 表达式与模式匹配。
git:20261017.b913806 · audit A · 2 stars

Browse by kind, by grade A, or by owner.