tables-trace

Clay Tables — locate a record by identifier and snapshot its state: used to determine which tables contain a given record, show the status of each cell, and produce a snapshot. Intended for queries like “trace {id},” “where is {id}?,” “what enrichment actions ran on this lead?,” or “is this record completed?”.

Last repository push
GitHub Stars
158
Forks
27
Issues / PRs
10

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "tables-trace" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-099b49d594064bef968404819ff3a96eaa33cdb52af055e31c718839cb562f49. Verify the upstream source and version against https://github.com/clay-run/agent-plugins before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Clay Tables — locate a record by identifier and snapshot its state: used to determine which tables contain a given record, show the status of each cell, and produce a snapshot. Intended for queries like “trace {id},” “where is {id}?,” “what enrichment actions ran on this lead?,” or “is this record completed?”.

0 Downloads

Introduction source: third_party · clay-run · 0.0.1 Reference

SkillPi interpretation

Tasks
Clay tables — locate a record by identifier and snapshot its state: which table(s) hold it and each cell''s status. Use when the user has an id and asks "trace {id}", "where is {id}?", "what enrichments ran for this lead?", or "is this record done?".
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: tables-trace
description: 'Clay tables — locate a record by identifier and snapshot its state: which table(s) hold it and each cell''s status. Use when the user has an id and asks "trace {id}", "where is {id}?", "what enrichments ran for this lead?", or "is this record done?".'
allowed-tools: Bash(clay *), Bash(jq *), Read

Trace a record

Use when: you have an identifier and want to find the record and see its overall state — "trace 12345", "where is jane@acme.com?", "what enrichments ran for this lead?", "is this record done?". This is a locate + snapshot: which table(s) hold it, and each cell's status. It does not explain why a cell holds what it holds — that's /tables-value-trace.

Treat each in-scope table independently. Tables may not share identifiers or have any relationship; presence (or absence) in one says nothing about another.

1. Settle scope

Resolve which table(s) to look in as in the tables entry-point skill ("Finding a table"), or pass a t_... id directly. {id} is whatever the user gave (email, HubSpot ID, row id, etc.).

If {id} is already a r_... row id and the table is known, skip discovery and go straight to get the row (step 4).

2. Per table: find the identifier's column and archive linkage

For each in-scope table:

  • clay tables columns list <tableId> — find the column that holds this kind of identifier by matching names (Email for an email, HSID/HubSpot ID for a HubSpot id, etc.). Cache the f_id → name map and note column types. The match column must be basic to value-filter on it. If several columns could match, or none does, show the columns and ask which to search.
  • clay tables get <tableId> — read archive. If archive is non-null, resolve archive.searchableFieldFormula (a {{f_xxx}}) to its column via the columns list. Plan to search the archive only if {id} is the value of that indexed column; otherwise the archive isn't searchable by this identifier.

3. Search for the record

If the active table is queryEnabled, locate the record with tables query — its server-side filter is more forgiving (contains, case-insensitive matching) and scales, so it's the primary tool when query is on. The result carries each matching row's full cell content — value, fields, status, and any error message — so it doubles as the state snapshot; no follow-up call needed:

echo '{"tables":[{"id":"t_abc123"}],"filter":{"field":"f_abc123","op":"contains","value":"jane@acme.com"}}' | clay tables query --query - | jq .

Otherwise, use clay tables rows list with a value filter on the identifier column (shape in the command's --help):

clay tables rows list <tableId> --filter f_abc123="jane@acme.com" | jq .

rows list --filter is exact match, case-sensitive. If it comes back empty ({ "data": [] }), retry once with a single predictable variant (lowercase for emails/domains, trim whitespace, or the casing a row sample shows), then stop guessing — say it wasn't found in this table and ask the user to confirm exact spelling/casing.

Always locate by identifier, never by position: the order rows list returns rows in is not the order they appear in the Clay app, so "the 3rd row" in the output tells you nothing about what the user sees on screen.

Where the archive applies (step 2), search it with rows list — archives are never query-enabled, so tables query is not an option; they're searchable only on the fixed f_archive_index column. Filter it by its indexed value (single filter; single capped page, no cursor; values over 255 characters are rejected — pass the first 255):

clay tables rows list <archiveTableId> --filter f_archive_index="jane@acme.com" | jq .

Respect the rate limits — batch in small groups, back off on exit 4.

Capture each cell's status (and value or error) for the snapshot. A tables query result already includes fields and full error messages. On the rows list path, action cells show fields: null and abbreviated error labels — get the full detail in step 4. (rows list / rows get also carry the row's id and updatedAt, which tables query does not.)

