Skip to main content

trails-error-format

Use when reviewing Trails error taxonomy, surface error rendering, redaction, retryability, or Result-vs-throw boundaries. Helps distinguish runtime failures from intentional construction and host-boundary throws.

소스 정보

저장소
outfitter-dev/trails
최근 소스 활동
2026년 9월 23일 23:14
감지된 SKILL.md 언어
영어
스타
5
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
description
Use when reviewing Trails error taxonomy, surface error rendering, redaction, retryability, or Result-vs-throw boundaries. Helps distinguish runtime failures from intentional construction and host-boundary throws.
license
MIT
metadata
{"skillset.schema":"1","version":"0.4.0"}
name
trails-error-format
# Trails Error Format Use this skill when a change touches error classes, `Result.err`, CLI/HTTP/MCP rendering, redaction, retry behavior, or host construction boundaries. ## Workflow 1. Classify the failure boundary: - Trail runtime failures return `Result.err(new TrailsErrorSubclass(...))`. - Surface presentation maps existing `TrailsError` values to surface-specific output. - Construction or programmer errors may throw when the boundary is explicit. 2. Choose the most specific `TrailsError` subclass for runtime failures. 3. Trace rendering data back to owner exports such as error categories, retryability, and status or code maps. 4. Check redaction at the boundary that exposes data to agents, users, logs, or surface clients. 5. Verify tests cover both the raw error object and the rendered surface shape when both are public behavior. ## Authoritative Sources - [Bundled error taxonomy](../trails/references/error-taxonomy.md) - Public error exports from the installed `@ontrails/core` package. - The installed CLI, MCP, HTTP, and Hono surface packages when their rendering behavior is under review. ## Must Not - Do not collapse all throws into bugs; verify whether the throw is a construction or programmer-error boundary. - Do not add parallel error-code maps when core owner data already exposes the mapping. - Do not leak raw native `Error` values through public runtime Results when a specific `TrailsError` exists. - Do not put surface rendering policy inside trail implementation logic. ## Output Return: - Runtime, rendering, redaction, or host-boundary classification. - Expected error subclass and category. - Owner mapping or rendering source. - Surface behavior checked. - Missing tests or follow-up issue.
GitHub에서 보기