indykite-data-schema
Skill4 starsChanged 7 days agoApache-2.0View on GitHub
Read the observed data schema of the IndyKite Knowledge Graph (IKG) via the Data Schema REST API (`GET /data-schema/v1/`) - a JGFv2 document listing every node type with its properties, value-type tallies, and labels, plus every (source, relation, target) relationship combination, with occurrence counts but never the data itself. Use before authoring Cypher for CIQ Knowledge Queries or KBAC policies (exact type and property spellings), to verify a Capture ingest landed, to detect schema drift, or to give an agent the graph's vocabulary - "what does our IKG look like?". Not for reading graph data (indykite-ciq-read), writing it (indykite-capture-* / indykite-ciq-*), or authoring policies (indykite-authzen-kbac-policies).
In this repository27 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-nodesSkill
- 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-intent-agentSkill
- indykite-mcp-serverSkill
- indykite-outbound-eventsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
verify an ingest: - after a Capture batch, one GET confirms the expected types and properties landed and the counts sanity-check the volume …
- Distinctive: line 23
Do not activate this skill when the user:
- Distinctive: line 98
When this skill has been applied successfully:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Data Schema - read the IKG's observed schema
The IndyKite Knowledge Graph (IKG) has no up-front schema definition step: the schema emerges from the data ingested through the Capture API or ContX IQ upserts. The platform tracks that emergent schema - which node types exist, which properties they carry with which value types, and how the types are connected - and exposes it through the Data Schema API as a JSON Graph Format (JGF) v2 document.
It is a schema-level view only: type names, property names, observed value types, and occurrence counts. It never returns the data itself, so it is safe to hand to tools and agents that should know the graph's vocabulary without seeing its contents.
When to use
Activate this skill when the user wants to:
- discover the exact spelling of node types, relationship types, and property names before authoring Cypher - a CIQ policy or Knowledge Query (
indykite-ciq-readand siblings) or a KBAC policy (indykite-authzen-kbac-policies) references them literally, and a policy written againstgivenNamematches nothing when the data was ingested asgiven_name; - verify an ingest - after a Capture batch, one GET confirms the expected types and properties landed and the counts sanity-check the volume (a
"Perosn"typo shows up immediately as a surprise node type); - detect schema drift or data-quality issues - a property reporting
STRING NOT NULL: 4980, INTEGER NOT NULL: 20means an upstream source started sending the wrong type; - get a meta-model overview of the project's graph ("what does our IKG look like?") for onboarding, visualization, or impact analysis before a cleanup.
Do not activate this skill when the user:
- wants the data itself - that is a ContX IQ read (
indykite-ciq-read); - wants to write nodes, relationships, or properties (the
indykite-capture-*andindykite-ciq-*skills); - expects to define or enforce a schema - the response is descriptive, observed from ingested data; it is not a constraint definition you author.
Prerequisites
- An IndyKite project with an AppAgent holding the
ReadDataSchemaAPI permission and AppAgent credentials (the token that goes intoX-IK-ClientKey) - see the Credentials guide. Without the permission the call fails with401and the messageinsufficient API access level for appAgent; add it to the agent'sapi_permissions(see the Environment guide). - Data already ingested. A project with an empty IKG returns
404 Not Foundwitherrors: ["data schema not found for the specified project"]- that is the normal "nothing ingested yet" answer, not a failure of this skill. - A minute of patience after a write. The schema is maintained from the graph's change stream and persisted at most once a minute, and only when something changed, so a Capture call is reflected within about a minute rather than instantly. Right after a large batch, read again a minute later before concluding that a type is missing or a count is short.
This endpoint is the only way to read the schema. The platform keeps it as nodes of its own in the graph, and a ContX IQ policy condition that tries to match them is refused when the policy is saved (see the indykite-ciq-read policy reference for the blocked labels).
Steps
1. Call the endpoint
GET <API_URL>/data-schema/v1/where API_URL is https://eu.api.indykite.com or https://us.api.indykite.com, matching the project's region, and the trailing slash is part of the path. Authentication is the AppAgent credential in the X-IK-ClientKey header, as is, without any prefix. There are no parameters - the project is derived from the credential.
A runnable shell helper builds the authenticated request: scripts/read-schema.sh — run with --print to preview the curl (host-pinned; token redacted).
2. Read the response
The response is one graph object:
graph.directed- alwaystrue.graph.metadata-created_atandupdated_attimestamps of the schema.graph.nodes- a map keyed by node type. Each entry'smetadataholdsnode_count, apropertiesmap (keyed by property name),system_labels(a list of{ name, count }; every node type carriesResource, and identity nodes also carryDigitalTwin), anduser_defined_labels(a list of the labels given at ingest, each{ name, count }, ornullwhen there are none - check fornullbefore iterating).graph.edges- one entry per (source type, relation, target type) combination: thesourceandtargetnode types, therelation(relationship type),directed, andmetadatawith the edgecountand itspropertiesmap.
Each properties entry describes one property: how many times it occurs (count) and the observed value types with per-type tallies (types), using the names the graph store reports - the common scalar ones are STRING NOT NULL, INTEGER NOT NULL, FLOAT NOT NULL, BOOLEAN NOT NULL, and ZONED DATETIME NOT NULL, and an array-valued property reports a list type, so a name outside those five is not by itself drift; node properties additionally carry a metadata map with the same statistics for their provenance fields (relationship properties have none). Trimmed example - one node type and one edge from a vehicle-rental graph:
{
"graph": {
"nodes": {
"Car": {
"metadata": {
"node_count": 1,
"properties": {
"manufacturer": { "count": 1, "types": [ { "type": "STRING NOT NULL", "count": 1 } ] },
"seats": { "count": 1, "types": [ { "type": "INTEGER NOT NULL", "count": 1 } ] }
},
"system_labels": [ { "name": "Resource", "count": 1 } ],
"user_defined_labels": null
}
}
},
"edges": [
{
"source": "Person", "target": "Car", "relation": "CAN_DRIVE", "directed": true,
"metadata": { "count": 1, "properties": { "valid_until": { "count": 1, "types": [ { "type": "STRING NOT NULL", "count": 1 } ] } } }
}
]
}
}The full field reference, a complete example response, and jq recipes for common questions ("which node types exist?", "which properties does Person have?") are in references/data-schema-reference.md.
3. Use what it tells you
- Copy spellings, don't retype them. Take node types, relationship types, and property names verbatim from the response into Cypher patterns, KBAC conditions, Capture payloads, and AuthZEN
subject.type/resource.typefields. - Check the edge direction.
graph.edgesrecords the storedsource→targetdirection; a Cypher pattern drawn in the opposite direction matches nothing. - Treat mixed type tallies as a red flag. More than one entry in a property's
typeslist usually means an upstream source changed what it sends. - Diff over time.
graph.metadata.updated_attells you when the schema was last persisted; it moves about once a minute while data flows (counts change even when the shape does not) and stays put while the graph is idle. Polling and diffing the response is a cheap monitor for upstream changes. - Count before you delete. The per-property and per-edge counts show how much data a cleanup would touch before you call the Capture delete endpoints.
Outcome
When this skill has been applied successfully:
GET /data-schema/v1/returns the project's observed schema as a JGFv2graphdocument - node types with property and label statistics, and oneedgesentry per (source, relation, target) combination - or a404that correctly identifies an empty project.- Downstream Cypher (CIQ policies and Knowledge Queries, KBAC conditions) and Capture payloads use type and property spellings taken from the response instead of guesses.
Files in this skill
references/data-schema-reference.md- endpoint, auth, full JGFv2 response field reference, complete example response, error codes, andjqrecipes.scripts/read-schema.sh- Bash helper that GETs/data-schema/v1/with the right header (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 issue HTTP requests (curl or an HTTP client). No Claude Code hooks, Cursor @-mentions, or Copilot workspace context are required.
References
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.

