.claude/skills/equipment-management/SKILL.md
Equipment Management System development guide based on UL-QP-18 laboratory equipment management procedures. Use this skill whenever implementing features related to: equipment CRUD, calibration records/plans/approval workflows, checkout/rental/import flows, non-conformance management, disposal requests, inspection (중간점검/자체점검), calibration factors, software registry (UL-QP-18-07), management number system, role-based access control (4 roles), or approval processes (1-step/2-step/3-step). Also use when working on equipment history cards (시험설비이력카드 UL-QP-18-02), frontend UI with Next.js 16 App Router, or NextAuth token management. Trigger on keywords: 장비, equipment, calibration, 교정, checkout, 반출, non-conformance, 부적합, disposal, 폐기, approval, 승인.
npx skillsauth add junnv93/equipment_management_system equipment-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
기준 문서: UL-QP-18 장비 관리 절차서 (개정번호 15, 2026.01.14)
equipment_management (포트 5432). 테스트 DB 분리 제안 금지. 컨테이너 접근은 docker compose exec postgres 사용.| 역할 코드 | 절차서 역할 | 주요 권한 |
|---|---|---|
| test_engineer | 시험실무자 | 장비 운영/관리, 점검 실시, 이력카드 작성, 반출입 확인서 작성 |
| technical_manager | 기술책임자 | 교정계획 수립, 점검 결과 확인, 반출입 승인, 보정인자 관리 |
| quality_manager | 품질책임자 | 교정계획 검토 (대부분 읽기 전용) |
| lab_manager | 시험소장 | 교정계획 승인, 장비 폐기 승인, 시험소 전체 관리 (모든 권한) |
상세 역할/권한: references/roles.md
XXX – X YYYY
│ │ └── 일련번호 (4자리, 0001~9999)
│ └───── 분류코드 (E/R/W/S/A/P)
└────────── 시험소코드 (SUW/UIW/PYT)
시험소코드: SUW(수원), UIW(의왕), PYT(평택)
| 코드 | 분류 (= 팀 이름) | 사이트 | |---|---|---| | E | FCC EMC/RF | 수원 | | R | General EMC | 수원 | | W | General RF | 의왕 | | S | SAR | 수원 | | A | Automotive EMC | 수원, 평택 | | P | Software Program | - |
상세 관리번호 및 위치코드: references/management-numbers.md
| 용어 | 정의 | |---|---| | 장비(Equipment) | 시험소에서 시험에 사용하는 설비와 장비 통칭 | | 교정(Calibration) | 외부/내부 교정기관을 통한 장비 정밀도 검증 | | 중간점검 | 교정 신뢰성 확인을 위한 교정 주기 사이 점검 | | 자체점검 | 비교정 대상 장비에 대한 주기적 점검 | | 소급성(Traceability) | 국가/국제 표준과 연결되는 측정 결과 특성 | | 공용장비 | 안전인증 시험팀에서 관리, EMC-W 분야 시험에 사용 가능한 장비 |
상세 용어: references/terminology.md
시험실무자 요청 → pending_approval → 기술책임자 승인 → approved
↘ 반려 → rejected
예외: 시험소 관리자(lab_manager)는 자체 승인 가능
시험실무자 등록: pending_approval → 기술책임자/시험소장 승인
상세 점검/교정: references/inspection-calibration.md
모든 목적 (교정/수리/시험소간 대여):
pending → [기술책임자 승인] → approved → checked_out → returned → return_approved
상세 승인 프로세스: references/approval-processes.md
[이상 발견] → open (장비: non_conforming)
→ analyzing (원인 분석)
→ corrected (조치 완료)
→ [기술책임자 승인] → closed (장비: available)
필수 조치: 사용중지 식별표 부착, 기술책임자 즉시 보고, 영향도 평가, 이력카드 기록.
packages/schemas/src/enums.ts)| 상태 | 의미 | 표시 규칙 |
|---|---|---|
| available | 사용 가능 | 기본 배지 |
| in_use | 사용 중 | 기본 배지 |
| checked_out | 반출 중 | purpose 필드로 구분 |
| calibration_scheduled | 교정 예정 | "사용 가능" + D-day 배지 |
| calibration_overdue | 교정 기한 초과 | "부적합" 빨간 배지 |
| non_conforming | 부적합 | 빨간 배지 |
| spare | 여분 | 기본 배지 |
| retired | 폐기 | 기본 배지 |
| pending_disposal | 폐기 대기 | 기본 배지 |
| disposed | 폐기 완료 | 기본 배지 |
| temporary | 임시 | 기본 배지 |
| inactive | 비활성 | 기본 배지 |
| 양식 | 양식번호 | 보존연한 | |---|---|---| | 시험설비 관리대장 | UL-QP-18-01 | 영구 | | 시험설비 이력카드 | UL-QP-18-02 | 영구 | | 중간 점검표 | UL-QP-18-03 | 5년 | | 자체 점검표 | UL-QP-18-05 | 5년 | | 장비 반·출입 확인서 | UL-QP-18-06 | 5년 | | 소프트웨어 관리대장 | UL-QP-18-07 | 5년 | | 보정인자 관리대장 | UL-QP-18-11 | 5년 |
장비 목록 필터는 공유 유틸리티 (equipment-filter-utils.ts)를 사용하여 클라이언트와 서버 간 일관성을 유지합니다.
equipment-filter-utils.ts의 공유 함수 사용equipment-filter-utils.ts 먼저 수정| Azure AD 그룹 | 팀 이름 (분류) |
|---|---|
| LST.SUW.RF | FCC EMC/RF (E) |
| LST.SUW.EMC | General EMC (R) |
| LST.SUW.SAR | SAR (S) |
| LST.SUW.Automotive | Automotive EMC (A) |
| LST.UIW.RF | General RF (W) |
| LST.PYT.Automotive | Automotive EMC (A) |
GET /[resource] 목록 조회 (필터 지원)
GET /[resource]/:uuid 상세 조회
POST /[resource] 생성 (pending_approval 상태)
PATCH /[resource]/:uuid 수정 (draft 상태만)
DELETE /[resource]/:uuid 삭제 (draft 상태만)
PATCH /[resource]/:uuid/approve 승인
PATCH /[resource]/:uuid/reject 반려 (reason 필수)
DELETE /[resource]/:uuid/cancel 취소 (pending 상태만)
/nextjs-16/docs/development/장비관리절차서.md/docs/development/API_STANDARDS.md/docs/development/AUTH_ARCHITECTURE.md/docs/development/DEV_SETUP.mdtesting
Verifies Zod validation pattern compliance — ZodValidationPipe usage (no class-validator), versionedSchema inclusion in state-change DTOs, controller pipe application, query DTO consistency. Run after adding/modifying DTOs or controller endpoints.
testing
Verifies cross-feature workflow E2E test coverage against critical-workflows.md checklist. Checks WF-01~WF-35 coverage, step completeness, role correctness, side-effect verification, and status transition assertions. Run after adding workflow tests or before PR.
testing
SSOT(Single Source of Truth) 임포트 소스를 검증합니다. 타입/enum/상수가 올바른 패키지에서 임포트되는지 확인. 타입/enum 추가/수정 후 사용.
development
Verifies SQL safety — LIKE wildcard escaping, N+1 query pattern detection, COUNT(DISTINCT) for fan-out JOINs, RBAC INNER JOIN enforcement. Run after adding/modifying search or list API endpoints.