asana-api
Read and manage Asana tasks, projects, sections, comments, and workspaces. Use this whenever the user wants to list or search…
Query, read, create, update, and describe Salesforce records — Accounts, Contacts, Opportunities, Leads, Cases, and custom objects. Use this whenever the user wants to look up a Salesforce record, run a SOQL query, update an Opportunity, check an object's fields, or asks "what's
$ npx -y skills add anthropics/claude-tag-plugins --skill salesforce-api --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/salesforce-apiContext preview
The summary Claude sees to decide when to auto-load this skill.
Query, read, create, update, and describe Salesforce records — Accounts, Contacts, Opportunities, Leads, Cases, and custom objects. Use this whenever the user wants to look up a Salesforce record, run a SOQL query, update an Opportunity, check an object's fields, or asks "what's
name: salesforce-api description: Query, read, create, update, and describe Salesforce records — Accounts, Contacts, Opportunities, Leads, Cases, and custom objects. Use this whenever the user wants to look up a Salesforce record, run a SOQL query, update an Opportunity, check an object's fields, or asks "what's in Salesforce" — even if they don't say "API". Also use it for any URL under *.salesforce.com / *.lightning.force.com or a mention of a Salesforce record ID or SOQL. Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.
In Salesforce, every org has its own **instance URL** (its My Domain), and the API is versioned in the path:
https://<your-org>.my.salesforce.com/services/data/vXX.0/...
**Key facts that bite:**
`if type == "array" then . else <projection> end` or the error body crashes the filter and you never see `errorCode`.
parent paths and child subqueries).
`createable`/`updateable` flags. Read it before guessing field names.
Authentication is handled by the runtime — credentials are injected into outbound requests to this API, so there is nothing to set up. Do not try to create, mint, refresh, or validate tokens or keys. Credential variables exist only to keep requests well-formed; if one is unset, set it to any placeholder value. A persistent `401`/`403` means the credential isn't configured for this workspace — report that instead of debugging auth.
The **instance URL** must be real — every org has its own and it's part of every request path:
export SALESFORCE_ACCESS_TOKEN="placeholder" # injected by the runtime; any value works
export SALESFORCE_INSTANCE_URL="https://yourorg.my.salesforce.com"
export SF_API="${SALESFORCE_INSTANCE_URL}/services/data/v66.0"**Sanity check** — confirm the instance URL is right and the workspace is wired up:
curl -sS "${SF_API}/" -H "Authorization: Bearer ${SALESFORCE_ACCESS_TOKEN}" | jq .
# Returns a map of available API resources on success.For brevity the recipes below use a helper. Define it once, or copy the `-H` flag onto each `curl`:
salesforce_api() { curl -sS "$@" -H "Authorization: Bearer ${SALESFORCE_ACCESS_TOKEN}" -H "Content-Type: application/json"; }Run SOQL through the bundled script (path is relative to this skill's directory): it submits the query, follows `nextRecordsUrl` through every page, surfaces the array-shaped error body, strips the per-record `attributes` envelope every record carries, and flattens nested parent-relationship objects to dotted-key columns (`Account.Name`).
scripts/sf_query.sh \ "SELECT Id, Name, Amount, StageName, Account.Name FROM Opportunity WHERE CloseDate = THIS_QUARTER ORDER BY Amount DESC" \ --max-rows 0
`SALESFORCE_ACCESS_TOKEN` above; `--instance-url` and `--api-version` override. Full SOQL syntax (parent paths, child subqueries, date literals, escaping): `references/api.md`, section SOQL.
sets the `Sforce-Query-Options` page size; `--json` emits one JSON object per row instead of TSV with a header. `totalSize` and row counts go to stderr.
If the script errors, read it — it's plain `curl` + `jq` — and debug against `references/api.md`. SOSL search, sObject writes, Describe, Composite, and Bulk API 2.0 are separate endpoints (operations below and `references/api.md`).
`salesforce_api -G "${SF_API}/search" --data-urlencode "q=FIND {Acme} IN NAME FIELDS RETURNING Account(Id, Name), Contact(Id, Name, Email)"` → results under `.searchRecords` (`-G` keeps `--data-urlencode` a GET; without it curl POSTs and `/search` rejects it). Or `GET /parameterizedSearch?q=Acme&sobject=Account&Account.fields=Id,Name`.
`PATCH` on the external-ID path creates or updates in one call — the safest way to sync from another system:
salesforce_api -X PATCH "${SF_API}/sobjects/Account/External_Id__c/ACME-42" \
-d '{"Name": "Acme Corporation", "Industry": "Manufacturing"}' -w '\n%{http_code}\n'
# 201 + {"id",...,"created":true} → created
# 200 + {"created":false} → updated
# 300 → external ID matched MULTIPLE records; nothing written
#Plugins for @claude that connect the agent to common SaaS services. Each service is its own plugin, so a workspace can connect exactly the services it uses.
Read and manage Asana tasks, projects, sections, comments, and workspaces. Use this whenever the user wants to list or search…
Run SQL against Google BigQuery and browse its catalog — submit queries (sync or async), poll job status, page through results,…
Compose polished charts (timeseries, bar, line, area, pie, scatter, or anything else the data calls for) from tabular data using…
Automatic init the first time Claude acts in an incident or alerts channel — one named like #inc-…, #incident-…, #sev0-…/#sev1-…,…
Investigate an alert, page, or production symptom in an incident channel or a team's oncall / monitoring channel, and report…
Write the postmortem for an incident, in its incident channel, once it is mitigated or resolved. Use on "write up this incident",…