flutter-error-handling SKILL.md skillA

flutter-error-handling from atou4/skillsmith is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add atou4/skillsmith/flutter-error-handling@git:20261122.48c70df

Pins git:20261122.48c70df in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 19 of 19 checks passed
Kind
SKILL.md skill
Repository
atou4/skillsmith
Path
skills/mobile/flutter-error-handling/SKILL.md
Versions recorded
1
Latest version
git:20261122.48c70df, committed Nov 22, 2026
Size
2,402 bytes
Repository stars
3
License
MIT

Implement functional repository error recovery with Either/Failure patterns in Flutter. Use when handling exceptions or dartz Either types in data flows; defer UI-only retry buttons.

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

# Error Handling

## **Priority: P1 (HIGH)**

## Implementation Workflow

1. **Define failures** — Create domain-specific failures using `@freezed` unions (e.g., `UnauthorizedFailure`, `OutOfStockFailure`).
2. **Return Either** — Repositories return `Either<Failure, T>`. No exceptions in UI/BLoC.
3. **Catch in Infrastructure only** — Infrastructure catches exceptions (e.g., `DioException`) and returns `Left(Failure)`. Never rethrow to UI.
4. **Fold in BLoC** — Use `.fold(failure, success)` in BLoC to emit corresponding states. Remove try/catch from BLoC.
5. **Localize messages** — Use `failure.failureMessage` (returns `TRObject` or localized string) for UI-safe text.
6. **Log with stable templates** — Use low-cardinality message templates; pass variable data via metadata/context.
7. **No Silent Catch**: Never swallow errors without logging or documented retry.
8. **Crashlytics Routing**: All UI/BLoC `catch` blocks MUST route errors via `AppLogger.error(AppException.fromException(e).message, error: e, stackTrace: st)` for observability and type-safe UI messages.

### Repository & BLoC Examples
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_6a4s6piqr2quynic/88ebc7b891a364f4c2532ac9ba5780ca19b381f7efb0cf7b8b4ea52ec0e32ed4.json

Then /plugin install flutter-error-handling@markdownregistry-6a4s6piqr2quynic in Claude Code. It installs git:20261122.48c70df, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add atou4/skillsmith/flutter-error-handling@sha256:88ebc7b891a364f4

The line at the top of this page pins the label git:20261122.48c70df, 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_6a4s6piqr2quynic.svg)](https://markdownregistry.com/a/art_6a4s6piqr2quynic)

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

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in atou4/skillsmith/flutter-error-handling since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of flutter-error-handling from somewhere else? Ask it: where did my flutter-error-handling come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 1 version of this file, committed on Nov 22, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20261122.48c70df latest2026-11-22 48c70df 2,402 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  19 of 19 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 (2402 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 encoded command decoded and run in a shell
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No decoded text run in 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

atou4/skillsmith · 3 stars · license MIT · pushed 2026-11-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6a4s6piqr2quynic
GET https://markdownregistry.com/api/v1/resolve?ref=atou4/skillsmith/flutter-error-handling
GET https://markdownregistry.com/api/v1/blob/88ebc7b891a364f4c2532ac9ba5780ca19b381f7efb0cf7b8b4ea52ec0e32ed4
GET https://markdownregistry.com/api/v1/list?kind=skill

Every file of this kind listed here, most starred first, in pages: send each page's next back as cursor. JSON, no key.

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 atou4/skillsmith

skillsmith Plugin marketplace
atou4/skillsmith · .claude-plugin/marketplace.json · Agent skills by Atou4, one plugin per pack: meta skills for managing skills, a UI/UX bundle, and engineering workflows…
git:20261123.89b4ffe · audit A · 3 stars
AGENTS.md AGENTS.md file
atou4/skillsmith · AGENTS.md
git:20261123.89b4ffe · audit A · 3 stars
CLAUDE.md CLAUDE.md file
atou4/skillsmith · CLAUDE.md
git:20261117.bda0ff1 · audit B · 3 stars
gcp-cloud-run-ops SKILL.md skill
atou4/skillsmith · skills/devops/gcp-cloud-run-ops/SKILL.md · Deploy, verify, roll back and diagnose Google Cloud Run services safely: image by digest, revisions created without…
git:20261123.89b4ffe · audit A · 3 stars
project-factory SKILL.md skill
atou4/skillsmith · skills/meta/project-factory/SKILL.md · Global meta skill that runs any project from idea to deliverable by routing each phase - market research, brand…
git:20261120.f61c6a9 · audit A · 3 stars
skill-audit SKILL.md skill
atou4/skillsmith · skills/meta/skill-audit/SKILL.md · Audit installed agent skills across ~/.claude/skills, ~/.codex/skills and ~/.agents/skills for broken symlinks…
git:20261117.59c3f19 · audit A · 3 stars
skill-pack-installer SKILL.md skill
atou4/skillsmith · skills/meta/skill-pack-installer/SKILL.md · Install or update a third-party agent skill pack (a GitHub repo of SKILL.md folders) for Claude Code and Codex at user…
git:20261117.bda0ff1 · audit A · 3 stars
skill-sync SKILL.md skill
atou4/skillsmith · skills/meta/skill-sync/SKILL.md · Fix drift between installed agent skills across ~/.claude/skills, ~/.codex/skills and ~/.agents/skills. Relinks skills…
git:20261117.b9bd80a · audit A · 3 stars
skill-update-check SKILL.md skill
atou4/skillsmith · skills/meta/skill-update-check/SKILL.md · Check whether installed or vendored agent skills have changed upstream on GitHub, show what changed, and offer a…
git:20261120.f61c6a9 · audit A · 3 stars
skill-vetter SKILL.md skill
atou4/skillsmith · skills/meta/skill-vetter/SKILL.md · Review a third-party agent skill or skill pack for safety and fit before installing it, and write a one-line verdict…
git:20261117.82ea4da · audit C · 3 stars
flutter-performance SKILL.md skill
atou4/skillsmith · skills/mobile/flutter-performance/SKILL.md · Optimize Flutter widget rebuilds, memory usage, rendering, and scrolling performance. Use when diagnosing jank…
git:20261122.26135a7 · audit A · 3 stars
flutter-security SKILL.md skill
atou4/skillsmith · skills/mobile/flutter-security/SKILL.md · Secure Flutter token/PII storage, build-time secrets, network trust, and release hardening using OWASP Mobile…
git:20261122.26135a7 · audit A · 3 stars

Every file in atou4/skillsmith

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