bdambrosio

test-json-sql-pluck

Tests pluck primitive (SELECT single field)

bdambrosio 10 Updated 7mo ago

Resources

1
GitHub

Install

npx skillscat add bdambrosio/cognitive-workbench/test-json-sql-pluck

Install via the SkillsCat registry.

About this skill

We need to produce a 2-3 sentence plain-text summary, objective, factual, no marketing, no superlatives, no calls to action. At most 60 words. Summarize skill: tests pluck primitive (SELECT single field). It creates test data internally, creates $papers collection (4 papers with id, title, year, citations, venue), plucks title field, expects $titles collection with 4 items each containing just title string. Problem it solves: verifies that pluck operation works correctly, ensures ability to extract single field from collection.

SKILL.md

Test Pluck Primitive

Self-contained: Creates test data internally

Input: Creates $papers collection (4 papers with id, title, year, citations, venue)

Operation: Pluck title field from each paper

Expected Output: $titles collection with 4 items, each containing just the title string