About w-errors
w-errors is a Basilic workflow agent skill for hardening failure handling in the current code. It guides developers to follow repository conventions, avoid unsafe retries, and verify changes.
Key features
- 01Find validation, I/O, and authorization failures
- 02Use repository error and logger patterns
- 03Avoid retries for unsafe writes
- 04Test changes and run a focused check
- 05Update docs when behavior changes
Use cases
- 01Improve error handling on a changed code path
- 02Prevent retries from masking the original failure
- 03Verify a new failure path with tests or a manual scenario
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ blockmatic-icebox/ basilic-skills --skill w-errorsAfter installing, type/w-errorsin Claude Code to confirm it loaded.
Details
From the project READMEHarden 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.
- Identify failure points on the changed path: validation, I/O, authz, empty/invalid input.
- Use the repo error type and logger. Return or render existing user-facing error patterns.
- 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.
- Cover the new path with a test or a named manual scenario. Run the smallest existing check.
- Docs:
/w-docsif behavior or commands changed.
Comments
Markdown supported