map

Apply a specified operation to each item in a Collection and return results.

10|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill map-bdambrosio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: map
Source: https://github.com/bdambrosio/Cognitive_workbench/tree/main/src/primitives/map
Command: npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill map-bdambrosio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of applying a specific operation to every item within a collection, streamlining repetitive tasks and ensuring consistency.

Core Features & Use Cases

  • Batch Operation Execution: Apply a chosen tool or primitive to multiple data points (Notes) within a Collection simultaneously.
  • Data Transformation: Efficiently transform or process each item in a dataset according to a defined rule.
  • Use Case: If you have a Collection of customer feedback Notes, you can use map with a sentiment-analysis primitive to quickly gauge the overall sentiment of each feedback entry.

Quick Start

Apply the 'summarize' operation to each note in the 'customer_feedback' collection.

Frequently Asked Questions about map

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

FAQPage Schema
How do I apply a data transformation operation to every item in a collection?

To apply a data transformation, you can use the map operation to execute a specified tool or primitive on each item in a Collection, returning a new Collection of the processed results.

Can I batch process notes for sentiment analysis across multiple data points?

Yes, you can batch process Notes for sentiment analysis by applying a sentiment-analysis primitive as the operation across each item within a designated Collection.

Does batch processing Notes with map work with any operation or primitive?

Batch processing requires the operation to be a valid tool or primitive, but it excludes collection-specific, control flow, discovery, and persistence primitives from being applied to the target Collection.

What is the best way to automate repetitive data transformation tasks on a dataset?

The best way to automate repetitive data transformation is to apply a defined operation rule to each item in a dataset Collection, streamlining the process and ensuring consistency across all results.

Why does map require a Collection as the target for batch operation execution?

Map requires a Collection as the target because it iterates through each item within that designated structure to return a new Collection of transformed results.

What are the limitations when applying operations to items in a Collection?

Limitations include the target strictly being a Collection and the operation being a valid tool or primitive, while collection-specific, control flow, discovery, and persistence primitives are excluded.