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

indykite-capture-delete-node-property-metadata

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Build the request-body JSON for the IndyKite Capture API batch property-metadata delete (`POST /capture/v1/nodes/properties/metadata/delete`) - a `nodes` array (1-250 per request) where each entry names a node (`external_id` + `type`), one `property_type`, and the `metadata_fields` (1-250, e.g. source, assurance_level, verified_time, custom_metadata) to remove from that property; the property and its value survive. Use when the user wants to strip provenance metadata in the IndyKite Knowledge Graph (IKG) - "remove the assurance level from millicent's name property", "clear the verified_time metadata on these records", "prepare a metadata-delete payload for the Capture API". Produces a ready-to-send JSON file; sending it is optional. Not for deleting the property itself (indykite-capture-delete-node-properties), whole nodes (indykite-capture-delete-nodes), or attaching metadata (indykite-capture-upsert-nodes re-upserts it).

The file

We split this skill into the rules it gives an agent

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

  • 2

    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 property itself (value and all) - use indykite-capture-delete-node-properties.

    line 29
  3. Very specific:

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

    line 30
  4. Distinctive:

    If sent, those metadata fields are gone from the property.

    line 84

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

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

IndyKite Capture - delete node property metadata

This skill builds the request body for the Capture API's batch property-metadata delete endpoint - removing metadata fields (provenance such as source, assurance_level, verified_time, custom_metadata) from a node property in the IndyKite Knowledge Graph (IKG), while keeping the property and its value:

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

Each entry names one node by (type, external_id), one property_type on it, and the metadata_fields 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:

  • strip provenance metadata from a property - e.g. drop a stale verified_time or an obsolete source - without touching the property value;
  • clean metadata that feeds trust scoring so a factor no longer contributes.

Do not activate this skill to:

  • delete the property itself (value and all) - use indykite-capture-delete-node-properties;
  • delete the whole node - use indykite-capture-delete-nodes;
  • set or update metadata - re-upsert the property with a metadata object via indykite-capture-upsert-nodes.

Prerequisites

  • An IndyKite project with an AppAgent whose credentials are configured for the calling application (Credentials guide).
  • For each target: the node's (type, external_id), the property name, and the metadata field names to remove.

Steps

1. List the targets

FieldRequiredConstraintsMeaning
external_idyes1-256 charsThe node's caller-owned identifier.
typeyes2-64 charsThe node's type.
property_typeyesstringThe single property whose metadata is being removed.
metadata_fieldsyes1-250 namesMetadata fields to remove - the fields a property's metadata object can carry are source, assurance_level, verified_time, and custom_metadata.
locationno2-32 charsComposite IKG only: the node's logical location. Omit on a regular IKG.

One entry addresses one property; to clean several properties on the same node, add one entry per property.

2. Assemble the request body

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

{
  "nodes": [
    {
      "external_id": "millicent",
      "type": "Person",
      "property_type": "name",
      "metadata_fields": ["assurance_level", "source"]
    }
  ]
}

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).

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 { "nodes": [ … ] } body exists, each entry naming a node, one property_type, and the metadata_fields to remove.
  • If sent, those metadata fields are gone from the property; the property value, the node, and everything else are untouched.

Files in this skill

  • references/capture-reference.md - field reference, the metadata field names, batch limits, and error semantics.
  • assets/delete-property-metadata.json - ready request body stripping assurance_level and source from a property.
  • scripts/capture.sh - Bash helper that POSTs a body file to /capture/v1/nodes/properties/metadata/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.