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.
npx skills add jamesgray-ai/handsonai-plugins --skill building-knowledge-graphgit clone --depth 1 https://github.com/jamesgray-ai/handsonai-pluginsWrote 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/jamesgray-ai/handsonai-plugins/building-knowledge-graph)<a href="https://agentmods.dev/skills/jamesgray-ai/handsonai-plugins/building-knowledge-graph"><img src="https://agentmods.dev/badge/skills/jamesgray-ai/handsonai-plugins/building-knowledge-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.
<a href="https://agentmods.dev/skills/jamesgray-ai/handsonai-plugins/building-knowledge-graph"><img src="https://agentmods.dev/badge/skills/jamesgray-ai/handsonai-plugins/building-knowledge-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00200 | $0.05371 |
| Opus 5.5 | $0.00080 | $0.02148 |
| Sonnet 5.5 | $0.00040 | $0.01074 |
| Haiku 4.5 | $0.00020 | $0.00537 |
Grade A, and why
building-knowledge-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 4d 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 — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building Knowledge Graph
Build the user's knowledge graph: a knowledge/ folder of markdown concept pages about the work a person, a team, or a company does, that the AI maintains from now on. The pattern is Andrej Karpathy's LLM wiki (three layers: raw sources, the wiki, the schema; three operations: ingest, query, lint). The file format is Google's Open Knowledge Format (OKF). This is a ~30-minute guided build that ends with a small real graph and all three operations run once against it.
Ground yourself in two sources before Phase 5, and read the latest version of each rather than working from memory:
- Karpathy's LLM-wiki note: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f
- The OKF specification: https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md (raw: https://raw.githubusercontent.com/GoogleCloudPlatform/open-knowledge-format/main/SPEC.md)
If a page cannot be fetched, work from the distilled rules in references/build-spec.md.
This file is the map. references/interview-guide.md is the script for Phases 0–5 and the Close; references/build-spec.md is the exact shape of everything Phase 5 writes; references/example-knowledge-graph.md is a worked example that is shown to illustrate and never copied into the user's graph.
What this builds
<project folder>/ ← the user opens their AI here
├── .claude/skills/ ← Claude Code and the Claude desktop app (ChatGPT app: .agents/skills/)
│ ├── ingest/SKILL.md fold a document into the pages it affects
│ └── lint/SKILL.md sweep every page against SCHEMA.md
├── raw/ ← source documents, read but never edited — OUTSIDE the bundle
├── knowledge/ ← the OKF bundle
│ ├── <one folder per type>/
│ │ └── <one page per concept>.md
│ ├── notes/ filed answers and knowledge with no other home
│ ├── overview.md the page you would hand a new hire
│ ├── index.md every page, one line each; okf_version in frontmatter
│ ├── log.md dated record of what changed
│ └── SCHEMA.md the rulebook: types, relationships, conventions
├── CLAUDE.md ← standing rules, read every session (ChatGPT app: AGENTS.md)
└── types.md ← the approved blueprint from Phase 4
What ships with it
3 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.
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.
- 4d ago Changed 3d9af55cad64
- 9d ago Changed · +3 lines · +27 tokens per session edd8e8749c30
- 25d ago Changed 1753eff45688
- 1mo ago Changed · -1 lines d3f23ba944a4
- 1mo ago First seen · 164 lines · 173 tokens per session scan A 1f5f65bbf5eb
building-knowledge-graph is a skill published in the GitHub repository jamesgray-ai/handsonai-plugins (8 stars, last pushed yesterday), licensed MIT. It adds 200 tokens to every session and 5,371 once invoked, about $0.0008 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-09-22.
building-knowledge-graph compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| building-knowledge-graphjamesgray-ai/handsonai-plugins | Skill | 8 | yesterday | MIT | A | 200 | Claude Code |
| knowledge-ingestopenclaw/openclaw | Skill | 394k | yesterday | MIT | A | 80 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| forgetasgeirtj/system_prompts_leaks | Skill | 71k | 2d ago | CC0-1.0 | A | 74 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 20k | yesterday | MIT | A | 184 | Claude Code |
| memoryopensquilla/opensquilla | Skill | 7.1k | 6d ago | Apache-2.0 | A | 44 | Claude Code, Codex |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 115 | Claude Code, Codex |