pluck

Extract a single scalar field value from each Note in a Collection.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines data retrieval by allowing you to extract a single, specific field from each note within a collection, saving you from manually sifting through individual notes.

Core Features & Use Cases

  • Targeted Field Extraction: Easily pull out specific pieces of information (like URIs, titles, or custom metadata) from a set of notes.
  • Data Transformation: Prepares data for further processing by isolating key values.
  • Use Case: After searching for academic papers, use pluck to extract just the URIs of the papers into a new collection, making it easy to download them later.

Quick Start

Extract the 'metadata.uri' field from the collection named '$papers' and store it in '$urls'.

Frequently Asked Questions about pluck

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

FAQPage Schema
How do I extract a specific field from a collection of notes?

Extracting specific fields from a collection of notes requires pulling a single scalar value from each Note dictionary, such as metadata.uri or text content, into a new collection for streamlined access and further processing.

What is the best way to pull metadata URIs from structured notes?

Pulling metadata URIs from structured notes is done by targeting the metadata.uri field within each Note object, extracting the scalar values into a separate collection for downstream tasks like downloading.

Can I extract text content from notes if they are not formatted as dictionaries?

No, extracting text content requires that Notes are formatted as dictionaries and that the specified field exists within each Note. Non-dictionary structured notes are not supported for scalar field extraction.

Does field extraction work with custom fields in a note collection?

Yes, field extraction works with custom fields in a note collection as long as each Note is a dictionary and the specified custom field exists within it, allowing you to isolate any single scalar value for targeted data retrieval.

Why is my note field extraction not working when processing a collection?

Note field extraction fails when the Notes within the collection are not structured as dictionaries, or when the specified field does not exist within the Note objects being processed.