home / skills / bdambrosio / cognitive_workbench / test-json-sql-setup
This skill creates test data for JSON SQL primitives by provisioning papers and authors collections and enabling binding verification.
npx playbooks add skill bdambrosio/cognitive_workbench --skill test-json-sql-setupReview the files below or copy the command above to add this skill to your agents.
---
name: test-json-sql-setup
description: Creates test data for JSON SQL primitive tests
manual_only: true
---
# Test JSON SQL Setup
Creates two test collections for testing JSON SQL primitives:
## $papers Collection (4 items)
- Paper A: Deep Learning, 2020, 100 citations, ICML
- Paper B: Transformers, 2021, 250 citations, NeurIPS
- Paper C: GPT-4 Analysis, 2023, 50 citations, JMLR
- Paper D: Scaling Laws, 2022, 180 citations, ICML
## $authors Collection (3 items)
- Author A: Alice, MIT
- Author B: Bob, Stanford
- Author E: Eve, Berkeley (no matching paper)
## Usage
Execute this plan first, then run other test-json-sql-* plans.
Check Bindings tab to verify $papers and $authors are created.
This skill creates two small test collections used to validate JSON SQL primitives. It seeds a $papers collection with four sample papers and a $authors collection with three sample authors to support query and join tests. Run this setup before other test-json-sql-* plans to ensure consistent test data.
When executed, the plan inserts four documents into $papers and three documents into $authors. Each paper document includes title, year, citations, and venue fields; each author document includes name and affiliation. After running, check the Bindings tab to confirm both collections exist and contain the expected items.
What exact documents are created?
$papers: four documents (Deep Learning, Transformers, GPT-4 Analysis, Scaling Laws) with year, citations, and venue. $authors: three documents (Alice at MIT, Bob at Stanford, Eve at Berkeley).
Do all authors link to papers?
No. Eve has no matching paper to allow testing of outer joins and unmatched rows.