W Errors

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

作者 blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635无许可证1 个星标收录于 2026年10月9日更新于 2026年10月9日仓库6天前更新

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

AI 生成的概览

使用仓库现有的错误类型、日志器和用户提示模式,为改动过的代码路径补充错误处理。

功能
指导智能体加固刚改动代码中的失败路径。它会识别校验、I/O、授权以及空值或无效输入等失败点,然后套用仓库现有的错误类型和日志器,并复用既有的用户可见错误模式。它还规定了重试规则,要求用测试或具名手动场景覆盖新路径,并在行为或命令变化时指向文档步骤。
适用场景
适用于代码改动引入了新的失败路径、需要统一错误处理的场景。适合已经具备错误与日志包,并在 AGENTS.md 中引用错误处理页面的仓库。
运行要求
仅为指令,不含脚本。依赖目标仓库已有错误与日志包、AGENTS.md 中指明错误处理页面,以及可运行最小现有检查的方式。

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.

来源与署名

来源:blockmatic/basilic-skills位于skills/workflow/w-errors提交7e05e2a

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架