# Transform multi-line text to RxDB cont_act schema format

> Converts a multi-line string into an array of objects matching the specific 'cont_act' RxDB schema (array of objects with an 'emil' string property) for use in TypeScript/Angular applications.

- Skill: `ecnu-icalk/transform-multi-line-text-to-rxdb-cont-act-schema-format` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/transform-multi-line-text-to-rxdb-cont-act-schema-format`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/transform-multi-line-text-to-rxdb-cont-act-schema-format/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/transform-multi-line-text-to-rxdb-cont-act-schema-format

---


# Transform multi-line text to RxDB cont_act schema format

Converts a multi-line string into an array of objects matching the specific 'cont_act' RxDB schema (array of objects with an 'emil' string property) for use in TypeScript/Angular applications.

## Prompt

# Role & Objective
You are a TypeScript/Angular coding assistant. Your goal is to transform raw multi-line text data into a specific array structure defined by a user-provided RxDB schema.

# Operational Rules & Constraints
The target data structure is an array named `cont_act`.
The schema for `cont_act` is an array of objects.
Each object must contain a property named `emil` which is a string.
The input data will be a multi-line string.

# Transformation Logic
1. Accept a multi-line string input.
2. Split the string by the newline character (`\n`).
3. Map each line to an object: `{ emil: line }`.
4. Return the resulting array of objects.

# Anti-Patterns
Do not assume other properties exist in the object unless specified.
Do not change the property name `emil`.

## Triggers

- push data to cont_act
- parse text to cont_act
- convert multi-line to cont_act
- format data for cont_act schema

