wms-csv-handler

Read and write KH_RnD database and user CSV files with atomic updates in Node.js.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/iredrion-img/kh-rnd-wms --skill wms-csv-handler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wms-csv-handler
Source: https://github.com/iredrion-img/kh-rnd-wms/tree/main/.agents/skills/wms-csv-handler
Command: npx skills add https://github.com/iredrion-img/kh-rnd-wms --skill wms-csv-handler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

KH_RnD 프로젝트의 데이터베이스(database_2026.csv) 및 사용자(users.csv) 파일을 읽고 쓰는 백엔드 로직 작성 스킬로, CSV 파일의 안전한 접근과 관리의 표준화를 돕습니다.

Core Features & Use Cases

  • Atomicity 및 안전한 쓰기: 임시 파일 사용 및 atomic rename으로 데이터 손실 방지.
  • 읽기 안정성: 빈 파일, BOM, 손상된 포맷에 대비한 견고한 파서.
  • 스케일링 및 백업: 다중 사용자 동시 접근 대응 및 주기적 백업 로직 점검.

Quick Start

Review the backend CSV handling flow by examining the read and write logic for database_2026.csv and users.csv.

Frequently Asked Questions about wms-csv-handler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely write CSV files in Node.js to prevent data corruption during concurrent backend access?

To safely write CSV files in Node.js, use atomic write patterns by writing to a temporary file first and then performing an atomic rename. This prevents data loss and corruption during concurrent backend access by ensuring the original file remains intact until the new data is fully written and verified.

Why does my CSV parser fail to read files with a BOM or empty lines in Node.js?

Your CSV parser fails because standard parsers often choke on Byte Order Marks (BOM) and empty lines. A resilient CSV parser must explicitly detect and strip the BOM character and skip malformed or empty rows to ensure stable read operations across corrupted or differently encoded file formats.

What is the best way to resolve file paths for database CSVs across different server environments?

The best way to resolve file paths for database CSVs across server environments is using dynamic path resolution with path.join(__dirname, ...). This ensures the backend correctly locates database and user files regardless of the working directory, preventing path resolution errors during deployment.

Can I use atomic rename operations to handle user data updates in a Node.js backend?

Yes, you can use atomic rename operations to handle user data updates in a Node.js backend. Writing updates to a temporary file and renaming it over the original users.csv file ensures data integrity, preventing partial writes from breaking concurrent data management workflows.

What are the limitations of using flat CSV files for backend data management instead of a database?

Limitations of using flat CSV files for backend data management include handling concurrent multi-user access safely and managing periodic backups. While atomic writes and resilient parsing mitigate data corruption, scaling requires careful server route design and backup logic to avoid performance bottlenecks.