data-set
Skill1 starsChanged 5 months agoMITView on GitHub
Create and manage Process Street Data Sets — the lookup tables backing conditional routing, role assignment, and reference data. CRUD on sets + records (incl. bulk CSV import), wire workflow lookup fields, and create dataset incoming webhooks. Use when someone says "create a data set", "create data set", "add records to [dataset]", "wire a lookup field", "data set lookup", "data set webhook", "update data set record", or "data set api".
In this repository12 other files it gives its agents.
- demo-buildSkill
- chrome-recording-to-workflowSkill
- logic-rulesSkill
- ps-auditSkill
- ps-buildSkill
- ps-editSkill
- ps-organizeSkill
- workflow-designSkill
- integration-scopingSkill
- ps-searchSkill
- ps-best-practicesSkill
- ps-helpSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Create and manage Process Street Data Sets — the lookup tables that back conditional routing, role assignment, and reference data inside …
- Very specific: line 68
Verify with listDataSetRecords — confirm count matches input
- Very specific: line 90
Test with a sample payload — confirm the record lands via listDataSetRecords
- Very specific: line 96
Field ID is what writes — name is what humans read: Always reference records by field_<id> in filters and writes.
- Very specific: line 98
Lookup empty?: Check the filter encoding — & and = in values break the query string.
- Distinctive: line 106
After any data set operation, return:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PS Data Sets & Lookups Skill
Purpose
Create and manage Process Street Data Sets — the lookup tables that back conditional routing, role assignment, and reference data inside workflows. Handles CRUD on data sets + records, wires lookup fields into workflows, and creates dataset incoming webhooks.
When to Use
- Creating a new lookup table (e.g. county → inspector, plan → SLA tier)
- Bulk-adding records to an existing data set
- Wiring a workflow form field to a data set lookup
- Setting up an incoming webhook so an external system can update records
- Debugging a lookup that's returning empty / wrong records
Reference
- the API reference (
reference/api-reference.md) — endpoints + filter syntax - Example pattern: a county→inspector lookup table backing conditional routing
Data Set Anatomy
A Data Set has:
- Fields — columns (each with
id,name,type) - Records — rows (each record is
{ field_<id>: value, ... }) - Incoming webhooks — optional; let external systems push record upserts
- Linked widgets — workflow form fields can lookup against a data set
Tool Map
| Action | Tool |
| Create a data set | createDataSet |
| Read a data set | getDataSet |
| Update name/fields | updateDataSet |
| Delete | deleteDataSet |
| List records | listDataSetRecords (paginate) |
| Create a record | createDataSetRecord |
| Read a record | getDataSetRecord |
| Update a record | updateDataSetRecord |
| Delete a record | deleteDataSetRecord |
| Bulk import records (CSV) | importDataSetRecords — POST /data-sets/{id}/records/import, strategy Append/Upsert/Sync |
| Create incoming webhook | createDataSetIncomingWebhook |
| List incoming webhooks | listDataSetIncomingWebhooks |
| Get / update / delete incoming webhook | getDataSetIncomingWebhook / updateDataSetIncomingWebhook / deleteDataSetIncomingWebhook |
Standard Flows
Create + Populate a Data Set
- Define fields up front — name + type for each column. Common types:
Text,Number,Date,Email,Url,Members createDataSet— capture the returneddataSetIdand thefield.idfor each column- For each row of source data, call
createDataSetRecordwith{ "field_<id>": value, ... } - Verify with
listDataSetRecords— confirm count matches input
For large loads, use bulk CSV import — importDataSetRecords (POST /data-sets/{id}/records/import, multipart CSV) with strategy Append / Upsert / Sync (Upsert/Sync need a key column). (verified 2026-06-16 — bulk record creation IS supported now; per-record createDataSetRecord is only needed for small/incremental adds.)
Wire a Lookup Field to a Workflow
- Identify the workflow form field that will trigger the lookup (the "key" field, e.g. County)
- Identify the data set + which field stores the matching key
- In the code task that fires after the key field, query the data set:
const res = await fetch( `${API_BASE}/data-sets/${dataSetId}/records?filter[field_${keyFieldId}]=${encodeURIComponent(value)}`, { headers: { "X-API-KEY": apiKey } } ); - Take the first matching record and write the lookup values back into the run via
POST /workflow-runs/{runId}/form-fields - Configure the Code task via
ps-edit/ the CLItask-config --type Codefor the full code task scaffold
Set Up an Incoming Webhook
createDataSetIncomingWebhook— returns a URL the external system POSTs to- Share the URL with the source system (Zapier, PA, etc.)
- Test with a sample payload — confirm the record lands via
listDataSetRecords
Gotchas
- Field ID is what writes — name is what humans read. Always reference records by
field_<id>in filters and writes. - Update is a partial patch by default — but field deletes require explicit removal via
updateDataSet, not just omitting in a write. - Lookup empty? Check the filter encoding —
&and=in values break the query string. URL-encode aggressively. - Member field — value is a member id (uuid), not an email. Resolve via
listUsersfirst. - Pagination —
listDataSetRecordsreturns a cursor; loop until the cursor is null/missing. Don't assume one page is everything.
Output
After any data set operation, return:
dataSetId(and incoming webhook URL if created)- Record count after the change
- The field map (
field_<id>→ human name) — needed for downstream code tasks - Any warnings (encoding fixes, missing fields, etc.)
Related Skills
ps-search— find existing data sets first to avoid duplicatesps-edit/ the CLItask-config --type Code— for the code task that actually queries the data set inside a workflowps-build— when wiring a lookup field into a fresh workflow
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