4. Pull full state where it matters

If you located via tables query, you already have the full snapshot from step 3 — skip this. On the rows list path, follow up with clay tables rows get when:

  • any cell is error — you need the full error message (list only carries an abbreviated label), or
  • the user asked for actual values / enrichment output — fields (structured action output) is only populated on rows get.
clay tables rows get <tableId> <rowId> | jq '.cells | to_entries | map({col: .key, status: .value.status, value: .value.value, err: .value.error})'

Map col ids to names from step 2. (err is the message string, present only on error cells.)

5. Report — per table, independent findings

Lead with where it is and its overall state; list action/derived columns with status (and value or error where useful). Label each table active vs archive. Group statuses so the snapshot reads at a glance.

The r_ row id is an internal handle, not a report field — you found the record by its business identifier, so lead with that; only show a r_ id when you already have one (the rows list / rows get path). updatedAt isn't in tables query output either, so fetch it with a single rows list --filter on the identifier only when freshness matters — the active-vs-archive comparison below, or the user asking how recent the data is. Otherwise omit it.

Lead Enrichment — archive (updated 2026-04-10):
  Find Email     success  → "jane@acme.com"
  Enrich Person  success  → {name, title, company}
  Push HubSpot   success

Account Match — active (updated 2026-04-12):
  Match Account  queued
  Map Fields     empty
  • Found in both active and archive → likely re-processed; compare updatedAt and say which is newer.
  • Not found in an in-scope table → say so plainly; it may live in a table you didn't search, or the identifier may be off. Don't treat absence as proof of anything about another table.
  • An error or surprising/empty value the user wants explained → that's where this skill ends and /tables-value-trace begins.

Hand-offs

  • Explain why a specific cell errored, is empty, didn't run, or holds the value it does → /tables-value-trace.
  • Table-wide failures rather than one record → /tables-error-sweep.
  • "It's not here and nothing's being added" → /tables-capacity.

Version history

  1. clay-cli-v1.22.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.22.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay ad-syncs trigger <adSyncId>` starts an export of an ad sync’s audience to its destinations: a draft’s first trigger starts the sync, later triggers run it again, and a paused sync resumes. - When a command fails because of a plan limit, the agent shows the upgrade link from the error and offers a way to continue without the gated feature. - Various bug fixes and stability improvements.

  2. clay-cli-v1.21.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.21.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay knowledge-hub skills create` saves agent skills to the workspace and resolves duplicate names without overwriting existing skills. - Various bug fixes and stability improvements.

  3. clay-cli-v1.20.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.20.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows runs bulk pause`, `resume`, and `stop` control many runs; `clay workflows triggers list` lists assignments and schedules, and `update --resume-paused-runs` resumes paused runs with a trigger. - `clay workflows groups publish-as-function` creates reusable functions; the Workflows and Enhanced Match skills guide Classify routing and hashed-email enrichment, and `clay workflows runs get` shows waterfall provider names. - `clay audiences activities` reads and summarizes record activities, retrieves Gong transcripts, and searches call content; `clay audiences records get` includes related-record references. - `clay searches query-mode reference --sections` retrieves selected reference sections. - Various bug fixes and stability improvements.

  4. clay-cli-v1.19.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.19.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows nodes insert --help` describes the Classify step: a Use AI step that sorts each record into one of a fixed set of categories with GPT 6 Luna or Jev, ready to branch on the chosen category. - `clay ad-syncs destinations delete` removes a destination from a paused or failed ad sync, not only a draft. - `clay searches preview` output includes `preview.isCurrent`, which says whether the stored preview still matches the search's current configuration. - Various bug fixes and stability improvements.

  5. clay-cli-v1.18.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.18.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows runs steps` accepts `--omit-payloads` to list steps without their input and output data, and `--step-ids s1,s2` to fetch selected steps using comma-separated IDs, up to 50 per request. - Various bug fixes and stability improvements.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决用户在多表中定位记录并快照状态的明确痛点,适用于数据追踪、增强操作检查等高频场景
  • 功能闭环完整,提供端到端解决方案
Trigger Precision95/100

Highlights

  • 触发词覆盖多种自然语言变体(trace {id}、where is {id}?、what enrichments ran、is this record done?),边界清晰
Structure and Standards95/100

Highlights

  • Phase 划分清晰(Settle scope → Per table → Search → Pull full state → Report),步骤完整
  • 包含端到端示例和出口条件,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确(clay tables 系列命令),参数使用正确
  • 覆盖主要异常场景(空结果重试、大小写敏感、archive 限制、rate limits)
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.