CocoIndex Claude Code skill enables developers to build data transformation pipelines, create custom functions, and operate flows via CLI or API using the CocoIndex library. Ideal for operations teams handling data processing tasks, it integrates with Claude agents to automate workflows and streamline data operations.
git clone https://github.com/cocoindex-io/cocoindex-claude.gitCocoIndex Claude Code skill enables developers to build data transformation pipelines, create custom functions, and operate flows via CLI or API using the CocoIndex library. Ideal for operations teams handling data processing tasks, it integrates with Claude agents to automate workflows and streamline data operations.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/cocoindex-io/cocoindex-claudeCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to create a data transformation pipeline using the CocoIndex library. The pipeline should [DESCRIBE TRANSFORMATION]. The input data is in [INPUT FORMAT] and the output should be in [OUTPUT FORMAT]. Can you generate the necessary code and explain how to set up the pipeline?
To create a data transformation pipeline using the CocoIndex library, we'll need to define a series of steps to convert your input data from CSV format to JSON format. Here's a sample code snippet to get you started:
```python
import cocoindex as ci
# Define the transformation steps
pipeline = ci.Pipeline()
# Step 1: Read the input CSV file
pipeline.add_step(ci.ReadCSV('input.csv'))
# Step 2: Transform the data
pipeline.add_step(ci.Transform(lambda row: {
'id': row['id'],
'name': row['name'],
'value': float(row['value'])
}))
# Step 3: Write the output JSON file
pipeline.add_step(ci.WriteJSON('output.json'))
# Execute the pipeline
pipeline.execute()
```
To set up the pipeline, you'll need to install the CocoIndex library using pip:
```bash
pip install cocoindex
```
Once installed, save the code snippet above in a Python file (e.g., `pipeline.py`) and run it using the command line:
```bash
python pipeline.py
```
This will create a data transformation pipeline that reads the input CSV file, transforms the data, and writes the output JSON file.Map professional relationships worldwide
Mobile wallet for payments
AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power