agentleFS
process-streetprocess-street/ps-skills/skills/build/data-set/SKILL.md

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".

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
  1. Distinctive:

    Create and manage Process Street Data Sets — the lookup tables that back conditional routing, role assignment, and reference data inside …

    line 10
  2. Very specific:

    Verify with listDataSetRecords — confirm count matches input

    line 68
  3. Very specific:

    Test with a sample payload — confirm the record lands via listDataSetRecords

    line 90
  4. Very specific:

    Field ID is what writes — name is what humans read: Always reference records by field_<id> in filters and writes.

    line 96
  5. Very specific:

    Lookup empty?: Check the filter encoding — & and = in values break the query string.

    line 98
  6. Distinctive:

    After any data set operation, return:

    line 106

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

ActionTool
Create a data setcreateDataSet
Read a data setgetDataSet
Update name/fieldsupdateDataSet
DeletedeleteDataSet
List recordslistDataSetRecords (paginate)
Create a recordcreateDataSetRecord
Read a recordgetDataSetRecord
Update a recordupdateDataSetRecord
Delete a recorddeleteDataSetRecord
Bulk import records (CSV)importDataSetRecords — POST /data-sets/{id}/records/import, strategy Append/Upsert/Sync
Create incoming webhookcreateDataSetIncomingWebhook
List incoming webhookslistDataSetIncomingWebhooks
Get / update / delete incoming webhookgetDataSetIncomingWebhook / updateDataSetIncomingWebhook / deleteDataSetIncomingWebhook

Standard Flows

Create + Populate a Data Set

  1. Define fields up front — name + type for each column. Common types: Text, Number, Date, Email, Url, Members
  2. createDataSet — capture the returned dataSetId and the field.id for each column
  3. For each row of source data, call createDataSetRecord with { "field_<id>": value, ... }
  4. 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

  1. Identify the workflow form field that will trigger the lookup (the "key" field, e.g. County)
  2. Identify the data set + which field stores the matching key
  3. 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 } }
    );
  4. Take the first matching record and write the lookup values back into the run via POST /workflow-runs/{runId}/form-fields
  5. Configure the Code task via ps-edit / the CLI task-config --type Code for the full code task scaffold

Set Up an Incoming Webhook

  1. createDataSetIncomingWebhook — returns a URL the external system POSTs to
  2. Share the URL with the source system (Zapier, PA, etc.)
  3. 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 listUsers first.
  • Pagination — listDataSetRecords returns 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 duplicates
  • ps-edit / the CLI task-config --type Code — for the code task that actually queries the data set inside a workflow
  • ps-build — when wiring a lookup field into a fresh workflow

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.