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

indykite-capture-delete-relationship-properties

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Build the request-body JSON for the IndyKite Capture API batch relationship-property delete (`POST /capture/v1/relationships/properties/delete`) - a `relationships` array (1-250 per request), each entry identifying a relationship by `source` node, `target` node (each `external_id` + `type`), and relationship `type`, plus the `property_types` (1-250 names) to strip from it; the relationship itself survives. On composite IKGs setting the top-level `use_global_db` field to `true` targets the global constituent. Use when the user wants to remove properties from edges in the IndyKite Knowledge Graph (IKG) - "drop the status property from millicent's OWNS edge", "prepare a relationship-property-delete payload for the Capture API". Produces a ready-to-send JSON file; sending it is optional. Not for deleting the relationship (indykite-capture-delete-relationships), node properties (indykite-capture-delete-node-properties), or CIQ policy-mediated deletes (indykite-ciq-delete).

The file

We split this skill into the rules it gives an agent

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

  • 3

    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 relationship itself - use indykite-capture-delete-relationships.

    line 29
  3. Very specific:

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

    line 30
  4. Very specific:

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

    line 32
  5. Distinctive:

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

    line 82

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

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

IndyKite Capture - delete relationship properties

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

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

Each entry identifies one relationship (source, target, type) and lists the property_types to strip from it. 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 properties from an edge - e.g. drop a stale status or timestamp from an OWNS relationship - while keeping the connection;
  • strip the same property set from many relationships in one call.

Do not activate this skill to:

  • delete the relationship itself - use indykite-capture-delete-relationships;
  • remove node properties - use indykite-capture-delete-node-properties;
  • overwrite a property with a new value - re-upsert the relationship with indykite-capture-upsert-relationships;
  • 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).
  • For each target: the relationship's source and target (type, external_id) pairs, its type, and the exact property names to remove.

Steps

1. List the relationships and the properties to strip

FieldRequiredMeaning
sourceyes{ "external_id": …, "type": … } of the outgoing node.
targetyes{ "external_id": …, "type": … } of the incoming node.
typeyesThe relationship type (max 128 chars).
property_typesyes1-250 property names to delete from this relationship.

2. Assemble the request body

One JSON object: { "relationships": [ … ] }, 1-250 entries per request. On a composite IKG, add top-level "use_global_db": true to target relationships stored in the global constituent (Data Residency guide); omit it on a regular IKG. A ready example: assets/delete-relationship-properties.json.

{
  "relationships": [
    {
      "source": { "external_id": "millicent", "type": "Person" },
      "target": { "external_id": "kitt", "type": "Car" },
      "type": "OWNS",
      "property_types": ["status"]
    }
  ]
}

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 entry, in order: { "results": [ { "id": "gid:…" } ] }. Field shapes and error semantics: references/capture-reference.md.

Outcome

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

Files in this skill

  • references/capture-reference.md - field reference, use_global_db behavior, batch limits, and error semantics.
  • assets/delete-relationship-properties.json - ready request body stripping status from an OWNS edge.
  • scripts/capture.sh - Bash helper that POSTs a body file to /capture/v1/relationships/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.