indykite-capture-upsert-nodes
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Build the request-body JSON for the IndyKite Capture API batch node upsert (`POST /capture/v1/nodes`) - a `nodes` array (1-250 per request) of entities, each with `external_id`, `type`, optional `is_identity` / `labels` / `location`, and typed `properties` (values, external-data references, and per-property metadata such as source, assurance level, and verified time). Use when the user wants to ingest or update entities in the IndyKite Knowledge Graph (IKG) - "add these people and cars to the graph", "upsert this customer with verified email metadata", "prepare a nodes payload for the Capture API". Produces a ready-to-send JSON file; sending it is optional. Not for connecting nodes (indykite-capture-upsert-relationships), removing them (indykite-capture-delete-nodes), or CIQ policy-mediated writes (indykite-ciq-create-node).
In this repository25 other files it gives its agents.
- indykite-agent-gatewaySkill
- indykite-audit-logsSkill
- indykite-authzen-evaluationSkill
- indykite-authzen-evaluationsSkill
- indykite-authzen-kbac-policiesSkill
- indykite-authzen-list-policiesSkill
- indykite-authzen-search-actionSkill
- indykite-authzen-search-resourceSkill
- indykite-authzen-search-subjectSkill
- indykite-capture-delete-node-propertiesSkill
- indykite-capture-delete-node-property-metadataSkill
- indykite-capture-delete-nodesSkill
- indykite-capture-delete-relationship-propertiesSkill
- indykite-capture-delete-relationshipsSkill
- indykite-capture-upsert-relationshipsSkill
- indykite-ciq-add-propertySkill
- indykite-ciq-add-relationship-propertySkill
- indykite-ciq-create-nodeSkill
- indykite-ciq-create-node-with-linkSkill
- indykite-ciq-create-relationshipSkill
- indykite-ciq-deleteSkill
- indykite-ciq-readSkill
- indykite-ciq-whoamiSkill
- indykite-data-schemaSkill
- indykite-mcp-serverSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Do not activate this skill to:
- Very specific: line 33
write through a CIQ policy + Knowledge Query (parameterized, authorization-gated writes) - use indykite-ciq-create-node.
- Very specific: line 61
external_value: - instead of value, a data reference resolved at query time by an External Data Resolver, so the actual data never lives … - Very specific: line 109
If sent, the nodes exist in the IKG (created or updated by external_id), visible to CIQ queries, KBAC decisions, and the Hub Explorer.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
IndyKite Capture - upsert nodes
The Capture API is the direct ingestion surface of the IndyKite Knowledge Graph (IKG): it writes entities (nodes) and connections (relationships) without any policy in between. This skill builds the request body for the batch node upsert endpoint - the JSON file is the deliverable, ready to be POSTed by any application, CI job, or shell helper:
POST <API_URL>/capture/v1/nodesUpsert semantics: a node is identified by its (type, external_id) pair - posting the same pair again updates the node instead of creating a duplicate.
The MCP server does not currently expose Capture endpoints (its tools cover AuthZEN decisions and CIQ queries); the JSON bodies this skill produces are for direct REST use and remain valid if Capture tools are added later.
When to use
Activate this skill when the user wants to:
- ingest entities into the IKG - people, organizations, devices, resources - as graph nodes;
- update an existing node's properties (same
type+external_id); - attach property metadata (source, assurance level, verified time) or an external-data reference (
external_value) to a property; - prepare graph data that
indykite-authzen-*policies orindykite-ciq-*queries will later match.
Do not activate this skill to:
- connect nodes - use
indykite-capture-upsert-relationships; - remove nodes, properties, or metadata - use the
indykite-capture-delete-*skills; - write through a CIQ policy + Knowledge Query (parameterized, authorization-gated writes) - use
indykite-ciq-create-node; the Capture API writes directly, with no policy involved; - read graph data - use
indykite-ciq-read.
Prerequisites
- An IndyKite project with an AppAgent whose credentials are configured for the calling application (Credentials guide).
- The graph model: node types, their identifying
external_idscheme, and the property names downstream queries and policies will reference.
Steps
1. Model the nodes
For each entity decide:
| Field | Required | Meaning |
external_id | yes | Your identifier for the node (1-256 chars). Upserts key on (type, external_id). |
type | yes | Node type / label, e.g. Person, Car (2-64 chars). |
is_identity | no | true marks an identity node (a person or other actor, e.g. an AuthZEN subject); omit or false for plain entities. |
labels | no | Extra labels beyond type. |
location | no | Composite-IKG routing only: a logical location (an alias_mapping key, 2-32 chars). Omit on a regular IKG. |
properties | no | Array of typed values - see step 2. |
2. Write the properties
Each property is { "type": ..., "value": ... }; value is a string, integer, float, boolean, or an array of those. Two optional extensions:
metadata- provenance for the single property:source(string),assurance_level(1, 2, or 3),verified_time(RFC 3339 timestamp),custom_metadata(object). Used e.g. by trust scoring.external_value- instead ofvalue, a data reference resolved at query time by an External Data Resolver, so the actual data never lives in the IKG.
3. Assemble the request body
The body is one JSON object: { "nodes": [ … ] } with 1-250 nodes per request (batch larger sets into multiple files). A ready example - two Person identities and a Car, one property carrying metadata: assets/nodes-vehicle-rental.json.
{
"nodes": [
{
"external_id": "millicent",
"type": "Person",
"is_identity": true,
"properties": [
{ "type": "email", "value": "millicent@email.com" },
{
"type": "name",
"value": "Millicent Contextsworth",
"metadata": { "assurance_level": 1, "source": "Some Source", "verified_time": "2026-04-10T06:28:16Z" }
}
]
},
{ "external_id": "kitt", "type": "Car", "properties": [ { "type": "manufacturer", "value": "pontiac" } ] }
]
}This file is the deliverable - any HTTP-capable application can send it.
4. Send it (optional)
The endpoint authenticates the calling application (its AppAgent credentials). Which credential goes in which request header is covered by the Credentials guide.
A runnable shell helper builds the authenticated request: scripts/capture.sh — run with --print to preview the curl (host-pinned; token redacted).
5. Read the results
A 200 returns one result per node, in order:
{ "results": [ { "id": "gid:…" }, { "id": "gid:…" } ] }400 (with errors[]) means a malformed body - commonly a missing external_id or type. Field shapes, batch limits, and error semantics: references/capture-reference.md. To verify the ingest at schema level (types, property names, counts), read the schema back with indykite-data-schema.
Outcome
- A valid
{ "nodes": [ … ] }JSON file exists, each node carryingexternal_id,type, and its properties. - If sent, the nodes exist in the IKG (created or updated by
external_id), visible to CIQ queries, KBAC decisions, and the Hub Explorer.
Files in this skill
references/capture-reference.md- full field reference (node, property, metadata, external_value, location), batch limits, and error semantics.assets/nodes-vehicle-rental.json- ready request body: twoPersonidentities and aCarwith property metadata.scripts/capture.sh- Bash helper that POSTs a body file to/capture/v1/nodes(host-pinned;--printto preview).
Agent-specific notes
This skill uses generic markdown instructions and works across all agents listed in the README. The agent needs to be able to write a JSON file; sending it additionally requires HTTP access (curl or any HTTP client).
References
- Capture API reference (OpenAPI)
- Ingest data into the IKG (developer hub resource)
- Data Residency guide -
locationrouting on composite IKGs - External Data Resolver guide -
external_valuedata references - Trust Score guide - how property metadata feeds scoring
- Credentials guide
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.

