indykite-data-schema
Skill4 starsChanged 4 months 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 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-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-mcp-serverSkill
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 93
When this skill has been applied successfully:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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: 4980, integer: 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 Found- that is the normal "nothing ingested yet" answer, not a failure of this skill.
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. 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, anduser_defined_labels(each a list of{ name, count }).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); node properties additionally carry a metadata map with the same statistics for their provenance fields. 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", "count": 1 } ] },
"seats": { "count": 1, "types": [ { "type": "integer", "count": 1 } ] }
}
}
}
},
"edges": [
{
"source": "Person", "target": "Car", "relation": "CAN_DRIVE", "directed": true,
"metadata": { "count": 1, "properties": { "valid_until": { "count": 1, "types": [ { "type": "string", "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 last changed; 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.

