xiaohongshu
xiaohongshu
21-build-error-reporting
Status: ACTIVE AppliesTo: v10
Full skill instructions
Status: ACTIVE
AppliesTo: v10
{tempDir}/log에 남겨 CI/로컬에서 재현 및 분석이 가능하게 한다.framework-ts/tools/builder (및 CLI 엔트리)| 용어 | 정의 |
|---|---|
| Build Error | 빌드 중단을 유발하는 오류 (ExitCode != 0) |
| Report Line | 콘솔에 출력되는 2줄 (요약 1줄 + NDJSON 1줄) |
| Log Record | 로그 파일에 쓰이는 NDJSON 한 줄 레코드 |
| KIND | 오류가 발생한 입력/단계를 나타내는 분류값 |
| jsonPath | 입력 JSON 내부 위치를 나타내는 JSONPath ($ 기준) |
[ERROR] <CODE> <KIND> <LOC> - <MESSAGE>
<LOC>는 기본적으로 <file><jsonPath> 형태
devian/{buildInputJson}$.domains[1].name (예: devian/input/input_common.json$.domains[1].name)<MESSAGE>는 1줄, 줄바꿈 금지[WARN] + 동일 포맷| 필드 | 타입 | 설명 | 예시 |
|---|---|---|---|
ts | string | ISO8601 timestamp | "2026-01-25T12:34:56.789+09:00" |
level | string | "error" | "warn" | "info" | "error" |
code | string | 에러 코드 문자열 | "E_JSON_PARSE" |
kind | string | 분류 문자열 | "CONFIG_JSON" |
message | string | 한 줄 메시지 (개행 금지) | "Invalid JSON syntax" |
file | string | 입력 파일 경로 (레포 기준 상대경로) | "devian/{buildInputJson}" (예: "devian/input/input_common.json") |
jsonPath | string | JSONPath 문자열 (없으면 "$") | "$.domains[1].name" |
| 필드 | 타입 | 설명 |
|---|---|---|
hint | string | 해결 힌트 1줄 |
link | string | 관련 SSOT 문서 경로 |
context | object | 추가 컨텍스트 (가능한 값만 포함) |
cause | object | 하위 예외 요약 (name, message — 둘 다 1줄) |
domainKeydomainType ("DATA" | "PROTOCOL")linkNameprotocolNamesheetKeytableNametarget{tempDir}/log/
빌드 실행 1회당 "런(run)" 단위로 파일 분리:
build-{yyyyMMdd-HHmmss}-{pid}.ndjson
예: build-20260125-103355-18432.ndjson
level=info로 "build start / build end / summary" 레코드도 남기는 것을 권장
스택 트레이스/원문 예외를 남기고 싶으면:
{tempDir}/log/build-{...}.detail.log
E_ 접두어 고정, 대문자 스네이크| 코드 | 설명 |
|---|---|
E_JSON_READ | JSON 파일 읽기 실패 |
E_JSON_PARSE | JSON 파싱 실패 |
E_JSON_SCHEMA | JSON 스키마 검증 실패 |
E_DUPLICATE_KEY | 중복 키 |
E_INVALID_VALUE | 잘못된 값 |
E_PATH_NOT_FOUND | 경로/파일 없음 |
E_NAMESPACE_MISMATCH | 네임스페이스 불일치 |
E_PRIMARYKEY_EMPTY | primaryKey 필수인데 없음 |
| KIND | 설명 |
|---|---|
CONFIG_JSON | 설정 JSON ({buildInputJson} 등) |
PROTO_JSON | 프로토콜 JSON |
TABLE_JSON | 테이블 JSON |
XLSX | 엑셀 파일 |
CODEGEN_CS | C# 코드 생성 |
CODEGEN_TS | TypeScript 코드 생성 |
UPM_PACK | UPM 패키지 처리 |
COPY_STAGE | 파일 복사/스테이징 |
level=error 발생 시 기본 ExitCode = 1warn은 기본 ExitCode에 영향 없음 (단, 옵션으로 --warn-as-error 가능)빌드 중단이 발생한 경우, 아래 중 하나라도 위반하면 FAIL:
| 조건 | 설명 |
|---|---|
| 콘솔 표준 2줄 | 출력되지 않으면 FAIL |
| 로그 파일 | {tempDir}/log/*.ndjson 생성되지 않으면 FAIL |
| 필수 필드 | code, kind, file, jsonPath, message 중 하나라도 누락이면 FAIL |
{tempDir}/log에 NDJSON 로그 생성jsonPath가 의미 있게 기록됨:
code, file, jsonPath를 안정적으로 읽을 수 있음Note: 이 섹션은 구현 가이드이며, 정책 강제 사항이 아님
devianError 같은 payload)를 붙이는 방식 권장jsonPath는 가능하면 생성 (없으면 $)link는 가능한 한 "정본 스킬"로 연결마지막에 level=info로 1줄 요약도 남기면 CI 통계에 유용:
{"level":"info","code":"I_BUILD_SUMMARY","errors":1,"warnings":0,"durationMs":1234}
skills/devian-tools/21-build-error-reporting/SKILL.mdskills/devian-tools/20-build-domain/SKILL.mdskills/devian-core/03-ssot/SKILL.mdskills/devian-unity/20-packages/com.devian.domain.template/SKILL.md — 도메인 패키지 생성 규칙skills/devian-unity-samples/01-policy/SKILL.mdskills/devian-examples/01-policy/SKILL.mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience