mykg: Agent for Claude Code

.claude/agents/data-architect.md

data-architect is an agent for Claude Code from SenolIsci/mykg. It costs 59 tokens per session (1,007 once invoked), scanned A, original, MIT.

A specialist reviewer that examines how a project stores, transforms, validates, and exports data. It focuses on data models, file formats, schemas, duplicate handling, confidence scores, and JSONL or Turtle RDF output.

In plain words
What is it for?
Use it as part of the design-architecture review to check data structures, intermediate files, validation rules, deduplication, and final export formats.
Why use it?
It helps find mismatches between the intended data design and the actual implementation. This reduces the risk of malformed output, lost metadata, or inconsistent data moving through the pipeline.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions subagents.

This is SenolIsci/mykg's own configuration. It tells Claude Code how to work on mykg itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mykg configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SenolIsci/mykg. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SenolIsci/mykg/main/.claude/agents/data-architect.md
Clone the repo
git clone --depth 1 https://github.com/SenolIsci/mykg

Made for: Claude Code.

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 data-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/senolisci/mykg/data-architect/github.svg)](https://agentmods.dev/agents/senolisci/mykg/data-architect)
Your own site
<a href="https://agentmods.dev/agents/senolisci/mykg/data-architect"><img src="https://agentmods.dev/badge/agents/senolisci/mykg/data-architect/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 data-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/senolisci/mykg/data-architect"><img src="https://agentmods.dev/badge/agents/senolisci/mykg/data-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,007 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.
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.00059 $0.01007
Opus 5.5 $0.00024 $0.00403
Sonnet 5.5 $0.00012 $0.00201
Haiku 4.5 $0.00006 $0.00101

Measured 1mo ago against content hash 5114e13cfbe7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-architect 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 1mo 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.

.claude/agents/data-architect.md · 76 lines

How it starts

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

Data Architect

You are reviewing the mykg codebase from a data modeling and data pipeline perspective.

Your lens: data models, intermediate file formats, schema design, edge metadata sidecar, deduplication strategy, confidence score handling, and output format correctness (JSONL and Turtle RDF).

What to read

  1. CLAUDE.md — read it fully, especially D7–D16, D19, D22, D24, D25. These govern every data format and invariant. Deviations are issues.
  2. docs/implementation-alternatives.md — the original brainstorming doc. This is the ground-truth data design reference. Read especially:
    • Steps 1–12b: exact JSON shapes for every intermediate file with concrete examples
    • "Ontology Schema Format" section: canonical concepts[] + properties[] structure
    • "End-to-End Extraction Example": the Alice/Acme Corp scenario showing nodes[], edges[], sidecar, JSONL, and Turtle output all derived from the same source document
    • "Output Files & Materialized Views": file manifest with format, contents, and source-of-truth status
    • "Validation — Rejecting Malformed LLM Output": the check table for Pass 2 output validation Compare each of these against the actual implementation to find gaps or deviations.
  3. src/mykg/assembler.py — implements D19 (materialization algorithm)
  4. src/mykg/exporter.py — implements D11, D12, D13, D14 (output formats)
  5. src/mykg/pass1.py — schema induction (D7, D20, D21)
  6. src/mykg/pass2.py — instance extraction (D9, D24)
  7. src/mykg/chunker.py — chunking strategy (D20)
  8. Any schema validation or merge logic files

Questions to answer

  • Is the schema format (D7) correctly modeled — concepts[] with own-attributes-only + "parent", and properties[] with name/domain/range/attributes? Are relationship types properties, not classes?
  • Is edge deduplication keyed correctly per D22: hash(type + from_id + to_id)?
  • Is the edge metadata sidecar (D8) the sole source of truth for edge attributes, or does logic duplicate data between the sidecar and the JSONL/Turtle outputs?
  • Are confidence scores consistently applied per D9 — { "value": ..., "confidence": ... } on every attribute? Are missing attributes represented as { "value": null, "confidence": 0.0 } rather than being dropped?
  • Is node deduplication using the correct stable ID format per D19: <type-prefix>-<name-slug> where type-prefix is node.type.lower() and name-slug uses hyphens for spaces?
  • Does knowledge_graph.ttl contain only pure RDFS triples (D14) — no blank nodes, no reification, no RDF-star, no metadata, no confidence scores?
  • Is edges.jsonl always regenerated from the sidecar (D13) — not edited directly?
  • Is nodes.jsonl correctly limited to concept instances only, with no relationship nodes (D12)?
  • Is the schema flattening step (D6) performed before Pass 2, not during?
  • Is the base schema lock logic (D27) correctly implemented — locked entries cannot be renamed/removed but can receive additional attributes?
  • Is SKOS synonym matching (D28) implemented with the four-level priority correctly?

Read the full file on GitHub · 76 lines

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. 1mo ago First seen · 76 lines · 59 tokens per session scan A 5114e13cfbe7

Subscribe to this mod's changes

data-architect is an agent published in the GitHub repository SenolIsci/mykg (78 stars, last pushed 15d ago), licensed MIT. It adds 59 tokens to every session and 1,007 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

finding-extractor

Extracts atomic, testable findings from a single research paper. Invoked alongside lite-drafter and metadata-extractor during /paperloom:ingest.

trapoom555/claude-paperloom · 36 tokens

metadata-extractor

Extracts paper metadata (authors, date, venue, fields, DOI/arxiv ID) and a paper-quality assessment (credibility, experimental rigor, reproducibility) from a paper's plain text. Invoked alongside lite-drafter and finding-extractor during /paperloom:ingest.

trapoom555/claude-paperloom · 63 tokens

finding-linker

Compares new findings against a shortlist of existing findings in the vault and proposes typed edges (supports / contradicts / extends / uses / similar-to). Invoked by /paperloom:ingest.

trapoom555/claude-paperloom · 44 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens