generate-identity-graph

generate-identity-graph is a skill for Claude Code from narrative-io/narrative-skills-marketplace. It costs 147 tokens per session (7,458 once invoked), scanned A, original, MIT.

A workflow builder for identity graphs made from customer or other first-party data, with optional third-party data. An identity graph links records that may refer to the same person, household, or organization.

In plain words
What is it for?
Mapping input data, checking its shape before graph creation, combining approved data sources, and submitting an identity-graph workflow.
Why use it?
It helps prepare datasets in the required format and connect them into a graph workflow instead of assembling each step manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the narrative-identity plugin — 3 skills shipped together

Good fit Mapping input data, checking its shape before graph creation, combining approved data sources, and submitting an identity-graph workflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/narrative-io/narrative-skills-marketplace/generate-identity-graph
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add narrative-io/narrative-skills-marketplace --skill generate-identity-graph
Clone the repo
git clone --depth 1 https://github.com/narrative-io/narrative-skills-marketplace

Made for: Claude Code.

Or install narrative-identity, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-identity-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/narrative-io/narrative-skills-marketplace/generate-identity-graph/github.svg)](https://agentmods.dev/skills/narrative-io/narrative-skills-marketplace/generate-identity-graph)
Your own site
<a href="https://agentmods.dev/skills/narrative-io/narrative-skills-marketplace/generate-identity-graph"><img src="https://agentmods.dev/badge/skills/narrative-io/narrative-skills-marketplace/generate-identity-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-identity-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/narrative-io/narrative-skills-marketplace/generate-identity-graph"><img src="https://agentmods.dev/badge/skills/narrative-io/narrative-skills-marketplace/generate-identity-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,458 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 13 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 105
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
  • high Tool Misuse · line 427
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 431
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 648
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 427
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 431
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 648
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Agent Snooping · line 648
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 649
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 650
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 651
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Excessive Agency · line 660
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 665
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00147 $0.07458
Opus 5 $0.00073 $0.03729
Sonnet 5 $0.00029 $0.01492
Haiku 4.5 $0.00015 $0.00746

Measured 12d ago against content hash b0dc8d72466e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

generate-identity-graph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/narrative-identity/skills/generate-identity-graph/SKILL.md · 686 lines

How it starts

The opening of the file, as written. The whole thing — 686 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Identity Graph

Persona

You are an identity-resolution engineer who composes a Narrative identity-graph workflow from first-party datasets and optional third-party edge sources. You optimize for:

  1. Contract-correctness — every input must conform to the fixed bipartite graph-edge schema { SOURCE_ID, SOURCE_ID_TYPE, TARGET_ID, TARGET_ID_TYPE, IS_DIRECTED, ATTRIBUTES } before it joins the UNION. No exceptions, no inline patching. See references/EDGE_CASES.md for the SOURCE/TARGET asymmetry, the firstPartySources / thirdPartySources discovery rule (only SOURCE_ID_TYPE values, never bridge keys), and how to spot-check the data when shapes look wrong.
  2. Defer, don't re-implement — when the graph-edge attribute ID needs to be resolved, hand off to /find-attribute; when an input dataset isn't mapped to that attribute, hand off to /generate-rosetta-stone-mappings; when the input data needs a pre-graph quality audit, hand off to /triage-pregraph-data and carry its approved filter expressions forward; when the materialized-view NQL needs to be written, hand off to /write-nql; when the workflow YAML needs to be composed, validated, submitted, and (optionally) triggered, hand off to /create-workflow. Never resolve attribute IDs, write graph-edge mappings, audit hypotheses, hand-author NQL, or render and submit workflow YAML inside this skill.
  3. Validation before delivery — every materialized-view DDL is server-validated (by /write-nql, which owns that step) before it is handed to /create-workflow, which performs an independent workflow-spec validation pass at submit time.
  4. Write-safety — no DDL execution, no workflow submission, no durable side effect without explicit user approval. The user- approval gate for the workflow submit lives in /create-workflow, not here.

Read the full file on GitHub · 686 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 686 lines · 147 tokens per session scan A b0dc8d72466e

Subscribe to this mod's changes

generate-identity-graph is a skill published in the GitHub repository narrative-io/narrative-skills-marketplace (8 stars, last pushed yesterday), licensed MIT. It adds 147 tokens to every session and 7,458 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

zarr-python

Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.

synthetic-sciences/openscience · 42 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

synthetic-sciences/openscience · 74 tokens

hdf5-pde-data-loading

Patterns for loading PDE simulation datasets (PDEBench, PhiFlow, JAX-CFD) from HDF5 files. Handles layout detection (single tensor vs separate variables), spatial/temporal downsampling, multi-variable systems, HuggingFace and DaRUS data sources, and efficient PyTorch DataLoader creation. Use when preparing PDE data…

synthetic-sciences/openscience · 82 tokens

metricflow_ingest

Map a MetricFlow semanticmodel or metric into ktx semantic layer sources. Covers the MetricFlow to ktx primitive table, extends: inheritance flattening, metric-type handling (simple / derived / ratio / cumulative / conversion), model: ref('x') resolution, and four worked examples. Load when the turn contains…

Kaelio/ktx · 0 tokens

sigma_ingest

Extract durable ktx wiki knowledge from staged Sigma data model specs and workbook summaries. Load for WorkUnits with unitKey sigma-data-models or sigma-workbooks.

Kaelio/ktx · 36 tokens

lookml_ingest

Map a LookML view/model/explore into ktx semantic layer sources. Covers the LookML to ktx primitive table, provenance tagging, and three worked examples (overlay, standalone from derivedtable, standalone with sqlalwayswhere). Load when the turn contains .lkml content.

Kaelio/ktx · 63 tokens