agentleFS
indykiteindykite/skills/indykite-capture-delete-node-properties/SKILL.md

indykite-capture-delete-node-properties

Skill4 starsChanged 7 days agoApache-2.0View on GitHub

Build the request-body JSON for the IndyKite Capture API batch node-property delete (`POST /capture/v1/nodes/properties/delete`) - a `nodes` array (1-250 per request) where each entry names a node (`external_id` + `type`) and the `property_types` (1-250 names) to strip from it; the node itself survives. On composite IKGs an optional per-node `location` routes the delete. Use when the user wants to remove specific properties from entities in the IndyKite Knowledge Graph (IKG) - "drop the email property from millicent", "strip these deprecated fields from all listed devices", "prepare a property-delete payload for the Capture API". Produces a ready-to-send JSON file; sending it is optional. Not for deleting whole nodes (indykite-capture-delete-nodes), property metadata only (indykite-capture-delete-node-property-metadata), relationship properties (indykite-capture-delete-relationship-properties), or CIQ policy-mediated deletes (indykite-ciq-delete).

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not activate this skill to:

    line 27
  2. Very specific:

    delete the whole node - use indykite-capture-delete-nodes.

    line 29
  3. Very specific:

    remove only a property's metadata (value survives) - use indykite-capture-delete-node-property-metadata.

    line 30
  4. Very specific:

    remove relationship properties - use indykite-capture-delete-relationship-properties.

    line 31
  5. Very specific:

    delete through a CIQ policy + Knowledge Query - use indykite-ciq-delete.

    line 33
  6. Distinctive:

    If sent, the listed properties are gone from those nodes.

    line 82

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

IndyKite Capture - delete node properties

This skill builds the request body for the Capture API's batch node-property delete endpoint - removing named properties from nodes in the IndyKite Knowledge Graph (IKG) while keeping the nodes themselves:

POST <API_URL>/capture/v1/nodes/properties/delete

Each entry names one node by (type, external_id) and lists the property_types to strip. The JSON file is the deliverable, ready to be POSTed by any application.

The MCP server does not currently expose Capture endpoints; 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:

  • remove specific properties from a node - PII minimization, dropping deprecated fields, correcting a wrong ingest - while keeping the node;
  • strip the same property set from many nodes in one call.

Do not activate this skill to:

  • delete the whole node - use indykite-capture-delete-nodes;
  • remove only a property's metadata (value survives) - use indykite-capture-delete-node-property-metadata;
  • remove relationship properties - use indykite-capture-delete-relationship-properties;
  • overwrite a property with a new value - just re-upsert it with indykite-capture-upsert-nodes;
  • delete through a CIQ policy + Knowledge Query - use indykite-ciq-delete.

Prerequisites

  • An IndyKite project with an AppAgent whose credentials are configured for the calling application (Credentials guide).
  • The (type, external_id) of each node and the exact property names to remove.

Steps

1. List the nodes and the properties to strip

FieldRequiredConstraintsMeaning
external_idyes1-256 charsThe node's caller-owned identifier.
typeyes2-64 charsThe node's type.
property_typesyes1-250 namesThe property names to delete from this node.
locationno2-32 charsComposite IKG only: the node's logical location. Omit on a regular IKG.

2. Assemble the request body

One JSON object: { "nodes": [ … ] }, 1-250 entries per request. A ready example: assets/delete-node-properties.json.

{
  "nodes": [
    {
      "external_id": "millicent",
      "type": "Person",
      "property_types": ["email", "given_name"]
    }
  ]
}

This file is the deliverable - any HTTP-capable application can send it.

3. 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). Deletion is destructive: preview with --print, and confirm the property list, before sending.

4. Read the results

A 200 returns one result per node, in order: { "results": [ { "id": "gid:…" } ] }. On a composite IKG (data residency), a request in which any node carries a location is answered instead with the GIDs grouped by location - { "east": [ "gid:…" ], "global": [ "gid:…" ] }; a location of the request where nothing was found is listed with an empty list - so read the result by location, not by position in the request. Field shapes and error semantics: references/capture-reference.md.

Outcome

  • A valid { "nodes": [ … ] } body exists, each entry naming a node and its property_types to remove.
  • If sent, the listed properties are gone from those nodes; the nodes, their other properties, and their relationships are untouched.

Files in this skill

  • references/capture-reference.md - field reference, batch limits, and error semantics.
  • assets/delete-node-properties.json - ready request body stripping two properties from a Person.
  • scripts/capture.sh - Bash helper that POSTs a body file to /capture/v1/nodes/properties/delete (host-pinned; --print to 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.