Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/OpenLinkSoftware/ai-agent-skillsnpx agentmods add skills/openlinksoftware/ai-agent-skills/document-to-kg-skillWrote 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.
[](https://agentmods.dev/skills/openlinksoftware/ai-agent-skills/document-to-kg-skill)<a href="https://agentmods.dev/skills/openlinksoftware/ai-agent-skills/document-to-kg-skill"><img src="https://agentmods.dev/badge/skills/openlinksoftware/ai-agent-skills/document-to-kg-skill/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.
<a href="https://agentmods.dev/skills/openlinksoftware/ai-agent-skills/document-to-kg-skill"><img src="https://agentmods.dev/badge/skills/openlinksoftware/ai-agent-skills/document-to-kg-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
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 →
- medium Excessive Agency · line 68 Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.Fix: Restrict tool access to only the tools required for the skill's stated purpose. Use an explicit allowlist rather than granting blanket access.
- medium Excessive Agency · line 106 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.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00124 | $0.06784 |
| Opus 5.5 | $0.00050 | $0.02714 |
| Sonnet 5.5 | $0.00025 | $0.01357 |
| Haiku 4.5 | $0.00012 | $0.00678 |
Grade A, and why
document-to-kg-skill 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 355 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Document to Knowledge Graph Skill — Specification (v1.0.0)
MANDATORY PRE-TOOL SEQUENCE — READ BEFORE CALLING ANY TOOL
After getSkillResource loads this skill, the next action must be text only — send the Opening Announcement and wait for the user's reply. Do not call any other tool first.
Skill Identity
| Field | Value |
|---|---|
| Name | document-to-kg-skill |
| Version | 1.0.0 |
| Purpose | Transform documents or text into RDF Knowledge Graphs using schema.org terms. |
| Scope | Four-step pipeline: collect source + page_url + format + destination → generate RDF → post-generation review → save to folder. |
Strict Harness Mode
Use Document-to-KG Harness Mode whenever the user asks to transform a document, URL, pasted text, PDF, thread, article, or source mesh into RDF, JSON-LD, Turtle, a Knowledge Graph, or an RDF-backed HTML/MD artifact set.
Harness mode constrains interpretation to this skill's document-to-RDF contract. Do not drift into a generic summary, article rewrite, standalone HTML page, or manually invented graph.
Harness Contract
When active:
- Collect or derive required inputs — document source, canonical
{page_url}, output RDF format, destination path, and whether HTML/Markdown companions are required. - Use
{page_url}as entity namespace for generated document-local IRIs, neverfile:IRIs when a canonical HTTP/HTTPS URL exists. - Generate RDF first using schema.org and approved vocabularies; RDF is the source of truth for any companion HTML/Markdown.
- Apply authority denotation rules —
schema:SoftwareApplication,schema:Organization,schema:Country, andschema:DefinedTerm/skos:Conceptentities must use DBpedia/Wikidata-centered IRIs as described below, withowl:sameAsfor confirmed cross references. - Inspect collection sources as collections — when the source is a manual, documentation site, sitemap-backed site, MkDocs/Docusaurus/VitePress collection, GitBook, docs portal, or other multi-page source, inspect sitemap/search index/navigation for high-signal child pages before finalizing RDF. Always review child pages about APIs, SPARQL, endpoints, query examples, services, reporting workflows, data models, server/runtime platforms, and integration instructions when present.
- Preserve SPARQL-bearing content — when source content includes SPARQL queries, query examples, endpoint demos, or reporting/query recipes, do not summarize the query body away. Model each material query as a named
schema:SoftwareSourceCoderesource withschema:programmingLanguage "SPARQL",schema:text,schema:codeSampleType,schema:targetpointing to the endpoint/service, andschema:potentialActionpointing to a correctly URL-encoded live query URL when the endpoint accepts GET query parameters. Preserve documented placeholders visibly. - Validate before save — RDF syntax, expanded DBpedia/Wikidata IRIs, no fabricated IRIs, no double-encoded resolver IRIs, no
file:IRIs, and required prefix declarations. - If HTML/Markdown companions are requested, hand off to the
rdf-infographic-skillRDF Infographic Harness Mode and satisfy its full HTML/MD/RDF pairing, resolver, KG Explorer, navigation, attribution, and validation contract. - Fail closed on missing requirements — if a required source, page URL, destination, resolver, or artifact scope is ambiguous and cannot be safely inferred, ask before generating.
What ships with it
1 file 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.
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.
- 3mo ago First seen · 355 lines · 124 tokens per session scan A cfe53345bee4
document-to-kg-skill is a skill published in the GitHub repository OpenLinkSoftware/ai-agent-skills (43 stars, last pushed yesterday), licensed MIT. It adds 124 tokens to every session and 6,784 once invoked, about $0.0005 per session on Opus 5.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-30.
document-to-kg-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| document-to-kg-skillOpenLinkSoftware/ai-agent-skills | Skill | 43 | yesterday | MIT | A | 124 | Claude Code, Codex |
| agent-platform-model-registrygoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| llm-evaluationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 25 | Claude Code |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 132 | Claude Code, Codex |
| training-checkwanshuiyin/Auto-claude-code-research-in-sleep | Skill | 20k | 2d ago | MIT | A | 35 | Claude Code |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | yesterday | Apache-2.0 | A | 92 | Claude Code |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | yesterday | Apache-2.0 | A | 30 | Claude Code |