extract-knowledge

extract-knowledge is a skill for Claude Code from Datus-ai/Datus-agent. It costs 45 tokens per session (5,472 once invoked), scanned A, original, no licence file.

A process for extracting small, reusable facts from question-and-correct-SQL pairs and saving them as Markdown knowledge files. It can work by simulating SQL drafting or by using a SQL-writing subagent.

In plain words
What is it for?
Use it to build a knowledge collection from question and gold-SQL examples, in either a lighter or deeper extraction mode.
Why use it?
It turns past examples into concise reference material instead of leaving useful knowledge buried in individual answers.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

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.

agentmods
npx agentmods add skills/datus-ai/datus-agent/extract-knowledge
Any agent
npx skills add Datus-ai/Datus-agent --skill extract-knowledge
Clone the repo
git clone --depth 1 https://github.com/Datus-ai/Datus-agent

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 extract-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/datus-ai/datus-agent/extract-knowledge.svg)](https://agentmods.dev/skills/datus-ai/datus-agent/extract-knowledge)
Your own site
<a href="https://agentmods.dev/skills/datus-ai/datus-agent/extract-knowledge"><img src="https://agentmods.dev/badge/skills/datus-ai/datus-agent/extract-knowledge.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00045 $0.05472
Opus 5 $0.00023 $0.02736
Sonnet 5 $0.00009 $0.01094
Haiku 4.5 $0.00005 $0.00547

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

Security

Grade A, and why

extract-knowledge 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 6d 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.

datus/resources/skills/extract-knowledge/SKILL.md · 334 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 6d ago First seen · 334 lines · 45 tokens per session scan A 77ab312efec0

Subscribe to this mod's changes

extract-knowledge is a skill published in the GitHub repository Datus-ai/Datus-agent (1,696 stars, last pushed yesterday), with no licence file. It adds 45 tokens to every session and 5,472 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

graphjin-env

Use when setting up a training or evaluation loop against a GraphJin agent environment — running the container, reading /health, driving episodes hosted or step-by-step or with your own agent over MCP, splitting train from eval, exporting trajectories, and deciding whether two rewards can be compared.

dosco/graphjin · 61 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

flamerobin-mcp

Model Context Protocol (MCP) server for FlameRobin to interact with registered Firebird databases.

mariuz/flamerobin · 25 tokens

qi-cli

Guide for using qi, a local knowledge search CLI for macOS and Linux. Use this skill when the user wants to index documents into a searchable knowledge base, search or retrieve from one, configure qi's collections or embedding providers (Ollama, OpenAI-compatible), choose between its search modes (BM25, hybrid…

itsmostafa/qi · 88 tokens

graph-designer

Design YAML extraction templates for graph types (graph, hypergraph, temporalgraph, spatialgraph). Use when user says: "design graph", "create knowledge graph", "extract relationships", "temporal data", "spatial data". Trigger: User wants to extract entity relationships, multi-party events, or time/location-based…

yifanfeng97/Hyper-Extract · 84 tokens

record-designer

Design YAML extraction templates for record types (model, list, set). Use when user says: "design model template", "create item list extraction", "extract items", "deduplicate entities". Trigger: User wants to extract structured records, lists, or deduplicated entities. Skip: User mentions graph, relations, or…

yifanfeng97/Hyper-Extract · 78 tokens