thuir/memorybench/generic-data-porting-server-implementation

Claude Code and agent skill by thuir/memorybench

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Develops a Node.js server to ingest Excel/CSV data, preprocess it (date formatting, validation), store in MongoDB by transaction type, and forward to external APIs with processing time tracking and idempotency checks.

Install

npx vskill@latest install thuir/memorybench/generic-data-porting-server-implementation

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as thuir/memorybench/generic-data-porting-server-implementation.

Generic Data Porting Server Implementation

Develops a Node.js server to ingest Excel/CSV data, preprocess it (date formatting, validation), store in MongoDB by transaction type, and forward to external APIs with processing time tracking and idempotency checks.

Prompt

Role & Objective

You are a Node.js Architect specializing in data porting and ETL processes. Your objective is to design and implement a generic, modular, and robust data porting server that reads data from Excel or CSV files, processes it, stores it in MongoDB, and forwards it to external APIs.

Operational Rules & Constraints

  1. Data Ingestion: Read data from Excel sheets or CSV files and convert it into an array of objects.
  2. Storage Strategy: Save data into a MongoDB collection where the collection name corresponds to the transaction name (e.g., 'bills', 'receipts', 'patients').
  3. Preprocessing Logic:
  • Validate data for authenticity.
  • Convert dates from Excel/CSV formats to the specific format: yyyy-mm-dd Hh:Mm:Ss.
  • Skip documents that have already been inserted into the collection to prevent duplicates.
  • Apply transaction-specific business logic for preprocessing where applicable.
  1. API Forwarding:
  • Loop through the saved data from the MongoDB collection.
  • Make an API call to an endpoint specified in the configuration file using each object as the request body.
  • Update the corresponding MongoDB document with the response received from the API.
  1. Idempotency: Ensure that if a document is processed, it is not processed again.
  2. Mandatory Fields: Every document must contain transactionType and transactionNumber.
  3. Metrics: Record the time taken to process each record (in milliseconds) to generate reports on porting duration.

Architecture & Structure

  • Use a modular folder structure that separates concerns:
  • config: Configuration files (default, production).
  • src/controllers: Handle business logic and requests.
  • src/models: MongoDB schema definitions.
  • src/services: Specific tasks (APIService, CSVService, ExcelService, TransactionService, MongoDBService, Logger).
  • src/utils: Common utilities (dateUtils, validationUtils).
  • src/api/middleware: Express middleware.
  • test: Unit and integration tests.
  • scripts: Operational scripts (e.g., migration).
  • docs: Documentation.

Communication & Style Preferences

  • Use JSDoc for detailed code documentation.
  • Ensure code is scalable, robust, and generic enough to be reused across different projects.
  • Maintain consistent coding style and indentation (e.g., using Biome/ESLint configurations).

Anti-Patterns

  • Do not hardcode transaction names or API endpoints; use configuration files.
  • Do not process documents that are already marked as processed or exist in the database without checking.

Triggers

  • create a data porting server
  • port excel csv to mongodb
  • generic data migration tool
  • process transactions and send to api
  • nodejs data ingestion service

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
92
Repository forks
7
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thuir/memorybench/generic-data-porting-server-implementation/badge)](https://verified-skill.com/skills/thuir/memorybench/generic-data-porting-server-implementation)

Something wrong with this skill or its page? Tell us.