W Errors

blockmatic/basilic-skills/skills/workflow/w-errors

by blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635No license1 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 6 days ago

Add error handling that matches existing repo error and logging packages.

Instructions onlySoftware Development
AI-generated overview

Adds error handling to changed code paths using the repository's existing error types, loggers, and user-facing patterns.

What it does
Guides an agent through hardening failure paths in code that was just changed. It identifies failure points such as validation, I/O, authorization, and empty or invalid input, then applies the repository's existing error type and logger and reuses established user-facing error patterns. It also sets rules for retries, requires test or manual-scenario coverage, and points to a docs step when behavior or commands change.
When to use it
Use when a code change introduces new failure paths that need consistent error handling. It fits repositories that already have error and logging packages and an error-handling page referenced from AGENTS.md.
Requirements
Instructions only; no scripts. It depends on the target repository having existing error and logger packages, an AGENTS.md that names an error-handling page, and a way to run the smallest existing check.

Harden the current code's failure paths. Follow the error-handling page named from AGENTS.md and existing error/logger packages. Do not hide the owning failure with retries.

  1. Identify failure points on the changed path: validation, I/O, authz, empty/invalid input.
  2. Use the repo error type and logger. Return or render existing user-facing error patterns.
  3. Retry only when the write is replay-safe. Otherwise keep an explicit no-retry path with a bounded deadline if a retry is already required.
  4. Cover the new path with a test or a named manual scenario. Run the smallest existing check.
  5. Docs: /w-docs if behavior or commands changed.

Source and attribution

Source:blockmatic/basilic-skillsinskills/workflow/w-errorsat commit7e05e2a

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal